<?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>3401</bug_id>
          
          <creation_ts>2012-11-08 14:28:08 +0000</creation_ts>
          <short_desc>standalone toolchain should notify the user if the target install dir of SDK is one already used</short_desc>
          <delta_ts>2013-04-17 13:38:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27312</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-11-08 14:28:08 +0000</bug_when>
    <thetext>When installing the standalone SDK on a location on which it is already installed, the installation should ask the user if he wants to reinstall/overwrite the contents of that dir or cancel the installation.


I have tested with the arm SDK version found here: http://downloads.yoctoproject.org/autobuilder-images/nightly/20121107-1/toolchain/x86_64/

Commit: 78983e939ab17f02f8911c8b0d0e326b419856b9


STEPS TO REPRODUCE
1. Download one toolchain from the specified link above. I have used arm.
2. Run the installer, and when asked, install the toolchain to &quot;./sdk&quot; directory
3. Run again the installer with the same install folder like in step 2.

EXPECTED RESULT
2. SDK is installed.
3. SDK installer should inform the user that a previous installation in the specified folder &quot;./sdk&quot;

ACTUAL RESULT
2. SDK is installed.
3. SDK is installed without informing the user that a previous installation have been performed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27370</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-11-12 17:43:59 +0000</bug_when>
    <thetext>To be clear, for different architecture, we should allow user to install under the same directory.  It&apos;s only for the same architecture that we should check with user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27663</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-11-25 15:36:59 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; To be clear, for different architecture, we should allow user to install
&gt; under the same directory.  It&apos;s only for the same architecture that we
&gt; should check with user.

Jessica, as a cosmetic improvement is it possible also inform the user the ARCHITECTURES already installed on that specified directory where previous installations have been occurred?

Something like: &quot; In the following $DIR the sdk is already available for ARM, MIPS ...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27671</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-26 08:24:52 +0000</bug_when>
    <thetext>&gt; Jessica, as a cosmetic improvement is it possible also inform the user the
&gt; ARCHITECTURES already installed on that specified directory where previous
&gt; installations have been occurred?
&gt; 
&gt; Something like: &quot; In the following $DIR the sdk is already available for
&gt; ARM, MIPS ...&quot;
I don&apos;t see the point of this. I agree, it is important to notify the user that another SDK for the same architecture is already installed, so that the user knows that his files might be overwritten. But listing all the existing SDKs for other architectures that were already installed? I don&apos;t find this information useful when installing a new SDK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27672</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-11-26 08:39:36 +0000</bug_when>
    <thetext>Laurentiu, it&apos;s just a cosmetic feature and I believe that informing the user won&apos;t harm, but even better, will improve the user experience. Good user experience is very welcomed in every product, and that can make a lot of difference in a product. Just my 2 cents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27674</commentid>
    <comment_count>5</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-11-26 08:53:33 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Laurentiu, it&apos;s just a cosmetic feature and I believe that informing the
&gt; user won&apos;t harm, but even better, will improve the user experience. Good
&gt; user experience is very welcomed in every product, and that can make a lot
&gt; of difference in a product. Just my 2 cents.

Even though I agree that user experience is important, printing the existing SDKs will only add an extra piece of information that the user will most likely never use. The users usually know what devices they are developing for... Anyway, please file a separate bug for this as it is a low priority change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27948</commentid>
    <comment_count>6</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-04 12:45:57 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b751ec137d0228b40a90e9e32b24f5cb5732225b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32306</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-04-17 13:38:07 +0000</bug_when>
    <thetext>verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>