File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -743,7 +743,7 @@ PACKAGE_NAME=$(dpkg-deb -f {{deb}} Package)
743
743
PACKAGE_VERSION=$( dpkg-deb -f {{deb}} Version)
744
744
INSTALLED_VERSION=$( dpkg-query --showformat=' ${Version}' --show $PACKAGE_NAME || true)
745
745
if [ " $INSTALLED_VERSION " != " " ] && [ " $INSTALLED_VERSION " != " $PACKAGE_VERSION " ]; then
746
- sudo dpkg --root= $FILESYSTEM_ROOT -i {{deb}}
746
+ install_deb_package {{deb}}
747
747
fi
748
748
749
749
# # SONiC packages may have lower version than Debian offical package, install offical Debian package will break feature
@@ -1129,8 +1129,7 @@ sudo chmod 755 $FILESYSTEM_ROOT/usr/bin/mlnx-fw-upgrade.sh
1129
1129
install_pip_package {{platform_api_py3_wheel_path}}
1130
1130
1131
1131
1132
- sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path /libdashapi_* .deb || \
1133
- sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
1132
+ install_deb_package $debs_path /libdashapi_* .deb
1134
1133
1135
1134
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install xmlstarlet
1136
1135
@@ -1158,7 +1157,7 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
1158
1157
if [ " $INCLUDE_FIPS " == y ]; then
1159
1158
{% if installer_python_debs.strip () -%}
1160
1159
{% for deb in installer_python_debs.strip ().split(' ' ) -%}
1161
- sudo dpkg --root= $FILESYSTEM_ROOT -i {{deb}}
1160
+ install_deb_package {{deb}}
1162
1161
{% endfor %}
1163
1162
{% endif %}
1164
1163
fi
You can’t perform that action at this time.
0 commit comments