Don't allow whitespace in package version when parsing debian/changelog.

This commit is contained in:
Joey Hess
2009-06-17 13:07:18 -04:00
parent f680d3af91
commit 78734c0523
2 changed files with 7 additions and 0 deletions

View File

@@ -317,6 +317,7 @@ sub prep {
my $line=<$changelog>;
if ($line=~/^[^ ]+\s+\(([^)]+)\)\s/) {
my $version=$1;
$version=~s/\s+//; # ensure no whitespace
if ($version=~/(.*)-(.*)/) {
$version=$1;
$this->release($2);

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
alien (8.77) UNRELEASED; urgency=low
* Don't allow whitespace in package version when parsing debian/changelog.
-- Joey Hess <joeyh@debian.org> Wed, 17 Jun 2009 13:06:53 -0400
alien (8.76) unstable; urgency=low
* Avoid using hostname -f for portability to unix systems,