def clean() -> None: """Delete cache and repositories on the ISO.""" coreutils.rm_rf(constants.PKG_RPM_ROOT / 'var') for repository in RPM_REPOSITORIES: # Repository with an explicit list of packages are created by a # dedicated task that will also handle their cleaning, so we skip # them here. if repository.packages: continue coreutils.rm_rf(repository.rootdir)
def clean() -> None: """Delete downloaded Debian packages.""" for repository in DEB_REPOSITORIES: # Repository with an explicit list of packages are created by a # dedicated task that will also handle their cleaning, so we skip # them here. if repository.packages: continue coreutils.rm_rf(repository.pkgdir) utils.unlink_if_exist(witness) constants.REPO_DEB_ROOT.rmdir()
def clean() -> None: """Delete the repository metadata directory and its contents.""" coreutils.rm_rf(self.repodata)
def clean() -> None: """Delete the repository directory and its contents.""" coreutils.rm_rf(self.rootdir)
def clean(target: DocTarget) -> Callable[[], None]: """Delete the build sub-directory for the given target.""" return lambda: coreutils.rm_rf(target.target.parent)
def clean(self) -> None: """Delete the image directory and its contents.""" coreutils.rm_rf(self.dest_dir / self.name)