diff --git a/eessi_bot_event_handler.py b/eessi_bot_event_handler.py index 955b3d7..7f7680b 100644 --- a/eessi_bot_event_handler.py +++ b/eessi_bot_event_handler.py @@ -639,7 +639,7 @@ def handle_pull_request_merged_event(self, event_info, pr): repo_name = repo_cfg[cvmfs_repository.REPOS_CFG_REPO_NAME] dt = datetime.now(timezone.utc) trash_bin_dir = "/".join([trash_bin_root_dir, repo_name, dt.strftime('%Y%m%d')]) - + # Subdirectory with date of move. Also with repository name. Handle symbolic links (later?) # cron job deletes symlinks? diff --git a/tasks/clean_up.py b/tasks/clean_up.py index 5f91f93..1916a1d 100644 --- a/tasks/clean_up.py +++ b/tasks/clean_up.py @@ -29,7 +29,7 @@ def move_to_trash_bin(trash_bin_dir, job_dirs): funcname = sys._getframe().f_code.co_name log(f"{funcname}(): trash_bin_dir = {trash_bin_dir}") - + move_cmd = ["mkdir -p trash_bin_dir && mv -t", trash_bin_dir] for job_dir in job_dirs: move_cmd.append(job_dir)