File git-22-f5e90d70d119b6aa12d019947029f9337aec378d.patch of Package aaa_base.17502
From f5e90d70d119b6aa12d019947029f9337aec378d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=BCdiger=20Oertel?= <ro@suse.de>
Date: Wed, 8 Jul 2020 11:57:32 +0200
Subject: [PATCH] check for Packages.db and use this instead of Packages
if it exists since rpm has switched the database format
diff --git a/files/usr/lib/base-scripts/backup-rpmdb b/files/usr/lib/base-scripts/backup-rpmdb
index a0425c4..423b703 100755
--- a/files/usr/lib/base-scripts/backup-rpmdb
+++ b/files/usr/lib/base-scripts/backup-rpmdb
@@ -27,7 +27,9 @@ fi
#
#
PACKAGEDBFILE=packages.rpm
-if test -e ${RPMDB_PATH}/Packages ; then
+if test -e ${RPMDB_PATH}/Packages.db ; then
+ PACKAGEDBFILE=Packages.db
+elif test -e ${RPMDB_PATH}/Packages ; then
PACKAGEDBFILE=Packages
fi
#