Browse Source

Fix for status reports when --verbose is selected

rdb 16 years ago
parent
commit
0a8d7c5c5a
2 changed files with 5 additions and 3 deletions
  1. 2 3
      makepanda/makepanda.py
  2. 3 0
      makepanda/makepandacore.py

+ 2 - 3
makepanda/makepanda.py

@@ -97,7 +97,7 @@ def usage(problem):
 
 def parseopts(args):
     global INSTALLER,RUNTIME,GENMAN,DISTRIBUTOR
-    global VERSION,COMPRESSOR,VERBOSE,THREADCOUNT,VERBOSE
+    global VERSION,COMPRESSOR,THREADCOUNT
     longopts = [
         "help","distributor=","verbose",
         "optimize=","everything","nothing","installer","runtime",
@@ -530,8 +530,7 @@ IncDirectory("ALWAYS", GetOutputDir()+"/include")
 ########################################################################
 
 def printStatus(header,warnings):
-    global VERBOSE
-    if VERBOSE:
+    if GetVerbose():
         print ""
         print "-------------------------------------------------------------------"
         print header

+ 3 - 0
makepanda/makepandacore.py

@@ -712,6 +712,9 @@ def SetOptimize(optimize):
   global OPTIMIZE
   OPTIMIZE=optimize
 
+def GetVerbose():
+  return VERBOSE
+
 def SetVerbose(verbose):
   global VERBOSE
   VERBOSE=verbose