* Made tgz version parsing greedier so it will match sub-versions.

This commit is contained in:
joey
2002-07-06 12:06:50 +00:00
parent 25806d4146
commit ec291f3dde
2 changed files with 7 additions and 1 deletions

View File

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