public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps@cygwin.com
Subject: Re: [PATCH] Revert "Don't override a Keep selection"
Date: Tue, 17 Oct 2017 19:32:00 -0000	[thread overview]
Message-ID: <66510301-7c57-ac6c-9e4c-05cf5816d3a9@cornell.edu> (raw)
In-Reply-To: <de8a07e2-d62a-e156-42c1-e54677a2a9d2@dronecode.org.uk>

On 10/17/2017 2:43 PM, Jon Turney wrote:
> On 16/10/2017 20:13, Ken Brown wrote:
>> This reverts (the rest of) commit b43b697.  Part of that commit was
>> already reverted in commit ff0bb3d.  The rest is not needed either
>> since we no longer send the upgrade flag to the solver after the user
>> has made their selections.
>> ---
>>   libsolv.cc     | 14 +++-----------
>>   libsolv.h      |  1 -
>>   package_meta.h |  2 --
>>   3 files changed, 3 insertions(+), 14 deletions(-)
> 
> Hmm... not sure about this.
> 
> Say the initial upgrade solution had something like: package A 1.0 -> 
> 1.1, and A 1.1 has a dependency on package B 2.0, where currently B 1.0 
> is installed (so B 1.0 -> 2.0)
> 
> If the user then changes B to 'keep' (at 1.0), we should report a conflict?

Good point.  I wasn't thinking about dependencies with version relations.

> Does keeping this cause a problem?

No, but it's not actually effective at the moment, because after commit 
ff0bb3d, package_meta::default_version isn't being set.  Maybe it should 
be set to reflect the initial upgrade solution.  I'll play with this 
some more.

> I guess we are generating a huge number of these tasks into the solver 
> because "Keep" is kind of overloaded between "Don't care (but it just 
> happens that I know that there's nothing to do)" and "Lock"?

Yeah, this needs further thought.

Ken

  reply	other threads:[~2017-10-17 19:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 19:13 Ken Brown
2017-10-17 18:43 ` Jon Turney
2017-10-17 19:32   ` Ken Brown [this message]
2017-10-19  3:01     ` Ken Brown
2017-10-19 15:05       ` Ken Brown
2017-10-19 21:36         ` Ken Brown
2017-10-20 11:08           ` Ken Brown
2017-10-23 12:17             ` Jon Turney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66510301-7c57-ac6c-9e4c-05cf5816d3a9@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).