Skip to content

Commit

Permalink
Remove compat packages to avoid conflicts on new package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Jan 9, 2024
1 parent d71d3e5 commit e1edc2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions actions/mariadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ def _post_action(self) -> None:
mariadb_repo_id, _1, _2, _3, _4 = [repo for repo in rpm.extract_repodata(repofiles[0])][0]

rpm.remove_packages(rpm.filter_installed_packages(["MariaDB-client",
"MariaDB-client-compat",
"MariaDB-compat",
"MariaDB-common",
"MariaDB-server",
"MariaDB-server-compat",
"MariaDB-shared"]))
rpm.install_packages(["MariaDB-client", "MariaDB-server"], repository=mariadb_repo_id)

Expand All @@ -96,9 +98,11 @@ def _is_required(self) -> bool:

def _prepare_action(self) -> None:
rpm.remove_packages(rpm.filter_installed_packages(["MariaDB-client",
"MariaDB-client-compat",
"MariaDB-compat",
"MariaDB-common",
"MariaDB-server",
"MariaDB-server-compat",
"MariaDB-shared"]))

def _post_action(self) -> None:
Expand All @@ -110,9 +114,11 @@ def _post_action(self) -> None:
os.unlink(repofile)

rpm.remove_packages(rpm.filter_installed_packages(["MariaDB-client",
"MariaDB-client-compat",
"MariaDB-compat",
"MariaDB-common",
"MariaDB-server",
"MariaDB-server-compat",
"MariaDB-shared"]))
rpm.install_packages(["mariadb", "mariadb-server"])

Expand Down

0 comments on commit e1edc2b

Please sign in to comment.