Merge "Skip older feed release directories if they aren't ostrees"

This commit is contained in:
Zuul 2022-12-15 22:01:34 +00:00 committed by Gerrit Code Review
commit d2f98dedf3

View File

@ -729,6 +729,9 @@ class PatchController(PatchService):
for rel_dir in list_of_dirs:
feed_ostree = "%s/%s/ostree_repo/" % (constants.FEED_OSTREE_BASE_DIR, rel_dir)
if not os.path.isdir(feed_ostree):
LOG.info("Skipping feed dir %s", feed_ostree)
continue
LOG.info("Syncing %s", feed_ostree)
output = subprocess.check_output(["ostree",
"--repo=%s" % feed_ostree,