<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9065</bug_id>
          
          <creation_ts>2016-02-05 10:20:13 +0000</creation_ts>
          <short_desc>wrong message for directory displayed in case of error</short_desc>
          <delta_ts>2016-04-01 01:12:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58627</commentid>
    <comment_count>0</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-02-05 10:20:13 +0000</bug_when>
    <thetext>1) Build the ext SDK for core-image-minimal:
   bitbake -c populate_sdk_ext core-image-minimal
2) Publish the SDK:
     oe-publish-sdk &lt;path to SDK installer&gt; &lt;temp path&gt;

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 &quot;/home/yocto/yocto/poky-test/poky/scripts/oe-publish-sdk&quot;, line 139, in &lt;module&gt;
    ret = main()
  File &quot;/home/yocto/yocto/poky-test/poky/scripts/oe-publish-sdk&quot;, line 134, in main
    ret = args.func(args)
  File &quot;/home/yocto/yocto/poky-test/poky/scripts/oe-publish-sdk&quot;, line 72, in publish
    os.remove(dest_sdk)
OSError: [Errno 21] Is a directory: &apos;/home/yocto/tmp/&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60641</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-04-01 01:12:29 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8ef70163fc88128f2490f11bb1c28fa80b04cfb1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>