mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
bullseye->bookworm: dirty hack to explicitly remove rspamd because it's causing too many issues in dependency resolution idk
This commit is contained in:
parent
90d4cd99b9
commit
2763e04012
1 changed files with 10 additions and 4 deletions
|
@ -177,10 +177,17 @@ class MyMigration(Migration):
|
||||||
apps_packages = self.get_apps_equivs_packages()
|
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(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
|
# 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
|
# Force regenconf of nsswitch because for some reason
|
||||||
# /etc/nsswitch.conf is reset despite the --force-confold? It's a
|
# /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)}")
|
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 : 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 -y -o Dpkg::Options::='--force-confold'")
|
||||||
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'")
|
|
||||||
|
|
||||||
#cmd = "LC_ALL=C"
|
#cmd = "LC_ALL=C"
|
||||||
#cmd += " DEBIAN_FRONTEND=noninteractive"
|
#cmd += " DEBIAN_FRONTEND=noninteractive"
|
||||||
|
|
Loading…
Add table
Reference in a new issue