From nobody Sat Apr 20 09:33:23 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1623692387; cv=none; d=zohomail.com; s=zohoarc; b=MKw5LT7Z0LfX3xcD2z2I/8QH3rjy8WL75WCMRLUoVZCIhTimRshr49RMcc2dbJF0zeKyjL688VUQbsIu+UopuQRlwJO0WnPtgPEz9cAyl2xUdckz+0VyQnAPHsPnl2mplzbKa5ka8ekzE2koJwOtR6FQTqgdYn5LiOD1keDepEo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623692387; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=cF7b72uaxusnGlwJ3abf5X6u6IFTDBsfvgoIKNDsCSo=; b=K4XY/6Po11QV/YQbL7SO+aYQvqYOVlMtxbMSsu8VuW2sG47l1lz5R8H03BK+kI4qi6CCnnu50brDmLZXSVr8rRxzS27mq5fgap++0OQ+wb7Vu9gDDf5CfvTgCPcP37sXl+W+cmLHVWe3MxG0ZrZLB74YKnHq8J2mX/gnwCrrzvI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1623692387949504.3916784044129; Mon, 14 Jun 2021 10:39:47 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-cUpxuLcrOlqJwg5hnzaAPg-1; Mon, 14 Jun 2021 13:39:45 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C12F618D6A34; Mon, 14 Jun 2021 17:39:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BAE996060F; Mon, 14 Jun 2021 17:39:43 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B07FB4EE7F; Mon, 14 Jun 2021 17:39:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 15EHZ5YA023076 for ; Mon, 14 Jun 2021 13:35:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2B21919D7D; Mon, 14 Jun 2021 17:35:05 +0000 (UTC) Received: from avogadro.lan (ovpn-114-164.ams2.redhat.com [10.36.114.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id A4A0D19C66 for ; Mon, 14 Jun 2021 17:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623692387; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cF7b72uaxusnGlwJ3abf5X6u6IFTDBsfvgoIKNDsCSo=; b=ArzmsBKqJKkDB9iH+qwszLRem23amlcBi+1O2UUCKD7pqkEb6F+Tk4Cz+jQE4HwoFuSavp ZoCk2PrN/ua35eK2sIu5YzNWKxmdvIoJ2x8++34QdAlYJmRKHH9n4oEqc8mNquUy/I/q30 6IUDQg5Y4H/I3/02vVVTGM12NM1ZPvo= X-MC-Unique: cUpxuLcrOlqJwg5hnzaAPg-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 14 Jun 2021 19:35:00 +0200 Message-Id: <20210614173500.746969-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] patchew-cli: allow an empty git setup X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=patchew-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" A partly configured project can break the update completely. Avoid this by logging the improper configuration and exiting. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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): ) =20 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 =3D os.path.join("/var/tmp/patchew-project-update", project[= "name"]) if " " in project["git"]: --=20 2.31.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel