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 0201859CA3 for ; Sat, 12 Mar 2016 18:10:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9BE721C10D; Sat, 12 Mar 2016 18:10:22 +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 5559B21C100 for ; Sat, 12 Mar 2016 18:10:20 +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 DA333340BCD for ; Sat, 12 Mar 2016 18:10:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 496AA241A for ; Sat, 12 Mar 2016 18:10:13 +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: <1457805462.77c4da789a13f32b79e135085be4f0c6ca03f2bb.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/scan/ebuild/, pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/modules/scan/ebuild/ebuild.py pym/repoman/scanner.py X-VCS-Directories: pym/repoman/ pym/repoman/modules/scan/ebuild/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 77c4da789a13f32b79e135085be4f0c6ca03f2bb X-VCS-Branch: repoman Date: Sat, 12 Mar 2016 18:10:13 +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: 9ef48d4e-7101-41b3-9a18-3de1d8162632 X-Archives-Hash: fab226ee3c9b4d2f1210bd0ab39ef95e commit: 77c4da789a13f32b79e135085be4f0c6ca03f2bb Author: Brian Dolbec gentoo org> AuthorDate: Fri Mar 11 00:11:13 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sat Mar 12 17:57:42 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=77c4da78 repoman: Move changelog_modified to dynamic_data for use in the scan/ebuild module pym/repoman/modules/scan/ebuild/ebuild.py | 3 ++- pym/repoman/scanner.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/repoman/modules/scan/ebuild/ebuild.py b/pym/repoman/modules/scan/ebuild/ebuild.py index 0ae416b..e9a2cdd 100644 --- a/pym/repoman/modules/scan/ebuild/ebuild.py +++ b/pym/repoman/modules/scan/ebuild/ebuild.py @@ -74,9 +74,10 @@ class Ebuild(ScanBase): self.xpkg = kwargs.get('xpkg') self.y_ebuild = kwargs.get('y_ebuild') self.changed = kwargs.get('changed') + changelog_modified = kwargs.get('changelog_modified') self._set_paths(**kwargs) - if self.checks['changelog'] and not self.changelog_modified \ + if self.checks['changelog'] and not changelog_modified \ and self.ebuild_path in self.changed.new_ebuilds: self.qatracker.add_error('changelog.ebuildadded', self.relative_path) diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py index 3d23725..86e389a 100644 --- a/pym/repoman/scanner.py +++ b/pym/repoman/scanner.py @@ -263,7 +263,7 @@ class Scanner(object): self.qatracker.add_error("changelog.missing", xpkg + "/ChangeLog") changelog_path = os.path.join(checkdir_relative, "ChangeLog") - self.changelog_modified = changelog_path in self.changed.changelogs + dynamic_data["changelog_modified"] = changelog_path in self.changed.changelogs self._scan_ebuilds(ebuildlist, dynamic_data) return dynamic_data['can_force']