From ca72e2b923fe16ac23172edb8d5459c917a9b727 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Mon, 21 Oct 2019 15:14:32 +0300
Subject: [PATCH] Document dummy backend in macros, warn on dummy fallback

As the dummy backend supports no operations whatsoever, using it as
a fallback if all else fails needs to emit a warning, not debug goo.
---
 lib/backend/dbi.c | 2 +-
 macros.in         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/backend/dbi.c b/lib/backend/dbi.c
index a4a40a846..c7c33c7c6 100644
--- a/lib/backend/dbi.c
+++ b/lib/backend/dbi.c
@@ -84,7 +84,7 @@ dbDetectBackend(rpmdb rdb)
 
     if (rdb->db_ops == NULL) {
 	rdb->db_ops = &dummydb_dbops;
-	rpmlog(RPMLOG_DEBUG, "using dummy database, installs not possible\n");
+	rpmlog(RPMLOG_WARNING, "using dummy database, installs not possible\n");
     }
 
     if (db_backend)
diff --git a/macros.in b/macros.in
index ff9270ac8..4f7efb2ae 100644
--- a/macros.in
+++ b/macros.in
@@ -622,6 +622,7 @@ package or when debugging this package.\
 # bdb Berkeley DB
 # lmdb Lightning Memory-mapped Database
 # ndb new data base format
+# dummy dummy backend (no actual functionality)
 #
 %_db_backend	      bdb
 
-- 
2.27.0

