Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/gkeys/
Date: Sat, 07 Jul 2018 05:24:03
Message-Id: 1530940933.a297c693402827cec3c5c1740b4559b040903030.dolsen@gentoo
1 commit: a297c693402827cec3c5c1740b4559b040903030
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 5 17:00:59 2018 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 7 05:22:13 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=a297c693
7
8 gkeys base.py: Fix fetchonly typo and add to Args class
9
10 Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
11
12 gkeys/gkeys/base.py | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/gkeys/gkeys/base.py b/gkeys/gkeys/base.py
16 index 2de1493..8aff933 100644
17 --- a/gkeys/gkeys/base.py
18 +++ b/gkeys/gkeys/base.py
19 @@ -63,6 +63,7 @@ class Args(object):
20 self.status = False
21 self.timestamp = None
22 self.uid = None
23 + self.fetchonly = None
24
25
26 class CliBase(object):
27 @@ -131,7 +132,7 @@ class CliBase(object):
28 help='Use CASE matching in searches')
29
30 @staticmethod
31 - def _option_fetcthonly(parser=None):
32 + def _option_fetchonly(parser=None):
33 parser.add_argument('--fetchonly',
34 dest='fetchonly', default=False,
35 help="Only fetch the seed file if there is an update or doesn't exist locally")
36 @@ -375,6 +376,7 @@ class CliBase(object):
37 func = getattr(self.actions, '%s'
38 % self.cli_config['Action_Map'][args.action]['func'])
39 self.logger.debug('Main: run; Found action: %s' % args.action)
40 + self.logger.debug('Main: run; args: %s' % str(args.__dict__))
41 success, results = func(args)
42 if not results:
43 print("No results found. Check your configuration and that the",