A partly configured project can break the update completely. Avoid this
by logging the improper configuration and exiting.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
patchew-cli | 3 +++
1 file changed, 3 insertions(+)
diff --git a/patchew-cli b/patchew-cli
index c68abf9..9472554 100755
--- a/patchew-cli
+++ b/patchew-cli
@@ -349,6 +349,9 @@ class ProjectCommand(SubCommand):
)
def update_one_project(self, wd, project):
+ if not project["git"]:
+ logging.info("Project '%s' not configured", project["name"])
+ return
logging.info("Updating project '%s'", project["name"])
clone = os.path.join("/var/tmp/patchew-project-update", project["name"])
if " " in project["git"]:
--
2.31.1
_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/patchew-devel