[csw-devel] SF.net SVN: gar:[10400] csw/mgar/pkg/cswutils/trunk/files/checkpkg

theferret at users.sourceforge.net theferret at users.sourceforge.net
Thu Jul 1 23:44:00 CEST 2010


Revision: 10400
          http://gar.svn.sourceforge.net/gar/?rev=10400&view=rev
Author:   theferret
Date:     2010-07-01 21:44:00 +0000 (Thu, 01 Jul 2010)

Log Message:
-----------
cswutils: checkpkg -- added a few extra bad paths, and simplified

Modified Paths:
--------------
    csw/mgar/pkg/cswutils/trunk/files/checkpkg

Modified: csw/mgar/pkg/cswutils/trunk/files/checkpkg
===================================================================
--- csw/mgar/pkg/cswutils/trunk/files/checkpkg	2010-07-01 12:14:13 UTC (rev 10399)
+++ csw/mgar/pkg/cswutils/trunk/files/checkpkg	2010-07-01 21:44:00 UTC (rev 10400)
@@ -87,14 +87,15 @@
 	#
 	# Need to rewrite this whole thing to also
 	# check for badly set RUNPATHs. sigh.
-	#
-	badpaths="$(echo /rkcbeg/zrqhfn /bcg/ohvyq | gtr a-mn-z n-za-m)"
-	for badpath in $(badpaths) ; do
+	# Note that need to escape one /, so that it does not
+	#trigger check if checking its own package
+	badpaths="[/]export/medusa [/]opt/build [/]export/home [/]usr/share [/]usr/local"
+	for badpath in $badpaths ; do
 		GREP=/bin/grep gzgrep "$badpath" $f
 		if [[ $? -eq 0 ]] ; then
 			print ""
 			print ERROR: build-machine paths found in file $f
-			print '($badpath)'
+			print "($badpath found)"
 			exit 1
 		fi
 	done


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list