Browse Source

Merge pull request #128 from tianon/fix-no-namespace-push

Fix "pushlist" generation with --no-namespace flag
Joffrey F 11 years ago
parent
commit
ee6103c14f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      stackbrew/brew/brew.py

+ 2 - 1
stackbrew/brew/brew.py

@@ -164,7 +164,8 @@ class StackbrewBuilder(object):
         for repo in self.repos:
             self.build_repo(repo, continue_on_error, callback)
             for namespace in self.namespaces:
-                self.pushlist.append('/'.join([namespace, repo.name]))
+                if namespace != '':
+                    self.pushlist.append('/'.join([namespace, repo.name]))
 
     def build_repo(self, repo, continue_on_error=True, callback=None):
         for version in repo.list_versions():