summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtreepkg6
1 files changed, 5 insertions, 1 deletions
diff --git a/treepkg b/treepkg
index e742858..7d210cf 100755
--- a/treepkg
+++ b/treepkg
@@ -117,6 +117,10 @@ CLEANUP=${C:-true}
# Skip BUILDORDER creation and build anything on BUILDDIR
BUILDNOW=${N:-false}
+if [ ! -z "${1}" -a ${DEPTH} -eq 0 ]; then
+ BUILDNOW=true
+fi
+
if ! ${BUILDNOW}; then
# ensure it exists
touch "${BUILDORDER}"
@@ -190,7 +194,7 @@ if [ ${DEPTH} -eq 0 ]; then
# Run build command
pushd "${BUILDDIR}/${_pkg}" >/dev/null
- sudo pacman -Syu
+ sudo pacman -Syu --noconfirm
${FULLBUILDCMD}
# Run local release hook with $1 = $repo