diff options
Diffstat (limited to 'fullpkg')
-rwxr-xr-x | fullpkg | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -30,6 +30,10 @@ source /etc/libretools.conf # TODO # * Check for concurrence +guess_repo() { + basename $(dirname $(pwd)) +} + # Get the queue list from the server get_queue() { rsync -e ssh -aq $PARABOLAHOST:mips64el/queue $queue_file >/dev/null 2>&1 || { @@ -99,8 +103,10 @@ quit() { exit 1 } +repo=${1:-$(guess_repo)} + source PKGBUILD -msg "Building ${pkgbase:-${pkgname[@]}}: $pkgdesc" +msg "Building ${repo:-missing repo}/${pkgbase:-${pkgname[@]}}: $pkgdesc" is_built "${pkgbase:-${pkgname[0]}}>=${pkgver}" && exit 0 @@ -162,7 +168,7 @@ for _dep in ${deps[@]}; do # Enter the work dir and run this command in it pushd $tmp_dir/$_dep >/dev/null - $0 + $0 $_repo [[ $? -ne 0 ]] && { failed=(${failed[@]} $_dep) @@ -212,7 +218,7 @@ case $r in msg "The build was succesful." mipsrelease *.pkg.tar.* - librestage ${1:-$(basename $(dirname $PWD))} + librestage $repo sudo pacman -Sy ;; |