diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2010-12-13 12:41:13 +0100 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2010-12-13 12:41:13 +0100 |
| commit | 3b39f8eba7740ada48af5e3b6e7b1aaa59e3356e (patch) | |
| tree | 493f4ab3602f43ad10fc31e727cfeabc181f9744 /lib/python | |
| parent | 33f552537bd880961256142b7a8f742a5681144e (diff) | |
| parent | 7ad025f87116448816a7531cfdac8bb1e0cffb0b (diff) | |
| download | enigma2-3b39f8eba7740ada48af5e3b6e7b1aaa59e3356e.tar.gz enigma2-3b39f8eba7740ada48af5e3b6e7b1aaa59e3356e.zip | |
Merge remote branch 'origin/acid-burn/bug_629_show_autofs_volumes_as_backuplocation' into experimental
Diffstat (limited to 'lib/python')
| -rwxr-xr-x | lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py index a6a611d3..896d9f2c 100755 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py @@ -261,9 +261,6 @@ class UpdatePluginMenu(Screen): for x in parts: if not access(x[1], F_OK|R_OK|W_OK) or x[1] == '/': parts.remove(x) - for x in parts: - if x[1].startswith('/autofs/'): - parts.remove(x) if len(parts): self.session.openWithCallback(self.backuplocation_choosen, ChoiceBox, title = _("Please select medium to use as backup location"), list = parts) elif (currentEntry == "backupfiles"): @@ -278,14 +275,20 @@ class UpdatePluginMenu(Screen): def backupfiles_choosen(self, ret): self.backupdirs = ' '.join( config.plugins.configurationbackup.backupdirs.value ) - + config.plugins.configurationbackup.backupdirs.save() + config.plugins.configurationbackup.save() + config.save() + def backuplocation_choosen(self, option): + oldpath = config.plugins.configurationbackup.backuplocation.getValue() if option is not None: config.plugins.configurationbackup.backuplocation.value = str(option[1]) config.plugins.configurationbackup.backuplocation.save() config.plugins.configurationbackup.save() config.save() - self.createBackupfolders() + newpath = config.plugins.configurationbackup.backuplocation.getValue() + if newpath != oldpath: + self.createBackupfolders() def runUpgrade(self, result): if result: |
