summaryrefslogtreecommitdiffstats
path: root/layman/dbbase.py
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-10-14 18:03:27 -0700
committerBrian Dolbec <dolsen@gentoo.org>2012-10-14 19:21:23 -0700
commit92a545dc6b64bbebfa9bc4c3788f1ae3db058788 (patch)
tree28ad00e9d3cc9668340b220e7dd8ab06af1ad982 /layman/dbbase.py
parente13bca9defe7d7dce41757cf414c4ad8ac5a7e8c (diff)
downloadlayman-92a545dc6b64bbebfa9bc4c3788f1ae3db058788.tar.gz
layman-92a545dc6b64bbebfa9bc4c3788f1ae3db058788.tar.bz2
layman-92a545dc6b64bbebfa9bc4c3788f1ae3db058788.zip
Add checking for ROOT in the environment on statup, and setting it in the appropriate paths.
Add warnings for not finding the config file and installed db. Fix updaters config file path
Diffstat (limited to 'layman/dbbase.py')
-rw-r--r--layman/dbbase.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/layman/dbbase.py b/layman/dbbase.py
index 461038b..e5c0fd9 100644
--- a/layman/dbbase.py
+++ b/layman/dbbase.py
@@ -93,11 +93,17 @@ class DbBase(object):
self.output.debug('Initializing overlay list handler', 8)
+ path_found = False
for path in self.paths:
if not os.path.exists(path):
continue
self.read_file(path)
+ path_found = True
+
+ if not path_found:
+ self.output.warn("Warning: an installed db file was not found at: %s"
+ % str(self.paths))
def __eq__(self, other):