summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-25 16:25:02 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-25 16:25:02 +0000
commit68af63d44dbfdbb4a81876c32eb25ddd0ca23b3f (patch)
treeb5353e832ac3d72fbcfb1f927ece9633c36c2db2
parent5e12dbfeba941ed009229a3d497827bdbc7fb881 (diff)
downloadportage-68af63d44dbfdbb4a81876c32eb25ddd0ca23b3f.tar.gz
portage-68af63d44dbfdbb4a81876c32eb25ddd0ca23b3f.tar.bz2
portage-68af63d44dbfdbb4a81876c32eb25ddd0ca23b3f.zip
Namespace sanitizing, step 2b
svn path=/main/trunk/; revision=5781
-rw-r--r--pym/portage/cache/fs_template.py2
-rw-r--r--pym/portage/cache/sqlite.py4
-rw-r--r--pym/portage/elog_modules/mod_custom.py8
-rw-r--r--pym/portage/elog_modules/mod_mail.py6
-rw-r--r--pym/portage/elog_modules/mod_mail_summary.py6
-rw-r--r--pym/portage/elog_modules/mod_save.py2
-rw-r--r--pym/portage/elog_modules/mod_save_summary.py2
-rw-r--r--pym/portage/elog_modules/mod_syslog.py2
8 files changed, 16 insertions, 16 deletions
diff --git a/pym/portage/cache/fs_template.py b/pym/portage/cache/fs_template.py
index b76e98bd3..1fdfac764 100644
--- a/pym/portage/cache/fs_template.py
+++ b/pym/portage/cache/fs_template.py
@@ -5,7 +5,7 @@
import os
from cache import template
-from portage_data import portage_gid
+from portage.data import portage_gid
class FsBased(template.database):
"""template wrapping fs needed options, and providing _ensure_access as a way to
diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py
index 5c1bfa266..ee3dde3c7 100644
--- a/pym/portage/cache/sqlite.py
+++ b/pym/portage/cache/sqlite.py
@@ -6,8 +6,8 @@ from cache import fs_template
from cache import cache_errors
import os
from cache.template import reconstruct_eclasses
-from portage_util import writemsg, apply_secpass_permissions
-from portage_data import portage_gid
+from portage.util import writemsg, apply_secpass_permissions
+from portage.data import portage_gid
try:
import sqlite3 as db_module # sqlite3 is optional with >=python-2.5
except ImportError:
diff --git a/pym/portage/elog_modules/mod_custom.py b/pym/portage/elog_modules/mod_custom.py
index d609e79ba..f95e1999a 100644
--- a/pym/portage/elog_modules/mod_custom.py
+++ b/pym/portage/elog_modules/mod_custom.py
@@ -1,16 +1,16 @@
-import elog_modules.mod_save, portage_exec, portage_exception
+import elog_modules.mod_save, portage.exec, portage.exception
def process(mysettings, cpv, logentries, fulltext):
elogfilename = elog_modules.mod_save.process(mysettings, cpv, logentries, fulltext)
if (not "PORTAGE_ELOG_COMMAND" in mysettings.keys()) \
or len(mysettings["PORTAGE_ELOG_COMMAND"]) == 0:
- raise portage_exception.MissingParameter("!!! Custom logging requested but PORTAGE_ELOG_COMMAND is not defined")
+ raise portage.exception.MissingParameter("!!! Custom logging requested but PORTAGE_ELOG_COMMAND is not defined")
else:
mylogcmd = mysettings["PORTAGE_ELOG_COMMAND"]
mylogcmd = mylogcmd.replace("${LOGFILE}", elogfilename)
mylogcmd = mylogcmd.replace("${PACKAGE}", cpv)
- retval = portage_exec.spawn_bash(mylogcmd)
+ retval = portage.exec.spawn_bash(mylogcmd)
if retval != 0:
- raise portage_exception.PortageException("!!! PORTAGE_ELOG_COMMAND failed with exitcode %d" % retval)
+ raise portage.exception.PortageException("!!! PORTAGE_ELOG_COMMAND failed with exitcode %d" % retval)
return
diff --git a/pym/portage/elog_modules/mod_mail.py b/pym/portage/elog_modules/mod_mail.py
index b8e17a51a..b84555e8c 100644
--- a/pym/portage/elog_modules/mod_mail.py
+++ b/pym/portage/elog_modules/mod_mail.py
@@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import portage_mail, socket
+import portage.mail, socket
def process(mysettings, cpv, logentries, fulltext):
if mysettings.has_key("PORTAGE_ELOG_MAILURI"):
@@ -16,7 +16,7 @@ def process(mysettings, cpv, logentries, fulltext):
mysubject = mysubject.replace("${PACKAGE}", cpv)
mysubject = mysubject.replace("${HOST}", socket.getfqdn())
- mymessage = portage_mail.create_message(myfrom, myrecipient, mysubject, fulltext)
- portage_mail.send_mail(mysettings, mymessage)
+ mymessage = portage.mail.create_message(myfrom, myrecipient, mysubject, fulltext)
+ portage.mail.send_mail(mysettings, mymessage)
return
diff --git a/pym/portage/elog_modules/mod_mail_summary.py b/pym/portage/elog_modules/mod_mail_summary.py
index 5e642f418..99c285642 100644
--- a/pym/portage/elog_modules/mod_mail_summary.py
+++ b/pym/portage/elog_modules/mod_mail_summary.py
@@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: mod_mail.py 3484 2006-06-10 22:38:44Z genone $
-import portage_mail, socket, os, time
+import portage.mail, socket, os, time
from email.MIMEText import MIMEText as TextMessage
_items = {}
@@ -34,7 +34,7 @@ def finalize(mysettings):
for cpv in _items.keys():
mybody += "- %s\n" % cpv
- mymessage = portage_mail.create_message(myfrom, myrecipient, mysubject, mybody, attachments=_items.values())
- portage_mail.send_mail(mysettings, mymessage)
+ mymessage = portage.mail.create_message(myfrom, myrecipient, mysubject, mybody, attachments=_items.values())
+ portage.mail.send_mail(mysettings, mymessage)
return
diff --git a/pym/portage/elog_modules/mod_save.py b/pym/portage/elog_modules/mod_save.py
index 4e1cd2cf8..2993b45db 100644
--- a/pym/portage/elog_modules/mod_save.py
+++ b/pym/portage/elog_modules/mod_save.py
@@ -1,5 +1,5 @@
import os, time
-from portage_data import portage_uid, portage_gid
+from portage.data import portage_uid, portage_gid
def process(mysettings, cpv, logentries, fulltext):
cpv_path = cpv.replace("/", ":")
diff --git a/pym/portage/elog_modules/mod_save_summary.py b/pym/portage/elog_modules/mod_save_summary.py
index 7cb310d95..eb453e587 100644
--- a/pym/portage/elog_modules/mod_save_summary.py
+++ b/pym/portage/elog_modules/mod_save_summary.py
@@ -1,5 +1,5 @@
import os, time
-from portage_data import portage_uid, portage_gid
+from portage.data import portage_uid, portage_gid
def process(mysettings, cpv, logentries, fulltext):
if mysettings["PORT_LOGDIR"] != "":
diff --git a/pym/portage/elog_modules/mod_syslog.py b/pym/portage/elog_modules/mod_syslog.py
index a95ecb452..77e1d4ea6 100644
--- a/pym/portage/elog_modules/mod_syslog.py
+++ b/pym/portage/elog_modules/mod_syslog.py
@@ -1,5 +1,5 @@
import syslog
-from portage_const import EBUILD_PHASES
+from portage.const import EBUILD_PHASES
def process(mysettings, cpv, logentries, fulltext):
syslog.openlog("portage", syslog.LOG_ERR | syslog.LOG_WARNING | syslog.LOG_INFO | syslog.LOG_NOTICE, syslog.LOG_LOCAL5)