Rename the modules subpkg to targets, to better reflect what it contains.
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 12 Jan 2013 07:43:36 +0000 (23:43 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Feb 2014 18:30:31 +0000 (10:30 -0800)
16 files changed:
catalyst/main.py
catalyst/targets/__init__.py [moved from catalyst/modules/__init__.py with 100% similarity]
catalyst/targets/embedded_target.py [moved from catalyst/modules/embedded_target.py with 100% similarity]
catalyst/targets/generic_stage_target.py [moved from catalyst/modules/generic_stage_target.py with 100% similarity]
catalyst/targets/generic_target.py [moved from catalyst/modules/generic_target.py with 100% similarity]
catalyst/targets/grp_target.py [moved from catalyst/modules/grp_target.py with 100% similarity]
catalyst/targets/livecd_stage1_target.py [moved from catalyst/modules/livecd_stage1_target.py with 100% similarity]
catalyst/targets/livecd_stage2_target.py [moved from catalyst/modules/livecd_stage2_target.py with 100% similarity]
catalyst/targets/netboot2_target.py [moved from catalyst/modules/netboot2_target.py with 100% similarity]
catalyst/targets/netboot_target.py [moved from catalyst/modules/netboot_target.py with 100% similarity]
catalyst/targets/snapshot_target.py [moved from catalyst/modules/snapshot_target.py with 100% similarity]
catalyst/targets/stage1_target.py [moved from catalyst/modules/stage1_target.py with 100% similarity]
catalyst/targets/stage2_target.py [moved from catalyst/modules/stage2_target.py with 100% similarity]
catalyst/targets/stage3_target.py [moved from catalyst/modules/stage3_target.py with 100% similarity]
catalyst/targets/stage4_target.py [moved from catalyst/modules/stage4_target.py with 100% similarity]
catalyst/targets/tinderbox_target.py [moved from catalyst/modules/tinderbox_target.py with 100% similarity]

index 8acd2804f9dd57952d0895044c12fbc2df053f4d..cb30bd7783ff32600b77d76ce8f11983a3ec5000 100644 (file)
@@ -200,11 +200,11 @@ def import_modules():
        targetmap={}
 
        try:
-               module_dir = __selfpath__ + "/modules/"
+               module_dir = __selfpath__ + "/targets/"
                for x in required_build_targets:
                        try:
                                fh=open(module_dir + x + ".py")
-                               module=imp.load_module(x, fh,"modules/" + x + ".py",
+                               module=imp.load_module(x, fh,"targets/" + x + ".py",
                                        (".py", "r", imp.PY_SOURCE))
                                fh.close()
 
@@ -214,7 +214,7 @@ def import_modules():
                for x in valid_build_targets:
                        try:
                                fh=open(module_dir + x + ".py")
-                               module=imp.load_module(x, fh, "modules/" + x + ".py",
+                               module=imp.load_module(x, fh, "targets/" + x + ".py",
                                        (".py", "r", imp.PY_SOURCE))
                                module.register(targetmap)
                                fh.close()