Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/makechrootpkg.in b/makechrootpkg.in
- index 81f69fe..d1d2043 100644
- --- a/makechrootpkg.in
- +++ b/makechrootpkg.in
- @@ -267,17 +267,10 @@ download_sources() {
- local copydir=$1
- local makepkg_user=$2
- - local builddir
- - builddir="$(mktemp -d)"
- - chmod 1777 "$builddir"
- -
- # Ensure sources are downloaded
- - sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$builddir" \
- - makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o ||
- + sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \
- + makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o || \
- die "Could not download sources."
- -
- - # Clean up garbage from verifysource
- - rm -rf "$builddir"
- }
- # Usage: move_products $copydir $owner
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement