summaryrefslogtreecommitdiff
path: root/treepkg
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-04 20:42:38 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-04 20:42:38 -0300
commitb53d6c027ad0a90c676419d2246fa76a7682221a (patch)
tree7dde60984d1b93d8171e16a8853b0251e2bfa19f /treepkg
parentb5c7d749c484eef82315872895d53b5cf7f97f66 (diff)
Pass the build dir as first argument to retake a build
Diffstat (limited to 'treepkg')
-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