From ddb71ad99ddf114adf42862bb444526eca86c722 Mon Sep 17 00:00:00 2001 From: scarabeus Date: Thu, 28 Oct 2010 21:39:18 +0000 Subject: [PATCH] Add encoding informations. svn path=/trunk/gentoolkit/; revision=839 --- pym/gentoolkit/equery/keywords.py | 1 + pym/gentoolkit/eshowkw/__init__.py | 7 ++----- pym/gentoolkit/eshowkw/display_pretty.py | 1 + pym/gentoolkit/eshowkw/keywords_content.py | 1 + pym/gentoolkit/eshowkw/keywords_header.py | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pym/gentoolkit/equery/keywords.py b/pym/gentoolkit/equery/keywords.py index e9ec5eb..d91a053 100644 --- a/pym/gentoolkit/equery/keywords.py +++ b/pym/gentoolkit/equery/keywords.py @@ -1,3 +1,4 @@ +# vim:fileencoding=utf-8 # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py index a6f1ff4..3e3572e 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -1,3 +1,4 @@ +# vim:fileencoding=utf-8 # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 @@ -79,10 +80,6 @@ def process_args(argv): def main(argv): global ignore_slots, bold, order, topper - # equery support - if argv[0] = 'equery': - pkgsearch_only = True - #opts parsing opts = process_args(argv) ignore_slots = opts.ignore_slot @@ -99,7 +96,7 @@ def main(argv): package = opts.package # equery support - if pkgsearch_only and len(package) <= 0: + if argv[0] == 'equery' and len(package) <= 0: msg_err = 'No packages specified' raise SystemExit(msg_err) diff --git a/pym/gentoolkit/eshowkw/display_pretty.py b/pym/gentoolkit/eshowkw/display_pretty.py index b29fba1..f3c52ff 100644 --- a/pym/gentoolkit/eshowkw/display_pretty.py +++ b/pym/gentoolkit/eshowkw/display_pretty.py @@ -1,3 +1,4 @@ +# vim:fileencoding=utf-8 # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py index 08a728d..7f82026 100644 --- a/pym/gentoolkit/eshowkw/keywords_content.py +++ b/pym/gentoolkit/eshowkw/keywords_content.py @@ -1,3 +1,4 @@ +# vim:fileencoding=utf-8 # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/keywords_header.py index 53105ae..1d52749 100644 --- a/pym/gentoolkit/eshowkw/keywords_header.py +++ b/pym/gentoolkit/eshowkw/keywords_header.py @@ -1,3 +1,4 @@ +# vim:fileencoding=utf-8 # Copyright 2001-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -- 2.26.2