def build(self, puller):
        self.unlinkBinary()

        try:
            self.make()
        except:
            pass

        if not self.successfullyBuild():
            self.reconf()
            self.make()

        assert self.successfullyBuild()

        info = self.retrieve_info()
        info["revision"] = puller.identify()
        # Default 'shell' to True only if it isn't set yet!
        if 'shell' not in info:
            info["shell"] = True
        info["binary"] = os.path.abspath(self.binary())

        fp = open(os.path.join(self.folder, "info.json"), "w")
        json.dump(info, fp)
        fp.close()

        print "Build done!"
Beispiel #2
0
    def build(self, puller):
        self.unlinkBinary()

        try:
            self.make()
        except:
            pass

        if not self.successfullyBuild():
            self.reconf()
            self.make()

        assert self.successfullyBuild()

        info = self.retrieve_info()
        info["revision"] = puller.identify()
        # Default 'shell' to True only if it isn't set yet!
        if 'shell' not in info:
            info["shell"] = True
        info["binary"] = os.path.abspath(self.binary())

        fp = open(os.path.join(self.folder, "info.json"), "w")
        json.dump(info, fp)
        fp.close()

        print "Build done!"
Beispiel #3
0
    def build(self, puller):
        self.unlinkBinary()

        self.make()

        if not self.successfullyBuild():
            self.reconf()
            self.make()

        assert self.successfullyBuild()

        info = self.retrieveInfo()
        info["revision"] = puller.identify()
        info["shell"] = True
        info["binary"] = os.path.abspath(self.binary())

        fp = open(os.path.join(self.folder, "info.json"), "w")
        json.dump(info, fp)
        fp.close()