aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-12-13 13:19:00 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-12-13 13:19:00 +0100
commit59f9f67261d0e6018293871d00cbd12572fbb4c7 (patch)
treedc52b174e2b7c455b8730a684e04234b52606042 /lib/python
parent8e8c24e32fa4d314fcc3754226ab04c5799a5148 (diff)
parent7ad025f87116448816a7531cfdac8bb1e0cffb0b (diff)
downloadenigma2-59f9f67261d0e6018293871d00cbd12572fbb4c7.tar.gz
enigma2-59f9f67261d0e6018293871d00cbd12572fbb4c7.zip
Merge remote branch 'remotes/origin/acid-burn/bug_629_show_autofs_volumes_as_backuplocation'
Diffstat (limited to 'lib/python')
-rwxr-xr-xlib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py13
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 e1f3e1de..904fbb39 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: