--nodeps
Specify this option to skip all dependency checks
This commit is contained in:
parent
a517b08c94
commit
395caa566e
10
apt-cyg
10
apt-cyg
|
@ -462,6 +462,7 @@ function apt-install {
|
||||||
mv /etc/setup/installed.db /etc/setup/installed.db-save
|
mv /etc/setup/installed.db /etc/setup/installed.db-save
|
||||||
mv /tmp/awk.$$ /etc/setup/installed.db
|
mv /tmp/awk.$$ /etc/setup/installed.db
|
||||||
|
|
||||||
|
[ -v nodeps ] && continue
|
||||||
# recursively install required packages
|
# recursively install required packages
|
||||||
|
|
||||||
requires=$(awk '$1=="requires", $0=$2' FS=': ' desc)
|
requires=$(awk '$1=="requires", $0=$2' FS=': ' desc)
|
||||||
|
@ -488,7 +489,7 @@ function apt-install {
|
||||||
|
|
||||||
# run all postinstall scripts
|
# run all postinstall scripts
|
||||||
|
|
||||||
(( noscripts )) && continue
|
[ -v noscripts ] && continue
|
||||||
find /etc/postinstall -name '*.sh' | while read script
|
find /etc/postinstall -name '*.sh' | while read script
|
||||||
do
|
do
|
||||||
echo Running $script
|
echo Running $script
|
||||||
|
@ -609,10 +610,15 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# process options
|
# process options
|
||||||
while (( $# ))
|
until [ $# = 0 ]
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
|
--nodeps)
|
||||||
|
nodeps=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
--noscripts)
|
--noscripts)
|
||||||
noscripts=1
|
noscripts=1
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in New Issue