X-Git-Url: http://git.samba.org/samba.git/?p=gd%2Fsamba-autobuild%2F.git;a=blobdiff_plain;f=buildtools%2Fwafadmin%2FUtils.py;fp=buildtools%2Fwafadmin%2FUtils.py;h=91ded93b6e7d0ef194b2166e3d773b3f9fe7e8e5;hp=41dad570ebe14551d734bc1935072a59549d1c60;hb=0231575709231eadd89761d966c1b8412950de00;hpb=a125ea7419142dfb86c4f32b1d46896f3bf40704 diff --git a/buildtools/wafadmin/Utils.py b/buildtools/wafadmin/Utils.py index 41dad570ebe..91ded93b6e7 100644 --- a/buildtools/wafadmin/Utils.py +++ b/buildtools/wafadmin/Utils.py @@ -15,7 +15,7 @@ Utilities, the stable ones are the following: import stat def h_file(filename): - st = os.stat(filename) + st = os.lstat(filename) if stat.S_ISDIR(st[stat.ST_MODE]): raise IOError('not a file') m = Utils.md5() m.update(str(st.st_mtime)) @@ -419,7 +419,7 @@ def pprint(col, str, label='', sep='\n'): def check_dir(dir): """If a folder doesn't exists, create it.""" try: - os.stat(dir) + os.lstat(dir) except OSError: try: os.makedirs(dir)