aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-software/gnome-software.post-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnome-software/gnome-software.post-upgrade')
-rw-r--r--community/gnome-software/gnome-software.post-upgrade8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/gnome-software/gnome-software.post-upgrade b/community/gnome-software/gnome-software.post-upgrade
index 40ff5d155e9..879d588b3f6 100644
--- a/community/gnome-software/gnome-software.post-upgrade
+++ b/community/gnome-software/gnome-software.post-upgrade
@@ -1,4 +1,8 @@
#!/bin/sh
-# Can be removed once GNOME 41.3 exists in all stable releases
-rm -f /var/cache/app-info/xmls/org.gnome.Software-Components-*.xml.gz
+# Can be removed once GNOME 42 exists in two subsequent stable releases
+rm -f /var/cache/app-info/xmls/org.gnome.Software-*.xml.gz
+rmdir -p --ignore-fail-on-non-empty /var/cache/app-info/xmls/ || exit 0
+
+# Taken care of by alpine-appstream-downloader
+rm -f /var/cache/swcatalog/xml/org.gnome.Software-*