diff options
author | Mike Fulbright <msf@redhat.com> | 1999-11-16 23:45:35 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 1999-11-16 23:45:35 +0000 |
commit | 94c746ecd825a8b8024da0f553cd36be8d9153c8 (patch) | |
tree | cc9797269aca9c8546c7f4b6bc4fead0703c952b | |
parent | 069f05c6b650f84ccb4a676776e760a68493b47b (diff) | |
download | anaconda-94c746ecd825a8b8024da0f553cd36be8d9153c8.tar.gz anaconda-94c746ecd825a8b8024da0f553cd36be8d9153c8.tar.xz anaconda-94c746ecd825a8b8024da0f553cd36be8d9153c8.zip |
Added code for when in unconfig mode to see if we actually should
configure X (tests to see if XFree86 package is installed).
Dr Mike
-rw-r--r-- | iw/xconfig.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/iw/xconfig.py b/iw/xconfig.py index 1d6020239..d14e8da37 100644 --- a/iw/xconfig.py +++ b/iw/xconfig.py @@ -167,8 +167,20 @@ class XConfigWindow (InstallWindow): self.didTest = 1 def getScreen (self): - if not self.todo.hdList.packages.has_key('XFree86') or \ - not self.todo.hdList.packages['XFree86'].selected: return None + # + # if in unconfigOnly mode we query existing rpm db + # if X not installed, just skip this step + # + if self.todo.unconfigOnly: + import rpm + db = rpm.opendb() + rc = db.findbyname ("XFree86") + if len(rc) == 0: + return None + + else: + if not self.todo.hdList.packages.has_key('XFree86') or \ + not self.todo.hdList.packages['XFree86'].selected: return None self.todo.x.probe () |