[PC-BSD Commits] r13138 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Wed Oct 5 05:55:33 PDT 2011


Author: kris
Date: 2011-10-05 05:55:33 -0700 (Wed, 05 Oct 2011)
New Revision: 13138

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Fix a bug when PBI_MAKEPORT isn't set, make sure we try the directory name
first and export it properly



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-10-05 12:49:57 UTC (rev 13137)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-10-05 12:55:33 UTC (rev 13138)
@@ -5224,8 +5224,11 @@
 	        if [ -z "${PBI_AB_PRIORITY}" -a ! -z "${CUR_WORKING_PBI}"  ] ; then continue ; fi
 
 		_cd=$(dirname $pbi | sed 's|./||')
+
+		# Make sure PBI_MAKEPORT is set
 		if [ -z "${PBI_MAKEPORT}" ] ; then
-			PBI_MAKEPORT=$(dirname $pbi | sed 's|./||')
+			PBI_MAKEPORT=`echo $pbi | sed 's|./||'`
+			export PBI_MAKEPORT
 		fi	
 
 		if [ ! -d "${PORTSDIR}/${PBI_MAKEPORT}" ] ; then 



More information about the Commits mailing list