summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.in b/scripts/makepkg.in
index 1a259028..3ac904e9 100644
--- a/scripts/makepkg.in
+++ b/scripts/makepkg.in
@@ -749,7 +749,7 @@ create_package() {
# build a filelist - do this first to keep meta files out of the list
msg2 "$(gettext "Generating .FILELIST file...")"
- tar -cvf /dev/null * | sort >.FILELIST
+ find * 2>/dev/null | sort >.FILELIST
# write the .PKGINFO file
msg2 "$(gettext "Generating .PKGINFO file...")"
@@ -819,7 +819,7 @@ create_package() {
local pkg_file="$PKGDEST/${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}"
comp_files="$comp_files .PKGINFO .FILELIST"
- if ! tar -czf "$pkg_file" $comp_files *; then
+ if ! tar -czf "$pkg_file" $comp_files $(ls); then
error "$(gettext "Failed to create package file.")"
exit 1 # TODO: error code
fi