[Treepkg-commits] r186 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Apr 24 20:04:40 CEST 2009
Author: bh
Date: 2009-04-24 20:04:40 +0200 (Fri, 24 Apr 2009)
New Revision: 186
Modified:
trunk/treepkg/packager.py
Log:
Add tag parameter to RevisionPackager constructor. The tag is stored in
the status file
Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py 2009-04-24 17:55:29 UTC (rev 185)
+++ trunk/treepkg/packager.py 2009-04-24 18:04:40 UTC (rev 186)
@@ -230,7 +230,7 @@
source_packager_cls = SourcePackager
binary_packager_cls = BinaryPackager
- def __init__(self, track, revision, rules_revision):
+ def __init__(self, track, revision, rules_revision, tag=""):
self.track = track
self.revision = revision
self.rules_revision = rules_revision
@@ -238,6 +238,9 @@
rules_revision)
self.status = status.RevisionStatus(os.path.join(self.base_dir,
"status"))
+ if tag:
+ util.ensure_directory(self.base_dir)
+ self.status.tags = tag
log_dir = util.filenameproperty("log")
work_dir = util.filenameproperty("work")
More information about the Treepkg-commits
mailing list