diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-01-14 17:22:36 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-01-14 17:28:55 +0100 |
commit | 8d5f78a1f531acb7a2f5d75ac29a8808a7c46024 (patch) | |
tree | aa125a1ee6166a80898719f5051e20795064a021 /git-buildpackage | |
parent | b383c96aee96c2075970eb25e1f9b964d5ccf748 (diff) |
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
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-x | git-buildpackage | 2 |
1 files changed, 1 insertions, 1 deletions
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 |