abuild: implement -d for disable dependency checking
This is needed when bootstrapping the system.
This commit is contained in:
parent
cc4f11e002
commit
b1f792b023
|
@ -705,6 +705,7 @@ deptrace() {
|
||||||
# build and install dependencies
|
# build and install dependencies
|
||||||
builddeps() {
|
builddeps() {
|
||||||
local deps alldeps pkg i dir ver missing installed_deps
|
local deps alldeps pkg i dir ver missing installed_deps
|
||||||
|
[ -n "$nodeps" ] && return 0
|
||||||
msg "Analyzing dependencies..."
|
msg "Analyzing dependencies..."
|
||||||
deps="$BUILD_BASE $makedepends"
|
deps="$BUILD_BASE $makedepends"
|
||||||
|
|
||||||
|
@ -914,6 +915,7 @@ usage() {
|
||||||
echo " [-s SRCDEST] [cmd] ..."
|
echo " [-s SRCDEST] [cmd] ..."
|
||||||
echo " ${0##*/} [-c] -n PKGNAME[-PKGVER]"
|
echo " ${0##*/} [-c] -n PKGNAME[-PKGVER]"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
|
echo " -d Disable dependency checking"
|
||||||
echo " -f Force specified cmd, even if they are already done"
|
echo " -f Force specified cmd, even if they are already done"
|
||||||
echo " -h Show this help"
|
echo " -h Show this help"
|
||||||
echo " -i Install PKG after successul build"
|
echo " -i Install PKG after successul build"
|
||||||
|
@ -954,9 +956,10 @@ usage() {
|
||||||
APKBUILD="${APKBUILD:-./APKBUILD}"
|
APKBUILD="${APKBUILD:-./APKBUILD}"
|
||||||
unset force
|
unset force
|
||||||
unset recursive
|
unset recursive
|
||||||
while getopts "cfhi:kin:p:P:qrRs:u" opt; do
|
while getopts "cdfhi:kin:p:P:qrRs:u" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
'c') cpinitd=1;;
|
'c') cpinitd=1;;
|
||||||
|
'd') nodeps=1;;
|
||||||
'f') force=1;;
|
'f') force=1;;
|
||||||
'h') usage;;
|
'h') usage;;
|
||||||
'i') install_after="$install_after $OPTARG";;
|
'i') install_after="$install_after $OPTARG";;
|
||||||
|
|
Loading…
Reference in New Issue