summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorjoey <joey>2000-04-09 03:10:07 +0000
committerjoey <joey>2000-04-09 03:10:07 +0000
commit705be431f33d24a3ecc3b2de9d527f6768a6878f (patch)
tree27e4ae2fc6b3270491ed7da088c663cadda8198b /Debian/Debhelper/Dh_Lib.pm
parentcc10d76459975e497223c61be256d343f2a3badd (diff)
r343: * Detect changelog parse failures and use a better error message.
Closes: #62058
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 915d37a..49d9d6d 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -264,6 +264,11 @@ sub pkgext { my $package=shift;
my $version=`dpkg-parsechangelog -l$isnative_changelog`;
($dh{VERSION})=$version=~m/Version: (.*)/m;
+ # Did the changelog parse fail?
+ if (! defined $dh{VERSION}) {
+ error("changelog parse failure");
+ }
+
# Is this a native Debian package?
if ($dh{VERSION}=~m/.*-/) {
$isnative_cache{$package}=0;