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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Jan 13 11:13:50 CET 2010


Revision: 7984
          http://gar.svn.sourceforge.net/gar/?rev=7984&view=rev
Author:   wahwah
Date:     2010-01-13 10:13:50 +0000 (Wed, 13 Jan 2010)

Log Message:
-----------
mGAR v2: checkpkg: added a check for the file name arch matching the actual package arch

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

Modified: csw/mgar/gar/v2/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg	2010-01-12 20:18:26 UTC (rev 7983)
+++ csw/mgar/gar/v2/bin/checkpkg	2010-01-13 10:13:50 UTC (rev 7984)
@@ -295,6 +295,17 @@
 	exit 1
 esac
 
+case $f in
+  *${pkgarch}*)
+    print "f: $f, pkgarch: $pkgarch"
+    ;;
+  *)
+    print "The file name is '$f'."
+    print "The pkgarch is '$pkgarch'."
+    errmsg "ERROR: package file name and pkgarch don't match."
+    ;;
+esac
+
 goodarch=yes
 case $f in
 	*${LOCAL_ARCH}*)


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