Create namespace for emerge
authorMarius Mauch <genone@gentoo.org>
Thu, 8 Feb 2007 13:39:03 +0000 (13:39 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 8 Feb 2007 13:39:03 +0000 (13:39 -0000)
svn path=/main/trunk/; revision=5931

bin/emerge
pym/emerge/help.py [moved from pym/portage/emergehelp.py with 100% similarity]
pym/emergehelp.py

index 952f83397ca6ffc715674b7b7e20eeee5dd83768..bb8bf5b12b824845ad036163b677298059d4c0fa 100755 (executable)
@@ -32,7 +32,8 @@ del os.environ["PORTAGE_LEGACY_GLOBALS"]
 from portage import digraph, portdbapi
 from portage.const import NEWS_LIB_PATH
 
-import portage.emergehelp, portage.xpak, commands, errno, re, socket, time, types
+import emerge.help
+import portage.xpak, commands, errno, re, socket, time, types
 import output
 from portage.output import blue, bold, colorize, darkblue, darkgreen, darkred, green, \
        havecolor, nc_len, nocolor, red, teal, turquoise, white, xtermTitle, \
@@ -5210,7 +5211,7 @@ def emerge_main():
                        trees[settings["ROOT"]]["vartree"].dbapi)
                sys.exit(0)
        elif "--help" in myopts:
-               portage.emergehelp.help(myaction, myopts, portage.output.havecolor)
+               emerge.help.help(myaction, myopts, portage.output.havecolor)
                sys.exit(0)
 
        if portage.wheelgid == portage.portage_gid:
@@ -5222,7 +5223,7 @@ def emerge_main():
                print "myopts", myopts
 
        if not myaction and not myfiles and "--resume" not in myopts:
-               portage.emergehelp.help(myaction, myopts, portage.output.havecolor)
+               emerge.help.help(myaction, myopts, portage.output.havecolor)
                sys.exit(1)
 
        # check if root user is the current user for the actions where emerge needs this
similarity index 100%
rename from pym/portage/emergehelp.py
rename to pym/emerge/help.py
index b3d29019d3e65b8c383f8455e371462f6169c71c..dbfcb4af5239606001eede4b1f7641e6fb3465f1 120000 (symlink)
@@ -1 +1 @@
-portage/emergehelp.py
\ No newline at end of file
+emerge/help.py
\ No newline at end of file