protected = self.isprotected(mydest)
if mydmode != None:
# destination file exists
+ cfgprot = 0
if stat.S_ISDIR(mydmode):
# install of destination is blocked by an existing directory with the same name
cfgprot = 1
showMessage("!!! %s\n" % mydest,
level=logging.ERROR, noiselevel=-1)
elif stat.S_ISREG(mydmode) or (stat.S_ISLNK(mydmode) and os.path.exists(mydest) and stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])):
- cfgprot = 0
# install of destination is blocked by an existing regular file,
# or by a symlink to an existing regular file;
# now, config file management may come into play.