use Repository.__str__() in messages
authorTimo Savola <tsavola@movial.fi>
Sun, 6 Apr 2008 14:46:49 +0000 (17:46 +0300)
committerTimo Savola <tsavola@movial.fi>
Sun, 6 Apr 2008 14:46:49 +0000 (17:46 +0300)
matrix/build.py
matrix/matrix.py

index c8a68a1..f25e294 100644 (file)
@@ -160,11 +160,11 @@ class Builder(object):
                if not c.repo.exists():
                        c.repo.clone()
 
-               print 'Building', c.repo.path
+               print 'Building', c.repo
                self.start_job(c, 'build_matrix_component', 'in-build')
 
        def start_install(self, c):
-               print 'Installing', c.repo.path
+               print 'Installing', c.repo
                self.start_job(c, 'install_matrix_component', 'in-install')
 
        def start_job(self, c, make_target, state):
@@ -188,7 +188,7 @@ class Builder(object):
 
                        self.progress.increment()
                        if config.debug:
-                               print 'Built', c.repo.path
+                               print 'Built', c.repo
 
                        c.state = 'wait-install'
                        self.wait_install.append(c)
@@ -212,7 +212,7 @@ class Builder(object):
                                return
 
                        self.progress.increment()
-                       print 'Finished', c.repo.path
+                       print 'Finished', c.repo
 
                        c.state = 'done'
                        self.in_install = None
index c7b6ed5..8c020ad 100644 (file)
@@ -198,7 +198,7 @@ def clone_component(c, overwrite=False):
                return
 
        if overwrite and os.path.exists(c.repo.path):
-               print 'Removing', c.repo.path
+               print 'Removing', c.repo
 
                remove_tree(c.repo.path)
                have_repo = False