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 8A2921381FA for ; Mon, 2 Jun 2014 15:44:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 929B2E0B3F; Mon, 2 Jun 2014 15:44:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0EE87E0B10 for ; Mon, 2 Jun 2014 15:44:25 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C542B33FF01 for ; Mon, 2 Jun 2014 15:44:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 6F828182D7 for ; Mon, 2 Jun 2014 15:44:23 +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: <1401723771.b5a4e8484f042e453e9038181aedd06f0b1a6427.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/scan.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: b5a4e8484f042e453e9038181aedd06f0b1a6427 X-VCS-Branch: repoman Date: Mon, 2 Jun 2014 15:44:23 +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: fe2b6d5a-1ecd-4d71-8229-c69249b95292 X-Archives-Hash: 5db81d17558861df28dc811bd1ca27b4 commit: b5a4e8484f042e453e9038181aedd06f0b1a6427 Author: Brian Dolbec gentoo org> AuthorDate: Mon Jun 2 14:56:29 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Jun 2 15:42:51 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b5a4e848 repoman/scan.py: Fix an AttributeError for vcs == None --- pym/repoman/scan.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/repoman/scan.py b/pym/repoman/scan.py index 051f170..e7ce8ff 100644 --- a/pym/repoman/scan.py +++ b/pym/repoman/scan.py @@ -85,8 +85,9 @@ class Changes(object): def scan(self, vcs_settings): self._reset() - vcscheck = getattr(self, 'scan_%s' % vcs_settings.vcs) - vcscheck() + if vcs_settings.vcs: + vcscheck = getattr(self, 'scan_%s' % vcs_settings.vcs) + vcscheck() if vcs_settings.vcs: self.new_ebuilds.update(x for x in self.new if x.endswith(".ebuild"))