[Blends-commit] [SCM] website branch, master, updated. c4bd7cf7e3d2a903a2e67e14233edd5ad6727e2a
Andreas Tille
tille at debian.org
Sun Jun 9 15:01:58 UTC 2013
The following commit has been merged in the master branch:
commit c4bd7cf7e3d2a903a2e67e14233edd5ad6727e2a
Author: Andreas Tille <tille at debian.org>
Date: Sun Jun 9 17:01:28 2013 +0200
Enable running script unchanged on Alioth by detecting whether there is a local clone or not
diff --git a/misc/sql/gis-thermometer.sh b/misc/sql/gis-thermometer.sh
index bc2f46c..49908ce 100755
--- a/misc/sql/gis-thermometer.sh
+++ b/misc/sql/gis-thermometer.sh
@@ -11,7 +11,13 @@ fi
# Note: The query below does not regard packages not available under a source
# name in stable or testing that is different from the name in unstable
-psql udd >$1.out <<EOT
+SERVICE="service=udd"
+#if there is a local UDD clone just use this
+if psql -l 2>/dev/null | grep -qw udd ; then
+ SERVICE=udd
+fi
+
+psql $SERVICE >$1.out <<EOT
SELECT b.source,
stable.version AS stable,
testing.version AS testing,
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list