From 8d5f78a1f531acb7a2f5d75ac29a8808a7c46024 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 14 Jan 2011 17:22:36 +0100 Subject: Use the latest commit instead of the earliest one when guessing the compression type for pristine-tar. Closes; #609980 Thanks: Andreas Rottmann for the detailed report --- git-buildpackage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-buildpackage') diff --git a/git-buildpackage b/git-buildpackage index 78212bfb..ccca18b9 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -192,7 +192,7 @@ def guess_comp_type(repo, comp_type, srcpkg, upstream_version): regex = 'pristine-tar .* %s_%s\.orig.tar\.' % (srcpkg, upstream_version) commits = repo.grep_log(regex, PristineTar.branch) if commits: - commit = commits[0] + commit = commits[-1] gbp.log.debug("Found pristine-tar commit at '%s'" % commit) else: commit = PristineTar.branch -- cgit v1.2.3