Commit f0e4074e authored by Solene Rapenne's avatar Solene Rapenne
Browse files

copy-tarballs.pl: skip files that are patches

parent e9b835d9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ elsif (defined $expr) {
        my $algo = $fetch->{type};
        my $hash = $fetch->{hash};
        my $name = $fetch->{name};
        my $isPatch = $fetch->{isPatch};

        if ($hash =~ /^([a-z0-9]+)-([A-Za-z0-9+\/=]+)$/) {
            $algo = $1;
@@ -189,6 +190,11 @@ elsif (defined $expr) {
            next;
        }

        if ($isPatch) {
            print STDERR "skipping $url (support for patches is missing)\n";
            next;
        }

        next if defined $exclude && $url =~ /$exclude/;

        if (alreadyMirrored($algo, $hash)) {