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

Peter FELECAN pfelecan at opencsw.org
Sun Jan 9 18:29:19 CET 2011


theferret at users.sourceforge.net writes:

> @@ -89,14 +195,13 @@
>  	# check for badly set RUNPATHs. sigh.
>  	# 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"
> +        badpaths="[/]export/medusa [/]opt/build [/]export/home [/]usr/share [/]usr/local"
> +	unset badstrings
>  	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 found)"
> -			exit 1
> +			errmsg "bad path strings found in file $f ($badpath)"
> +			badstrings=yes
>  		fi
>  	done
>  esac

Nice. Thanks.
-- 
Peter


More information about the devel mailing list