From 8fe650ce87f6a6f9be140025278c17e79e5d4cae Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Tue, 25 Apr 2017 00:07:00 +0100 Subject: [PATCH] Update the system before running checks --- lib/checks/check.sh | 1 + lib/core/build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/checks/check.sh b/lib/checks/check.sh index 7c0bd6e..e6cc2e3 100755 --- a/lib/checks/check.sh +++ b/lib/checks/check.sh @@ -33,6 +33,7 @@ info "Validating JuNest located in ${JUNEST_HOME}..." info "Initial JuNest setup..." echo "Server = ${DEFAULT_MIRROR}" >> /etc/pacman.d/mirrorlist pacman --noconfirm -Syy +pacman --noconfirm -S grep coreutils pacman --noconfirm -S $(pacman -Sg base-devel | cut -d ' ' -f 2 | grep -v sudo) info "Checking essential executables work..." diff --git a/lib/core/build.sh b/lib/core/build.sh index 1a3a9d2..72bfda3 100644 --- a/lib/core/build.sh +++ b/lib/core/build.sh @@ -23,7 +23,7 @@ function _install_from_aur(){ builtin cd ${maindir}/packages/${pkgname} $CURL "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=${pkgname}" [ -z "${installname}" ] || $CURL "https://aur.archlinux.org/cgit/aur.git/plain/${installname}?h=${pkgname}" - makepkg -sfc + makepkg -sfcd sudo pacman --noconfirm --root ${maindir}/root -U ${pkgname}*.pkg.tar.xz }