diff options
author | Mike Fulbright <msf@redhat.com> | 2002-02-08 20:07:45 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-02-08 20:07:45 +0000 |
commit | 13dfc1d68adb6d7775c333cb47dd87f7a36ad1df (patch) | |
tree | 46c5558e0427fd6746a289e23035599fb0a6c9a2 /installmethod.py | |
parent | c560709fd8d2f3a38decf37dcca8a4412199b031 (diff) | |
download | anaconda-13dfc1d68adb6d7775c333cb47dd87f7a36ad1df.tar.gz anaconda-13dfc1d68adb6d7775c333cb47dd87f7a36ad1df.tar.xz anaconda-13dfc1d68adb6d7775c333cb47dd87f7a36ad1df.zip |
now read comps from updates if present
Diffstat (limited to 'installmethod.py')
-rw-r--r-- | installmethod.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/installmethod.py b/installmethod.py index eca10b328..14689bdfe 100644 --- a/installmethod.py +++ b/installmethod.py @@ -3,7 +3,23 @@ class InstallMethod: def protectedPartitions(self): return None + def readCompsViaMethod(self): + pass + def readComps(self, hdlist): + # see if there is a comps in PYTHONPATH, otherwise fall thru + # to method dependent location + path = None + if os.environ.has_key('PYTHONPATH'): + for f in string.split(os.environ['PYTHONPATH'], ":"): + if os.access (f+"/comps", os.X_OK): + path = f+"/comps" + break + + if path: + return ComponentSet(path, hdlist) + else: + return self.readCompsViaMethod() pass def getFilename(self, h, timer): |