[why] When install several packages, if one of them is installed failed, should go ahead to install next packages.
[how] Add "--skip-broken" for "yum install" cmd. Add "--fix-missing" for "apt-get install" cmd.
Signed-off-by: Xu Xijian xuxijian@huawei.com --- sparrow/0-package/os/centos | 2 +- sparrow/0-package/os/debian | 2 +- sparrow/0-package/os/openEuler | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/centos b/sparrow/0-package/os/centos index 261592c..4243f99 100755 --- a/sparrow/0-package/os/centos +++ b/sparrow/0-package/os/centos @@ -22,4 +22,4 @@ pkgs=( busybox )
-yum install -y "${pkgs[@]}" +yum install -y --skip-broken "${pkgs[@]}" diff --git a/sparrow/0-package/os/debian b/sparrow/0-package/os/debian index 020c34a..16ef0a9 100755 --- a/sparrow/0-package/os/debian +++ b/sparrow/0-package/os/debian @@ -20,4 +20,4 @@ pkgs=( busybox )
-apt-get install -y "${pkgs[@]}" +apt-get install -y --fix-missing "${pkgs[@]}" diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index 5c64fe8..ba298c8 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -21,7 +21,7 @@ pkgs=( busybox )
-yum install -y "${pkgs[@]}" +yum install -y --skip-broken "${pkgs[@]}"
wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release...