[Uludag-commits] r11005 - trunk/pisi/pisi

svn-uludag at uludag.org.tr svn-uludag at uludag.org.tr
29 Kas 2006 Çar 20:06:44 EET


Author: faik
Date: Wed Nov 29 20:06:44 2006
New Revision: 11005

Modified:
   trunk/pisi/pisi/build.py
Log:
* argh! sym links...



Modified: trunk/pisi/pisi/build.py
=================================================================
--- trunk/pisi/pisi/build.py	(original)
+++ trunk/pisi/pisi/build.py	Wed Nov 29 20:06:44 2006
@@ -613,7 +613,10 @@
                 frpath = util.removepathprefix(install_dir, fpath) # relative path
                 ftype, permanent = get_file_type(frpath, package.files, install_dir)
                 fsize = util.dir_size(fpath)
-                st = os.stat(fpath)
+                if not os.path.islink(fpath):
+                    st = os.stat(fpath)
+                else:
+                    st = os.lstat(fpath)
                 d[frpath] = FileInfo(path=frpath, type=ftype, permanent=permanent,
                                      size=fsize, hash=fhash, uid=str(st.st_uid), gid=str(st.st_gid),
                                      mode=oct(S_IMODE(st.st_mode)))


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi