summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-11-13 12:53:09 +0000
committerintrigeri <intrigeri@boum.org>2016-11-13 13:02:56 +0000
commit8fbd3ba7f58f49ad1719cf82b252ffbafc453810 (patch)
tree2ffa81430e164692fa435a7d2e10520f31c98e0a /files/reprepro/snapshots
parentd9df8eb994554f7983b88c0eabe7d9f00a9d7b8b (diff)
tails-prepare-tagged-apt-snapshot-import: allow non-existing {Packages,Sources}.gz.
Same rationale as previous commit.
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import2
1 files changed, 2 insertions, 0 deletions
diff --git a/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import b/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import
index 731623e..c23befc 100755
--- a/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import
+++ b/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import
@@ -76,6 +76,7 @@ sub get_binaries_and_source_mapping {
foreach my $component (@{$components_ref}) {
my ($p, $v, $s);
my $packages_file = "$path/$component/binary-$arch/Packages.gz";
+ -e $packages_file || next;
my $buf_out = '';
open my $buf_fh, '+<', \$buf_out or die $!;
my $status = gunzip $packages_file => \$buf_out
@@ -139,6 +140,7 @@ sub get_sources {
foreach my $component (@{$components_ref}) {
my ($p, $v, $s);
my $sources_file = "$path/$component/source/Sources.gz";
+ -e $sources_file || next;
my $buf_out = '';
open my $buf_fh, '+<', \$buf_out or die $!;
my $status = gunzip $sources_file => \$buf_out