Handle new format for package description that includes the architecture

This commit is contained in:
Jamie Cameron
2021-01-24 21:05:25 -08:00
parent 9d6a27499b
commit 95716f4778

View File

@@ -25,10 +25,14 @@ while(<PKGINFO>) {
$packages{$i,'epoch'} = $1;
$packages{$i,'version'} = $2;
}
if ($packages{$i,'name'} =~ /^(\S+):(\S+)$/) {
if ($packages{$i,'name'} =~ /^(\S+):(\S+)$/ ||
$packages{$i,'name'} = $1;
$packages{$i,'arch'} = $2;
}
if ($packages{$i,'desc'} =~ /^(all|amd64|x86|arm)\s+(\S.*)/) {
$packages{$i,'arch'} = $1;
$packages{$i,'desc'} = $2;
}
$i++;
}
}