summaryrefslogtreecommitdiffstats
path: root/convert-to-any
diff options
context:
space:
mode:
authorAbhishek Dasgupta <abhidg@gmail.com>2009-05-13 21:13:34 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-13 21:36:21 +0200
commit8276b6fefffb9f092ed8713c1cf01220e21c46eb (patch)
treeb9f55abb22d16c45833b9fdf751e5911dd30deda /convert-to-any
parent7bb77c5c993c5bd8d07fb3d737666f9cf6367c29 (diff)
downloaddbscripts-8276b6fefffb9f092ed8713c1cf01220e21c46eb.tar.gz
dbscripts-8276b6fefffb9f092ed8713c1cf01220e21c46eb.tar.xz
convert-to-any: use fakeroot, put .PKGINFO at top
Signed-off-by: Abhishek Dasgupta <abhidg@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'convert-to-any')
-rwxr-xr-x[-rw-r--r--]convert-to-any4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert-to-any b/convert-to-any
index 2d30865..3d55830 100644..100755
--- a/convert-to-any
+++ b/convert-to-any
@@ -57,13 +57,13 @@ pushd "$WORKDIR/build" >/dev/null
# Conversion of i686 package into "any" package.
mkdir -p package
-if ! tar zxf "$pkg" -C package; then
+if ! fakeroot tar 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
-tar czf "$OUTDIR/$newpkgname" * .PKGINFO
+fakeroot tar czf "$OUTDIR/$newpkgname" .PKGINFO *
popd >/dev/null
popd >/dev/null