diff options
Diffstat (limited to 'fedpkg-vcs')
| -rwxr-xr-x | fedpkg-vcs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -18,6 +18,7 @@ # Update the .spec file to include patch 0xdeadbeef from upstream # +import datetime import os import sys import re @@ -81,6 +82,8 @@ class Vcs(object): return GitVcs(combined) class GitVcs(Vcs): + vcstype = "git" + def checkout(self, destdir): self._vcs_exec(['git', 'clone', '--depth=1', self._nonfragment_url_string, destdir]) if self._branch: @@ -358,7 +361,9 @@ def command_pull_update(spec, vcs, vcsdir, args=[], opts={}): spec.substitute(buildsys.get_substitutions()) spec.set_source(snapshot_dirname, snapshot_archivename) - spec.increment_release_snapshot(newid) + now = datetime.datetime.now() + alphatag = "%s%s%s" % (now.strftime("%Y%m%d"), vcs.vcstype, newid) + spec.increment_release_snapshot(alphatag) spec.save() snapshot_md5 = hashlib.md5() |
