--- pacman-3.5.1/contrib/bacman.in 2011-02-28 17:13:17.000000000 +0000 +++ pacman-3.5.1/contrib/bacman.in 2011-04-08 02:39:19.466669736 +0000 @@ -174,7 +174,7 @@ echo "# $(LC_ALL=C date)" >> .PKGINFO echo "#" >> .PKGINFO -cat "$pkg_dir"/{desc,files,depends} | +cat "$pkg_dir"/{desc,files} | while read i; do if [[ -z "$i" ]]; then continue; @@ -220,14 +220,6 @@ %REPLACES%) echo "replaces = $i" >> .PKGINFO ;; - - # files - %BACKUP%) - # strip the md5sum after the tab - echo "backup = ${i%%$'\t'*}" >> .PKGINFO - ;; - - # depends %DEPENDS%) echo "depend = $i" >> .PKGINFO ;; @@ -240,6 +232,12 @@ %PROVIDES%) echo "provides = $i" >> .PKGINFO ;; + + # files + %BACKUP%) + # strip the md5sum after the tab + echo "backup = ${i%%$'\t'*}" >> .PKGINFO + ;; esac done