From: Mark Hymers Date: Mon, 26 Mar 2012 11:25:06 +0000 (+0000) Subject: Fix win32loader byhand not to update all hardlinks X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f82ffb0f45a469d4d57047ab20a24c76c0992c04;p=dak.git Fix win32loader byhand not to update all hardlinks Signed-off-by: Mark Hymers --- diff --git a/scripts/debian/byhand-win32-loader b/scripts/debian/byhand-win32-loader index fff19742..d0ef0a7e 100755 --- a/scripts/debian/byhand-win32-loader +++ b/scripts/debian/byhand-win32-loader @@ -45,7 +45,9 @@ if [ ! -d "$TARGET" ]; then fi # Put said file into the tools directory -cp "$WIN32_LOADER_FILE" "${TARGET}${TARGET_FILENAME}" +# Use --remove-destination to avoid problems with the fact that the target may +# be a hardlink and in that case we'd update multiple suites together +cp --remove-destination "$WIN32_LOADER_FILE" "${TARGET}${TARGET_FILENAME}" # Chmod it correctly chmod 0644 "${TARGET}${TARGET_FILENAME}"