aboutsummaryrefslogtreecommitdiff
path: root/sysutils/webmin/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/webmin/files')
-rw-r--r--sysutils/webmin/files/patch-software_freebsd-lib.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/webmin/files/patch-software_freebsd-lib.pl b/sysutils/webmin/files/patch-software_freebsd-lib.pl
index ed75973191f0..b53b7c0643ff 100644
--- a/sysutils/webmin/files/patch-software_freebsd-lib.pl
+++ b/sysutils/webmin/files/patch-software_freebsd-lib.pl
@@ -9,6 +9,6 @@ $FreeBSD$
{
-return 0 if (!-x "/usr/sbin/pkg");
+return 0 if (!-e "/var/db/pkg/local.sqlite");
- local @lines = &backquote_command("/usr/sbin/pkg info 2>/dev/null </dev/null");
+ local @lines = split(/\n/, &backquote_command(
+ "/usr/sbin/pkg info 2>/dev/null </dev/null"));
return @lines > 1 ? 1 : 0;
- }