|
|
|
@ -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))
|
|
|
|
|