apt: sort packages for update notifcation mail
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bc00289bce
commit
0e16f57e37
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user