diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 202e594c0..6c25b0d7d 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -141,7 +141,7 @@ def runstrip(file, d): # A working 'file' (one which works on the target architecture) # is necessary for this stuff to work, hence the addition to do_package[depends] - import bb, os, commands + import bb, os, commands, stat pathprefix = "export PATH=%s; " % bb.data.getVar('PATH', d, 1) @@ -159,8 +159,8 @@ def runstrip(file, d): newmode = None if not os.access(file, os.W_OK): - origmode = os.stat(file)[os.stat.ST_MODE] - newmode = origmode | os.stat.S_IWRITE + origmode = os.stat(file)[stat.ST_MODE] + newmode = origmode | stat.S_IWRITE os.chmod(file, newmode) extraflags = "" |