diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-03 22:56:57 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-06 22:55:04 -0300 |
commit | cbacdfb40ca35633da06e9e05497ac0fb56cc4f9 (patch) | |
tree | 47498d3592bbe64ea9ef73575abc15f5b6dee7d8 /gbp/deb/git.py | |
parent | a5f22cbf94b3c51815449594c6d31db24664992e (diff) |
push: new command to push changes in one go
Closes: #733639
Diffstat (limited to 'gbp/deb/git.py')
-rw-r--r-- | gbp/deb/git.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gbp/deb/git.py b/gbp/deb/git.py index 9bada975..1f12f46f 100644 --- a/gbp/deb/git.py +++ b/gbp/deb/git.py @@ -312,6 +312,15 @@ class DebianGitRepository(PkgGitRepository): except CommandExecFailed as e: raise GitRepositoryError(str(e)) + def get_pristine_tar_commit(self, source, component=None): + """ + Get the pristine-tar commit for the given source package's latest version. + """ + comp = '-%s' % component if component else '' + return self.pristine_tar.get_commit('%s_%s.orig%s.tar.*' % (source.sourcepkg, + source.upstream_version, + comp)) + def create_upstream_tarball_via_pristine_tar(self, source, output_dir, comp, component=None): output = source.upstream_tarball_name(comp.type, component=component) try: |