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 07AEE138E74 for ; Tue, 30 Sep 2014 00:46:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3770E0925; Tue, 30 Sep 2014 00:46:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 390DDE092D for ; Tue, 30 Sep 2014 00:46:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 370473402E9 for ; Tue, 30 Sep 2014 00:46:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F0B75FB for ; Tue, 30 Sep 2014 00:46:53 +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: <1412037744.b181c04936b6bbad43030d974a19083abc8dba14.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/emaint/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/emaint/main.py X-VCS-Directories: pym/portage/emaint/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: b181c04936b6bbad43030d974a19083abc8dba14 X-VCS-Branch: plugin-sync Date: Tue, 30 Sep 2014 00:46:53 +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: 86506a24-b305-4030-87a7-585d0a1fc6af X-Archives-Hash: eed94a102057b74de5027de8858784c5 commit: b181c04936b6bbad43030d974a19083abc8dba14 Author: Brian Dolbec gentoo org> AuthorDate: Wed Sep 3 23:20:06 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Tue Sep 30 00:42:24 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b181c049 emaint/main.py: Change func to long_action for module action check Due to the change making it possible for the --action to be different than the actual function beign called. func no longer was the same as the avalable actions listed. Reverts the change made in: Commit: e166eb68e838389505f15426a2f0011dd95be342 Author: Brian Dolbec gentoo.org> (Wed 12 Mar 2014 08:40:49 PM PDT) Subject: portage/emaint/main.py: Fix a bug in the options parsing. --- pym/portage/emaint/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/emaint/main.py b/pym/portage/emaint/main.py index f76cee2..6292338 100644 --- a/pym/portage/emaint/main.py +++ b/pym/portage/emaint/main.py @@ -113,7 +113,7 @@ class TaskHandler(object): for task in tasks: inst = task() show_progress = self.show_progress_bar and self.isatty - # check if the function is capable of progressbar + # check if the function is capable of progressbar # and possibly override it off if show_progress and hasattr(inst, 'can_progressbar'): show_progress = inst.can_progressbar(func) @@ -206,9 +206,9 @@ def emaint_main(myargv): tasks = [] for m in module_names[1:]: #print("DEBUG: module: %s, functions: " % (m, str(module_controller.get_functions(m)))) - if func in module_controller.get_functions(m): + if long_action in module_controller.get_functions(m): tasks.append(module_controller.get_class(m)) - elif func in module_controller.get_functions(args[0]): + elif long_action in module_controller.get_functions(args[0]): tasks = [module_controller.get_class(args[0] )] else: portage.util.writemsg(