mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Get correct version for updates
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3107449&group_id=17457
This commit is contained in:
@@ -79,9 +79,10 @@ my $cmd = "apt-get -s install ".
|
||||
my $out = &backquote_command($cmd);
|
||||
my @rv;
|
||||
foreach my $l (split(/\r?\n/, $out)) {
|
||||
if ($l =~ /Inst\s+(\S+)\s+\[(\S+)\]/) {
|
||||
if ($l =~ /Inst\s+(\S+)\s+\[(\S+)\]\s+\(([^ \)]+)/ ||
|
||||
$l =~ /Inst\s+(\S+)\s+\[(\S+)\]/) {
|
||||
my $pkg = { 'name' => $1,
|
||||
'version' => $2 };
|
||||
'version' => $3 || $2 };
|
||||
if ($pkg->{'version'} =~ s/^(\S+)://) {
|
||||
$pkg->{'epoch'} = $1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user