Convert messages about missing portage tree to debug level
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Dec 2007 05:38:10 +0000 (05:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Dec 2007 05:38:10 +0000 (05:38 -0000)
warnings since quite often it's possible to function without
a portage tree now.

svn path=/main/trunk/; revision=8974

pym/portage/__init__.py

index 3bcba4d6fdb15c578e0167bca3b090eca1e324dd..1d6a43c545c3d3d700cd54609627667d1e7e6b15 100644 (file)
@@ -1662,7 +1662,8 @@ class config(object):
                groups = self["ACCEPT_KEYWORDS"].split()
                archlist = self.archlist()
                if not archlist:
-                       writemsg("--- 'profiles/arch.list' is empty or not available. Empty portage tree?\n")
+                       writemsg("--- 'profiles/arch.list' is empty or " + \
+                               "not available. Empty portage tree?\n", noiselevel=1)
                else:
                        for group in groups:
                                if group not in archlist and \
@@ -6012,7 +6013,8 @@ def _global_updates(trees, prev_mtimes):
                else:
                        update_data = grab_updates(updpath, prev_mtimes)
        except portage.exception.DirectoryNotFound:
-               writemsg("--- 'profiles/updates' is empty or not available. Empty portage tree?\n")
+               writemsg("--- 'profiles/updates' is empty or " + \
+                       "not available. Empty portage tree?\n", noiselevel=1)
                return
        myupd = None
        if len(update_data) > 0: