From 4f27a51a8baf15c1e37e5e85d6ec074b43b70b6c Mon Sep 17 00:00:00 2001 From: langfingaz Date: Sun, 25 Apr 2021 18:06:00 +0200 Subject: [PATCH] fix tar colon --- pkg/de-p1st-repo/PKGBUILD | 2 +- pkg/de-p1st-repo/arch-repo-receive-new.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/de-p1st-repo/PKGBUILD b/pkg/de-p1st-repo/PKGBUILD index 1b8c5fb..e2b883d 100644 --- a/pkg/de-p1st-repo/PKGBUILD +++ b/pkg/de-p1st-repo/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=repo _reponame=arch-pkg pkgname="de-p1st-$_pkgname" -pkgver=0.0.15 +pkgver=0.0.16 pkgrel=1 pkgdesc="Bash script to manage remote Arch Linux repository" arch=('any') diff --git a/pkg/de-p1st-repo/arch-repo-receive-new.sh b/pkg/de-p1st-repo/arch-repo-receive-new.sh index c5b8513..05b66df 100644 --- a/pkg/de-p1st-repo/arch-repo-receive-new.sh +++ b/pkg/de-p1st-repo/arch-repo-receive-new.sh @@ -82,9 +82,9 @@ function get_pkginfo(){ # return: 0 on success if endswith "$1" ".pkg.tar.xz"; then - PKGINFO=$(tar -xf "$1" -O .PKGINFO) || { echo "tar failed"; return 1; } + PKGINFO=$(tar -xf "$1" -O .PKGINFO --force-local) || { echo "tar failed"; return 1; } elif endswith "$1" ".pkg.tar.zst"; then - PKGINFO=$(tar -I zstd -xf "$1" -O .PKGINFO) || { echo "tar failed"; return 1; } + PKGINFO=$(tar -I zstd -xf "$1" -O .PKGINFO --force-local) || { echo "tar failed"; return 1; } else echo "$1 does not seem to be a package!" return 1