Bug 9121

Summary: Remove reverse dependencies when removing packages from custom images
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Dave Lerner <dave.lerner>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium+ CC: alexandru.costinx.roman, belen.barros.pena, brian.avery, jessica.zhang, michael.g.wood, stanciux.mihail
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
reverse-deps-dialog.png
none
new-reverse-deps-dialog.png none

Description Belen Barros Pena 2016-02-16 09:36:16 UTC
Currently, when you remove a package from a custom image, we tell you about the reverse dependencies of the package you are about to remove, but we don't remove the reverse dependencies (see attached reverse-deps-dialog.png). 

This creates a very cumbersome removal workflow, since you effectively must remember the list of reverse dependencies and remove them one by one. 

The dialog should instead remove the selected package and its reverse dependencies when you click the 'remove packages' button. It should look like the attached new-reverse-deps-dialog.png

Note that: 

* The dialog shows the number of reverse dependencies. This is not a random thing. This number is a very good high level indicator of the impact that removing the package will have, particularly since the number of reverse dependencies can be quite high and you might not be able to see the entire package list without scrolling.

* The list of reverse dependencies should include package groups, since the package group break down mechanism we have in place for removals means that Toaster is likely to do the right thing (remove the package group itself, and the package you selected for removal).
Comment 1 Belen Barros Pena 2016-02-16 09:36:49 UTC
Created attachment 2989 [details]
reverse-deps-dialog.png
Comment 2 Belen Barros Pena 2016-02-16 09:37:19 UTC
Created attachment 2990 [details]
new-reverse-deps-dialog.png
Comment 3 Dave Lerner 2016-03-18 18:54:36 UTC
Version 2 patch set submitted for review
Comment 4 Alexandru Roman 2016-04-21 11:13:10 UTC
Verified on master.