diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-24 17:48:49 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-25 17:25:56 +0000 |
commit | 6028daedcb2e3eeab8bb7c725de4303b03625ed8 (patch) | |
tree | 0b0f74bb6767b6853bef46424882b3b7fc2aafc9 /bitbake/lib/bb/utils.py | |
parent | c6940a97958be1d9981a3b5fb3ae27f74414e57f (diff) | |
download | openembedded-core-6028daedcb2e3eeab8bb7c725de4303b03625ed8.tar.gz openembedded-core-6028daedcb2e3eeab8bb7c725de4303b03625ed8.tar.bz2 openembedded-core-6028daedcb2e3eeab8bb7c725de4303b03625ed8.zip |
Fix 7 references to undefined variables, as spotted by pyflakes
(Bitbake rev: e1e4ccf203e38070eeafd31a622671996cff61a1)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 5b7e7a3608..ad0aa68b27 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -21,7 +21,8 @@ BitBake Utility Functions separators = ".-" -import re, fcntl, os, types, bb, string +import re, fcntl, os, types, bb, string, stat, shutil +from commands import getstatusoutput def explode_version(s): r = [] @@ -516,7 +517,7 @@ def movefile(src,dest,newmtime=None,sstat=None): return None # failure try: if didcopy: - missingos.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) + os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) os.chmod(dest, stat.S_IMODE(sstat[stat.ST_MODE])) # Sticky is reset on chown os.unlink(src) except Exception, e: @@ -536,8 +537,6 @@ def copyfile(src,dest,newmtime=None,sstat=None): attributes; mtime will be preserved even when moving across filesystems. Returns true on success and false on failure. """ - import os, stat, shutil - #print "copyfile("+src+","+dest+","+str(newmtime)+","+str(sstat)+")" try: if not sstat: |