Elliot Peele  committed e992a5f

check the current environment before execution (RCE-2255)

  • Participants
  • Parent commits d5cf4d9

Comments (0)

Files changed (1)

File rbuild/

     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)