apt: sort packages for update notifcation mail

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-31 22:55:54 +01:00
parent bc00289bce
commit 0e16f57e37

View File

@ -143,6 +143,7 @@ pub fn apt_update_database(
} }
} }
if !to_notify.is_empty() { if !to_notify.is_empty() {
to_notify.sort_unstable_by_key(|k| &k.package);
crate::server::send_updates_available(&to_notify)?; crate::server::send_updates_available(&to_notify)?;
} }
cache.notified = Some(notified); cache.notified = Some(notified);