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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Nov 10 01:56:04 CET 2009


Revision: 7191
          http://gar.svn.sourceforge.net/gar/?rev=7191&view=rev
Author:   wahwah
Date:     2009-11-10 00:56:04 +0000 (Tue, 10 Nov 2009)

Log Message:
-----------
gar/checkpkg: Verifying that the package doesn't have double depends

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

Modified: csw/mgar/gar/v2/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg	2009-11-09 21:10:30 UTC (rev 7190)
+++ csw/mgar/gar/v2/bin/checkpkg	2009-11-10 00:56:04 UTC (rev 7191)
@@ -443,6 +443,15 @@
 	exit 1
 fi
 
+# Verify that there are no double depends
+repeated_depends="$(awk '{print $2}' $EXTRACTDIR/$pkgname/install/depend \
+  | sort | uniq -c | awk '{print $1}' | sort | uniq | wc -l)"
+if [[ "$repeated_depends" -ne 1 ]]; then
+        cat $EXTRACTDIR/$pkgname/install/depend
+        print ERROR: $pkgname has double depends
+        exit 1
+fi
+
 #to retain a record of all packages currently being examined from $@
 echo $pkgname >> $SETDEPS
 


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