Author: glen                         Date: Thu May 18 20:42:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- some sanity over insanity

---- Files affected:
SOURCES:
   anaconda-libdir.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/anaconda-libdir.patch
diff -u SOURCES/anaconda-libdir.patch:1.1 SOURCES/anaconda-libdir.patch:1.2
--- SOURCES/anaconda-libdir.patch:1.1   Thu May 18 21:37:04 2006
+++ SOURCES/anaconda-libdir.patch       Thu May 18 22:42:50 2006
@@ -11,3 +11,46 @@
  ANACONDADATADIR = /usr/share/anaconda
  PYTHON = python2.4
  PYTHONINCLUDE = /usr/include/$(PYTHON)
+--- ./anaconda 2006-03-06 21:45:27.000000000 +0200
++++ /usr/sbin/anaconda 2006-05-18 23:34:39.000000000 +0300
+@@ -275,12 +275,7 @@
+ 
+ # handle updates of just a single file in a python package
+ def setupPythonUpdates():
+-    import glob
+-
+-    # get the python version.  first of /usr/lib/python*, strip off the
+-    # first 15 chars
+-    pyvers = glob.glob("/usr/lib/python*")
+-    pyver = pyvers[0][15:]
++    pyver = sys.version[:3]
+     
+     try:
+       os.mkdir("/tmp/updates")
+@@ -289,12 +284,7 @@
+ 
+     for pypkg in ("rhpl", "yum", "rpmUtils", "urlgrabber", "repomd",
+                 "pykickstart", "rhpxl"):
+-      # get the libdir.  *sigh*
+-      if os.access("/usr/lib64/python%s/site-packages/%s" %(pyver, pypkg),
+-                   os.X_OK):
+-          libdir = "lib64"
+-      else:
+-          libdir = "lib"
++      libdir = sys.lib
+       
+       if os.access("/mnt/source/RHupdates/%s" %(pypkg,), os.X_OK):
+           try:
+@@ -330,9 +320,9 @@
+     sys.path.append('textw')
+     sys.path.append('iw')
+ else:
+-    sys.path.append('/usr/lib/anaconda')
+-    sys.path.append('/usr/lib/anaconda/textw')
+-    sys.path.append('/usr/lib/anaconda/iw')
++    sys.path.append('/usr/%s/anaconda' % sys.lib)
++    sys.path.append('/usr/%s/anaconda/textw' % sys.lib)
++    sys.path.append('/usr/%s/anaconda/iw' % sys.lib)
+ 
+ if (os.path.exists('booty')):
+     sys.path.append('booty')
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/anaconda-libdir.patch?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to