public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin-apps@cygwin.com
Cc: Achim Gratz <Stromeko@Stromeko.DE>
Subject: Re: [PATCH 1/4 setup] package re-/de-installation from CLI
Date: Mon, 07 Oct 2013 15:03:00 -0000	[thread overview]
Message-ID: <5252CD17.4080001@dronecode.org.uk> (raw)
In-Reply-To: <874nbjade0.fsf_-_@Rainer.invalid>

[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]

On 24/07/2013 21:53, Achim Gratz wrote:
> From 1686e0beac98867bf1fe358a8fe9a9d8647d4a3a Mon Sep 17 00:00:00 2001
> From: Achim Gratz <Stromeko-GL6zORMxvAD+tKtrA809HA@public.gmane.org>
> Date: Fri, 8 Feb 2013 20:58:20 +0100
> Subject: [PATCH 1/4] Remove detrimental initialization
> 
>        * choose.cc (createListview): Remove superflous and detrimental
>          default trust setting.  This has already been set correctly
>          in OnInit.
> ---
>  choose.cc | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/choose.cc b/choose.cc
> index 6d5f3b7..4e0bcd4 100644
> --- a/choose.cc
> +++ b/choose.cc
> @@ -148,11 +148,6 @@ ChooserPage::createListview ()
>      log (LOG_BABBLE) << "Failed to set View button caption %ld" <<
>  	 GetLastError () << endLog;
>  
> -  for (packagedb::packagecollection::iterator i = db.packages.begin(); i != db.packages.end(); i++)
> -    {
> -      i->second->set_requirements(chooser->deftrust);
> -    }
> -

There have been a few reports that setup no longer installs the dependencies
of explicitly specified packages in unattended mode, and this seems to be the
culprit.

A small patch to fix this is attached.

(I note with amazement that setup has two dependency solvers: one in
PrereqChecker, and one in packageversion)


[-- Attachment #2: 0001-Fix-selecting-of-package-dependencies-in-unattended-.patch --]
[-- Type: text/plain, Size: 1018 bytes --]

From 29da1520437fc3edfe9b53b7e07441af91d2b1ad Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Date: Mon, 7 Oct 2013 15:07:35 +0100
Subject: [PATCH setup] Fix selecting of package dependencies in unattended
 mode

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
---
 prereq.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/prereq.cc b/prereq.cc
index 675bdfe..a46ca7e 100644
--- a/prereq.cc
+++ b/prereq.cc
@@ -150,9 +150,10 @@ PrereqPage::OnUnattended ()
   if (unattended_mode == chooseronly)
     return -1;
 
-  // in unattended mode, carry on to download/install
-  // (this can only happen if there some kind of problem with dependencies, as all required dependencies
-  //  should be selected automatically by the chooser page in unattended mode, so we should never get here)
+  // in unattended mode, add the missing requirements, then carry on to download/install
+  PrereqChecker p;
+  p.selectMissing ();
+
   return whatNext();
 }
 
-- 
1.8.3.4


  parent reply	other threads:[~2013-10-07 15:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22 18:03 [setup] " Achim Gratz
2013-07-24 11:51 ` Corinna Vinschen
2013-07-24 20:45   ` [PATCH 0/4 setup] " Achim Gratz
2013-07-24 20:53     ` [PATCH 2/4 " Achim Gratz
2013-07-25 12:04       ` Corinna Vinschen
2013-07-24 20:53     ` [PATCH 1/4 " Achim Gratz
2013-07-25  9:48       ` Corinna Vinschen
2013-10-07 15:03       ` Jon TURNEY [this message]
2013-10-07 16:21         ` Christopher Faylor
2013-10-07 18:08           ` Jon TURNEY
2013-10-10 20:05             ` Achim Gratz
2013-10-07 18:00         ` Achim Gratz
2013-07-24 20:54     ` [PATCH 4/4 " Achim Gratz
2013-07-26 12:04       ` Corinna Vinschen
2013-07-24 20:54     ` [PATCH 3/4 " Achim Gratz
2013-07-25 12:06       ` Corinna Vinschen
2013-07-25 19:52         ` Achim Gratz
2013-07-24 20:58     ` [PATCH 0/4 " Achim Gratz
2013-07-25  0:03     ` Christopher Faylor
2013-07-25  5:29       ` Achim Gratz
2013-07-25 15:18         ` Christopher Faylor
2013-07-25 19:44           ` Achim Gratz
2013-07-24 20:51   ` [PATCH 3/4 " Achim Gratz
2013-07-24 20:51   ` [PATCH 4/4 " Achim Gratz
2013-07-24 20:51   ` [PATCH 1/4 " Achim Gratz
2013-07-24 20:51   ` [PATCH 2/4 " Achim Gratz

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=5252CD17.4080001@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=Stromeko@Stromeko.DE \
    --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).