summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-04-09 02:03:17 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-04-09 02:03:17 +0000
commit1ce104d8a2487cc8f5d5b4ed351a3651392cb496 (patch)
tree2029ede5c4291ebe5c66a1e1b24a2ebec7bfbf60 /scripts
parent424a9319932c7d9ff6a3fca54d76218c6e63a9e9 (diff)
downloadquilt-1ce104d8a2487cc8f5d5b4ed351a3651392cb496.tar.gz
- Never reorder files in patches. (Previously the file list
was run through (sort | uniq) to remove duplicate entries.) - Update test script to new format, and add regression test cases.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index a1c39bf..6ae58a4 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -505,6 +505,8 @@ refresh_file_list()
return 1
fi
+ # Do not reorder files in the file list...
+
if [ -e $pc_file ]
then
cat $pc_file >> $tmpfile
@@ -514,7 +516,10 @@ refresh_file_list()
then
return 1
fi
- sort $tmpfile | uniq > $pc_file
+ awk ' { if (seen[$0]) next
+ seen[$0]=1
+ print
+ }' $tmpfile > $pc_file
rm $tmpfile
return 0
fi