Fix pkgutil detection
authorJamie Cameron <jcameron@webmin.com>
Fri, 22 May 2009 23:51:19 +0000 (23:51 +0000)
committerJamie Cameron <jcameron@webmin.com>
Fri, 22 May 2009 23:51:19 +0000 (23:51 +0000)
software/software-lib.pl

index 175b7c0..a0c09f2 100644 (file)
@@ -29,7 +29,8 @@ else {
        elsif (&has_command("up2date") && &has_command("rhn_check")) {
                $update_system = "rhn";
                }
-       elsif (-x "/opt/csw/bin/pkg-get" || &has_command("pkg-get")) {
+       elsif (-x "/opt/csw/bin/pkg-get" || &has_command("pkg-get") ||
+              -x "/opt/csw/bin/pkgutil" || &has_command("pkgutil")) {
                $update_system = "csw";
                }
        elsif (&has_command("urpmi")) {