From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E79BA1382F6 for ; Thu, 7 Jul 2016 04:19:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDCAFE09B9; Thu, 7 Jul 2016 04:19:41 +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 615C3E09B9 for ; Thu, 7 Jul 2016 04:19:41 +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 73F2C340C9F for ; Thu, 7 Jul 2016 04:19:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C78C2446 for ; Thu, 7 Jul 2016 04:19:36 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1467865093.9618ea9eed6e625b9086325f46c80479e82af433.heroxbd@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/db/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/db/distmap.py X-VCS-Directories: roverlay/db/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 9618ea9eed6e625b9086325f46c80479e82af433 X-VCS-Branch: master Date: Thu, 7 Jul 2016 04:19:36 +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: b85414ef-8062-42f9-9c7b-cf1951ec97e0 X-Archives-Hash: e242bcfd6a712488fa0d6af177581096 commit: 9618ea9eed6e625b9086325f46c80479e82af433 Author: Benda Xu gentoo org> AuthorDate: Thu Jul 7 04:18:13 2016 +0000 Commit: Benda XU gentoo org> CommitDate: Thu Jul 7 04:18:13 2016 +0000 URL: https://gitweb.gentoo.org/proj/R_overlay.git/commit/?id=9618ea9e roverlay/db/distmap.py: call the wrapper for repo_name info.repo_name might be undefined. roverlay/db/distmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roverlay/db/distmap.py b/roverlay/db/distmap.py index 8562da1..7ca6099 100644 --- a/roverlay/db/distmap.py +++ b/roverlay/db/distmap.py @@ -404,7 +404,7 @@ class _DistMapBase ( roverlay.util.objects.PersistentContent ): if info is None: # new file, no revbump required return False - elif info.repo_name != package_info['origin'].name: + elif info.get_repo_name() != package_info['origin'].name: # don't revbump if repo names don't match, this likely results in # infinite revbumps if a package is available from more than one repo return False