Preserve directory structure in PRESERVED_FILES_DIR to avoid

filename collisions.

Submitted by:	des
This commit is contained in:
dougb 2003-05-03 06:35:19 +00:00
parent 785fcbe6fc
commit bfcf5d67d7

View File

@ -656,8 +656,8 @@ do_install_and_rm () {
case "${PRESERVE_FILES}" in
[Yy][Ee][Ss])
if [ -f "${3}/${2##*/}" ]; then
mkdir -p ${PRESERVE_FILES_DIR}
cp ${3}/${2##*/} ${PRESERVE_FILES_DIR}
mkdir -p ${PRESERVE_FILES_DIR}/${2%/*}
cp ${3}/${2##*/} ${PRESERVE_FILES_DIR}/${2%/*}
fi
;;
esac