summaryrefslogtreecommitdiff
path: root/fullpkg-ng
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 15:09:48 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 15:09:48 -0500
commitcf2d9947da7ee62320ea094ae31b1d522adc4d73 (patch)
treee6543a1d923fd3dbc8ba1c3cfd26d0ef3fcefc3e /fullpkg-ng
parentb28e0403d42c1c5da7abde57ad69673140084f0b (diff)
* fixed error
Diffstat (limited to 'fullpkg-ng')
-rwxr-xr-xfullpkg-ng6
1 files 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
}