diff options
author | Roman Kyrylych <roman@archlinux.org> | 2007-06-09 12:26:43 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-09 12:26:43 -0400 |
commit | 430a19c604e474e90451e6421448a04abe348e6d (patch) | |
tree | 61282da434faf1540716ad70fb8ccfe4377b7dd7 /scripts | |
parent | 564d779c2ccad4883abd002421045884444576c7 (diff) |
makepkg: Make it possible to create an empty package
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.in | 4 |
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 |