Commits

Anonymous committed e992a5f

check the current environment before execution (RCE-2255)

Comments (0)

Files changed (1)

         log.addRootLogger()
 
     def buildmany(self, packages, lateCommit=False, workers=None, retries=None):
+        if not hasattr(self, 'builder'):
+            self.handle.ui.writeError('Command run outside of expected '
+                'context, make sure you are in a checkout directory')
+            return
+
         pkgs = set([ (x, self.conarycfg.buildLabel.asString(), None)
             for x in packages ])
+
+
+
         return self.builder.buildmany(pkgs, lateCommit=lateCommit,
                 workers=workers, retries=retries)