summaryrefslogtreecommitdiffstats
path: root/fedpkg-vcs
diff options
context:
space:
mode:
Diffstat (limited to 'fedpkg-vcs')
-rwxr-xr-xfedpkg-vcs7
1 files changed, 6 insertions, 1 deletions
diff --git a/fedpkg-vcs b/fedpkg-vcs
index 4327eba..752fc38 100755
--- a/fedpkg-vcs
+++ b/fedpkg-vcs
@@ -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()