From f0e4074eea548627e1b3a6bc210212b37c62fadf Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Sun, 28 Aug 2022 14:51:26 +0200 Subject: [PATCH] copy-tarballs.pl: skip files that are patches --- maintainers/scripts/copy-tarballs.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/scripts/copy-tarballs.pl b/maintainers/scripts/copy-tarballs.pl index 6a08eb88bf84..c81b49bfb599 100755 --- a/maintainers/scripts/copy-tarballs.pl +++ b/maintainers/scripts/copy-tarballs.pl @@ -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)) {