[ovs-dev] [PATCH 1/3] update-debian-changelog: Pass "-f" to "mv" to fix "make distcheck".

Ben Pfaff blp at nicira.com
Tue Jun 15 17:39:06 UTC 2010


"make distcheck" unsets the "writable" bit of files as it installs them
on "make dist", so to avoid an error (or a user query) updating
debian/changelog in such a situation we must use the -f option.
---
 build-aux/update-debian-changelog |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build-aux/update-debian-changelog b/build-aux/update-debian-changelog
index dfb84fc..9353e70 100755
--- a/build-aux/update-debian-changelog
+++ b/build-aux/update-debian-changelog
@@ -33,5 +33,5 @@ openvswitch ($VERSION) unstable; urgency=low
 EOF
         cat "$CHANGELOG"
     } > "$CHANGELOG".new
-    mv "$CHANGELOG".new "$CHANGELOG"
+    mv -f "$CHANGELOG".new "$CHANGELOG"
 fi
-- 
1.7.1





More information about the dev mailing list