summaryrefslogtreecommitdiffstats
path: root/convert-to-any
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-05-13 11:06:06 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-13 22:09:41 +0200
commitc076b93fafbf47a85bd063c626621552f364a59d (patch)
treea71efa3f450dfd1fdca1ced0af06003182106ab8 /convert-to-any
parent8276b6fefffb9f092ed8713c1cf01220e21c46eb (diff)
downloaddbscripts-c076b93fafbf47a85bd063c626621552f364a59d.tar.gz
dbscripts-c076b93fafbf47a85bd063c626621552f364a59d.tar.xz
use pkgext defined in makepkg.conf
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'convert-to-any')
-rwxr-xr-xconvert-to-any9
1 files changed, 4 insertions, 5 deletions
diff --git a/convert-to-any b/convert-to-any
index 3d55830..5b72aab 100755
--- a/convert-to-any
+++ b/convert-to-any
@@ -18,9 +18,8 @@ fi
if [ -f /etc/makepkg.conf ]; then
. /etc/makepkg.conf
else
- echo "W: /etc/makepkg.conf does not exist."
- DB_COMPRESSION=gz
- PKGEXT=".pkg.tar.gz"
+ echo "E: /etc/makepkg.conf does not exist."
+ exit 1
fi
cleanup() {
@@ -57,13 +56,13 @@ pushd "$WORKDIR/build" >/dev/null
# Conversion of i686 package into "any" package.
mkdir -p package
-if ! fakeroot tar zxf "$pkg" -C package; then
+if ! fakeroot bsdtar zxf "$pkg" -C package; then
die "convert-to-any: error in extracting $oldpkgname"
fi
sed -i "s/arch = \(i686\|x86_64\)/arch = any/g" package/.PKGINFO
pushd package >/dev/null
-fakeroot tar czf "$OUTDIR/$newpkgname" .PKGINFO *
+fakeroot bsdtar czf "$OUTDIR/$newpkgname" .PKGINFO *
popd >/dev/null
popd >/dev/null