SF.net SVN: opencsw:[673] buildfarm/bin/find-obsolete-pkgs

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Mar 2 12:20:24 CET 2014


Revision: 673
          http://sourceforge.net/p/opencsw/code/673
Author:   wahwah
Date:     2014-03-02 11:20:21 +0000 (Sun, 02 Mar 2014)
Log Message:
-----------
find-obsolete-pkgs: More parametrized

You can change the names of catalog releases and everything else will follow.

Modified Paths:
--------------
    buildfarm/bin/find-obsolete-pkgs

Modified: buildfarm/bin/find-obsolete-pkgs
===================================================================
--- buildfarm/bin/find-obsolete-pkgs	2014-03-01 20:08:51 UTC (rev 672)
+++ buildfarm/bin/find-obsolete-pkgs	2014-03-02 11:20:21 UTC (rev 673)
@@ -1,24 +1,30 @@
 #!/bin/sh
 
-PYTHONPATH=/home/web/bin/gar
-export PYTHONPATH
+set -u
 
 #  /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 \
 
 HTMLDIR=/opt/csw/apache2/share/htdocs/buildfarm/obsolete-pkgs
 
+# We're modifying unstable, but since kiel/testing periodically synced, we need
+# to use dublin/stable as the base catalog release used for drop/rebuild
+# calculations.
+from_catrel=dublin
+to_catrel=unstable
+
 mkdir -p ${HTMLDIR}.new
 cd ${HTMLDIR}.new
 for A in sparc i386; do
   for R in SunOS5.9 SunOS5.10 SunOS5.11; do
-    echo "dublin -> unstable $A $R"
-    /home/web/bin/gar/lib/python/find_obsolete_pkgs.py \
-	--verbose \
-	--from-catalog-release=dublin \
-	--to-catalog-release=unstable \
-	--os-arch=$A --os-release=$R \
-	>${HTMLDIR}.new/unstable2kiel-${A}-${R}.log 2>&1
+    echo "${from_catrel} -> ${to_catrel} $A $R"
+    PYTHONPATH="/home/web/bin/gar" \
+      /home/web/bin/gar/lib/python/find_obsolete_pkgs.py \
+      --verbose \
+      --from-catalog-release="${from_catrel}" \
+      --to-catalog-release="${to_catrel}" \
+      --os-arch="$A" --os-release="$R" \
+      >${HTMLDIR}.new/${from_catrel}2${to_catrel}-${A}-${R}.log 2>&1
   done
 done
 mv ${HTMLDIR} ${HTMLDIR}.old

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