Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. diff --git a/makechrootpkg.in b/makechrootpkg.in
  2. index 81f69fe..d1d2043 100644
  3. --- a/makechrootpkg.in
  4. +++ b/makechrootpkg.in
  5. @@ -267,17 +267,10 @@ download_sources() {
  6. local copydir=$1
  7. local makepkg_user=$2
  8.  
  9. - local builddir
  10. - builddir="$(mktemp -d)"
  11. - chmod 1777 "$builddir"
  12. -
  13. # Ensure sources are downloaded
  14. - sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$builddir" \
  15. - makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o ||
  16. + sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \
  17. + makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o || \
  18. die "Could not download sources."
  19. -
  20. - # Clean up garbage from verifysource
  21. - rm -rf "$builddir"
  22. }
  23.  
  24. # Usage: move_products $copydir $owner
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement