示例#1
0
 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)
示例#2
0
 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()
示例#3
0
 def clean() -> None:
     """Delete the repository metadata directory and its contents."""
     coreutils.rm_rf(self.repodata)
示例#4
0
 def clean() -> None:
     """Delete the repository directory and its contents."""
     coreutils.rm_rf(self.rootdir)
示例#5
0
 def clean(target: DocTarget) -> Callable[[], None]:
     """Delete the build sub-directory for the given target."""
     return lambda: coreutils.rm_rf(target.target.parent)
示例#6
0
 def clean(self) -> None:
     """Delete the image directory and its contents."""
     coreutils.rm_rf(self.dest_dir / self.name)