Some distrib tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7,7 +7,7 @@ Usage: genfilelist.py [-r] build_root filespec(s)
|
||||
"""
|
||||
|
||||
|
||||
import sys, os, glob
|
||||
import sys, os, glob, stat
|
||||
|
||||
|
||||
def walktree(names, buildroot, recurse):
|
||||
@@ -25,7 +25,7 @@ def printfilename(name, buildroot, isdir):
|
||||
fmt = "%%dir %%attr(%o, root, root) %s"
|
||||
else:
|
||||
fmt = "%%attr(%o, root, root) %s"
|
||||
print fmt % (s.st_mode & 0777, realname)
|
||||
print fmt % (s[stat.ST_MODE] & 0777, realname)
|
||||
|
||||
|
||||
def main(args):
|
||||
|
Reference in New Issue
Block a user