diff options
author | Chris Lumens <clumens@redhat.com> | 2006-03-31 16:36:00 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-03-31 16:36:00 +0000 |
commit | a116a6b3e77a2918d2cc87e93a74a2df9a1b60d3 (patch) | |
tree | a122803339729746257152830665760ea379928d /anaconda | |
parent | f415f83001538f3064370b3ec95b1c4236a202a8 (diff) | |
download | anaconda-a116a6b3e77a2918d2cc87e93a74a2df9a1b60d3.tar.gz anaconda-a116a6b3e77a2918d2cc87e93a74a2df9a1b60d3.tar.xz anaconda-a116a6b3e77a2918d2cc87e93a74a2df9a1b60d3.zip |
Allow updates to contain entire directories we forgot in an image.
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -290,13 +290,6 @@ def setupPythonUpdates(): 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" - if os.access("/mnt/source/RHupdates/%s" %(pypkg,), os.X_OK): try: os.mkdir("/tmp/updates/%s" %(pypkg,)) @@ -308,6 +301,19 @@ def setupPythonUpdates(): os.symlink("/mnt/source/RHupdates/%s/%s" %(pypkg, f), "/tmp/updates/%s/%s" %(pypkg, f)) + # get the libdir. *sigh* + if os.access("/usr/lib64/python%s/site-packages/%s" %(pyver, pypkg), + os.X_OK): + libdir = "lib64" + elif os.access("/usr/lib/python%s/site-packages/%s" %(pyver, pypkg), + os.X_OK): + libdir = "lib" + else: + # If the directory doesn't exist, there's nothing to link over. + # This happens if we forgot to include one of the above packages + # in the image, for instance. + return + if os.access("/tmp/updates/%s" %(pypkg,), os.X_OK): for f in os.listdir("/usr/%s/python%s/site-packages/%s" %(libdir, pyver, |