~plaxx/backintime/explicit-ssh-private-key

« back to all changes in this revision

Viewing changes to common/config.py

  • Committer: Germar
  • Date: 2015-03-06 20:19:00 UTC
  • Revision ID: germar-20150306201900-laklpsg1b22b7xyy
cache uuid in config so it doesn't fail if the device isn't pluged in

Show diffs side-by-side

added added

removed removed

Lines of Context:
1418
1418
                        return False
1419
1419
                    uuid = tools.get_uuid_from_path(dest_path)
1420
1420
                    if uuid is None:
1421
 
                        self.notify_error( _('Couldn\'t find UUID for "%s"') % dest_path)
1422
 
                        return False
 
1421
                        #try using cached uuid
 
1422
                        uuid = self.get_profile_str_value('snapshots.path.uuid', '', profile_id)
 
1423
                        if not uuid:
 
1424
                            self.notify_error( _('Couldn\'t find UUID for "%s"') % dest_path)
 
1425
                            return False
 
1426
                    else:
 
1427
                        #cache uuid in config
 
1428
                        self.set_profile_str_value('snapshots.path.uuid', uuid, profile_id)
1423
1429
                    try:
1424
1430
                        self.setupUdev.addRule(self.cron_cmd(profile_id), uuid)
1425
1431
                    except tools.InvalidChar as e: