From cf2d9947da7ee62320ea094ae31b1d522adc4d73 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernandez Date: Thu, 26 May 2011 15:09:48 -0500 Subject: * fixed error --- fullpkg-ng | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fullpkg-ng b/fullpkg-ng index 831c743..0547305 100755 --- a/fullpkg-ng +++ b/fullpkg-ng @@ -173,7 +173,7 @@ function find_deps { } function _pkg_build () { - cd ${build_dir} > /dev/null + pushd ${build_dir} > /dev/null # Exit loop on Ctrl+C trap "break" INT # Remove from queue package being built on error @@ -239,7 +239,7 @@ function _pkg_build () { error "Those packages couldn't be staged because of missing reponame:" plain "$(cat $build_dir/log | grep "unstaged:" | cut -d: -f2)" } - + popd > /dev/null } ## END FUNCTIONS ## @@ -293,7 +293,7 @@ buildorder=$build_dir/BUILDORDER ## if $level = 20 there is highly likely there are circular deps [ $level -eq $max_level -o $level -gt $max_level ] && exit 20 # Build only -[ $level -eq 0 -a $build_only='y' ] && { +[ $level -eq 0 -a $build_only == 'y' ] && { _pkg_build exit 0 } -- cgit v1.2.3-54-g00ecf