[Treepkg-commits] r519 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 2 10:43:23 CEST 2011
Author: bricks
Date: 2011-09-02 10:43:23 +0200 (Fri, 02 Sep 2011)
New Revision: 519
Modified:
trunk/treepkg/packager.py
Log:
Use logging instead of print
Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py 2011-05-31 09:25:51 UTC (rev 518)
+++ trunk/treepkg/packager.py 2011-09-02 08:43:23 UTC (rev 519)
@@ -596,13 +596,13 @@
pkg_dir = util.filenameproperty("pkg")
def init_treepkg(self):
- print "Initializing", self.name
+ logging.info("Initializingi %s" % self.name)
if not os.path.exists(self.base_dir):
- print "creating %s" % (self.base_dir,)
+ logging.debug("creating %s" % (self.base_dir,))
util.ensure_directory(self.base_dir)
# TODO: handle case where debian directory is in version control
if not os.path.exists(self.debian_dir):
- print ("TODO: the debian directory %s still has to be created"
+ logging.debug("TODO: the debian directory %s still has to be created"
% (self.debian_dir,))
def determine_dependencies(self):
More information about the Treepkg-commits
mailing list