summaryrefslogtreecommitdiffstats
path: root/scripts/patchfns.in
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-09-02 17:32:17 +0000
committerJean Delvare <khali@linux-fr.org>2005-09-02 17:32:17 +0000
commitcb0af1a8a1cbf2c9b37429e29f642c60a5261536 (patch)
tree65283f0e040d1dc0dc25ef60e3c29f34906081e9 /scripts/patchfns.in
parente3f78107482ec3215cb0670cc0eac867866c57bb (diff)
downloadquilt-cb0af1a8a1cbf2c9b37429e29f642c60a5261536.tar.gz
scripts/patchfns.in: Fix permissions of .pc/applied-patches being lost in
remove_from_db() and rename_in_db().
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r--scripts/patchfns.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index c5156e2..e75e365 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -277,7 +277,8 @@ rename_in_db()
' $DB > $tmpfile
if [ $? -eq 0 ]
then
- mv -f $tmpfile $DB
+ cat $tmpfile > $DB
+ rm -f $tmpfile
else
rm -f $tmpfile
return 1
@@ -413,7 +414,7 @@ remove_from_db()
if tmpfile=$(gen_tempfile)
then
grep -v -E "^$(quote_re $patch)\$" $DB > $tmpfile
- mv -f $tmpfile $DB
+ cat $tmpfile > $DB
rm -f $tmpfile
[ -s $DB ] || rm -f $DB
fi