[Pkg-haskell-commits] darcs: tools: Handle epoch filenames in ./pkg-haskell-checkout

Joachim Breitner mail at joachim-breitner.de
Fri Mar 5 11:47:35 UTC 2010


Fri Mar  5 11:47:21 UTC 2010  Joachim Breitner <mail at joachim-breitner.de>
  * Handle epoch filenames in ./pkg-haskell-checkout
  Ignore-this: 267088a862a8f319f57cdccba070d469

    M ./pkg-haskell-checkout +3

Fri Mar  5 11:47:21 UTC 2010  Joachim Breitner <mail at joachim-breitner.de>
  * Handle epoch filenames in ./pkg-haskell-checkout
  Ignore-this: 267088a862a8f319f57cdccba070d469
diff -rN -u old-tools/pkg-haskell-checkout new-tools/pkg-haskell-checkout
--- old-tools/pkg-haskell-checkout	2010-03-05 11:47:35.768239014 +0000
+++ new-tools/pkg-haskell-checkout	2010-03-05 11:47:35.776239437 +0000
@@ -60,6 +60,9 @@
 
     VERSION=`dpkg-parsechangelog -l$PACKAGE-debian/changelog -c1 | grep-dctrl -n -s Version .`
     UPSTREAM=`echo $VERSION | cut -d- -f1` # this could be improved
+    if echo $UPSTREAM | fgrep -q : ; then
+    	UPSTREAM=`echo $UPSTREAM | cut -d: -f2-`
+    fi
     TARBALL=${PACKAGE}_$UPSTREAM.orig.tar.gz
     WANTED_PACKAGEDIR="${PACKAGE}-${UPSTREAM}"
     # see 375138 for why this doesn't work as well as it could. Fall back to apt-get source





More information about the Pkg-haskell-commits mailing list