changeset d57c52f17a45 in /home/hg/repos/gajim-plugins
buthor: Yann Leboulanger asterix@lagaule.org ranches: details:gajim-plugins?cmd=changeset;node=d57c52f17a45 description: fix downloading folder
diffstat:
plugin_installer/plugin_installer.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 40f5ddb7a8b4 -r d57c52f17a45 plugin_installer/plugin_installer.py --- a/plugin_installer/plugin_installer.py Wed Aug 28 13:16:43 2013 +0200 +++ b/plugin_installer/plugin_installer.py Wed Aug 28 13:27:26 2013 +0200 @@ -604,7 +604,7 @@ else: files.append(i[1:]) dirs, files = [], [] - nlstr('/plugins/' + remote_dir) + nlstr('/%s/%s' + (self.plugin.server_folder, remote_dir))
base_dir, user_dir = gajim.PLUGINS_DIRS if not os.path.isdir(user_dir): @@ -624,7 +624,8 @@ for filename in files: gobject.idle_add(self.progressbar.set_text, _('Downloading "%s"') % filename) - full_filename = os.path.join(local_dir, filename) + full_filename = os.path.join(local_dir, filename.replace( + self.plugin.server_folder, 'plugins')) try: self.ftp.retrbinary('RETR /%s' % filename, open(full_filename, 'wb').write)