mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Handle new format for package description that includes the architecture
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user