[pacman-dev] [PATCH] Make possible to create an empty package
Hi! This one fixes BR #6818. From 2579bee0eb8b17be8a4a0a946d5fc94c7e5800cb Mon Sep 17 00:00:00 2001 From: Roman Kyrylych <roman@archlinux.org> Date: Mon, 4 Jun 2007 21:30:20 +0300 Subject: [PATCH] Make possible to create an empty package Signed-off-by: Roman Kyrylych <roman@archlinux.org> --- scripts/makepkg.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/makepkg.in b/scripts/makepkg.in index 1a25902..3ac904e 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 -- 1.5.2 -- Roman Kyrylych (Роман Кирилич)
Hi! This one fixes BR #6818. Sorry for previous mail, forgot to add [pacman-dev] prefix, so not sure if it will be processed correctly. From 2579bee0eb8b17be8a4a0a946d5fc94c7e5800cb Mon Sep 17 00:00:00 2001 From: Roman Kyrylych <roman@archlinux.org> Date: Mon, 4 Jun 2007 21:30:20 +0300 Subject: [PATCH] Make possible to create an empty package Signed-off-by: Roman Kyrylych <roman@archlinux.org> --- scripts/makepkg.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/makepkg.in b/scripts/makepkg.in index 1a25902..3ac904e 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 -- 1.5.2 -- Roman Kyrylych (Роман Кирилич)
On 6/5/07, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
Hi!
This one fixes BR #6818.
Anyway you can get your email client to send in plain text instead of base64 encoding? When I try to grab the raw message so I can patch with the git tools, I get this, which is not all that helpful. Content-Type: text/plain; charset="iso-8859-5" Content-Transfer-Encoding: base64 SGkhCgpUaGlzIG9uZSBmaXhlcyBCUiAjNjgxOC4KCkZyb20gMjU3OWJlZTBlYjhiMTdiZThhNGEw YTk0NmQ1ZmM5NGM3ZTU4MDBjYiBNb24gU2VwIDE3IDAwOjAwOjAwIDIwMDEKRnJvbTogUm9tYW4g S3lyeWx5Y2ggPHJvbWFuQGFyY2hsaW51eC5vcmc+CkRhdGU6IE1vbiwgNCBKdW4gMjAwNyAyMToz MDoyMCArMDMwMApTdWJqZWN0OiBbUEFUQ0hdIE1ha2UgcG9zc2libGUgdG8gY3JlYXRlIGFuIGVt cHR5IHBhY2thZ2UKClNpZ25lZC1vZmYtYnk6IFJvbWFuIEt5cnlseWNoIDxyb21hbkBhcmNobGlu dXgub3JnPgotLS0KIHNjcmlwdHMvbWFrZXBrZy5pbiB8ICAgIDQgKystLQogMSBmaWxlcyBjaGFu Z2VkLCAyIGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvc2NyaXB0 cy9tYWtlcGtnLmluIGIvc2NyaXB0cy9tYWtlc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NDdILrY4Njb2OcpCl9fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fCnBhY21hbi1kZXYgbWFpbGluZyBsaXN0CnBhY21h bi1kZXZAYXJjaGxpbnV4Lm9yZwpodHRwOi8vYXJjaGxpbnV4Lm9yZy9tYWlsbWFuL2xpc3RpbmZv L3BhY21hbi1kZXYK
2007/6/8, Dan McGee <dpmcgee@gmail.com>:
On 6/5/07, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
Hi!
This one fixes BR #6818.
Anyway you can get your email client to send in plain text instead of base64 encoding? When I try to grab the raw message so I can patch with the git tools, I get this, which is not all that helpful.
I've sent it through gmail webinterface. Dunno why it does base64 encoding sometimes. :-/ Here is it again: From 2579bee0eb8b17be8a4a0a946d5fc94c7e5800cb Mon Sep 17 00:00:00 2001 From: Roman Kyrylych <roman@archlinux.org> Date: Mon, 4 Jun 2007 21:30:20 +0300 Subject: [PATCH] Make possible to create an empty package Signed-off-by: Roman Kyrylych <roman@archlinux.org> --- scripts/makepkg.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/makepkg.in b/scripts/makepkg.in index 1a25902..3ac904e 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 -- 1.5.2 -- Roman Kyrylych (Роман Кирилич)
2007/6/8, Roman Kyrylych <roman.kyrylych@gmail.com>:
2007/6/8, Dan McGee <dpmcgee@gmail.com>:
On 6/5/07, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
Hi!
This one fixes BR #6818.
Anyway you can get your email client to send in plain text instead of base64 encoding? When I try to grab the raw message so I can patch with the git tools, I get this, which is not all that helpful.
I've sent it through gmail webinterface. Dunno why it does base64 encoding sometimes. :-/ Here is it again:
DAMN! It sent it wrong again! :-( /me wants to kill gmail devs that created such "feature" I've attached it now. Sorry, I'm at work, and my motherboard died this morning, so this is all I can do now. -- Roman Kyrylych (Роман Кирилич)
participants (2)
-
Dan McGee
-
Roman Kyrylych