* Tue Apr 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-11.sme

- fix debuglevel=-2 not allowed [SME: 12637]
- force modules needed for core [SME: 12618]
  php:remi-8.3 perl:5.26 python36:3.6 mariadb:10.5
This commit is contained in:
Jean-Philippe Pialasse 2024-04-23 12:18:22 -04:00
parent 4adf87588b
commit 6e69a3f6e6
5 changed files with 33 additions and 2 deletions

View File

@ -31,6 +31,8 @@ event_link("systemd-default", $event, "88");
templates2events("/etc/rsyslog.conf",$event); templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
event_link("dnf_modules", 'post-install', "70");
#-------------------------------------------------- #--------------------------------------------------
# functions for manager panel # functions for manager panel
#-------------------------------------------------- #--------------------------------------------------

View File

@ -0,0 +1,14 @@
#!/usr/bin/python3
import dnf
base = dnf.Base()
base.read_all_repos()
base.fill_sack()
module_base = dnf.module.module_base.ModuleBase(base)
module_base.switch_to(['php:remi-8.3'])
module_base.switch_to(['perl:5.26'])
module_base.switch_to(['python36:3.6'])
module_base.switch_to(['mariadb:10.5'])
base.do_transaction()

View File

@ -5,7 +5,7 @@
# -4: critical # -4: critical
# -3: critical+errors # -3: critical+errors
# -2: critical+errors+warnings (default) # -2: critical+errors+warnings (default)
debuglevel = -{ $dnf{Debug} || '2' } debuglevel = { $dnf{Debug} || '2' }
# Uncomment to auto-import new gpg keys (dangerous) # Uncomment to auto-import new gpg keys (dangerous)
# assumeyes = True # assumeyes = True

View File

@ -122,9 +122,19 @@ class SMEServer(dnf.Plugin):
global ourfile global ourfile
ourfile = True ourfile = True
self.report_yum_status('sack') self.report_yum_status('sack')
module_base = dnf.module.module_base.ModuleBase(self.base)
module_base.switch_to(['php:remi-8.3'])
module_base.switch_to(['perl:5.26'])
module_base.switch_to(['python36:3.6'])
module_base.switch_to(['mariadb:10.5'])
def resolved(self): def resolved(self):
self.report_yum_status('resolved') self.report_yum_status('resolved')
module_base = dnf.module.module_base.ModuleBase(self.base)
module_base.switch_to(['php:remi-8.3'])
module_base.switch_to(['perl:5.26'])
module_base.switch_to(['python36:3.6'])
module_base.switch_to(['mariadb:10.5'])
#2 PKG_DOWNGRADE = dnf.transaction.PKG_DOWNGRADE # :api #2 PKG_DOWNGRADE = dnf.transaction.PKG_DOWNGRADE # :api
#1 PKG_INSTALL = dnf.transaction.PKG_INSTALL # :api #1 PKG_INSTALL = dnf.transaction.PKG_INSTALL # :api

View File

@ -2,7 +2,7 @@
Summary: Koozali SME Server rpm updater Summary: Koozali SME Server rpm updater
Name: %{name} Name: %{name}
%define version 11.0.0 %define version 11.0.0
%define release 10 %define release 11
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
@ -68,6 +68,11 @@ mkdir -p root/etc/yum.smerepos.d
%changelog %changelog
* Tue Apr 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-11.sme
- fix debuglevel=-2 not allowed [SME: 12637]
- force modules needed for core [SME: 12618]
php:remi-8.3 perl:5.26 python36:3.6 mariadb:10.5
* Thu Apr 18 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-10.sme * Thu Apr 18 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-10.sme
- fix RuntimeError: dictionary changed size during iteration [SME: 12633] - fix RuntimeError: dictionary changed size during iteration [SME: 12633]