summaryrefslogtreecommitdiff
path: root/sysutils/webmin/files/patch-software_freebsd-lib.pl
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2014-03-21 06:07:03 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2014-03-21 06:07:03 +0000
commitf3120817abc28261db1b9416c246d25430e2de07 (patch)
tree8fe94a74a35c357f8bfbf6089c2bbde729700763 /sysutils/webmin/files/patch-software_freebsd-lib.pl
parent- Update to 0.11.1 (diff)
Upgrade to version 1.680.
Notes
Notes: svn path=/head/; revision=348727
Diffstat (limited to 'sysutils/webmin/files/patch-software_freebsd-lib.pl')
-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;
- }