* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2013-12-23 3:20 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2013-12-23 3:20 UTC (permalink / raw
To: gentoo-commits
commit: 547bfc2c32b285457207f41d6b92095bef72f301
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sun Dec 22 09:12:42 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=547bfc2c
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index 6086a70..692bb88 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
# temporary location. It will be moved to a
# new defaults file in a later comit
@@ -456,7 +456,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -466,7 +466,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 1e0d874..eb9f402 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2013-12-30 1:44 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2013-12-30 1:44 UTC (permalink / raw
To: gentoo-commits
commit: cebb517d798876dd7611d239abbc1fbb97505df0
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sun Dec 29 18:54:06 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=cebb517d
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index 3e33358..deb4c7e 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -462,7 +462,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -472,7 +472,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2013-12-31 4:22 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2013-12-31 4:22 UTC (permalink / raw
To: gentoo-commits
commit: 764192d62162b433e1b320780d1a9e181ef953d9
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue Dec 31 03:58:32 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=764192d6
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index 5664660..6cc1ae4 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -462,7 +462,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -472,7 +472,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2013-12-31 4:39 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2013-12-31 4:39 UTC (permalink / raw
To: gentoo-commits
commit: b56378d2e9f1ca9f5ccec32ce2aa71f687ab94f0
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue Dec 31 04:33:36 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=b56378d2
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index ddf7499..58aba71 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -462,7 +462,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -472,7 +472,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2013-12-31 4:48 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2013-12-31 4:48 UTC (permalink / raw
To: gentoo-commits
commit: f18c7ec65b920c855d5f80171f57d0cbe91995e1
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue Dec 31 04:40:14 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=f18c7ec6
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index ddf7499..58aba71 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -462,7 +462,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -472,7 +472,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2013-12-31 18:14 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2013-12-31 18:14 UTC (permalink / raw
To: gentoo-commits
commit: 87f87a85a366f89e23940da1240c4ca2ac07488a
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue Dec 31 17:59:06 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=87f87a85
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index ddf7499..58aba71 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -462,7 +462,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -472,7 +472,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2014-01-02 0:04 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2014-01-02 0:04 UTC (permalink / raw
To: gentoo-commits
commit: d63f0fa6b39e7caadba80444701ec006f6f49b5d
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Wed Jan 1 23:55:45 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=d63f0fa6
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index 8c81d97..62e6eda 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -462,7 +462,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -472,7 +472,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2014-01-03 5:03 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2014-01-03 5:03 UTC (permalink / raw
To: gentoo-commits
commit: 70babd092b3b0ae717d2b5ef060541327a37749b
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Jan 3 04:39:29 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=70babd09
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index bda0195..2602e5d 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -463,7 +463,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -473,7 +473,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2014-01-03 6:12 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2014-01-03 6:12 UTC (permalink / raw
To: gentoo-commits
commit: 70a00afcc89f86bd89463637d6eb8cecc2cca1a4
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Jan 3 05:41:26 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=70a00afc
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index ab4aa7a..4ca9791 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -471,7 +471,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -481,7 +481,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2014-01-03 6:41 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2014-01-03 6:41 UTC (permalink / raw
To: gentoo-commits
commit: 7f72c6b4b226824ee69ffcbf33bf6f6224014ea3
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Jan 3 06:40:03 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=7f72c6b4
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index aebb495..7b66dab 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -21,7 +21,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -196,7 +196,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -347,7 +348,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index ab4aa7a..4ca9791 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -471,7 +471,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -481,7 +481,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
@ 2014-01-22 15:52 Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2014-01-22 15:52 UTC (permalink / raw
To: gentoo-commits
commit: 616bf7f4ffa098ec7f25c079fd145fdc316b6b85
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sun Jan 12 20:48:21 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=616bf7f4
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index f6a3e51..8acd280 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -20,7 +20,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -195,7 +195,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -346,7 +347,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index f04b186..2b3d7ce 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -471,7 +471,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"] + "/" +
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -481,7 +481,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/
2014-03-02 15:42 [gentoo-commits] proj/catalyst:master " Brian Dolbec
@ 2014-02-22 18:43 ` Brian Dolbec
0 siblings, 0 replies; 12+ messages in thread
From: Brian Dolbec @ 2014-02-22 18:43 UTC (permalink / raw
To: gentoo-commits
commit: 030d4bd354a1d630f79224eb875dbbc40fa503d4
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 12 07:32:41 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sat Feb 22 18:30:30 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=030d4bd3
Move catalyst_support, builder, catalyst_lock out of modules, into the catalyst namespace.
---
catalyst/arch/alpha.py | 6 ++++--
catalyst/arch/amd64.py | 2 +-
catalyst/arch/arm.py | 6 ++++--
catalyst/arch/hppa.py | 6 ++++--
catalyst/arch/ia64.py | 6 ++++--
catalyst/arch/mips.py | 6 ++++--
catalyst/arch/powerpc.py | 6 ++++--
catalyst/arch/s390.py | 6 ++++--
catalyst/arch/sh.py | 6 ++++--
catalyst/arch/sparc.py | 6 ++++--
catalyst/arch/x86.py | 6 ++++--
catalyst/{modules => }/builder.py | 0
catalyst/config.py | 3 ++-
catalyst/{modules/catalyst_lock.py => lock.py} | 2 +-
catalyst/main.py | 7 ++++---
catalyst/modules/embedded_target.py | 2 +-
catalyst/modules/generic_stage_target.py | 8 ++++----
catalyst/modules/generic_target.py | 2 +-
catalyst/modules/grp_target.py | 2 +-
catalyst/modules/livecd_stage1_target.py | 2 +-
catalyst/modules/livecd_stage2_target.py | 2 +-
catalyst/modules/netboot2_target.py | 2 +-
catalyst/modules/netboot_target.py | 2 +-
catalyst/modules/snapshot_target.py | 2 +-
catalyst/modules/stage1_target.py | 2 +-
catalyst/modules/stage2_target.py | 2 +-
catalyst/modules/stage3_target.py | 2 +-
catalyst/modules/stage4_target.py | 2 +-
catalyst/modules/tinderbox_target.py | 2 +-
catalyst/{modules/catalyst_support.py => support.py} | 0
30 files changed, 65 insertions(+), 43 deletions(-)
diff --git a/catalyst/arch/alpha.py b/catalyst/arch/alpha.py
index f0fc95a..7248020 100644
--- a/catalyst/arch/alpha.py
+++ b/catalyst/arch/alpha.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_alpha(builder.generic):
"abstract base class for all alpha builders"
diff --git a/catalyst/arch/amd64.py b/catalyst/arch/amd64.py
index 262b55a..13e7563 100644
--- a/catalyst/arch/amd64.py
+++ b/catalyst/arch/amd64.py
@@ -1,5 +1,5 @@
-import builder
+from catalyst import builder
class generic_amd64(builder.generic):
"abstract base class for all amd64 builders"
diff --git a/catalyst/arch/arm.py b/catalyst/arch/arm.py
index 2de3942..8f207ff 100644
--- a/catalyst/arch/arm.py
+++ b/catalyst/arch/arm.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_arm(builder.generic):
"Abstract base class for all arm (little endian) builders"
diff --git a/catalyst/arch/hppa.py b/catalyst/arch/hppa.py
index f804398..3aac9b6 100644
--- a/catalyst/arch/hppa.py
+++ b/catalyst/arch/hppa.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_hppa(builder.generic):
"Abstract base class for all hppa builders"
diff --git a/catalyst/arch/ia64.py b/catalyst/arch/ia64.py
index 825af70..4003085 100644
--- a/catalyst/arch/ia64.py
+++ b/catalyst/arch/ia64.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class arch_ia64(builder.generic):
"builder class for ia64"
diff --git a/catalyst/arch/mips.py b/catalyst/arch/mips.py
index b3730fa..7cce392 100644
--- a/catalyst/arch/mips.py
+++ b/catalyst/arch/mips.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_mips(builder.generic):
"Abstract base class for all mips builders [Big-endian]"
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index e9f611b..6cec580 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -1,6 +1,8 @@
-import os,builder
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_ppc(builder.generic):
"abstract base class for all 32-bit powerpc builders"
diff --git a/catalyst/arch/s390.py b/catalyst/arch/s390.py
index bf22f66..c49e0b7 100644
--- a/catalyst/arch/s390.py
+++ b/catalyst/arch/s390.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_s390(builder.generic):
"abstract base class for all s390 builders"
diff --git a/catalyst/arch/sh.py b/catalyst/arch/sh.py
index 2fc9531..1fa1b0b 100644
--- a/catalyst/arch/sh.py
+++ b/catalyst/arch/sh.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sh(builder.generic):
"Abstract base class for all sh builders [Little-endian]"
diff --git a/catalyst/arch/sparc.py b/catalyst/arch/sparc.py
index 5eb5344..2889528 100644
--- a/catalyst/arch/sparc.py
+++ b/catalyst/arch/sparc.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_sparc(builder.generic):
"abstract base class for all sparc builders"
diff --git a/catalyst/arch/x86.py b/catalyst/arch/x86.py
index 0391b79..c8d1911 100644
--- a/catalyst/arch/x86.py
+++ b/catalyst/arch/x86.py
@@ -1,6 +1,8 @@
-import builder,os
-from catalyst_support import *
+import os
+
+from catalyst import builder
+from catalyst.support import *
class generic_x86(builder.generic):
"abstract base class for all x86 builders"
diff --git a/catalyst/modules/builder.py b/catalyst/builder.py
similarity index 100%
rename from catalyst/modules/builder.py
rename to catalyst/builder.py
diff --git a/catalyst/config.py b/catalyst/config.py
index 726bf74..460bbd5 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -1,5 +1,6 @@
+
import re
-from modules.catalyst_support import *
+from catalyst.support import *
class ParserBase:
diff --git a/catalyst/modules/catalyst_lock.py b/catalyst/lock.py
similarity index 99%
rename from catalyst/modules/catalyst_lock.py
rename to catalyst/lock.py
index 5311cf8..2d10d2f 100644
--- a/catalyst/modules/catalyst_lock.py
+++ b/catalyst/lock.py
@@ -5,7 +5,7 @@ import errno
import sys
import string
import time
-from catalyst_support import *
+from catalyst.support import *
def writemsg(mystr):
sys.stderr.write(mystr)
diff --git a/catalyst/main.py b/catalyst/main.py
index f6a3e51..8acd280 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -20,7 +20,7 @@ sys.path.append(__selfpath__ + "/modules")
import catalyst.config
import catalyst.util
-from catalyst.modules.catalyst_support import (required_build_targets,
+from catalyst.support import (required_build_targets,
valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
__maintainer__="Catalyst <catalyst@gentoo.org>"
@@ -195,7 +195,8 @@ def parse_config(myconfig):
conf_values["port_logdir"]=myconf["port_logdir"];
def import_modules():
- # import catalyst's own modules (i.e. catalyst_support and the arch modules)
+ # import catalyst's own modules
+ # (i.e. stage and the arch modules)
targetmap={}
try:
@@ -346,7 +347,7 @@ def main():
parse_config(myconfig)
# Start checking that digests are valid now that the hash_map was imported
- # from catalyst_support
+ # from catalyst.support
if "digests" in conf_values:
for i in conf_values["digests"].split():
if i not in hash_map:
diff --git a/catalyst/modules/embedded_target.py b/catalyst/modules/embedded_target.py
index f38ea00..7cee7a6 100644
--- a/catalyst/modules/embedded_target.py
+++ b/catalyst/modules/embedded_target.py
@@ -11,7 +11,7 @@ ROOT=/tmp/submerge emerge --something foo bar .
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
from stat import *
diff --git a/catalyst/modules/generic_stage_target.py b/catalyst/modules/generic_stage_target.py
index f04b186..2b3d7ce 100644
--- a/catalyst/modules/generic_stage_target.py
+++ b/catalyst/modules/generic_stage_target.py
@@ -1,8 +1,8 @@
import os,string,imp,types,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_target import *
from stat import *
-import catalyst_lock
+from catalyst.lock import LockDir
PORT_LOGDIR_CLEAN = \
@@ -471,7 +471,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"] + "/" +
self.settings["snapshot"])
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ LockDir(self.settings["snapshot_cache_path"])
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -481,7 +481,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"])
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=LockDir(self.settings["chroot_path"])
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
diff --git a/catalyst/modules/generic_target.py b/catalyst/modules/generic_target.py
index fe96bd7..de51994 100644
--- a/catalyst/modules/generic_target.py
+++ b/catalyst/modules/generic_target.py
@@ -1,4 +1,4 @@
-from catalyst_support import *
+from catalyst.support import *
class generic_target:
"""
diff --git a/catalyst/modules/grp_target.py b/catalyst/modules/grp_target.py
index 6941522..8e70042 100644
--- a/catalyst/modules/grp_target.py
+++ b/catalyst/modules/grp_target.py
@@ -4,7 +4,7 @@ Gentoo Reference Platform (GRP) target
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage1_target.py b/catalyst/modules/livecd_stage1_target.py
index 59de9bb..ac846ec 100644
--- a/catalyst/modules/livecd_stage1_target.py
+++ b/catalyst/modules/livecd_stage1_target.py
@@ -3,7 +3,7 @@ LiveCD stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
diff --git a/catalyst/modules/livecd_stage2_target.py b/catalyst/modules/livecd_stage2_target.py
index 5be8fd2..1bfd820 100644
--- a/catalyst/modules/livecd_stage2_target.py
+++ b/catalyst/modules/livecd_stage2_target.py
@@ -4,7 +4,7 @@ LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot2_target.py b/catalyst/modules/netboot2_target.py
index 1ab7e7d..2b3cd20 100644
--- a/catalyst/modules/netboot2_target.py
+++ b/catalyst/modules/netboot2_target.py
@@ -4,7 +4,7 @@ netboot target, version 2
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
diff --git a/catalyst/modules/netboot_target.py b/catalyst/modules/netboot_target.py
index ff2c81f..9d01b7e 100644
--- a/catalyst/modules/netboot_target.py
+++ b/catalyst/modules/netboot_target.py
@@ -4,7 +4,7 @@ netboot target, version 1
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
diff --git a/catalyst/modules/snapshot_target.py b/catalyst/modules/snapshot_target.py
index ba1bab5..d1b9e40 100644
--- a/catalyst/modules/snapshot_target.py
+++ b/catalyst/modules/snapshot_target.py
@@ -3,7 +3,7 @@ Snapshot target
"""
import os
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class snapshot_target(generic_stage_target):
diff --git a/catalyst/modules/stage1_target.py b/catalyst/modules/stage1_target.py
index 5f4ffa0..8d5a674 100644
--- a/catalyst/modules/stage1_target.py
+++ b/catalyst/modules/stage1_target.py
@@ -3,7 +3,7 @@ stage1 target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
diff --git a/catalyst/modules/stage2_target.py b/catalyst/modules/stage2_target.py
index 6083e2b..15acdee 100644
--- a/catalyst/modules/stage2_target.py
+++ b/catalyst/modules/stage2_target.py
@@ -3,7 +3,7 @@ stage2 target, builds upon previous stage1 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
diff --git a/catalyst/modules/stage3_target.py b/catalyst/modules/stage3_target.py
index 4d3a008..89edd66 100644
--- a/catalyst/modules/stage3_target.py
+++ b/catalyst/modules/stage3_target.py
@@ -3,7 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
diff --git a/catalyst/modules/stage4_target.py b/catalyst/modules/stage4_target.py
index ce41b2d..9168f2e 100644
--- a/catalyst/modules/stage4_target.py
+++ b/catalyst/modules/stage4_target.py
@@ -3,7 +3,7 @@ stage4 target, builds upon previous stage3/stage4 tarball
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
diff --git a/catalyst/modules/tinderbox_target.py b/catalyst/modules/tinderbox_target.py
index ca55610..1d31989 100644
--- a/catalyst/modules/tinderbox_target.py
+++ b/catalyst/modules/tinderbox_target.py
@@ -3,7 +3,7 @@ Tinderbox target
"""
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
-from catalyst_support import *
+from catalyst.support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
diff --git a/catalyst/modules/catalyst_support.py b/catalyst/support.py
similarity index 100%
rename from catalyst/modules/catalyst_support.py
rename to catalyst/support.py
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-02-22 18:43 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31 18:14 [gentoo-commits] proj/catalyst:pending commit in: catalyst/arch/, catalyst/, catalyst/modules/ Brian Dolbec
-- strict thread matches above, loose matches on Subject: below --
2014-03-02 15:42 [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-02-22 18:43 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-01-22 15:52 Brian Dolbec
2014-01-03 6:41 Brian Dolbec
2014-01-03 6:12 Brian Dolbec
2014-01-03 5:03 Brian Dolbec
2014-01-02 0:04 Brian Dolbec
2013-12-31 4:48 Brian Dolbec
2013-12-31 4:39 Brian Dolbec
2013-12-31 4:22 Brian Dolbec
2013-12-30 1:44 Brian Dolbec
2013-12-23 3:20 Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox