From dd8d02cc45542b9eea8826baae80b6487e2897ce Mon Sep 17 00:00:00 2001 From: lxnay Date: Tue, 8 Apr 2008 18:10:40 +0000 Subject: [PATCH] fix crippled_uri in FileTransceiver git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1597 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 016d5e619..a81477c25 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -10842,10 +10842,7 @@ class ServerInterface(TextInterface): self.dumpTools = self.ClientService.dumpTools self.backup_entropy_settings() self.SpmService = self.ClientService.Spm() - self.MirrorsService = ServerMirrorsInterface(self) - self.MirrorsService.FtpInterface = self.FtpInterface - self.MirrorsService.rssFeed = self.rssFeed def setup_entropy_settings(self): self.settings_to_backup.extend([ @@ -12085,6 +12082,8 @@ class ServerMirrorsInterface: self.Entropy = ServerInstance self.Mirrors = mirrors[:] self.repository_directory = etpConst['etpdatabasedir'] + self.FtpInterface = self.Entropy.FtpInterface + self.rssFeed = self.Entropy.rssFeed self.Entropy.updateProgress( blue("Entropy Server Mirrors Interface loaded:"), @@ -12663,6 +12662,8 @@ class ServerMirrorsInterface: def handler_verify_upload(self, local_filepath, uri, ftp_connection, counter, maxcount): + crippled_uri = self.entropyTools.extractFTPHostFromUri(uri) + self.Entropy.updateProgress( red("[repo:%s|mirror:%s|%s|#%s|(%s/%s)] verifyng upload (if supported): %s" % ( etpConst['officialrepositoryid'],