Finally fix fakeroot on Arch linux, return on errors while processing deps.
This commit is contained in:
parent
2850e6ed79
commit
2ee55de018
|
@ -73,7 +73,7 @@ install_pkg_deps()
|
|||
# Iterate again, this will check if there are more
|
||||
# required deps for current pkg.
|
||||
#
|
||||
install_pkg_deps $j $curpkg
|
||||
install_pkg_deps $j $curpkg || return $?
|
||||
prev_pkg="$j"
|
||||
done
|
||||
|
||||
|
@ -84,10 +84,10 @@ install_pkg_deps()
|
|||
return $?
|
||||
elif [ $? -eq 1 ]; then
|
||||
# Package not found, build from source.
|
||||
install_pkg $curpkgname
|
||||
install_pkg $curpkgname || return $?
|
||||
fi
|
||||
else
|
||||
install_pkg $curpkgname
|
||||
install_pkg $curpkgname || return $?
|
||||
fi
|
||||
[ -n "$prev_pkg" ] && unset prev_pkg
|
||||
}
|
||||
|
@ -178,13 +178,13 @@ install_dependencies_pkg()
|
|||
continue
|
||||
else
|
||||
# package not found, build source.
|
||||
install_pkg $pkgn
|
||||
install_pkg $pkgn || return $?
|
||||
fi
|
||||
else
|
||||
install_pkg $pkgn
|
||||
install_pkg $pkgn || return $?
|
||||
fi
|
||||
else
|
||||
install_pkg_deps "${i}" $pkg
|
||||
install_pkg_deps "${i}" $pkg || return $?
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
|
@ -64,8 +64,7 @@ install_pkg()
|
|||
# Install dependencies required by this package.
|
||||
#
|
||||
if [ -z "$doing_deps" ]; then
|
||||
install_dependencies_pkg $pkg
|
||||
[ $? -ne 0 ] && return $?
|
||||
install_dependencies_pkg $pkg || return $?
|
||||
#
|
||||
# At this point all required deps are installed, and
|
||||
# only remaining is the origin package; install it.
|
||||
|
@ -98,7 +97,7 @@ install_pkg()
|
|||
# Install pkg into destdir.
|
||||
set_build_vars
|
||||
env xbps_machine=${xbps_machine} MASTERDIR=${_MASTERDIR} \
|
||||
dontrm_builddir=${dontrm_builddir} \
|
||||
dontrm_builddir=${dontrm_builddir} wrksrc=${wrksrc} \
|
||||
${fakeroot_cmd} ${fakeroot_cmd_args} \
|
||||
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-doinst-helper \
|
||||
${curpkgn} || return $?
|
||||
|
|
|
@ -111,6 +111,7 @@ setup_tmpl()
|
|||
reset_tmpl_vars
|
||||
. $XBPS_SRCPKGDIR/${pkg}/template
|
||||
prepare_tmpl
|
||||
set_build_vars
|
||||
else
|
||||
msg_error "Cannot find $pkg build template file."
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user