[Toaster] [V3 review-request] show and delete recursive list of reverse dependencies

Dave Lerner dave.lerner at windriver.com
Tue Mar 22 08:56:05 PDT 2016


Target Branch: toaster-next master
Contrib Branch: poky-contrib/dlerner/9121-delete-dependent-package-tree
Defect: 9121
Summary: show and delete recursive list of reverse dependencies

Comment
-------
Version 3: Shorter sanity tests run here. This version 3 is only a rebase against toaster-next. No patches were changed.

Commit
------
aa742e6 toaster: get all dependents for pkg for removal
1c86b2b toaster: new customise package-remove modal dlg
6cff5de toaster: show full list of dependents to remove
 
 .../toaster/toastergui/static/js/customrecipe.js   | 72 +++++++++++++++--
 .../toaster/toastergui/templates/customrecipe.html |  5 +-
 bitbake/lib/toaster/toastergui/views.py            | 91 +++++++++++++++++++---
 3 files changed, 148 insertions(+), 20 deletions(-)


SETUP:
-----
Start toaster with empty build directory, sstate-cache
Create a new project, 'myproject'
Build core-image-sato

CASE Remove reverse dependency package that was part of original base image
------------------------------------------------------------------
Create new custom image on core-image-sato, named mysato
Remove libcrypto
    Verify that "39 packages will be removed" are reported and that the 
    packages are unique and in alpha order
    [V3] Verify that the notification shows
"You have removed libcrypto and its 39 reverse dependencies: gst-player-bin, gstreamer1.0-plugins-bad-dtls, gstreamer1.0-plugins-bad-meta, gstreamer1.0-plugins-bad-opengl, libegl-mesa and 34 more"



CASE Test no interference removing from a 2nd custom image in project
----------------------------------------------------------------------
New custom-image based on core-image-sato 'myminimal'
Build it
Add atk which is dependant on glib-2.0, libffi, libpcre (bash appears but this
is busybox system, so don't think that dependency will apply - maybe bug unrelated to this work).
Build myminimal again.
Verify that atk, libffi, libpcre, glib-2.0 have files in the file system
For custom image myminimal, enter libpcre, remove package
    Verify modal dlg notes libpcre atk and glib-2.0 will be removed Remove
    Verify that banner shows
"You have removed 3 packages form myminimal: <strong> libpcre </strong> and its 2 reverse depenencies: atk, glib-2.0"
Build
    Verify atk, glib2.0 and libpcre are removed.


More information about the toaster mailing list