diff options
author | Mike Fulbright <msf@redhat.com> | 2001-08-29 03:44:11 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-08-29 03:44:11 +0000 |
commit | d2b9a06a97cc57f4ed9b96a201c907c6d90c5178 (patch) | |
tree | a344214e1b382f18748475932c8027902230ce2c /installclass.py | |
parent | bbc9e4c6c7319452e19577e074036c7c5d8c4c3e (diff) | |
download | anaconda-d2b9a06a97cc57f4ed9b96a201c907c6d90c5178.tar.gz anaconda-d2b9a06a97cc57f4ed9b96a201c907c6d90c5178.tar.xz anaconda-d2b9a06a97cc57f4ed9b96a201c907c6d90c5178.zip |
fix --videoram for ks xconfig command
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/installclass.py b/installclass.py index 6fc2ac4c2..1366ab932 100644 --- a/installclass.py +++ b/installclass.py @@ -301,6 +301,7 @@ class BaseInstallClass: import videocard import monitor + # XXX they could have sensitive hardware, but we need this info =\ videohw = videocard.VideoCardInfo() if videohw: @@ -321,8 +322,13 @@ class BaseInstallClass: raise RuntimeError, "Could not probe video card and no fallback specified" id.videocard.setVidcard(vc) - if videoRam in id.videocard.possible_ram_sizes(): - id.videocard.primaryCard().setVideoRam(videoRam) + if type(videoRam) == type(1024): + tmpram = videoRam + else: + tmpram = string.atoi(videoRam) + + if tmpram in id.videocard.possible_ram_sizes(): + id.videocard.primaryCard().setVideoRam(str(tmpram)) if id.monitor.getMonitorID() != "Unprobed monitor": usemon = id.monitor.getMonitorID() |