Core 168: Remove pakfire metadata for krb5 and libtiff.

Message ID 20220515161019.3694147-1-stefan.schantl@ipfire.org
State Accepted
Commit b7273366c41cdf63b1ed58cef53086bc871bac42
Headers
Series Core 168: Remove pakfire metadata for krb5 and libtiff. |

Commit Message

Stefan Schantl May 15, 2022, 4:10 p.m. UTC
  Both packages have become part of the core system, so these files
are not longer needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 config/rootfiles/core/168/update.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
  

Patch

diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh
index e11e08b7f..283cb1098 100644
--- a/config/rootfiles/core/168/update.sh
+++ b/config/rootfiles/core/168/update.sh
@@ -133,6 +133,22 @@  if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
        /etc/init.d/ipsec start
 fi
 
+# krb5 is now part of the core system, remove Pakfire metadata for it
+if [ -e "/opt/pakfire/db/installed/meta-krb5" ] && [ -e "/opt/pakfire/db/meta/meta-krb5" ]; then
+	rm -vf \
+		/opt/pakfire/db/installed/meta-krb5 \
+		/opt/pakfire/db/meta/meta-krb5 \
+		/opt/pakfire/db/rootfiles/krb5
+fi
+
+# libtiff is now part of the core system, remove Pakfire metadata for it
+if [ -e "/opt/pakfire/db/installed/meta-libtiff" ] && [ -e "/opt/pakfire/db/meta/meta-libtiff" ]; then
+	rm -vf \
+		/opt/pakfire/db/installed/meta-libtiff \
+		/opt/pakfire/db/meta/meta-libtiff \
+		/opt/pakfire/db/rootfiles/libtiff
+fi
+
 # This update needs a reboot...
 touch /var/run/need_reboot