diff -uprN pacman-lib.orig/scripts/makepkg pacman-lib/scripts/makepkg --- pacman-lib.orig/scripts/makepkg 2007-04-11 19:41:29.000000000 +0300 +++ pacman-lib/scripts/makepkg 2007-04-15 13:01:17.000000000 +0300 @@ -996,7 +996,7 @@ size=$(du -cb "$startdir/pkg" | tail -n # build a filelist - do this first to keep meta files out of the list msg "Generating .FILELIST file..." cd "$startdir/pkg" -tar cvf /dev/null * | sort >.FILELIST +find * 2>/dev/null | sort >.FILELIST # write the .PKGINFO file msg "Generating .PKGINFO file..." @@ -1066,7 +1066,7 @@ pkg_file="$PKGDEST/$pkgname-$pkgver-$pkg comp_files=".PKGINFO .FILELIST ${install:+.INSTALL}" [ $have_changelog -eq 1 ] && comp_files=".CHANGELOG $comp_files" -if ! tar czf $pkg_file $comp_files *; then +if ! tar czf $pkg_file $comp_files $(find * -false -name $comp_files 2>/dev/null); then error "Failed to create package file." exit 1 fi