Blame SOURCES/0002-default_dbroot.patch

2467fa
diff --git a/rtslib/root.py b/rtslib/root.py
2467fa
index b83d7ee..49c4dfc 100644
2467fa
--- a/rtslib/root.py
2467fa
+++ b/rtslib/root.py
2467fa
@@ -166,13 +166,13 @@ class RTSRoot(CFSNode):
2467fa
             self._dbroot = self._default_dbroot
2467fa
             return
2467fa
         self._dbroot = fread(dbroot_path)
2467fa
-        if self._dbroot != self._preferred_dbroot:
2467fa
+        if self._dbroot != self._default_dbroot:
2467fa
             try:
2467fa
-                fwrite(dbroot_path, self._preferred_dbroot+"\n")
2467fa
+                fwrite(dbroot_path, self._default_dbroot+"\n")
2467fa
             except:
2467fa
-                if not os.path.isdir(self._preferred_dbroot):
2467fa
+                if not os.path.isdir(self._default_dbroot):
2467fa
                     raise RTSLibError("Cannot set dbroot to {}. Please check if this directory exists."
2467fa
-                                      .format(self._preferred_dbroot))
2467fa
+                                      .format(self._default_dbroot))
2467fa
             self._dbroot = fread(dbroot_path)
2467fa
 
2467fa
     def _get_dbroot(self):