projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b383c96
)
Use the latest commit instead of the earliest one
author
Guido Günther
<agx@sigxcpu.org>
Fri, 14 Jan 2011 16:22:36 +0000
(17:22 +0100)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/git-buildpackage
b/git-buildpackage
index
78212bf
..
ccca18b
100755
(executable)
--- 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