zoph, wordpress: Add conflicts on libpam-tmpdir

Closes: #2239.

- Adding Conflicts in freedombox Debian package seems to cause
unattended-upgrade to not upgrade the package to next version. This approach
seems be an alternative.

Tests:

- Install libpam-tmpdir. Go to Zoph page, see that conflicts messages is shown.
Install succeeds. libpam-tmpdir is removed.

- Install libpam-tmpdir. Go to WordPress page, see that conflicts messages is
shown. Install succeeds. libpam-tmpdir is removed.

- Remove libpam-tmpdir. Go to Zoph page, see that conflicts message is not
shown. Install succeeds.

- Remove libpam-tmpdir. Go to WordPress page, see that conflicts message is not
shown. Install succeeds.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-12-18 17:30:30 -05:00
1 parent 0b9d567493
commit b056f5829c
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -81,7 +81,9 @@ class WordPressApp(app_module.App):
'php-zip',
# WordPress only supports MySQL/MariaDB as DB
'default-mysql-server',
])
],
conflicts=['libpam-tmpdir'],
conflicts_action=Packages.ConflictsAction.REMOVE)
self.add(packages)
firewall = Firewall('firewall-wordpress', info.name,