style issues

This commit is contained in:
Christopher Laprise 2018-02-01 23:00:06 -05:00
parent 30dd7acaa9
commit e3d12fb96d
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -1673,15 +1673,14 @@ class BackupRestore(object):
local_user = grp.getgrnam('qubes').gr_mem[0]
backup_path = os.path.join("dom0-home", local_user)
home_dir = pwd.getpwnam(local_user).pw_dir
backup_dom0_home_dir = os.path.join(self.tmpdir, backup_path)
restore_home_backupdir = "home-restore-{0}".format(
time.strftime("%Y-%m-%d-%H%M%S"))
self.log.info("Restoring home of user '%s' to '%s' directory...",
local_user, restore_home_backupdir)
os.mkdir(os.path.join(home_dir, restore_home_backupdir))
tar3_cmdline = ['tar','-C',
os.path.join(home_dir,restore_home_backupdir), '-x']
tar3_cmdline = ['tar', '-C',
os.path.join(home_dir, restore_home_backupdir), '-x']
retcode = subprocess.call(tar3_cmdline, stdin=stream)
if retcode != 0:
raise QubesException("Inner tar error for dom0-home")