summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-27 10:22:33 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-27 10:22:33 -0700
commit30e5cfa6c706c02e9920deda543b7faf29733e0b (patch)
tree48e21e405cff7f9f96ff3ec45448323f1c668c52 /pym
parent03c4ecb1f49415b886d52bcaad773c9853343b55 (diff)
downloadportage-30e5cfa6c706c02e9920deda543b7faf29733e0b.tar.gz
portage-30e5cfa6c706c02e9920deda543b7faf29733e0b.tar.bz2
portage-30e5cfa6c706c02e9920deda543b7faf29733e0b.zip
LocationsManager: portage-1-compat warnings.warn
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/package/ebuild/_config/LocationsManager.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym/portage/package/ebuild/_config/LocationsManager.py
index 92c838cc1..a4098ba7b 100644
--- a/pym/portage/package/ebuild/_config/LocationsManager.py
+++ b/pym/portage/package/ebuild/_config/LocationsManager.py
@@ -6,6 +6,8 @@ __all__ = (
)
import io
+import warnings
+
from portage import os, eapi_is_supported, _encodings, _unicode_encode
from portage.const import CUSTOM_PROFILE_PATH, GLOBAL_CONFIG_PATH, \
PROFILE_PATH, USER_CONFIG_PATH
@@ -120,7 +122,7 @@ class LocationsManager(object):
offenders = sorted(x for x in offenders
if os.path.isdir(os.path.join(currentPath, x)))
if offenders:
- writemsg((_("Profile '%(profile_path)s' in repository "
+ warnings.warn((_("Profile '%(profile_path)s' in repository "
"'%(repo_name)s' is implicitly using 'portage-1' profile format, but "
"the repository profiles are not marked as that format. This will break "
"in the future. Please either convert the following paths "
@@ -128,7 +130,7 @@ class LocationsManager(object):
"repositories layout.conf. Files: '%(files)s'\n")
% dict(profile_path=currentPath, repo_name=repo_loc,
files=', '.join(offenders))),
- noiselevel=-1)
+ )
parentsFile = os.path.join(currentPath, "parent")
eapi_file = os.path.join(currentPath, "eapi")