diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index 82970ce51b..3c4997d8ba 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py | |||
@@ -57,7 +57,7 @@ class RawCopyPlugin(SourcePlugin): | |||
57 | raise WicError("No file specified") | 57 | raise WicError("No file specified") |
58 | 58 | ||
59 | src = os.path.join(kernel_dir, source_params['file']) | 59 | src = os.path.join(kernel_dir, source_params['file']) |
60 | dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno)) | 60 | dst = os.path.join(cr_workdir, "%s.%s" % (os.path.basename(source_params['file']), part.lineno)) |
61 | 61 | ||
62 | if not os.path.exists(os.path.dirname(dst)): | 62 | if not os.path.exists(os.path.dirname(dst)): |
63 | os.makedirs(os.path.dirname(dst)) | 63 | os.makedirs(os.path.dirname(dst)) |