[Pkg-xen-changes] [xen] 05/06: genorig.py: Automatically determine release tag
Bastian Blank
waldi at moszumanska.debian.org
Fri Jul 18 20:08:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
waldi pushed a commit to branch develop
in repository xen.
commit f5a7f3094c1e17b9f7c787814c811efce2b1712f
Author: Ian Campbell <ijc at hellion.org.uk>
Date: Fri Jul 4 12:42:10 2014 +0100
genorig.py: Automatically determine release tag
---
debian/bin/genorig.py | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py
index dc46cd7..9dbe866 100755
--- a/debian/bin/genorig.py
+++ b/debian/bin/genorig.py
@@ -48,19 +48,21 @@ class Main(object):
if options.override_version:
self.version = VersionXen('%s-0' % options.override_version)
- if os.path.exists(os.path.join(repo, '.hg')):
- self.repo = RepoHg(repo, options)
- elif os.path.exists(os.path.join(repo, '.git')):
- self.repo = RepoGit(repo, options)
- else:
- raise NotImplementedError
-
if options.component:
self.orig_dir = options.component
self.orig_tar = '%s_%s.orig-%s.tar.gz' % (self.source, self.version.upstream, options.component)
else:
self.orig_dir = '%s-%s' % (self.source, self.version.upstream)
self.orig_tar = '%s_%s.orig.tar.gz' % (self.source, self.version.upstream)
+ if options.tag is None:
+ options.tag = 'RELEASE-' + self.version.upstream
+
+ if os.path.exists(os.path.join(repo, '.hg')):
+ self.repo = RepoHg(repo, options)
+ elif os.path.exists(os.path.join(repo, '.git')):
+ self.repo = RepoGit(repo, options)
+ else:
+ raise NotImplementedError
try:
os.symlink(os.path.join('orig', self.orig_tar), os.path.join('..', self.orig_tar))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xen/xen.git
More information about the Pkg-xen-changes
mailing list