summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-05-14 21:39:28 +0000
committerMike Fulbright <msf@redhat.com>2003-05-14 21:39:28 +0000
commit1cfaf749874aba4180d59d3d7a6dbddf51b50c76 (patch)
treeb92c63e786349fc9a24c679697a567828e897c69 /packages.py
parentc8aad4c1ffdf867f46333af10ba51d7f9740b991 (diff)
downloadanaconda-1cfaf749874aba4180d59d3d7a6dbddf51b50c76.tar.gz
anaconda-1cfaf749874aba4180d59d3d7a6dbddf51b50c76.tar.xz
anaconda-1cfaf749874aba4180d59d3d7a6dbddf51b50c76.zip
this change makes it so you are prompted if you monitor was not probed. the prompt occurs after the keyboard and mice screens, so all peripheral questions are at the beginning. previous state of these files tags as before-cambridge-monitor-query-change
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index 2c5da3500..ec1274b48 100644
--- a/packages.py
+++ b/packages.py
@@ -204,6 +204,23 @@ def handleX11Packages(dir, intf, disp, id, instPath):
if gnomeSelected or kdeSelected:
id.desktop.setDefaultRunLevel(5)
+# verifies that monitor is not Unprobed, and if so we can skip monitor question
+def checkMonitorOK(monitor, dispatch):
+ rc = 0
+ if monitor is not None:
+ if monitor.getMonitorID() != "Unprobed Monitor":
+ rc = 1
+
+ dispatch.skipStep("monitor", skip=rc)
+
+# sets a reasonable default for X settings.
+def setSaneXSettings(xsetup):
+ if xsetup is not None and xsetup.xhwstate is not None:
+ if not xsetup.imposed_sane_default:
+ xsetup.xhwstate.choose_sane_default()
+ xsetup.imposed_sane_default = 1
+
+
def checksig(fileName):
# RPM spews to stdout/stderr. Redirect.
# stolen from up2date/up2date.py