aboutsummaryrefslogtreecommitdiff
path: root/sysutils/webmin/files
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
parent7190407a93338b35df1e12e722ccfeb85f731b29 (diff)
downloadports-f3120817abc28261db1b9416c246d25430e2de07.tar.gz
ports-f3120817abc28261db1b9416c246d25430e2de07.zip
Notes
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;
- }