* Made more robust in the face of empty rpms. Closes: #138969

This commit is contained in:
joey
2002-03-24 02:35:58 +00:00
parent 3a424548a2
commit da98291614
5 changed files with 28 additions and 9 deletions

View File

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