]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda-libdir.patch
- some sanity over insanity
[packages/anaconda.git] / anaconda-libdir.patch
1 --- anaconda-11.0.5/Makefile.inc~       2005-06-13 22:09:23.000000000 +0300
2 +++ anaconda-11.0.5/Makefile.inc        2006-05-18 22:34:08.000000000 +0300
3 @@ -1,8 +1,8 @@
4  #
5  # define destination locations
6  #
7 -PYTHONLIBDIR = /usr/lib/anaconda
8 -RUNTIMEDIR = /usr/lib/anaconda-runtime
9 +PYTHONLIBDIR = /usr/$(LIBDIR)/anaconda
10 +RUNTIMEDIR = /usr/$(LIBDIR)/anaconda-runtime
11  ANACONDADATADIR = /usr/share/anaconda
12  PYTHON = python2.4
13  PYTHONINCLUDE = /usr/include/$(PYTHON)
14 --- ./anaconda  2006-03-06 21:45:27.000000000 +0200
15 +++ /usr/sbin/anaconda  2006-05-18 23:34:39.000000000 +0300
16 @@ -275,12 +275,7 @@
17  
18  # handle updates of just a single file in a python package
19  def setupPythonUpdates():
20 -    import glob
21 -
22 -    # get the python version.  first of /usr/lib/python*, strip off the
23 -    # first 15 chars
24 -    pyvers = glob.glob("/usr/lib/python*")
25 -    pyver = pyvers[0][15:]
26 +    pyver = sys.version[:3]
27      
28      try:
29         os.mkdir("/tmp/updates")
30 @@ -289,12 +284,7 @@
31  
32      for pypkg in ("rhpl", "yum", "rpmUtils", "urlgrabber", "repomd",
33                   "pykickstart", "rhpxl"):
34 -       # get the libdir.  *sigh*
35 -       if os.access("/usr/lib64/python%s/site-packages/%s" %(pyver, pypkg),
36 -                    os.X_OK):
37 -           libdir = "lib64"
38 -       else:
39 -           libdir = "lib"
40 +       libdir = sys.lib
41         
42         if os.access("/mnt/source/RHupdates/%s" %(pypkg,), os.X_OK):
43             try:
44 @@ -330,9 +320,9 @@
45      sys.path.append('textw')
46      sys.path.append('iw')
47  else:
48 -    sys.path.append('/usr/lib/anaconda')
49 -    sys.path.append('/usr/lib/anaconda/textw')
50 -    sys.path.append('/usr/lib/anaconda/iw')
51 +    sys.path.append('/usr/%s/anaconda' % sys.lib)
52 +    sys.path.append('/usr/%s/anaconda/textw' % sys.lib)
53 +    sys.path.append('/usr/%s/anaconda/iw' % sys.lib)
54  
55  if (os.path.exists('booty')):
56      sys.path.append('booty')
This page took 0.039524 seconds and 4 git commands to generate.