def ignore(self, pb): pb = self.parse_pkg_build(pb) pkg_dir = self.get_package_directory(pb.to_fname()) # If package doesn't exist if not os.path.exists(pkg_dir): util.mkfile(pkg_dir, "ignore", "ignore") return "Ignore package {}".format(pb.to_name()) else: return "Package {} already installed".format(pb.to_name())
def write_parent(self, pb, track=True): if track and pb.parent is not None: util.mkfile(self.get_deps_directory(pb.to_fname()), pb.parent, pb.parent)
def write_cmake(self, always_write=False, **kwargs): return util.mkfile(self.get_private_path(), 'cget.cmake', self.generate_cmake_toolchain(**kwargs), always_write=always_write)