UseManager: make warnings show even with --quiet
authorZac Medico <zmedico@gentoo.org>
Sat, 27 Nov 2010 07:42:12 +0000 (23:42 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 27 Nov 2010 07:44:50 +0000 (23:44 -0800)
pym/portage/package/ebuild/_config/UseManager.py

index 32157ee7d2ca914d566202c8c3a38be591d77e14..735ee59fa516d8c19c8aabe28a397abf096dca16 100644 (file)
@@ -73,7 +73,8 @@ class UseManager(object):
                                else:
                                        useflag = prefixed_useflag
                                if useflag_re.match(useflag) is None:
-                                       writemsg(_("--- Invalid USE flag in '%s': '%s'\n") % (path, prefixed_useflag))
+                                       writemsg(_("--- Invalid USE flag in '%s': '%s'\n") % \
+                                               (path, prefixed_useflag), noiselevel=-1)
                                else:
                                        profile_lines.append(prefixed_useflag)
                        ret.append(tuple(profile_lines))
@@ -96,7 +97,8 @@ class UseManager(object):
                                        else:
                                                useflag = prefixed_useflag
                                        if useflag_re.match(useflag) is None:
-                                               writemsg(_("--- Invalid USE flag for '%s' in '%s': '%s'\n") % (k, path, prefixed_useflag))
+                                               writemsg(_("--- Invalid USE flag for '%s' in '%s': '%s'\n") % \
+                                                       (k, path, prefixed_useflag), noiselevel=-1)
                                        else:
                                                useflags.append(prefixed_useflag)
                                profile_dict.setdefault(k, []).extend(useflags)