changeset fb518dfcbc82 in /home/hg/repos/gajim-plugins
author: tmolitor <thilo(a)eightysoft.de>
branches: gtk3
details:gajim-plugins?cmd=changeset;node=fb518dfcbc82
description: Make plugin_installer more robust to filepath layout changes
diffstat:
plugin_installer/manifest.ini | 2 +-
plugin_installer/plugin_installer.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 0f2217962d18 -r fb518dfcbc82 plugin_installer/manifest.ini
--- a/plugin_installer/manifest.ini Sun Sep 04 23:55:49 2016 +0200
+++ b/plugin_installer/manifest.ini Sun Sep 04 23:56:22 2016 +0200
@@ -1,7 +1,7 @@
[info]
name: Plugin Installer
short_name: plugin_installer
-version: 0.13.1
+version: 0.14
description: Install and upgrade plugins from ftp
authors: Denis Fomin <fominde(a)gmail.com>
Yann Leboulanger <asterix(a)lagaule.org>
diff -r 0f2217962d18 -r fb518dfcbc82 plugin_installer/plugin_installer.py
--- a/plugin_installer/plugin_installer.py Sun Sep 04 23:55:49 2016 +0200
+++ b/plugin_installer/plugin_installer.py Sun Sep 04 23:56:22 2016 +0200
@@ -602,7 +602,7 @@
# downloading zip file
GLib.idle_add(self.progressbar.set_text,
_('Downloading "%s"') % filename)
- full_filename = os.path.join(local_dir, 'plugins', filename)
+ full_filename = os.path.join(user_dir, filename)
self.buffer_ = io.BytesIO()
try:
self.ftp.retrbinary('RETR %s' % filename, self.handleDownload)
@@ -610,7 +610,7 @@
print (str(e))
with zipfile.ZipFile(self.buffer_) as zip_file:
- zip_file.extractall(os.path.join(local_dir, 'plugins'))
+ zip_file.extractall(os.path.join(user_dir))
self.ftp.quit()
GLib.idle_add(self.window.emit, 'plugin_downloaded', self.remote_dirs)