Re: [PATCH 1/3] Don't assume pypkg is a directory in setupPythonUpdates()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 24 Sep 2009, Chris Lumens wrote:

diff --git a/anaconda b/anaconda
index 4f63977..6f3e27f 100755
--- a/anaconda
+++ b/anaconda
@@ -163,7 +163,7 @@ def setupPythonUpdates():
 		      os.access("/tmp/updates/%s/%s" %(pypkg, f[:-1]),os.R_OK)):
 		    # dont copy .pyc files we are replacing with updates
 		    continue
-		else:
+		elif os.path.isdir("/tmp/updates/%s" % (pypkg,)):
 		    os.symlink("/usr/%s/python%s/site-packages/%s/%s" %(libdir,
 									pyver,
 									pypkg,

I don't know that I agree with this.  Doesn't the os.listdir on line 157
mean that pypkg has to be a directory?  What problem are you seeing?

When I dropped a new libparted-1.9.0.so.0 in to updates.img, this os.symlink
call would shit the bed.

- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkq71AIACgkQ5hsjjIy1VkkMsgCfSd6GEEMqc2YTaGYYCfAGJLSU
gJ4AoKCEWSMVr081XaPX4iOwIWwnF6GW
=E/DB
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux