Mercurial > treepkg > treepkg
diff treepkg/packager.py @ 106:66cbfc772f84
Add bin/inittreepkg.py, a script to automate some of the installation
and some support code for in in the packager classes.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 04 Mar 2008 14:31:28 +0000 |
parents | 7888fe374e11 |
children | cea98d4e4a6a |
line wrap: on
line diff
--- a/treepkg/packager.py Tue Mar 04 14:18:56 2008 +0000 +++ b/treepkg/packager.py Tue Mar 04 14:31:28 2008 +0000 @@ -304,6 +304,15 @@ debian_dir = _filenameproperty("debian") pkg_dir = _filenameproperty("pkg") + def init_treepkg(self): + print "Initializing", self.name + if not os.path.exists(self.base_dir): + print "creating %s" % (self.base_dir,) + util.ensure_directory(self.base_dir) + if not os.path.exists(self.debian_dir): + print ("TODO: the debian directory %s still has to be created" + % (self.debian_dir,)) + def pkg_dir_for_revision(self, revision, increment): return os.path.join(self.pkg_dir, self.pkg_dir_template % locals())