From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps@cygwin.com
Subject: Re: [PATCH setup 00/13] ListView Package Chooser
Date: Mon, 06 Aug 2018 19:19:00 -0000 [thread overview]
Message-ID: <3d0912fd-fa2e-a69e-5cc3-01619e1ab06c@cornell.edu> (raw)
In-Reply-To: <64d75f8c-ec4c-0e72-4961-4b2e1fa69911@cornell.edu>
[-- Attachment #1: Type: text/plain, Size: 114 bytes --]
On 8/6/2018 10:15 AM, Ken Brown wrote:
> I have one minor fix (patch attached)
Slightly revised patch attached.
[-- Attachment #2: 0001-Ensure-that-an-installed-packageversion-has-an-ldesc.patch --]
[-- Type: text/plain, Size: 1486 bytes --]
From 7a166b04523b0d3e4547e937cad429d31ef55e90 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Mon, 6 Aug 2018 10:05:12 -0400
Subject: [PATCH] Ensure that an installed packageversion has an ldesc if
possible
In packagedb::read(), copy the ldesc from setup.ini to the
packageversion read from installed.db. Otherwise, an installed
package with only one version will not have an ldesc to use as a
tooltip.
v2: If the installed version is no longer available, copy the ldesc
from the current version of the package.
---
package_db.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package_db.cc b/package_db.cc
index b74aafd..03874ec 100644
--- a/package_db.cc
+++ b/package_db.cc
@@ -149,6 +149,7 @@ packagedb::read ()
if (pv)
{
data.sdesc = pv.SDesc();
+ data.ldesc = pv.LDesc();
data.archive = *pv.source();
data.stability = pv.Stability();
data.spkg_id = pv.sourcePackage();
@@ -172,6 +173,7 @@ packagedb::read ()
if (pkgm)
{
data.sdesc = pkgm->curr.SDesc();
+ data.ldesc = pkgm->curr.LDesc();
if (pkgm->curr
&& version_compare (f.ver, pkgm->curr.Canonical_version()) > 0)
data.stability = TRUST_TEST;
--
2.17.0
next prev parent reply other threads:[~2018-08-06 19:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-05 22:09 Jon Turney
2018-08-05 22:09 ` [PATCH setup 02/13] Add OnNotify virtual function to class Window for WM_NOTIFY notifications Jon Turney
2018-08-05 22:09 ` [PATCH setup 03/13] Drop 'using namespace std;' from PickView.cc Jon Turney
2018-08-05 22:09 ` [PATCH setup 01/13] Change packagemeta::_actions to an enum Jon Turney
2018-08-05 22:10 ` [PATCH setup 06/13] Add methods for listing possible actions on, and applying one to, a package Jon Turney
2018-08-05 22:10 ` [PATCH setup 04/13] Use a ListView common control rather than a hand-built grid Jon Turney
2018-08-05 22:10 ` [PATCH setup 05/13] Custom draw checkboxes in ListView control Jon Turney
2018-08-05 22:10 ` [PATCH setup 07/13] Custom draw popup menus " Jon Turney
2018-08-05 22:10 ` [PATCH setup 09/13] Use an icon to represent expanded/collapsed state Jon Turney
2018-08-05 22:10 ` [PATCH setup 08/13] Show the count of packages in a category Jon Turney
2018-08-05 22:11 ` [PATCH setup 10/13] Use indents in category view Jon Turney
2018-08-05 22:12 ` [PATCH setup 11/13] Add LDesc() accessor method to SolvableVersion Jon Turney
2018-08-05 22:12 ` [PATCH setup 12/13] Restore packagemeta::LDesc() Jon Turney
2018-08-05 22:12 ` [PATCH setup 13/13] Add ldesc tooltips to sdesc column of listview Jon Turney
2018-08-06 14:15 ` [PATCH setup 00/13] ListView Package Chooser Ken Brown
2018-08-06 16:41 ` Achim Gratz
2018-08-06 16:47 ` Achim Gratz
2018-08-06 19:19 ` Ken Brown [this message]
2018-10-13 18:46 ` Jon Turney
2018-08-06 16:40 ` 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=3d0912fd-fa2e-a69e-5cc3-01619e1ab06c@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).