summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-03-17 07:58:13 +0000
committerJeremy Katz <katzj@redhat.com>2004-03-17 07:58:13 +0000
commitd4894876e8aefed4b56953da992893f3f2d8cf74 (patch)
treedec97e9d63906f35e3261080876efce5e7222378 /packages.py
parenta899262bdc4d0943e44ef3191aea9d7177617347 (diff)
downloadanaconda-d4894876e8aefed4b56953da992893f3f2d8cf74.tar.gz
anaconda-d4894876e8aefed4b56953da992893f3f2d8cf74.tar.xz
anaconda-d4894876e8aefed4b56953da992893f3f2d8cf74.zip
bad hack for mouse migration
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 5bae58327..f944be4a1 100644
--- a/packages.py
+++ b/packages.py
@@ -1129,6 +1129,10 @@ def doPostInstall(method, id, intf, instPath):
# needed for prior systems which were not xinetd based
migrateXinetd(instPath, instLogName)
+ # needed for prior to 2.6 so that mice have some chance
+ # of working afterwards. FIXME: this is a hack
+ migrateMouseConfig(instPath, instLogName)
+
w.set(5)
# FIXME: hack to install the comps package
@@ -1278,6 +1282,19 @@ def setFileCons(instPath):
return
+# XXX: large hack lies here
+def migrateMouseConfig(instPath, instLog):
+ if not os.access (instPath + "/usr/sbin/fix-mouse-psaux", os.X_OK):
+ return
+
+ argv = [ "/usr/sbin/fix-mouse-psaux" ]
+
+ logfile = os.open (instLog, os.O_APPEND)
+ iutil.execWithRedirect(argv[0], argv, root = instPath,
+ stdout = logfile, stderr = logfile)
+ os.close(logfile)
+
+
def migrateXinetd(instPath, instLog):
if not os.access (instPath + "/usr/sbin/inetdconvert", os.X_OK):
return