SF.net SVN: opencsw:[665] buildfarm/bin/check-catalogs

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Oct 15 22:11:40 CEST 2013


Revision: 665
          http://sourceforge.net/p/opencsw/code/665
Author:   dmichelsen
Date:     2013-10-15 20:11:36 +0000 (Tue, 15 Oct 2013)
Log Message:
-----------
web: Add check-catalogs

Added Paths:
-----------
    buildfarm/bin/check-catalogs

Added: buildfarm/bin/check-catalogs
===================================================================
--- buildfarm/bin/check-catalogs	                        (rev 0)
+++ buildfarm/bin/check-catalogs	2013-10-15 20:11:36 UTC (rev 665)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+PYTHONPATH=/home/web/bin/gar
+export PYTHONPATH
+
+CACHE=/home/web/tmp/cache/chkdbcat
+mkdir -p $CACHE
+
+curl -s http://buildfarm.opencsw.org/pkgdb/rest/catalogs/ | \
+  /opt/csw/bin/python -c 'import json, sys; a = json.loads(sys.stdin.read()); print "\n".join(" ".join(x) for x in a)' | \
+  while read R A C; do \
+    echo $R $A $C; \
+    /home/web/bin/gar/bin/chkdbcat --os-release $R --arch $A --catalog-release $C --timestamp-file $CACHE/timestamp-$C-$A-$R.json; \
+ done
+
+
+
+


Property changes on: buildfarm/bin/check-catalogs
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
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