Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions scripts/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ mkdir -p /tmp/src

cd /tmp/src

if [ -d /tmp/src/.zuul-repos.d ]; then
# Allow for projects to inject their own repo files, which is helpful if
# they have access to a local mirror.
pushd .zuul-repos.d
cp --backup --suffix=.bak *.repo /etc/yum.repos.d
popd
fi

$PKGMGR update -y

function install_bindep {
Expand Down Expand Up @@ -161,6 +169,19 @@ for sibling in ${ZUUL_SIBLINGS:-}; do
done

$PKGMGR clean all

if [ -d /tmp/src/.zuul-repos.d ]; then
# Restore existing yum.repos.d files
pushd .zuul-repos.d
for file in *.repo; do
rm -rf /etc/yum.repos.d/$file
done
popd
pushd /etc/yum.repos.d
find . -type f -name '*.bak' -exec sh -c ' mv {} $(basename {} .bak)' \;
popd
fi

rm -rf /var/cache/{dnf,yum}
rm -rf /var/lib/dnf/history.*
rm -rf /var/log/{dnf.*,hawkey.log}
Expand Down