bullseye->bookworm: dirty hack to explicitly remove rspamd because it's causing too many issues in dependency resolution idk

This commit is contained in:
Alexandre Aubin 2024-07-06 00:32:06 +02:00
parent 90d4cd99b9
commit 2763e04012

View file

@ -177,10 +177,17 @@ class MyMigration(Migration):
apps_packages = self.get_apps_equivs_packages()
aptitude_with_progress_bar(f"hold yunohost moulinette ssowat yunohost-admin {' '.join(apps_packages)}")
aptitude_with_progress_bar("upgrade cron --show-why -y -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold'")
# Dirty hack to be able to remove rspamd because it's causing too many issues due to libluajit ...
command = (
f"sed -i /var/lib/dpkg/status -e 's@rspamd, @@g'"
)
logger.debug(f"Running: {command}")
os.system(command)
aptitude_with_progress_bar("upgrade cron rspamd- libluajit-5.1-2- --show-why -y -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold'")
# FIXME : find a way to simulate and validate the upgrade first
aptitude_with_progress_bar("full-upgrade --show-why -y -o Dpkg::Options::='--force-confold'")
aptitude_with_progress_bar("full-upgrade --show-why -y -o Dpkg::Options::='--force-confold' <<< 'y\ny\ny'")
# Force regenconf of nsswitch because for some reason
# /etc/nsswitch.conf is reset despite the --force-confold? It's a
@ -215,8 +222,7 @@ class MyMigration(Migration):
aptitude_with_progress_bar(f"unhold yunohost moulinette ssowat yunohost-admin {' '.join(apps_packages)}")
# FIXME : find a way to simulate and validate the upgrade first
# FIXME : why were libluajit needed in the first place ?
aptitude_with_progress_bar("full-upgrade --show-why yunohost yunohost-admin moulinette ssowat libluajit-5.1-2- libluajit-5.1-common- -y -o Dpkg::Options::='--force-confold'")
aptitude_with_progress_bar("full-upgrade --show-why yunohost yunohost-admin moulinette ssowat -y -o Dpkg::Options::='--force-confold'")
#cmd = "LC_ALL=C"
#cmd += " DEBIAN_FRONTEND=noninteractive"