From d1475cff318e3d71c01d1500cc843febb4a98b6f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 23 Aug 2012 11:05:17 +0200 Subject: [PATCH] [eit.commands.reset] subclass EitPull rather than EitPush --- server/eit/commands/reset.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/eit/commands/reset.py b/server/eit/commands/reset.py index 42076d79b..251608cdf 100644 --- a/server/eit/commands/reset.py +++ b/server/eit/commands/reset.py @@ -16,10 +16,10 @@ from entropy.i18n import _ from entropy.output import darkgreen from eit.commands.descriptor import EitCommandDescriptor -from eit.commands.push import EitPush +from eit.commands.pull import EitPull -class EitReset(EitPush): +class EitReset(EitPull): """ Main Eit reset command. """ @@ -28,7 +28,7 @@ class EitReset(EitPush): ALIASES = [] def __init__(self, args): - EitPush.__init__(self, args) + EitPull.__init__(self, args) self._reset_repository_id = None self._local = False @@ -98,7 +98,7 @@ re-fetching the remote version available on mirrors. return self._man() def parse(self): - """ Overridden from EitPush """ + """ Overridden from EitPull """ parser = self._get_parser() try: nsargs = parser.parse_args(self._args) @@ -136,7 +136,7 @@ re-fetching the remote version available on mirrors. if self._local: return 0 - return self._push(entropy_server) + return self._pull(entropy_server) EitCommandDescriptor.register( EitCommandDescriptor(