From: <ror...@us...> - 2007-07-23 13:40:43
|
Revision: 115 http://roreditor.svn.sourceforge.net/roreditor/?rev=115&view=rev Author: rorthomas Date: 2007-07-23 06:40:41 -0700 (Mon, 23 Jul 2007) Log Message: ----------- * improved output Modified Paths: -------------- trunk/installmod.py trunk/lib/ror/depcheckerplugins/ror_cfg.py trunk/lib/ror/truckparser.py Modified: trunk/installmod.py =================================================================== --- trunk/installmod.py 2007-07-23 12:18:36 UTC (rev 114) +++ trunk/installmod.py 2007-07-23 13:40:41 UTC (rev 115) @@ -41,7 +41,7 @@ UnZIP.unzip(filename, TEMPDIR) return True else: - log.info("copying "+filename+" to "+os.path.join(TEMPDIR, os.path.basename(filename))) + log().info("copying "+filename+" to "+os.path.join(TEMPDIR, os.path.basename(filename))) shutil.copyfile(filename, os.path.join(TEMPDIR, os.path.basename(filename))) return False @@ -96,6 +96,10 @@ validtargets = [] invalidtargets = [] + if len(targets) == 0: + log().info("### no targets found") + return validtargets, invalidtargets + log().info("### found %d targets, checking them separatly now" % len(targets)) for target in targets: log().info("### checking target %s..." % target) Modified: trunk/lib/ror/depcheckerplugins/ror_cfg.py =================================================================== --- trunk/lib/ror/depcheckerplugins/ror_cfg.py 2007-07-23 12:18:36 UTC (rev 114) +++ trunk/lib/ror/depcheckerplugins/ror_cfg.py 2007-07-23 13:40:41 UTC (rev 115) @@ -35,6 +35,8 @@ tmp = parseRE(content, re) if not tmp is None: dep.append(tmp) + else: + print "ERROR !!! required value not found in terrain config file %s!" % filename if len(dep) == 0: print "no configuration found in terrain config file " + filename Modified: trunk/lib/ror/truckparser.py =================================================================== --- trunk/lib/ror/truckparser.py 2007-07-23 12:18:36 UTC (rev 114) +++ trunk/lib/ror/truckparser.py 2007-07-23 13:40:41 UTC (rev 115) @@ -535,6 +535,8 @@ return True def errorMsg(self, filename, lineno, sectionname, sectiontype, argname, line, msgold): + if not self.verbose: + return argpath = "/%s/%s/%s" % (sectiontype, sectionname, argname) msg = "%20s:%04d %-30s | %-40s | %s" % \ (os.path.basename(filename), int(lineno) + 1, argpath, @@ -579,6 +581,7 @@ def parse(self, filename, verbose = True): self.filename = filename + self.verbose = verbose content = None try: infile = open(filename,'r') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |