]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Ensure scan file download is properly validated and fix to cope with new PPA name...
authorAdam Sutton <dev@adamsutton.me.uk>
Tue, 23 Oct 2012 11:03:15 +0000 (12:03 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 23 Oct 2012 11:15:59 +0000 (12:15 +0100)
support/launchpad-ppa

index 43f8f453f7511f986d1d3dfb24a807ec09c29881..cf3c076254c75636c46b5d3f558a9265d58bb7cf 100755 (executable)
@@ -5,9 +5,15 @@
 # environment variables
 #
 
+# Terminate
+function die
+{
+  echo $*
+  exit 1
+}
+
 # CMD
 CMD=$(basename $0)
-echo $CMD
 
 # Configuration
 TVH_ROOT=$(cd $(dirname $0)/..; pwd)
@@ -29,15 +35,14 @@ VERFILE=$TVH_ROOT/src/version.c
 VER=$($TVH_ROOT/support/version $VERFILE)
 
 # Fetch scan files
-./support/getmuxlist
+./support/getmuxlist || die "failed to fetch dvb-scan files"
 
 # For each distro
 for d in $TVH_DIST; do
   V=${VER}~${d}
-  echo $V
 
   # Create changelog
-  $TVH_ROOT/support/changelog "$CHANGELOG" "$d" "$VER"
+  $TVH_ROOT/support/changelog "$CHANGELOG" "$d" "$VER" || exit 1
   
   # Build source package
   dpkg-buildpackage -I.git* -S -sgpg -pgpg || exit 1
@@ -51,7 +56,7 @@ for d in $TVH_DIST; do
 
   # Upload
   else
-    dput tvh-$PPA ../tvheadend_${V}_source.changes || exit 1
+    dput $DPUT_OPT tvh-${PPA} ../tvheadend_${V}_source.changes || exit 1
   fi
 
 done