Fix detect WriteMode for shadow-.

master3.3
Mike Hiretsky 14 years ago
parent 0af7c58a84
commit d93db4f427

@ -402,10 +402,10 @@ class migrate(color_print):
# Check permissions backup files
checkNewBackupFiles = map(lambda x:pathJoin(self.prefixNewSystem,x+"-"),
checkThisFiles)
notWriteBackup = lambda x: not os.access(x, os.W_OK) or\
(not os.path.exists(x) and\
notWriteBackup = lambda x: not os.access(x, os.W_OK) and \
(os.path.exists(x) or \
not os.access(os.path.dirname(x), os.W_OK))
filesNotWrite = filter(notWrite, checkNewBackupFiles)
filesNotWrite = filter(notWriteBackup, checkNewBackupFiles)
if filesNotWrite:
self.printERROR(_("Can not write to files") + ": " +\
", ".join(filesNotWrite))

Loading…
Cancel
Save