[debrepatch] 01/04: repatch: apt strips off the epoch when downloading, so we need to too

Ximin Luo infinity0 at debian.org
Mon Sep 26 19:10:26 UTC 2016


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

infinity0 pushed a commit to branch master
in repository debrepatch.

commit bf98cd8fdaaa74ed93408912c68a1b125c9886d4
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Sep 26 20:34:13 2016 +0200

    repatch: apt strips off the epoch when downloading, so we need to too
---
 repatch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repatch b/repatch
index 3432181..2ac605f 100755
--- a/repatch
+++ b/repatch
@@ -79,7 +79,7 @@ fi
 # right version out of `apt-cache showsrc`. Ideally we'd expose the
 # logic of "static pkgSrcRecords::Parser *FindSrc" in apt-private/private-source.cc
 oldver="$(LC_ALL="en_US.utf8" apt-get source -s "$srcpkg" | sed -n -e "s/.*version '\(.*\)' .*/\1/p")"
-srcdir="$srcpkg-$(echo "$oldver" | sed -e 's/\(.*\)-.*/\1/')"
+srcdir="$srcpkg-$(echo "$oldver" | sed -re 's/([^:]*:)?(.*)-.*/\2/')"
 apt-get source "$srcpkg"
 olddsc="$(ls -1 *.dsc)" # TODO: probably more correct to use $oldver
 cd "$srcdir"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debrepatch.git



More information about the Reproducible-commits mailing list