mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
setup: Show and remove conflicts before installation
Warn of installed conflicting packages before installing apps. [sunil: Rename 'advice' to 'action'] [sunil: Action will be string constant, for better API and i18n] [sunil: Don't show conflict warning if action is 'ignore'] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
24f7ffe3cf
commit
4b2162f3fd
3 files changed
+34
-1
No files matched your search
@@ -50,6 +50,17 @@
|
||||
<span class="fa fa-refresh"></span> {% trans "Check again" %}
|
||||
</button>
|
||||
</div>
|
||||
{% elif package_conflicts and package_conflicts_action != 'ignore' %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
{% blocktrans trimmed %}
|
||||
<strong>Conflicting Packages:</strong> Some packages installed on
|
||||
the system conflict with the installation of this app. The following
|
||||
packages will be removed if you proceed:
|
||||
{% endblocktrans %}
|
||||
{% for package in package_conflicts %}
|
||||
{{ package }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<input type="submit" class="btn btn-md btn-primary" name="install"
|
||||
|
||||
Reference in new issue
Block a user