turn off bootstrap image

This commit is contained in:
Louis Abel 2023-11-11 07:10:40 -07:00
parent ccae1045b3
commit 338f53c30a
Signed by: label
GPG Key ID: B37E62D143879B36
4 changed files with 45 additions and 0 deletions

View File

@ -9,6 +9,7 @@ config_opts['releasever'] = '{{ major }}'
config_opts['package_manager'] = '{{ pkgmanager|default("dnf") }}'
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
# config_opts['bootstrap_image'] = 'quay.io/{{ shortname|lower }}/{{ shortname|lower }}:{{ major }}'
config_opts['use_bootstrap_image'] = False
# If compose is local, the bind mounts will be here
{% if compose_dir_is_here %}

View File

@ -0,0 +1,29 @@
#!/bin/bash
if [ -f /tmp/old_newer ]; then
/bin/rm /tmp/old_newer
fi
if [ -f /tmp/new_newer ]; then
/bin/rm /tmp/new_newer
fi
for x in $(cat /tmp/endgame); do
VER1_NAME=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\1/')
VER1_EPO=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/' | cut -d':' -f1)
VER1_VER=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/')
VER1_REL=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\3/')
VER2_NAME=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\1/')
VER2_EPO=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/' | cut -d':' -f1)
VER2_VER=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/')
VER2_REL=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\3/')
VER1=$(echo ${x} | cut -d'|' -f 1)
VER2=$(echo ${x} | cut -d'|' -f 2)
rpmdev-vercmp ${VER1_EPO} ${VER1_VER} ${VER1_REL} ${VER2_EPO} ${VER2_VER} ${VER2_REL} 2>&1 > /dev/null
ret_val=$?
if [[ "$ret_val" -eq "11" ]]; then
echo ${VER1} >> /tmp/old_newer
fi
if [[ "$ret_val" -eq "12" ]]; then
echo ${VER2} >> /tmp/new_newer
fi
done
echo "Files generated: /tmp/old_newer /tmp/new_newer"

View File

@ -0,0 +1,5 @@
#!/bin/bash
diff -y /tmp/list_a /tmp/list_b | grep '|' > /tmp/diffs
sed -e 's/\t//g' -e 's/ //g' /tmp/diffs > /tmp/endgame
echo "Cleaned table in /tmp/endgame"

View File

@ -0,0 +1,10 @@
#!/bin/bash
OLD_REPO="https://yumrepofs.build.resf.org/v1/projects/dff20351-7d36-4f7c-9eea-7f039f5026d0/repo/all/src"
NEW_REPO="https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/src"
dnf repoquery --repofrompath=p,${OLD_REPO} --disablerepo=* --enablerepo=p -q -a --qf '%{NAME}-%{EPOCH}:%{VERSION}-%{RELEASE}' > /tmp/list_a
dnf repoquery --repofrompath=q,${NEW_REPO} --disablerepo=* --enablerepo=q -q -a --qf '%{NAME}-%{EPOCH}:%{VERSION}-%{RELEASE}' > /tmp/list_b
echo "Please manually compare to check for brand new or obsoleted packages"