mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Filter out illegal characters in version number when building a deb. Closes: #648531
This commit is contained in:
@@ -596,6 +596,8 @@ sub version {
|
|||||||
# get
|
# get
|
||||||
return unless defined wantarray; # optimization
|
return unless defined wantarray; # optimization
|
||||||
$_=$this->{version};
|
$_=$this->{version};
|
||||||
|
# filter out some characters not allowed in debian versions
|
||||||
|
s/[^-.+~:A-Za-z0-9]//g; # see lib/dpkg/parsehelp.c parseversion
|
||||||
# Make sure the version contains digets.
|
# Make sure the version contains digets.
|
||||||
unless (/[0-9]/) {
|
unless (/[0-9]/) {
|
||||||
# Drat. Well, add some. dpkg-deb won't work
|
# Drat. Well, add some. dpkg-deb won't work
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
alien (8.86) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Filter out illegal characters in version number when building a deb.
|
||||||
|
Closes: #648531
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sat, 12 Nov 2011 13:08:40 -0400
|
||||||
|
|
||||||
alien (8.85) unstable; urgency=low
|
alien (8.85) unstable; urgency=low
|
||||||
|
|
||||||
* Avoid breaking on spaces in filenames. Closes: #618636
|
* Avoid breaking on spaces in filenames. Closes: #618636
|
||||||
|
|||||||
Reference in New Issue
Block a user