[csw-devel] SF.net SVN: gar:[8075] csw/mgar/gar/v2/bin/checkpkg

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jan 18 14:25:58 CET 2010


Revision: 8075
          http://gar.svn.sourceforge.net/gar/?rev=8075&view=rev
Author:   wahwah
Date:     2010-01-18 13:25:58 +0000 (Mon, 18 Jan 2010)

Log Message:
-----------
mGAR v2: checkpkg, a fix for the new 'file' which prints out two colons instead of one.

Modified Paths:
--------------
    csw/mgar/gar/v2/bin/checkpkg

Modified: csw/mgar/gar/v2/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg	2010-01-18 13:16:04 UTC (rev 8074)
+++ csw/mgar/gar/v2/bin/checkpkg	2010-01-18 13:25:58 UTC (rev 8075)
@@ -90,7 +90,9 @@
 
 set_variables_for_individual_package_check() {
 	f=$1
-	file $f |sed 's/^.*://' |grep gzip >/dev/null
+	file $f \
+	    | sed 's/^[^:]*://' \
+	    | grep gzip >/dev/null
 	if [ $? -eq 0 ] ; then
 		TMPARCHIVE=$CHECKPKG_TMPDIR/`basename $f`
 		if [[ -f $TMPARCHIVE ]] ; then


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