[arch-dev-public] [PATCH 1/2] Be less generic with package extension
Dan McGee
dpmcgee at gmail.com
Wed Mar 16 21:02:24 EDT 2011
On Sat, Mar 12, 2011 at 9:24 PM, Allan McRae <allan at archlinux.org> wrote:
> Arch only uses .gz and .xz packages so look for .pkg.tar.?z. This
> prevents matching potential detached signature files.
>
> Signed-off-by: Allan McRae <allan at archlinux.org>
Signed-off-by: Dan McGee <dan at archlinux.org>
And might as well patch this one on right away, it has no ill effects.
> ---
> commitpkg | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/commitpkg b/commitpkg
> index ab57a61..390f99e 100755
> --- a/commitpkg
> +++ b/commitpkg
> @@ -108,8 +108,8 @@ echo 'done'
>
> for _arch in ${arch[@]}; do
> for _pkgname in ${pkgname[@]}; do
> - pkgfile=$(getpkgfile "$_pkgname-$pkgver-$pkgrel-${_arch}".pkg.tar.* 2>/dev/null)
> - pkgdestfile=$(getpkgfile "$PKGDEST/$_pkgname-$pkgver-$pkgrel-${_arch}".pkg.tar.* 2>/dev/null)
> + pkgfile=$(getpkgfile "$_pkgname-$pkgver-$pkgrel-${_arch}".pkg.tar.?z 2>/dev/null)
> + pkgdestfile=$(getpkgfile "$PKGDEST/$_pkgname-$pkgver-$pkgrel-${_arch}".pkg.tar.?z 2>/dev/null)
>
> if [ ! -f "$pkgfile" -a -f "$pkgdestfile" ]; then
> pkgfile="$pkgdestfile"
> --
> 1.7.4.1
>
>
More information about the arch-dev-public
mailing list