diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-08 14:49:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-15 15:19:53 +0000 |
commit | 5193dfdb1f6608e8721ded72a70108a78277cd95 (patch) | |
tree | 63a122cac4d40bc08c62ee0a66c5772061fee237 /meta/lib | |
parent | 714ee41cb5e80db373d4fa2c9cc37b94aa6bba0b (diff) | |
download | poky-5193dfdb1f6608e8721ded72a70108a78277cd95.tar.gz |
lib/oe/path: remove duplicate import
There's no need to import glob inside copyhardlinktree() as it's
already imported for the entire path module.
(From OE-Core rev: 42dc4695da136a15bebb7525b1da5c2722b10a28)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/path.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 06a5af2659..f73fd4ac07 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py | |||
@@ -81,7 +81,6 @@ def copyhardlinktree(src, dst): | |||
81 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) | 81 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) |
82 | source = '' | 82 | source = '' |
83 | if os.path.isdir(src): | 83 | if os.path.isdir(src): |
84 | import glob | ||
85 | if len(glob.glob('%s/.??*' % src)) > 0: | 84 | if len(glob.glob('%s/.??*' % src)) > 0: |
86 | source = '%s/.??* ' % src | 85 | source = '%s/.??* ' % src |
87 | source = source + '%s/*' % src | 86 | source = source + '%s/*' % src |