X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-win32-loader;h=d0ef0a7e24b2d83cebd15488ab86d373a9c51020;hb=d31ae14a9de247d47d9ff7b3f36705a58a065916;hp=fff19742edd2696ab059bc2fb6143052fd82e7da;hpb=e11f6fe09beb41320e77935e4144b70db271f9e2;p=dak.git 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}"