Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit d0999f6e8271422c412afb94906c2a35b5e92f6b
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Feb 11 16:47:03 2014 +0100
add get_summary and get_usage
addressing:
W: 22, 0: Method 'get_summary' is abstract in class 'Command' but is
not overridden (abstract-method)
W: 22, 0: Method 'get_usage' is abstract in class 'Command' but is not
overridden (abstract-method)
---------------------------------------------------------------
dnf-plugin/copr_hook.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dnf-plugin/copr_hook.py b/dnf-plugin/copr_hook.py
index b4e4260..c3b4b7f 100644
--- a/dnf-plugin/copr_hook.py
+++ b/dnf-plugin/copr_hook.py
@@ -24,6 +24,16 @@ class CoprCommand(dnf.cli.Command):
aliases = ("copr")
+ @staticmethod
+ def get_summary():
+ """Return a one line summary of what the command
does."""
+ return _("interact with Copr repositories")
+
+ @staticmethod
+ def get_usage():
+ """Return a usage string for the command, including
arguments."""
+ return _("copr enable name/project")
+
def run(self, extcmds):
# FIXME this should do dnf itself (BZ#1062889)
if os.geteuid() != 0: