[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Fix win32loader byhand not to update all hardlinks



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 scripts/debian/byhand-win32-loader |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/scripts/debian/byhand-win32-loader b/scripts/debian/byhand-win32-loader
index fff1974..d0ef0a7 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}"
-- 
1.7.2.5


Reply to: