The following commit has been merged in the master branch:
commit d76627dae08b958585d7bee5b3a7c9ef625136b7
Author: James McCoy <[email protected]>
Date: Sat Feb 25 21:20:10 2012 -0500
debsnap: Check whether architectures have been specified.
Closes: #655932
Signed-off-by: James McCoy <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index 3e2ff3a..d4087c5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ devscripts (2.11.5) UNRELEASED; urgency=low
source package name. (Closes: #655854)
* dcmd: Escape directory name so it doesn't interfere with sed command.
(Closes: #649227)
+ * debsnap: Check whether architectures have been specified. (Closes:
+ #655932)
-- Adam D. Barratt <[email protected]> Wed, 15 Feb 2012 19:40:58 +0000
diff --git a/scripts/debsnap.pl b/scripts/debsnap.pl
index e8065d5..e609551 100755
--- a/scripts/debsnap.pl
+++ b/scripts/debsnap.pl
@@ -252,7 +252,7 @@ if ($opt{binary}) {
}
foreach my $result (@{$src_json->{result}}) {
- if (@{$opt{architecture}}) {
+ if ($opt{architecture} && @{$opt{architecture}}) {
next unless (grep { $_ eq $result->{architecture} }
@{$opt{architecture}});
}
my $hash = $result->{hash};
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].