Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 484108 | Differences between
and this patch

Collapse All | Expand All

(-)usr/bin/g-cpan (-1 / +1 lines)
Lines 713-719 sub generatePackageInfo Link Here
713
713
714
                        # Detect the file extension, upstream usually uses .tar.gz, but not always
714
                        # Detect the file extension, upstream usually uses .tar.gz, but not always
715
                        my $module_a_ext = '';
715
                        my $module_a_ext = '';
716
                        foreach my $ext qw(tgz tbz2 tar.bz2 tar.xz tar.Z zip)
716
                        foreach my $ext (qw(tgz tbz2 tar.bz2 tar.xz tar.Z zip))
717
                        {
717
                        {
718
                            if ( $gcpan_run->{'cpan'}{lc($original_ebuild)}{'src_uri'} =~ m/\.\Q$ext\E$/ ) {
718
                            if ( $gcpan_run->{'cpan'}{lc($original_ebuild)}{'src_uri'} =~ m/\.\Q$ext\E$/ ) {
719
                                $module_a_ext = sprintf 'MODULE_A_EXT="%s"', $ext;
719
                                $module_a_ext = sprintf 'MODULE_A_EXT="%s"', $ext;
(-)usr/lib64/perl5/vendor_perl/5.18.1/Gentoo/CPAN.pm (-2 / +2 lines)
Lines 321-327 sub FindDeps { Link Here
321
                close(YAML);
321
                close(YAML);
322
                if ( check_yaml(@yaml) ) {
322
                if ( check_yaml(@yaml) ) {
323
                my $arr = YAML::Load(@yaml);
323
                my $arr = YAML::Load(@yaml);
324
                foreach my $type qw(configure_requires requires build_requires recommends) {
324
                foreach my $type (qw(configure_requires requires build_requires recommends)) {
325
                    if ( my $ar_type = $arr->{$type} ) {
325
                    if ( my $ar_type = $arr->{$type} ) {
326
                        foreach my $module ( keys %{$ar_type} ) {
326
                        foreach my $module ( keys %{$ar_type} ) {
327
                            next if ( $module eq "" );
327
                            next if ( $module eq "" );
Lines 383-389 sub FindDeps { Link Here
383
                my (%p) = ();
383
                my (%p) = ();
384
                my $fh;
384
                my $fh;
385
385
386
                foreach my $type qw(requires configure_requires build_requires) {
386
                foreach my $type (qw(requires configure_requires build_requires)) {
387
                    if ( $fh = FileHandle->new("<$makefile\0") ) {
387
                    if ( $fh = FileHandle->new("<$makefile\0") ) {
388
                        local ($/) = "";
388
                        local ($/) = "";
389
                        while (<$fh>) {
389
                        while (<$fh>) {

Return to bug 484108