mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-25 14:00:17 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db4ea6fa4a | ||
|
|
2fb28d27d2 |
@@ -594,14 +594,13 @@ sub version {
|
|||||||
# get
|
# get
|
||||||
return unless defined wantarray; # optimization
|
return unless defined wantarray; # optimization
|
||||||
$_=$this->{version};
|
$_=$this->{version};
|
||||||
|
# Make sure the version contains a digit at the start, as required
|
||||||
|
# by dpkg-deb.
|
||||||
|
unless (/^[0-9]/) {
|
||||||
|
$_="0".$_;
|
||||||
|
}
|
||||||
# filter out some characters not allowed in debian versions
|
# filter out some characters not allowed in debian versions
|
||||||
s/[^-.+~:A-Za-z0-9]//g; # see lib/dpkg/parsehelp.c parseversion
|
s/[^-.+~:A-Za-z0-9]//g; # see lib/dpkg/parsehelp.c parseversion
|
||||||
# Make sure the version contains digets.
|
|
||||||
unless (/[0-9]/) {
|
|
||||||
# Drat. Well, add some. dpkg-deb won't work
|
|
||||||
# on a version w/o numbers!
|
|
||||||
return $_."0";
|
|
||||||
}
|
|
||||||
return $_;
|
return $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
alien (8.88) unstable; urgency=low
|
||||||
|
|
||||||
|
* Ensure that version numbers begin with well, a number, when building a
|
||||||
|
deb, otherwise dpkg-deb will refuse to build it.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Thu, 09 Aug 2012 14:44:49 -0400
|
||||||
|
|
||||||
alien (8.87) unstable; urgency=low
|
alien (8.87) unstable; urgency=low
|
||||||
|
|
||||||
* Use lsb-rpmbuild, not lsb-rpm. Closes: #667044
|
* Use lsb-rpmbuild, not lsb-rpm. Closes: #667044
|
||||||
|
|||||||
Reference in New Issue
Block a user