summaryrefslogtreecommitdiff
path: root/gbp/scripts/buildpackage_rpm.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-04-18 10:46:23 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-04-18 11:50:05 +0300
commitd1cdbd22778c040a5b6620d463092c735262d2e7 (patch)
tree75566ff3f53cd7e47097cacec4818b102c0c6c3a /gbp/scripts/buildpackage_rpm.py
parent766d0e05d024f8d287a2e14c7ea1aad9e296d0cc (diff)
downloadgit-buildpackage-d1cdbd22778c040a5b6620d463092c735262d2e7.tar.gz
git-buildpackage-d1cdbd22778c040a5b6620d463092c735262d2e7.tar.bz2
git-buildpackage-d1cdbd22778c040a5b6620d463092c735262d2e7.zip
GitRepository: add describe() method
Change GitRepository.find_tag() to its original simple version. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/scripts/buildpackage_rpm.py')
-rwxr-xr-xgbp/scripts/buildpackage_rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index 33c5f447..831d85f2 100755
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -603,10 +603,10 @@ def main(argv):
'GBP_SHA1': sha})()
else:
try:
- tree_name = repo.find_tag(tree, longfmt=True, always=True)
+ tree_name = repo.describe(tree, longfmt=True, always=True)
except GitRepositoryError:
# If tree is not commit-ish, expect it to be from current HEAD
- tree_name = repo.find_tag('HEAD', longfmt=True, always=True) +\
+ tree_name = repo.describe('HEAD', longfmt=True, always=True) +\
'-dirty'
# Put 'VCS:' tag to .spec
spec.set_tag('VCS', None,