Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/
Date: Sat, 26 Sep 2015 20:49:16
Message-Id: 1443203556.193803975a2cacdb216be099bab47f007a8762de.dolsen@gentoo
1 commit: 193803975a2cacdb216be099bab47f007a8762de
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 17:52:36 2015 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 17:52:36 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=19380397
7
8 repoman/repos.py: Add check that we need commit signing (bug 561474)
9
10 Side effect of the code splitting, repoman full in a non -vcs repo directory was reporting the inability to sign warning.
11
12 X-Gentoo-bug: 561474
13 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=561474
14 Title: repoman: spews useless warning about commit while running 'full'
15
16 pym/repoman/repos.py | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/pym/repoman/repos.py b/pym/repoman/repos.py
20 index f16bf7a..72e5735 100644
21 --- a/pym/repoman/repos.py
22 +++ b/pym/repoman/repos.py
23 @@ -60,7 +60,7 @@ class RepoSettings(object):
24 if self.repo_config.allow_provide_virtual:
25 qawarnings.add("virtual.oldstyle")
26
27 - if self.repo_config.sign_commit:
28 + if self.repo_config.sign_commit and options.mode in ("commit", "fix", "manifest"):
29 if vcs_settings.vcs:
30 func = getattr(self, '_vcs_gpg_%s' % vcs_settings.vcs)
31 func()