packages (UBUNTU): chromium-browser/get-source.sh - pre-check version for c...
glen
glen at pld-linux.org
Thu Oct 20 06:18:18 CEST 2011
Author: glen Date: Thu Oct 20 04:18:18 2011 GMT
Module: packages Tag: UBUNTU
---- Log message:
- pre-check version for channel. allows run cron more often without full archive regen
---- Files affected:
packages/chromium-browser:
get-source.sh (1.2.2.2 -> 1.2.2.3)
---- Diffs:
================================================================
Index: packages/chromium-browser/get-source.sh
diff -u packages/chromium-browser/get-source.sh:1.2.2.2 packages/chromium-browser/get-source.sh:1.2.2.3
--- packages/chromium-browser/get-source.sh:1.2.2.2 Thu Oct 13 22:55:26 2011
+++ packages/chromium-browser/get-source.sh Thu Oct 20 06:18:12 2011
@@ -1,10 +1,22 @@
#!/bin/sh
set -e
-CHANNEL=beta
+# CHANNEL: any from CHANNELS_URL: beta, dev
+CHANNEL=${1:-beta}
+
+CHANNELS_URL=http://omahaproxy.appspot.com/
PACKAGE_NAME=chromium-browser
WORK_DIR=$HOME/bzr/$PACKAGE_NAME.head.daily
CHROMIUM=$HOME/svn/$PACKAGE_NAME-$CHANNEL
+
+VERSION=$(wget -qO - $CHANNELS_URL | grep -i "^linux,$CHANNEL" | cut -d, -f3)
+VERSION_LOCK=$WORK_DIR/$PACKAGE_NAME-$CHANNEL.$VERSION
+
+if [ -f $VERSION_LOCK ]; then
+ # nothing to update
+ exit 0
+fi
+
LOGFILE=$(mktemp $WORK_DIR/$PACKAGE_NAME-$CHANNEL.XXXXXX)
cd "$WORK_DIR"
@@ -28,3 +40,4 @@
install -d archive/$CHANNEL
mv $logfile $tarball archive/$CHANNEL
+touch $VERSION_LOCK
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/chromium-browser/get-source.sh?r1=1.2.2.2&r2=1.2.2.3&f=u
More information about the pld-cvs-commit
mailing list