mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix dpkg output parsing https://sourceforge.net/p/webadmin/bugs/5538/
This commit is contained in:
@@ -95,7 +95,7 @@ if (`rpm -qp $file 2>&1` =~ /(^|\n)usermin-(\d+\.\d+)/) {
|
||||
$mode = "rpm";
|
||||
$version = $2;
|
||||
}
|
||||
elsif (`dpkg --info $file 2>&1` =~ /Package:\s+usermin-(\d+\.\d+)/) {
|
||||
elsif (`dpkg --info $file 2>&1` =~ /Package:\s+usermin\n\s*Version:\s+(\d+\.\d+)/) {
|
||||
# Looks like a Usermin Debian package
|
||||
$mode = "deb";
|
||||
$version = $2;
|
||||
|
||||
Reference in New Issue
Block a user