rename the modules subpkg to targets, it better reflects what it contains
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 12 Jan 2013 07:43:36 +0000 (23:43 -0800)
committerW. Trevor King <wking@tremily.us>
Sun, 15 Dec 2013 04:25:04 +0000 (20:25 -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 31c1eb6e1a8ab80105275542e7fc5f5a5ccedb9d..5aa040253e1d068cadd3c5f0a7e18f5064cebc85 100755 (executable)
@@ -198,11 +198,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()
 
@@ -212,7 +212,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()