… | |
… | |
761 | $meta = { |
761 | $meta = { |
762 | %{ $meta->{"" } || {} }, |
762 | %{ $meta->{"" } || {} }, |
763 | %{ $meta->{$file} || {} }, |
763 | %{ $meta->{$file} || {} }, |
764 | }; |
764 | }; |
765 | |
765 | |
766 | if ($meta->{license} =~ s/^#//) { |
766 | if (exists $meta->{license} && $meta->{license} =~ s/^#//) { # exists == avoid autovivification |
767 | $meta->{license} = ({ |
767 | $meta->{license} = ({ |
768 | "pd" => "Public Domain", |
768 | "pd" => "Public Domain", |
769 | "gpl" => "GNU General Public License, version 3.0 or any later", |
769 | "gpl" => "GNU General Public License, version 3.0 or any later", |
770 | "cc/by/2.0" => "Licensed under Creative Commons Attribution 2.0 http://creativecommons.org/licenses/by/2.0/", |
770 | "cc/by/2.0" => "Licensed under Creative Commons Attribution 2.0 http://creativecommons.org/licenses/by/2.0/", |
771 | "cc/by/2.1" => "Licensed under Creative Commons Attribution 2.1 http://creativecommons.org/licenses/by/2.1/", |
771 | "cc/by/2.1" => "Licensed under Creative Commons Attribution 2.1 http://creativecommons.org/licenses/by/2.1/", |