[pkg-haskell-tools] 01/01: since $old_version is mutable, extract epoch before deleting it

Clint Adams clint at moszumanska.debian.org
Mon Jan 11 06:08:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch master
in repository pkg-haskell-tools.

commit 6eb8c3bb9db7e806fad5d4e173ee96451ac41d0c
Author: Clint Adams <clint at debian.org>
Date:   Mon Jan 11 01:07:44 2016 -0500

    since $old_version is mutable, extract epoch before deleting it
---
 scripts/upgrade | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/upgrade b/scripts/upgrade
index c8a839d..3c65a92 100755
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -76,8 +76,8 @@ do
   old_version=`dpkg-parsechangelog -ldebian/changelog -c1 | grep-dctrl -n -s Version .`
   old_version=`echo $old_version | cut -d- -f1` # this could be improved
   if echo $old_version | fgrep -q : ; then
-	old_version=`echo $old_version | cut -d: -f2-`
 	epoch=`echo $old_version | cut -d: -f1`:
+	old_version=`echo $old_version | cut -d: -f2-`
   else
           epoch=''
   fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/pkg-haskell-tools.git



More information about the Pkg-haskell-commits mailing list