From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-commits+bounces-340776-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QGMEr-00056c-Sd for garchives@archives.gentoo.org; Sun, 01 May 2011 02:18:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D7A31C004; Sun, 1 May 2011 02:18:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EAC2F1C004 for <gentoo-commits@lists.gentoo.org>; Sun, 1 May 2011 02:18:17 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 377351B4042 for <gentoo-commits@lists.gentoo.org>; Sun, 1 May 2011 02:18:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6AEA780505 for <gentoo-commits@lists.gentoo.org>; Sun, 1 May 2011 02:18:16 +0000 (UTC) From: "Brian Dolbec" <brian.dolbec@gmail.com> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" <brian.dolbec@gmail.com> Message-ID: <db3e6ddad1edf4b984abd49b23c35715614e733d.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/argsparser.py layman/config.py layman/db.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: db3e6ddad1edf4b984abd49b23c35715614e733d Date: Sun, 1 May 2011 02:18:16 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2d5a448d9a2171b5f0aa54d50bbdda39 commit: db3e6ddad1edf4b984abd49b23c35715614e733d Author: dol-sen <brian.dolbec <AT> gmail <DOT> com> AuthorDate: Sun May 1 02:18:21 2011 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Sun May 1 02:18:21 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Ddb3e6dda fix --quiet option. --- layman/argsparser.py | 2 +- layman/config.py | 6 +++--- layman/db.py | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/layman/argsparser.py b/layman/argsparser.py index 9b6aa91..aa31149 100644 --- a/layman/argsparser.py +++ b/layman/argsparser.py @@ -254,7 +254,7 @@ class ArgsParser(BareConfig): self.read_config(self._defaults) =20 # handle quietness - if self['quiet']: + if self.options.__dict__['quiet']: self.set_option('quiet', True) elif self.options.__dict__['quietness']: self.set_option('quietness', self.options.__dict__['quietnes= s']) diff --git a/layman/config.py b/layman/config.py index 809ca8f..609b81e 100644 --- a/layman/config.py +++ b/layman/config.py @@ -178,15 +178,15 @@ class BareConfig(object): if option =3D=3D 'quiet': if self._options['quiet']: self._set_quietness(1) - self._options['quietness'] =3D 0 + self._options['quietness'] =3D 1 else: self._set_quietness(4) if option =3D=3D 'quietness': self._set_quietness(value) =20 def _set_quietness(self, value): - self._options['output'].set_info_level(int(self['quietness']= )) - self._options['output'].set_warn_level(int(self['quietness']= )) + self._options['output'].set_info_level(value) + self._options['output'].set_warn_level(value) =20 def __getitem__(self, key): return self._get_(key) diff --git a/layman/db.py b/layman/db.py index 6f79e26..0e581bd 100644 --- a/layman/db.py +++ b/layman/db.py @@ -312,8 +312,8 @@ class RemoteDB(DbBase): except urllib2.HTTPError as e: if e.getcode() =3D=3D 304: self.output.info('Remote list already up to date: %s= ' - % url) - self.output.info('Last-modified: %s' % timestamp) + % url, 4) + self.output.info('Last-modified: %s' % timestamp, 4) else: self.output.info('RemoteDB.cache(); HTTPError was:\n= %s' % str(e)) @@ -322,7 +322,8 @@ class RemoteDB(DbBase): self.output.warn('Failed to update the overlay list from= : ' + url + '\nError was:\n' + str(error)) else: - self.output.info('Fetching new list...') + self.output.info('Fetching new list... %s' % url, 4) + self.output.info('Last-modified: %s' % timestamp, 4) # Fetch the remote list olist =3D connection.read() =20