scripts: sha2rsync: fix missing feeds in additional_files list
authorPetr Štetiar <ynezz@true.cz>
Sun, 29 Sep 2024 06:13:23 +0000 (06:13 +0000)
committerPetr Štetiar <ynezz@true.cz>
Sun, 29 Sep 2024 06:13:23 +0000 (06:13 +0000)
Currently only packages feeds are being handled in phase2, so lets add the
other missing feeds.

Fixes: c3ddb0db167d ("phase2: use sha2rsync.pl for 'targetupload'")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
scripts/sha2rsync.pl

index de286a1e505cf159bab92d5e3acb2986bc457aea..6b9d2d13109e7a1e9207e426a61dd22fab8b8f6c 100755 (executable)
@@ -97,12 +97,20 @@ while (defined($lline)) {
 
 # unconditionally add some mandatory files to rsynclist
 # add them last so they're transferred last: if everything else transferred correctly
-my @additional_files = qw(
-       packages/Packages.asc
-       packages/Packages.sig
-       sha256sums.asc
-       sha256sums.sig
-       sha256sums
+my @feeds = qw(base luci packages routing telephony);
+my @additional_files;
+
+for my $feed (@feeds) {
+    push @additional_files, (
+        "$feed/Packages.asc",
+        "$feed/Packages.sig",
+    );
+}
+
+push @additional_files, qw(
+    sha256sums.asc
+    sha256sums.sig
+    sha256sums
 );
 
 (my $basedir = $llist) =~ s!/[^/]+$!!;