public inbox for
help / color / mirror / Atom feed
* [setup] branch master, updated. release_2.873-18-g2f53d97
@ 2016-03-11 23:02 gratz
  0 siblings, 0 replies; only message in thread
From: gratz @ 2016-03-11 23:02 UTC (permalink / raw)
  To: cygwin-apps-cvs;h=2f53d97ababb61be8f1ae6494552923e377f488c

commit 2f53d97ababb61be8f1ae6494552923e377f488c
Author: Yaakov Selkowitz <>
Date:   Fri Mar 11 22:44:43 2016 +0100

    Switch to "pending" page instead of category when updating or manually installing packages
    * (ChooserPage::createListview): When updating or manually
      installing packages, switch directly to the "pending" page of the
      chooser window instead of the categories since presumably that's
      where the user wants to check what is going to happen.;h=d6f11c3514582eac5ad86f558c90710874ff635d

commit d6f11c3514582eac5ad86f558c90710874ff635d
Author: Achim Gratz <Stromeko@Stromeko.DE>
Date:   Fri Mar 11 20:05:15 2016 +0100

    Implement option -f/--force-current to ensure that "curr" is selected for all packages
    * (ForceCurrentOption): New boolean option
      (ChooserPage::OnInit): Select "curr" version of the package when
      ForceCurrentOption is true.  This is mainly useful to downgrade packages
      that were previously installed with their "test" version back to

--- |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ b/
index 19c7e4d..b0e5538 100644
--- a/
+++ b/
@@ -64,6 +64,7 @@ static const char *cvsid =
 #include "getopt++/BoolOption.h"
 static BoolOption UpgradeAlsoOption (false, 'g', "upgrade-also", "also upgrade installed packages");
 static BoolOption CleanOrphansOption (false, 'o', "delete-orphans", "remove orphaned packages");
+static BoolOption ForceCurrentOption (false, 'f', "force-current", "select the current version for all packages");
 static BoolOption PruneInstallOption (false, 'Y', "prune-install", "prune the installation to only the requested packages");
 static BoolOption MirrorOption (false, 'm', "mirror-mode", "Skip availability check when installing from local directory (requires local directory to be clean mirror!)");
@@ -149,7 +150,8 @@ ChooserPage::createListview ()
     exit (11);
-  chooser->setViewMode (PickView::views::Category);
+  chooser->setViewMode (UpgradeAlsoOption || hasManualSelections ?
+			PickView::views::Package : PickView::views::Category);
   if (!SetDlgItemText (GetHWND (), IDC_CHOOSE_VIEWCAPTION, chooser->mode_caption ()))
     Log (LOG_BABBLE) << "Failed to set View button caption %ld" <<
 	 GetLastError () << endLog;
@@ -266,7 +268,7 @@ ChooserPage::OnInit ()
 	pkg.set_action (packagemeta::Reinstall_action, pkg.curr);
       else if (uninstall)
 	pkg.set_action (packagemeta::Uninstall_action, packageversion ());
-      else if (PruneInstallOption)
+      else if (PruneInstallOption || ForceCurrentOption)
 	pkg.set_action (packagemeta::Default_action, pkg.curr);
       else if (upgrade)
 	pkg.set_action (packagemeta::Default_action, pkg.trustp(true, TRUST_UNKNOWN));

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-11 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-11 23:02 [setup] branch master, updated. release_2.873-18-g2f53d97 gratz

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).