From fbf424eb5d2fa50e144a0633db914f917ad5b5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Tue, 29 Oct 2024 15:56:52 +0100 Subject: [PATCH] Revert "package-indexer: temporarily dry-run old nightly removal" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 5179c02070973be3822088500f6358f95cfcc73e. Signed-off-by: László Várady --- packaging/package-indexer/indexer/deb_indexer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/package-indexer/indexer/deb_indexer.py b/packaging/package-indexer/indexer/deb_indexer.py index 9bf40c411..deb24367d 100644 --- a/packaging/package-indexer/indexer/deb_indexer.py +++ b/packaging/package-indexer/indexer/deb_indexer.py @@ -284,8 +284,8 @@ def __get_pkg_timestamps_in_dir(self, dir: Path) -> List[str]: def __remove_pkgs_with_timestamp(self, dir: Path, timestamps_to_remove: List[str]) -> None: for timestamp in timestamps_to_remove: for deb_file in dir.rglob("*{}*.deb".format(timestamp)): - self._log_info("Dry-run: removing old nightly package.", path=str(deb_file.resolve())) - # deb_file.unlink() + self._log_info("Removing old nightly package.", path=str(deb_file.resolve())) + deb_file.unlink() def __remove_old_pkgs(self, indexed_dir: Path) -> None: platform_dirs = list(filter(lambda path: path.is_dir(), indexed_dir.glob("*")))