Bug 9065 - wrong message for directory displayed in case of error
Summary: wrong message for directory displayed in case of error
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-05 10:20 UTC by Bogdan Alexandru Voiculescu
Modified: 2016-04-01 01:12 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Alexandru Voiculescu 2016-02-05 10:20:13 UTC
1) Build the ext SDK for core-image-minimal:
   bitbake -c populate_sdk_ext core-image-minimal
2) Publish the SDK:
     oe-publish-sdk <path to SDK installer> <temp path>

Use only the path to SDK installer (not including the installer name) 
An error is displayed (also no verification ahead); the message is unclear and contains the destination directory (the destination directory is ok).
Message should be like this: SDK installer path is a directory; please include the file name.

Example:
$ mkdir ~/tmp (or any temp dir)
$ oe-publish-sdk tmp/deploy/sdk/ ~/tmp
INFO: Copying the SDK to destination
Traceback (most recent call last):
  File "/home/yocto/yocto/poky-test/poky/scripts/oe-publish-sdk", line 139, in <module>
    ret = main()
  File "/home/yocto/yocto/poky-test/poky/scripts/oe-publish-sdk", line 134, in main
    ret = args.func(args)
  File "/home/yocto/yocto/poky-test/poky/scripts/oe-publish-sdk", line 72, in publish
    os.remove(dest_sdk)
OSError: [Errno 21] Is a directory: '/home/yocto/tmp/'