diff options
author | joey <joey> | 2000-04-09 03:10:07 +0000 |
---|---|---|
committer | joey <joey> | 2000-04-09 03:10:07 +0000 |
commit | 705be431f33d24a3ecc3b2de9d527f6768a6878f (patch) | |
tree | 27e4ae2fc6b3270491ed7da088c663cadda8198b /Debian | |
parent | cc10d76459975e497223c61be256d343f2a3badd (diff) | |
download | debhelper-705be431f33d24a3ecc3b2de9d527f6768a6878f.tar.gz |
r343: * Detect changelog parse failures and use a better error message.
Closes: #62058
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 915d37af..49d9d6d0 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; |