From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17632 invoked by alias); 7 Jun 2018 17:37:34 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 17586 invoked by uid 89); 7 Jun 2018 17:37:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=smoothly, preparation, H*Ad:U*cygwin-apps X-HELO: limerock03.mail.cornell.edu Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Jun 2018 17:37:31 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id w57HbSh8028541; Thu, 7 Jun 2018 13:37:29 -0400 Received: from nothing.nyroc.rr.com (mta-68-175-129-7.twcny.rr.com [68.175.129.7] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id w57HbMLR004317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 7 Jun 2018 13:37:28 -0400 From: Ken Brown To: cygwin-apps@cygwin.com Subject: [PATCH setup v2 0/2] Improve the handling of command line package selection Date: Thu, 07 Jun 2018 17:37:00 -0000 Message-Id: <20180607173724.5972-1-kbrown@cornell.edu> X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00007.txt.bz2 Suppose an installed package A gets updated because of the "--packages A" command line option. If A requires a version of package B higher than the installed version, then B will also need to be updated. Moreover, if the "--upgrade-also" option hasn't been specified, then the global update mode will be "Keep", so libsolv will have to add the upgrade of B. These two patches attempt to make sure that this process is handled smoothly. First, the package database needs to be set up so that it doesn't indicate that the user chose to keep B; this would cause libsolv to report a problem. Second, the "confirm" dialog should indicate that the upgrade of B was automatically added. v2: Rebase against current HEAD. Ken Brown (2): Improve the preparation of the package database Fix detection of automatically added packages choose.cc | 26 ++++++-------------------- confirm.cc | 2 +- libsolv.cc | 11 +++-------- package_db.cc | 12 ++++++++++++ package_db.h | 2 ++ 5 files changed, 24 insertions(+), 29 deletions(-) -- 2.17.0