[PC-BSD Commits] r21590 - pcbsd/current/src-sh/port-files
svn at pcbsd.org
svn at pcbsd.org
Wed Feb 20 06:45:23 PST 2013
Author: kris
Date: 2013-02-20 14:45:23 +0000 (Wed, 20 Feb 2013)
New Revision: 21590
Modified:
pcbsd/current/src-sh/port-files/pkg-install
Log:
Make the pkg-install script a bit smarter to add a repo, even if
pbid has been started without one
Modified: pcbsd/current/src-sh/port-files/pkg-install
===================================================================
--- pcbsd/current/src-sh/port-files/pkg-install 2013-02-20 14:35:14 UTC (rev 21589)
+++ pcbsd/current/src-sh/port-files/pkg-install 2013-02-20 14:45:23 UTC (rev 21590)
@@ -8,6 +8,7 @@
fi
# If this is a new install, add the PC-BSD master repo
-if [ ! -d "/var/db/pbi/keys" ] ; then
+ls /var/db/pbi/keys/* 2>/dev/null >/dev/null
+if [ $? -ne 0 ] ; then
${PREFIX}/sbin/pbi_addrepo ${PREFIX}/share/pbi-manager/pcbsd.rpo
fi
More information about the Commits
mailing list