summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-31 16:36:00 +0000
committerChris Lumens <clumens@redhat.com>2006-03-31 16:36:00 +0000
commita116a6b3e77a2918d2cc87e93a74a2df9a1b60d3 (patch)
treea122803339729746257152830665760ea379928d /anaconda
parentf415f83001538f3064370b3ec95b1c4236a202a8 (diff)
downloadanaconda-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-xanaconda20
1 files changed, 13 insertions, 7 deletions
diff --git a/anaconda b/anaconda
index 24f40904f..189ef2465 100755
--- a/anaconda
+++ b/anaconda
@@ -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,