summary refs log tree commit diff
path: root/maintainers
diff options
context:
space:
mode:
authorSolene Rapenne <solene@perso.pw>2022-08-28 14:51:26 +0200
committerSolene Rapenne <solene@perso.pw>2022-08-28 14:51:26 +0200
commitf0e4074eea548627e1b3a6bc210212b37c62fadf (patch)
treec04d5ccef62eb6c4a96be56843fdd2dec6ac764b /maintainers
parente9b835d9752c801642721d1cc9918d66dcc1f0f0 (diff)
downloadnixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.tar
nixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.tar.gz
nixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.tar.bz2
nixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.tar.lz
nixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.tar.xz
nixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.tar.zst
nixpkgs-f0e4074eea548627e1b3a6bc210212b37c62fadf.zip
copy-tarballs.pl: skip files that are patches
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/scripts/copy-tarballs.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/maintainers/scripts/copy-tarballs.pl b/maintainers/scripts/copy-tarballs.pl
index 6a08eb88bf8..c81b49bfb59 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)) {