]> scripts.mit.edu Git - wizard.git/commitdiff
Use abspath instead of realpath for speed; fix summary output.
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 18 Aug 2009 01:09:45 +0000 (21:09 -0400)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 18 Aug 2009 01:09:45 +0000 (21:09 -0400)
Summary output now is wider to deal with -scripts versions.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/command/summary/version.py
wizard/deploy.py

index 353aaf4fc22dae3db599824b2a6535b94352a7ff..b14b1840ccd91c5bad9305416dbda7f2c7fbad50 100644 (file)
@@ -16,12 +16,12 @@ def main(argv, baton):
     if not show:
         print "No applications found"
     for application in show:
     if not show:
         print "No applications found"
     for application in show:
-        print "%-16s %3d installs" % (application.name, c_application[application])
+        print "%-20s %3d installs" % (application.name, c_application[application])
         vmax = max(c_version[x] for x in application.versions.values())
         for version in sorted(application.versions.values()):
             v = c_version[version]
             graph = '+' * int(math.ceil(float(v)/vmax * HISTOGRAM_WIDTH))
         vmax = max(c_version[x] for x in application.versions.values())
         for version in sorted(application.versions.values()):
             v = c_version[version]
             graph = '+' * int(math.ceil(float(v)/vmax * HISTOGRAM_WIDTH))
-            print "    %-12s %3d  %s" % (version.version, v, graph)
+            print "    %-16s %3d  %s" % (version.version, v, graph)
         print
 
 def parse_args(argv, baton):
         print
 
 def parse_args(argv, baton):
index 60351f6fcdfe392756fdae3242c5b25687ace52c..3ae65e3b2c9d4206652b0278758a14e5937ff0ef 100644 (file)
@@ -69,7 +69,7 @@ class Deployment(object):
     #: Absolute path to the deployment
     location = None
     def __init__(self, location, version=None):
     #: Absolute path to the deployment
     location = None
     def __init__(self, location, version=None):
-        self.location = os.path.realpath(location)
+        self.location = os.path.abspath(location)
         self._app_version = version
         # some cache variables
         self._read_cache = {}
         self._app_version = version
         # some cache variables
         self._read_cache = {}