Install the latest version of the sonic build hooks in slave container (#6348)

This commit is contained in:
xumia 2021-01-05 19:05:13 +08:00 committed by Guohan Lu
parent d4f3318337
commit a79eb88052
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@ SLAVE_DIR=$1
ARCH=$2
DISTRO=$3
# Install the latest debian package sonic-build-hooks in the slave container
sudo dpkg -i --force-overwrite $SLAVE_DIR/buildinfo/sonic-build-hooks_*.deb > /dev/null
# Enable the build hooks
symlink_build_hooks

View File

@ -190,6 +190,8 @@ class VersionModule:
if ctype not in ctype_components:
ctype_components[ctype] = []
for components in ctype_components.values():
if len(components) == 0:
continue
config_component = self._get_config_for_ctype(components, dist, arch)
config_components.append(config_component)
config_module = VersionModule(self.name, config_components)