diff --git a/cgcs-patch/cgcs-patch/cgcs_patch/patch_controller.py b/cgcs-patch/cgcs-patch/cgcs_patch/patch_controller.py index c84bcdfa..34c5be12 100644 --- a/cgcs-patch/cgcs-patch/cgcs_patch/patch_controller.py +++ b/cgcs-patch/cgcs-patch/cgcs_patch/patch_controller.py @@ -1645,7 +1645,7 @@ class PatchController(PatchService): del repo_dir[release] - if self.base_pkgdata is not None: + if self.base_pkgdata is not None and release in self.base_pkgdata.pkgs: del self.base_pkgdata.pkgs[release] # Refresh patch data