summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xanaconda4
-rw-r--r--videocard.py9
2 files changed, 10 insertions, 3 deletions
diff --git a/anaconda b/anaconda
index ffd8166c8..286fd5cf0 100755
--- a/anaconda
+++ b/anaconda
@@ -440,7 +440,9 @@ if display_mode == 'g':
else:
xcfg = xf86config.XF86Config(videohw.primaryCard(),
monitorhw, mousehw, runres)
-else:
+elif progmode != 'reconfig':
+ # only probe X related stuff if we're doing an install
+
import xf86config
xcfg = xf86config.XF86Config(videohw.primaryCard(),
monitorhw, mousehw, runres)
diff --git a/videocard.py b/videocard.py
index a05f4cfac..988aea35b 100644
--- a/videocard.py
+++ b/videocard.py
@@ -20,6 +20,7 @@ import string
import kudzu
import iutil
import isys
+import os
from log import log
from translate import _
@@ -280,6 +281,9 @@ class VideoCardInfo:
"P9000", "S3", "S3V", "SVGA", "W32", "VGA16" ]:
Video_cardslist["Generic " + server] = { "SERVER" : server,
"NAME" : "Generic " + server }
+
+ if not os.access('/usr/X11R6/lib/X11/Cards', os.R_OK):
+ return -1
db = open ('/usr/X11R6/lib/X11/Cards')
lines = db.readlines ()
@@ -322,7 +326,7 @@ class VideoCardInfo:
else:
card[info[0]] = string.joinfields (info[1:], ' ')
- return
+ return 0
def cardsDB(self):
return Video_cardslist
@@ -348,7 +352,8 @@ class VideoCardInfo:
self.videocards = []
self.primary = None
- self.readCardsDB()
+ if self.readCardsDB() < 0:
+ return None
for card in cards:
(device, server, descr) = card