summaryrefslogtreecommitdiff
path: root/dh_strip
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-09-16 23:49:38 +0000
committerjoeyh <joeyh>2007-09-16 23:49:38 +0000
commite8b78241c61964699d525c8157780242a1d358d3 (patch)
treeb78f94f2b55415f318279235ab262c79bbea595e /dh_strip
parent09bf5892fcc47c94d77c8457b533643ec3b58ef8 (diff)
r2027: * dh_strip: Check that --dbg-package lists the name of a real package.
Closes: #442480
Diffstat (limited to 'dh_strip')
-rwxr-xr-xdh_strip6
1 files changed, 5 insertions, 1 deletions
diff --git a/dh_strip b/dh_strip
index ef91d651..2c7f3d8f 100755
--- a/dh_strip
+++ b/dh_strip
@@ -181,7 +181,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
$keep_debug=1;
# Note that it's only an array for the v4 stuff;
# for v5 only one value is used.
- $debugtmp=tmpdir(@{$dh{DEBUGPACKAGES}}[0]);
+ my $debugpackage=@{$dh{DEBUGPACKAGES}}[0];
+ if (! grep { $_ eq $debugpackage } getpackages()) {
+ error("debug package $debugpackage is not listed in the control file");
+ }
+ $debugtmp=tmpdir($debugpackage);
}
}
else {