blob: 6f8a3dcb50ab6c2eb18c43f54f3b7649e22fe833 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From 2f7382b35d59fe08034603497e82ffb943fedef1 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 30 Jun 2021 15:31:16 +0200
4Subject: [PATCH] libdnf/dnf-context.cpp: do not try to access BDB database
5
6Upstream-Status: Inappropriate [upstream needs to rework this to support
7sqlite]
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 libdnf/dnf-context.cpp | 14 --------------
11 1 file changed, 14 deletions(-)
12
13diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp
14index 86f71a79..9cdcf769 100644
15--- a/libdnf/dnf-context.cpp
16+++ b/libdnf/dnf-context.cpp
17@@ -2264,20 +2264,6 @@ dnf_context_setup(DnfContext *context,
18 !dnf_context_set_os_release(context, error))
19 return FALSE;
20
21- /* setup a file monitor on the rpmdb, if we're operating on the native / */
22- if (g_strcmp0(priv->install_root, "/") == 0) {
23- rpmdb_path = g_build_filename(priv->install_root, "var/lib/rpm/Packages", NULL);
24- file_rpmdb = g_file_new_for_path(rpmdb_path);
25- priv->monitor_rpmdb = g_file_monitor_file(file_rpmdb,
26- G_FILE_MONITOR_NONE,
27- NULL,
28- error);
29- if (priv->monitor_rpmdb == NULL)
30- return FALSE;
31- g_signal_connect(priv->monitor_rpmdb, "changed",
32- G_CALLBACK(dnf_context_rpmdb_changed_cb), context);
33- }
34-
35 /* copy any vendor distributed cached metadata */
36 if (!dnf_context_copy_vendor_cache(context, error))
37 return FALSE;