Index: trunk/debs/wikimedia-task-appserver/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-task-appserver (2.3-4) hardy-wikimedia; urgency=low |
| 3 | + |
| 4 | + * Fix for mw-cksum-list (thanks to Asher) |
| 5 | + |
| 6 | + -- Aaron Schulz <aschulz@wikimedia.org> Tue, 11 Oct 2011 20:44:33 +0000 |
| 7 | + |
2 | 8 | wikimedia-task-appserver (2.3-3) lucid-wikimedia; urgency=low |
3 | 9 | |
4 | 10 | * Added scripts to create MediaWiki fingerprints. Used for checking if installations are synced. |
Index: trunk/debs/wikimedia-task-appserver/mw-cksum-list |
— | — | @@ -12,15 +12,15 @@ |
13 | 13 | # Used for 'common-files' parameter in mw-cksum. |
14 | 14 | if [ $(basename $1) == 'common-files' ]; then |
15 | 15 | codePath=$(dirname $1) |
16 | | - maxDepth="-maxdepth 1" |
17 | | - filterParams="-name *.dat" |
| 16 | + filterParams="-maxdepth 1 -type f" |
18 | 17 | else |
19 | 18 | codePath="$1" |
20 | | - maxDepth="" |
21 | | - filterParams="( -name *.php -o -name *.cdb ) ! -wholename */languages/messages/* ! -name *.i18n.php ! -name *.alias.php" |
| 19 | + filterParams="-type f \( -name '*.php' -o -name '*.cdb' \) \ |
| 20 | + ! -wholename '*/languages/messages/*' ! -name '*.i18n.php' ! -name '*.alias.php' " |
22 | 21 | fi |
23 | 22 | |
24 | 23 | # Format through AWK to have the path first to improve diffs. |
25 | | -nice -19 find -P $codePath $maxDepth -type f $filterParams \ |
26 | | - -exec stat --printf="%n %a %G %U " {} \; -exec cksum {} \; \ |
| 24 | +eval nice -19 find -P "$codePath $filterParams \ |
| 25 | + -exec /usr/bin/stat --printf=\"%n %a %G %U \" {} \; -exec /usr/bin/cksum {} \;" \ |
27 | 26 | | awk '{print $1, $2, $3, $4, $5}' | sort; |
| 27 | + |