* argh! sym links...

This commit is contained in:
Faik Uygur
2006-11-29 18:06:44 +00:00
parent ac7ba5060b
commit ec087edd40
+4 -1
View File
@@ -613,7 +613,10 @@ class Builder:
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)))