diff --git a/packaging/package-indexer/indexer/deb_indexer.py b/packaging/package-indexer/indexer/deb_indexer.py index deb24367d..9bf40c411 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("Removing old nightly package.", path=str(deb_file.resolve())) - deb_file.unlink() + self._log_info("Dry-run: 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("*")))