comparison treepkg/packager.py @ 556:10c0492da014

Use logging instead of print
author Bjoern Ricks <bricks@intevation.de>
date Fri, 02 Sep 2011 08:43:23 +0000
parents 1af20baa532f
children bf8114a76224
comparison
equal deleted inserted replaced
555:3105488b3eab 556:10c0492da014
594 checkout_dir = util.filenameproperty("checkout") 594 checkout_dir = util.filenameproperty("checkout")
595 debian_dir = util.filenameproperty("debian") 595 debian_dir = util.filenameproperty("debian")
596 pkg_dir = util.filenameproperty("pkg") 596 pkg_dir = util.filenameproperty("pkg")
597 597
598 def init_treepkg(self): 598 def init_treepkg(self):
599 print "Initializing", self.name 599 logging.info("Initializingi %s" % self.name)
600 if not os.path.exists(self.base_dir): 600 if not os.path.exists(self.base_dir):
601 print "creating %s" % (self.base_dir,) 601 logging.debug("creating %s" % (self.base_dir,))
602 util.ensure_directory(self.base_dir) 602 util.ensure_directory(self.base_dir)
603 # TODO: handle case where debian directory is in version control 603 # TODO: handle case where debian directory is in version control
604 if not os.path.exists(self.debian_dir): 604 if not os.path.exists(self.debian_dir):
605 print ("TODO: the debian directory %s still has to be created" 605 logging.debug("TODO: the debian directory %s still has to be created"
606 % (self.debian_dir,)) 606 % (self.debian_dir,))
607 607
608 def determine_dependencies(self): 608 def determine_dependencies(self):
609 if self.dependencies is not None: 609 if self.dependencies is not None:
610 return 610 return
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)