summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfullpkg4
-rwxr-xr-xlibremakepkg2
2 files changed, 3 insertions, 3 deletions
diff --git a/fullpkg b/fullpkg
index eaf1c63..1349e9a 100755
--- a/fullpkg
+++ b/fullpkg
@@ -371,7 +371,7 @@ while getopts 'ha:b:cCd:l:nm:r:o' arg; do
usage
exit 1
}
- [ -e ${build_dir}/BUILDORDER ] && {
+ [ ! -r ${build_dir}/BUILDORDER ] && {
error "${build_dir}/BUILDORDER doesn't exist."
exit 1
};;
@@ -454,7 +454,7 @@ find_deps || {
else
rsync -e ssh -aq $PARABOLAHOST:mips64el/ban >/dev/null 2>&1 || {
- warning "Failed to get ban list" && [ -r $ban_file ] && {
+ warning "Failed to get ban list" && [ -r ${ban_file} ] && {
# Use local copy of ban file if it is avaliable and continue.
search=$(cat ${ban_file} | tr "\n" "|")
diff --git a/libremakepkg b/libremakepkg
index 58dc352..2226f81 100755
--- a/libremakepkg
+++ b/libremakepkg
@@ -89,7 +89,7 @@ msg "Creating the package"
makechrootpkg $_CLEAN -r ${CHROOTDIR} -l "${chrootname}" $_PKGINSTALL -- $_MAKEPKG_ARGS
ev=$? # exit value
-[ $ev -ne 0 -a "$use_log" == 'y' -a -e ${CHROOTDIR}/${chrootname}/build/*.log ] && {
+[ "$use_log" == 'y' -a -e ${CHROOTDIR}/${chrootname}/build/*.log ] && {
cp ${CHROOTDIR}/${chrootname}/build/*.log ./
}
exit $ev