<?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>9156</bug_id>
          
          <creation_ts>2016-02-23 20:47:15 +0000</creation_ts>
          <short_desc>Adding a package that was a dependency doesn&apos;t always look right</short_desc>
          <delta_ts>2016-05-04 14:12:25 +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>Toaster</product>
          <component>toaster</component>
          <version>2.1</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>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Lerner">dave.lerner</reporter>
          <assigned_to name="Dave Lerner">dave.lerner</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>59408</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Lerner">dave.lerner</who>
    <bug_when>2016-02-23 20:47:15 +0000</bug_when>
    <thetext>When customising an image, if you 
1) add a package A that is dependent on other packages (B,C) that are not already in the custom image,
2) then remove package A and remove dependency list packages, B,C...
3) then add the package A back to the customised image and again indirectly add all of the manually removed packages B,C...
then the button labels on packages B,C that were indirectly are incorrect, showing &quot;Add Package&quot; as before step 1, and not &quot;Remove Package&quot; as after step 1.

To reproduce this problem, following the steps in 9101
1. Create a toaster project with release master

2. Build core-image-sato

3. Go to the &apos;new custom image&apos; page, search for core-image-minimal and click the &apos;customise&apos; button. 

4. Give your custom image a name and build it

5. Once the build completes, go to the project configuration page, and select the &apos;custom images&apos; link on the left navigation

6. Click on your custom image 

7. Search for the atk package and click its &apos;add package&apos; button. You will see a list of dependencies, glib-2.0 libffi and libpcre, the packages not already in core-image-minimal.

8. Add atk, note that the banner (after defect 9101 is accepted) says 4 packages added.  

9. Note that atk&apos;s button changes from Add Package to Remove Package.  View each of the 3 packages added from the dependency list, glib-.0 libffi and libpcre and note that their buttons say Remove Package.

10. Go back to atk and click and remove that package.  Do the same for glib-2.0 then libffi and libpcre.  Note that the button labels after each operation revert to Add Package.

11. Go back to atk and click Add Package and note that as in step 9, the button reverts to Remove Package, but (the bug) that unlike in step 9, the other 3 packages sill show Add Package and not Remove Package.

The logic in views.py @2630 to remove packages from the excludes_set needs to be added to the logic for dependency list packages @ 2647.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61934</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-05-04 14:12:25 +0000</bug_when>
    <thetext>Verifide on master: f7b520878babbaa7527151f22c031ae160512753</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>