summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-03-06 22:00:45 +0200
committerTimo Teräs <timo.teras@iki.fi>2023-03-06 22:00:45 +0200
commit337734941831dae9a6aa441e38611c43a5fd72c0 (patch)
tree105cb1fe955a6d87061ad7a0c89fff333ce71266 /src/package.c
parent42141acc64f4e3be596a6a4a239aba4a78420588 (diff)
downloadapk-tools-337734941831dae9a6aa441e38611c43a5fd72c0.tar.gz
apk-tools-337734941831dae9a6aa441e38611c43a5fd72c0.tar.bz2
apk-tools-337734941831dae9a6aa441e38611c43a5fd72c0.tar.xz
apk-tools-337734941831dae9a6aa441e38611c43a5fd72c0.zip
db, info: sort installed package based data by package name
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/package.c b/src/package.c
index 7fe2672..ca60ccb 100644
--- a/src/package.c
+++ b/src/package.c
@@ -84,6 +84,7 @@ struct apk_installed_package *apk_pkg_install(struct apk_database *db,
/* Overlay override information resides in a nameless package */
if (pkg->name != NULL) {
+ db->sorted_installed_packages = 0;
db->installed.stats.packages++;
db->installed.stats.bytes += pkg->installed_size;
list_add_tail(&ipkg->installed_pkgs_list,