String path = parentPath + a.getPlatformPath();
infos.put(path, new Info(Type.ADDED, path));
}
}
ImportInfo ret = info.out.close();
if (ret != null) {
allInfos.merge(ret);
if (verbose) {
for (Map.Entry e: ret.getModifications().entrySet()) {
log.info("...comitting {} {}", e.getValue(), e.getKey());
}
}
}
// modify parent
infos.put(info.parentFile.getPath(), new Info(Type.MODIFIED, info.parentFile.getPath()));
} else {
// this was a modification
ImportInfo ret = info.out.close();
if (ret != null) {
allInfos.merge(ret);
}
for (VaultFile file: info.original.values()) {
infos.put(file.getPath(), new Info(Type.MODIFIED, file.getPath()));
if (verbose) {
log.info("...comitting UPD {}", file.getPath());
}
}
if (verbose && ret != null) {
for (Map.Entry e: ret.getModifications().entrySet()) {
log.info("...comitting {} {}", e.getValue(), e.getKey());
}
}
}
}