Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 04992E00C41; Mon, 14 Mar 2016 09:17:41 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.65 listed in list.dnswl.org] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9EA8EE00D5A for ; Mon, 14 Mar 2016 09:17:38 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 14 Mar 2016 09:17:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,336,1455004800"; d="scan'208";a="66097461" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga004.fm.intel.com with ESMTP; 14 Mar 2016 09:17:37 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.174]) by IRSMSX151.ger.corp.intel.com ([169.254.4.72]) with mapi id 14.03.0248.002; Mon, 14 Mar 2016 16:17:35 +0000 From: "Barros Pena, Belen" To: "Lerner, David M (Wind River)" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] Review Request: 9121 Remove direct/indirect dependents of a package Thread-Index: AQHRfg0E+j/Jv+7Ym0GdV9s7441G/A== Date: Mon, 14 Mar 2016 16:17:34 +0000 Message-ID: References: <1457713747-32331-1-git-send-email-dave.lerner@windriver.com> In-Reply-To: <1457713747-32331-1-git-send-email-dave.lerner@windriver.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.1.160122 x-originating-ip: [10.237.224.83] MIME-Version: 1.0 Subject: Re: Review Request: 9121 Remove direct/indirect dependents of a package X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 16:17:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <55462583A7A75643963C32AC55746C6B@intel.com> Content-Transfer-Encoding: quoted-printable On 11/03/2016 16:29, "toaster-bounces@yoctoproject.org on behalf of Dave Lerner" wrote: >Target Branch: toaster-next, master >Contrib Branch: poky-contrib/dlerner/9121-delete-dependent-package-tree > >Defect: 9121 >Summary: Show and remove direct and indirect dependents when removing >package This seems to be working for me. Only one small note below about one of the test cases. The other thing we might change is the notification message. Apologies: I realise this was not covered in the design document I attached to Bugzilla.=20 * In the dialog we use the expression "reverse dependencies". We know is not perfect as expressions go, but it is used consistently across Toaster. The notification message, however, uses the word "dependents" instead. I think we should also use "reverse dependencies" there so that we are consistently awful ;) So we would say something like: "You have removed 3 packages from : libpcre and it's 2 reverse dependencies" Or "You have removed 2 packages from : libpcre and its reverse dependency" * When you add a package we show the dependency names. I think we should do the same when removing reverse dependencies. Obviously, we need to set some kind of limit (we can't really list 39 packages). But often we will be dealing with 2 to 5 packages, and in those cases it is useful I think to show the names. So we would say something like: "You have removed 3 packages from : libpcre and its reverse dependencies atk and glib-2.0" In any case, this should not stop merging these patches: it's a minor issue, and we can make the changes later on. > >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 dependent on glib-2.0, libffi, libpcre >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 atk and glib-2.0 will be removed Remove >Build > Verify atk, glib2.0 libffi are removed. This is probably a typo, but just in case: after building, atk, glib2.0 and libpcre were removed. libffi was not removed, neither before nor after the build, but it was not mentioned in the dialog either when removing libpcre, so from the outside it looks like Toaster did the right thing. Thanks! Bel=E9n > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster