test list_package_upgrade

main
vitrinekast 9 months ago
parent a20e1f3304
commit 9feac31ddf

@ -76,9 +76,9 @@ output = template.render(
# users_created_today=users_created_today,
users_created_today=fallback,
since_last_boot=since_last_boot,
# list_package_installs=list_package_installs,
list_package_installs = [],
list_package_upgrade=list_package_upgrade,
list_package_installs=list_package_installs,
# list_package_upgrade=list_package_upgrade,
list_package_upgrade=fallback,
list_package_remove=list_package_remove,
device_info=device_info,
days_since_last_boot = time_since_last_boot.days,

@ -148,22 +148,20 @@ user_deleted : {{ user_deleted }}
{{ log_output(list_package_installs) }}
{% if list_package_installs|length < 0 %} <mark>
{% if list_package_installs|length < 1 %}
<mark>
Today no new packages were installed...
</mark>
{% endif %}
{% if list_package_upgrade|length > 0 %}
<p><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</p>
<b>Something here in the if statement is not working</b>
<mark>
Out of the installed packages, these ones were upgraded:
</mark>
<ul>
{% for item in list_package_upgrade %}
<li>{{ item }}</li>
{% endfor %}
</ul>
{{ log_output(list_package_upgrade) }}
<mark>
Packages are upgraded to fix Previous bugs they had, or allow new options for usage they did not have prior.
</mark>

Loading…
Cancel
Save