diff -rN -u old-pacman/scripts/makepkg new-pacman/scripts/makepkg --- old-pacman/scripts/makepkg 2005-12-26 12:20:50.000000000 +0100 +++ new-pacman/scripts/makepkg 2005-12-26 12:20:51.000000000 +0100 @@ -642,6 +642,10 @@ if [ ! -e Changelog ] || [ `stat -c %Y Changelog` -lt `stat -c %Y $BUILDSCRIPT` ]; then msg "Generating the Changelog..." darcs changes $BUILDSCRIPT |sed "s|\(.*\)source/\(.*\)/FrugalBuild\(.*\)|\1\2\3|;/Can't find changes prior to:/,\$d" >Changelog + if [ "`id -u`" = "0" ]; then + chown `stat -c %U:%G FrugalBuild` \ + Changelog + fi fi fi # Build chroot environment if necessary.