forked from Lainports/freebsd-ports
- Add staging support. - Do not mute install commands. - Remove automatic PLIST generation. - Do not use /usr/sbin/pkg for pkgng detection; if you run it in batch it may stop with an interactive prompt on 9.x.
14 lines
307 B
Perl
14 lines
307 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 = &backquote_command("/usr/sbin/pkg info 2>/dev/null </dev/null");
|
|
return @lines > 1 ? 1 : 0;
|
|
}
|