packages: Button to refresh package lists

- This is a fallback solution to manually refresh package lists on AWS images
  since they come with no apt package lists.
- This can also be occasionally useful for people running the testing
  distribution where packages might be frequently added and removed.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-07-02 19:30:13 -04:00
1 parent 76185484d7
commit 45138fcdf0
3 files changed
+38 -15

No files matched your search

+5 -1
View File
@@ -77,10 +77,13 @@
{% blocktrans trimmed %}
This application is currently not available in your distribution.
{% endblocktrans %}
<button type="submit" class="btn btn-default btn-sm" name="refresh-packages">
<span class="glyphicon glyphicon-refresh"></span> Check again
</button>
</div>
{% endif %}
<input type="submit" class="btn btn-md btn-primary"
<input type="submit" class="btn btn-md btn-primary" name="install"
{% if package_manager_is_busy or setup_helper.has_unavailable_packages %}
disabled="disabled"
{% endif %}
@@ -92,6 +95,7 @@
</form>
{% else %}
{% if setup_helper.current_operation.step == 'pre' %}