Skip to content

Commit

Permalink
Merge pull request #358 from MrAnno/revert-nightly-pkg-remove-dryrun
Browse files Browse the repository at this point in the history
Revert "package-indexer: temporarily dry-run old nightly removal"
  • Loading branch information
alltilla authored Nov 4, 2024
2 parents a967442 + fbf424e commit c528cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/package-indexer/indexer/deb_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("*")))
Expand Down

0 comments on commit c528cf2

Please sign in to comment.