opnsense-ports/sysutils/webmin/files/patch-software_freebsd-lib.pl
Franco Fichtner de546c6ea6 */*: sync with upstream
Taken from: FreeBSD
2015-05-08 07:55:04 +02:00

11 lines
334 B
Perl

--- software/freebsd-lib.pl.orig 2015-03-13 23:51:49 UTC
+++ software/freebsd-lib.pl
@@ -21,7 +21,7 @@
sub use_pkg_ng
{
-return 0 if (!-x "/usr/sbin/pkg");
+return 0 if (!-e "/var/db/pkg/local.sqlite");
local @lines = split(/\n/, &backquote_command(
"/usr/sbin/pkg info 2>/dev/null </dev/null"));
return @lines > 1 ? 1 : 0;