From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RXsz8-0004l6-Ex for garchives@archives.gentoo.org; Tue, 06 Dec 2011 11:14:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7277021C046; Tue, 6 Dec 2011 11:14:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B85021C046 for ; Tue, 6 Dec 2011 11:14:41 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C15D91B402A for ; Tue, 6 Dec 2011 11:14:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 088BF80042 for ; Tue, 6 Dec 2011 11:14:40 +0000 (UTC) From: "Paweł Hajdan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paweł Hajdan" Message-ID: <2dacce21a7418c147ab830e3f8e99ad682e3a51b.phajdan.jr@gentoo> Subject: [gentoo-commits] proj/arch-tools:master commit in: / X-VCS-Repository: proj/arch-tools X-VCS-Files: bugzilla-viewer.py X-VCS-Directories: / X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: Paweł Hajdan X-VCS-Revision: 2dacce21a7418c147ab830e3f8e99ad682e3a51b Date: Tue, 6 Dec 2011 11:14:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 56bd8ae8-a598-48e6-8c35-f0a36f8c4188 X-Archives-Hash: 483094a4e3abd4492c42e332e0c2771e commit: 2dacce21a7418c147ab830e3f8e99ad682e3a51b Author: Pawel Hajdan, Jr gentoo org> AuthorDate: Tue Dec 6 11:13:59 2011 +0000 Commit: Pawe=C5=82 Hajdan gentoo org> CommitDate: Tue Dec 6 11:13:59 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/arch-tools.gi= t;a=3Dcommit;h=3D2dacce21 When repoman manifest fails, do not crash entire script. --- bugzilla-viewer.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bugzilla-viewer.py b/bugzilla-viewer.py index 45584a5..ce0b2eb 100755 --- a/bugzilla-viewer.py +++ b/bugzilla-viewer.py @@ -353,9 +353,10 @@ if __name__ =3D=3D "__main__": manifest_contents =3D open(manifest_path).read() try: output =3D repoman_dict[bug.id_number()] - output +=3D subprocess.Popen(["ekeyword", options.arch, ebuild_nam= e], cwd=3Dcvs_path, stdout=3Dsubprocess.PIPE).communicate()[0] - subprocess.check_call(["repoman", "manifest"], cwd=3Dcvs_path) - output +=3D subprocess.Popen(["repoman", "full"], cwd=3Dcvs_path, = stdout=3Dsubprocess.PIPE).communicate()[0] + output +=3D subprocess.Popen(["ekeyword", options.arch, ebuild_nam= e], cwd=3Dcvs_path, stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT)= .communicate()[0] + # repoman manifest may fail if files are unfetchable. It shouldn't= abort this script. + output +=3D subprocess.Popen(["repoman", "manifest"], cwd=3Dcvs_pa= th, stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT).communicate()[0= ] + output +=3D subprocess.Popen(["repoman", "full"], cwd=3Dcvs_path, = stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT).communicate()[0] repoman_dict[bug.id_number()] =3D output finally: f =3D open(ebuild_path, "w")