[DRE-commits] r5219 - trunk/libdataobjects-ruby/debian

Gunnar Wolf gwolf at alioth.debian.org
Thu May 6 18:51:05 UTC 2010


Author: gwolf
Date: 2010-05-06 18:51:04 +0000 (Thu, 06 May 2010)
New Revision: 5219

Modified:
   trunk/libdataobjects-ruby/debian/repack.sh
Log:
Don't mess with my filesystem (unless I agreed to it)

Modified: trunk/libdataobjects-ruby/debian/repack.sh
===================================================================
--- trunk/libdataobjects-ruby/debian/repack.sh	2010-05-05 17:40:04 UTC (rev 5218)
+++ trunk/libdataobjects-ruby/debian/repack.sh	2010-05-06 18:51:04 UTC (rev 5219)
@@ -14,6 +14,12 @@
 NEWPACK_DIR="$PKG"_"$VER.orig.tar.gz" 
 
 echo -e "\nRepackaging $FILE\n"
+if [ ! -d ../tarballs ]
+then
+    echo "*!* You need to create a ../tarballs directory for the repack"
+    echo "script to work on"
+    exit 1
+fi
 
 DIR=`mktemp -d ./tmpRepackXXXXXX`
 trap "rm -rf \"$DIR\"" QUIT INT EXIT
@@ -38,7 +44,6 @@
 # Using a pipe hides tar errors!
 tar cfC "$DIR/repacked.tar" "$DIR" "$REPACK_DIR"
 gzip -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.gz"
-mkdir -p ../tarballs
 mv "$DIR/repacked.tar.gz" "../tarballs/$NEWPACK_DIR" 
 
 echo "*** $FILE repackaged"




More information about the Pkg-ruby-extras-commits mailing list