From 0e16f57e37751145616afedce15ad6773c69203f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 31 Oct 2020 22:55:54 +0100 Subject: [PATCH] apt: sort packages for update notifcation mail Signed-off-by: Thomas Lamprecht --- src/api2/node/apt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api2/node/apt.rs b/src/api2/node/apt.rs index 9beaf024..05c6b7ee 100644 --- a/src/api2/node/apt.rs +++ b/src/api2/node/apt.rs @@ -143,6 +143,7 @@ pub fn apt_update_database( } } if !to_notify.is_empty() { + to_notify.sort_unstable_by_key(|k| &k.package); crate::server::send_updates_available(&to_notify)?; } cache.notified = Some(notified);