From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 48300138263 for ; Wed, 18 May 2016 15:42:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 873F5224048; Wed, 18 May 2016 15:42:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2195D224048 for ; Wed, 18 May 2016 15:42:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9AC8633D3C5 for ; Wed, 18 May 2016 15:42:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5706A964 for ; Wed, 18 May 2016 15:41:59 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1463585755.ecd20fa451e72e03aacd41c297b47de896043a5f.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/revdep_rebuild/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/revdep_rebuild/assign.py X-VCS-Directories: pym/gentoolkit/revdep_rebuild/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: ecd20fa451e72e03aacd41c297b47de896043a5f X-VCS-Branch: master Date: Wed, 18 May 2016 15:41:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 88fcc220-a45e-4f9c-a412-c0a22ed86c3f X-Archives-Hash: 0d7e83bd117e521d8e68cfd7bc8c7a92 commit: ecd20fa451e72e03aacd41c297b47de896043a5f Author: Brian Dolbec gentoo org> AuthorDate: Wed May 18 15:35:55 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Wed May 18 15:35:55 2016 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=ecd20fa4 revdep-rebuild, assign.py: Trap an invalid cpv split bug 571782 Added a check for parts not being valid None or empty list from the catpkgsplit(cpv) call. It will now log the warning with the invalid cpv. pym/gentoolkit/revdep_rebuild/assign.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/gentoolkit/revdep_rebuild/assign.py b/pym/gentoolkit/revdep_rebuild/assign.py index 412ed49..8d819d6 100644 --- a/pym/gentoolkit/revdep_rebuild/assign.py +++ b/pym/gentoolkit/revdep_rebuild/assign.py @@ -103,6 +103,11 @@ def get_slotted_cps(cpvs, logger): cps = [] for cpv in cpvs: parts = catpkgsplit(cpv) + if not parts: + logger.warn(('\t' + red("Failed to split the following pkg: " + "%s, not a valid cat/pkg-ver" %cpv))) + continue + cp = parts[0] + '/' + parts[1] try: slot = portdb.aux_get(cpv, ["SLOT"])