From 430a19c604e474e90451e6421448a04abe348e6d Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Sat, 9 Jun 2007 12:26:43 -0400 Subject: makepkg: Make it possible to create an empty package Signed-off-by: Roman Kyrylych Signed-off-by: Dan McGee --- scripts/makepkg.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2