コード例 #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
ファイル: docs.py プロジェクト: zmance-scality/metalk8s
 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)