From cb0af1a8a1cbf2c9b37429e29f642c60a5261536 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 2 Sep 2005 17:32:17 +0000 Subject: scripts/patchfns.in: Fix permissions of .pc/applied-patches being lost in remove_from_db() and rename_in_db(). --- scripts/patchfns.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit