mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 22:50:32 -04:00
14 lines
322 B
Perl
14 lines
322 B
Perl
|
|
$FreeBSD$
|
|
|
|
--- software/freebsd-lib.pl.orig
|
|
+++ 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;
|