summaryrefslogtreecommitdiffstats
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
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().
-rw-r--r--quilt.changes14
-rw-r--r--scripts/patchfns.in5
2 files changed, 13 insertions, 6 deletions
diff --git a/quilt.changes b/quilt.changes
index 96d494e..b17611a 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,10 +1,16 @@
-------------------------------------------------------------------
+Fri Sep 2 19:31:51 CEST 2005 - khali@linux-fr.org
+
+- scripts/patchfns.in: Fix permissions of .pc/applied-patches
+ being lost in remove_from_db() and rename_in_db().
+
+-------------------------------------------------------------------
Fri Sep 2 18:57:54 CEST 2005 - khali@linux-fr.org
-- refresh.in: Drop a useless line in the awk script replacing the
- diffstat section in patch headers. Improve the regular
- expression matching diffstat lines. Original patch from John
- Vandenberg.
+- quilt/refresh.in: Drop a useless line in the awk script
+ replacing the diffstat section in patch headers. Improve the
+ regular expression matching diffstat lines. Original patch from
+ John Vandenberg.
-------------------------------------------------------------------
Sun Aug 28 20:48:12 CEST 2005 - khali@linux-fr.org
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