Use the latest commit instead of the earliest one
authorGuido Günther <agx@sigxcpu.org>
Fri, 14 Jan 2011 16:22:36 +0000 (17:22 +0100)
committerGuido Günther <agx@sigxcpu.org>
Fri, 14 Jan 2011 16:28:55 +0000 (17:28 +0100)
when guessing the compression type for pristine-tar.

Closes; #609980
Thanks: Andreas Rottmann for the detailed report

git-buildpackage

index 78212bf..ccca18b 100755 (executable)
@@ -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