[PC-BSD Commits] r17761 - pcbsd/current/src-sh/pc-metapkgmanager

svn at pcbsd.org svn at pcbsd.org
Mon Jul 16 08:08:54 PDT 2012


Author: kris
Date: 2012-07-16 15:08:54 +0000 (Mon, 16 Jul 2012)
New Revision: 17761

Modified:
   pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
Log:

Add ability to ignore packages for some arch types in pc-metapkgmanager



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-07-16 15:05:15 UTC (rev 17760)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-07-16 15:08:54 UTC (rev 17761)
@@ -29,6 +29,7 @@
 LOGFILE="/tmp/.pc-metapkgmanager.log"
 FTP_PASSIVE_MODE="YES" ; export FTP_PASSIVE_MODE
 PACKAGESUFFIX=".txz" ; export PACKAGESUFFIX
+ARCH="`uname -m`"
 
 # Trigger File for Tray Application
 TRIGGERFILE="/tmp/.sysupdatetraytrigger"
@@ -288,7 +289,13 @@
 	# Start listing each meta-pkg
 	for i in `find ${MPDIR}/* -type d`
 	do
+		# Is this package ignored on this arch?
+		if [ -e "${i}/ignore-arch" ] ; then
+			if [ `cat ${i}/ignore-arch` = "$ARCH" ] ; then continue; fi
+		fi
+
 		if [ -e "${i}/pkg-desc" ] ; then
+
 			echo "Meta Package: `basename ${i}`"
 			echo "-------------------------------------"
 			echo "Description: `cat ${i}/pkg-desc`"



More information about the Commits mailing list