Improve parsing of tgz filenames, to avoid confusion when the filename includes the package type (ie, "noarch"). Patch from Andrej Ricnik-Bay.

This commit is contained in:
Joey Hess
2008-04-29 18:26:16 -04:00
parent 7893ffb4ed
commit b2421b584a
2 changed files with 3 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ sub scan {
# Strip out any tar extentions. # Strip out any tar extentions.
$basename=~s/\.(tgz|tar\.(gz|Z))$//; $basename=~s/\.(tgz|tar\.(gz|Z))$//;
if ($basename=~m/(.*)-(.*?[0-9]+.*)/) { if ($basename=~m/([\w-]+)-([0-9\.?]+).*/) {
$this->name($1); $this->name($1);
$this->version($2); $this->version($2);
} }

2
debian/changelog vendored
View File

@@ -1,6 +1,8 @@
alien (8.72) UNRELEASED; urgency=low alien (8.72) UNRELEASED; urgency=low
* Use debhelper 7, rules file minimisation. * Use debhelper 7, rules file minimisation.
* Improve parsing of tgz filenames, to avoid confusion when the filename
includes the package type (ie, "noarch"). Patch from Andrej Ricnik-Bay.
-- Joey Hess <joeyh@debian.org> Thu, 24 Apr 2008 02:00:59 -0400 -- Joey Hess <joeyh@debian.org> Thu, 24 Apr 2008 02:00:59 -0400