summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-01-23 18:36:43 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-01-23 23:11:38 +0100
commit3078cb535c5d64da080ebb922ea437e6062efa6e (patch)
tree92b680e340bbbb49ed97e0eea2c32a6ee7f1b85b
parent484d36e931666cd149212abc00fafd8f55b79c32 (diff)
downloaddevtools-3078cb535c5d64da080ebb922ea437e6062efa6e.tar.gz
devtools-3078cb535c5d64da080ebb922ea437e6062efa6e.tar.xz
Minor pathing cleanups
Reported-by: Jaroslaw Swierczynski <swiergot@juvepoland.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xmakechrootpkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 120e70a..e4abdc3 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -13,7 +13,7 @@ RUN=""
MAKEPKG_ARGS="-s"
REPACK=""
WORKDIR=$PWD
-clean_first=""
+clean_first="0"
chrootdir="$CHROOT_SHELL"
@@ -146,6 +146,8 @@ if ! grep "SRCDEST=/srcdest" "$uniondir/etc/makepkg.conf" >/dev/null 2>&1; then
fi
chown -R nobody "$uniondir/build"
+chown -R nobody "$uniondir/srcdest"
+chown -R nobody "$uniondir/pkgdest"
# Copy PKGBUILD and sources
source PKGBUILD
@@ -153,7 +155,7 @@ cp PKGBUILD "$uniondir/build/"
for f in ${source[@]}; do
basef=$(basename $f)
if [ -f "$basef" ]; then
- cp "$basef" "$uniondir/build/"
+ cp "$basef" "$uniondir/srcdest/"
fi
done
if [ "$install" != "" -a -f "$install" ]; then