From a78c03fd0f66cfeb657d8bb84f7c29ed483f168f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 13 Oct 2011 20:01:48 +0200 Subject: [PATCH] [eit.commands.push] add missing import, improve code robustness --- server/eit/commands/push.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/eit/commands/push.py b/server/eit/commands/push.py index 7bd0f80a3..dd327e614 100644 --- a/server/eit/commands/push.py +++ b/server/eit/commands/push.py @@ -16,7 +16,8 @@ import tempfile from entropy.const import etpConst from entropy.i18n import _ -from entropy.output import darkgreen, teal, red, darkred, brown, blue, bold +from entropy.output import darkgreen, teal, red, darkred, brown, blue, \ + bold, purple from entropy.transceivers import EntropyTransceiver from entropy.server.interfaces import ServerSystemSettingsPlugin from entropy.server.interfaces.rss import ServerRssMetadata @@ -79,7 +80,7 @@ class EitPush(EitCommand): self._repositories.append(nsargs.repo) self._as_repository_id = nsargs.asrepo - return self._call_locked, [self._push, None] + return self._call_locked, [self._push, nsargs.repo] def _push(self, entropy_server): """