Exemplo n.º 1
0
 def __build(self, i, cmd):
     print "\t getting file..."
     fnp = Utils.get_file_if_size_diff(i.url, self.paths.ext_tars)
     Utils.clear_dir(i.build_dir)
     Utils.untar(fnp, i.build_dir)
     try:
         Utils.run_in_dir(cmd, i.build_sub_dir)
     except:
         Utils.rm_rf(i.local_dir)
         sys.exit(1)
Exemplo n.º 2
0
 def __build(self, i, cmd):
     print "\t getting file..."
     fnp = Utils.get_file_if_size_diff(i.url, self.paths.ext_tars)
     Utils.clear_dir(i.build_dir)
     Utils.untar(fnp, i.build_dir)
     try:
         Utils.run_in_dir(cmd, i.build_sub_dir)
     except:
         Utils.rm_rf(i.local_dir)
         sys.exit(1)
Exemplo n.º 3
0
    def __processArgs(self):
        dirs = self.args.dirsToDelete
        if not dirs:
            return

        if "all" == dirs[0]:
            dirs = []
            for k, _ in self.paths.paths.iteritems():
                dirs.append(k)

        for e in dirs:
            p = self.__path(e)
            if p.build_dir:
                Utils.rm_rf(p.build_dir)
            if p.local_dir:
                Utils.rm_rf(p.local_dir)
Exemplo n.º 4
0
    def __processArgs(self):
        dirs = self.args.dirsToDelete
        if not dirs:
            return

        if "all" == dirs[0]:
            dirs = []
            for k, _ in self.paths.paths.iteritems():
                dirs.append(k)

        if "shark" in dirs and not "boost149" in dirs:
            dirs.append("boost149")

        for e in dirs:
            p = self.__path(e)
            if p.build_dir:
                Utils.rm_rf(p.build_dir)
            if p.local_dir:
                Utils.rm_rf(p.local_dir)