This is the mail archive of the
mailing list for the Cygwin project.
Re: Package choosing algorithm ...
- From: Houder <houder at xs4all dot nl>
- To: cygwin at cygwin dot com
- Date: Wed, 23 Mar 2016 17:21:52 +0100
- Subject: Re: Package choosing algorithm ...
- Authentication-results: sourceware.org; auth=none
- References: <bf41d85cb0aa96624fd4383778eb1287 at xs4all dot nl> <20160321100007 dot GK3422 at calimero dot vinschen dot de> <1a2fa4d86b78fbf1ccf8bc9a690e82e5 at xs4all dot nl> <20160322095250 dot GK7179 at calimero dot vinschen dot de>
On 2016-03-22 10:52, Corinna Vinschen wrote:
On Mar 21 13:40, Houder wrote:
Apparently specifying the -m option makes a difference ...
It shouldn't but apparently it does, oh well.
More experimenting ... including building and testing setup.exe
All the time using "Install from Local Directory" ...
- copied cygwin-2.5.0-0.8.tar.xz to cygwin-2.5.0-0.9.tar.xz
- modified setup.ini
cygwin: substituted 0.9 for TEST
- using my test version of setup.exe, I found out that the current
the cygwin tarball (setup.ini) HAD to be in my repo ... or else setup
not offer the new test version for install ...
- I modified package_meta.h accordingly - see below
(my new test version is offered for install after the modification)
- next I downloaded the current version of the cygwin tarball and moved
the file to appropriate place in my repo.
Using the official version of setup, I verified that my test version
offered for install.
Please, keep in mind: I am NOT announcing here that I found the bug ...
keep that in mind (inexperienced C++ developer and all that).
I am sure more testing is required ...
std::string action_caption () const;
packageversion trustp (bool _default, trusts const t) const
/* If the user chose "test" and a "test" version is available,
return it. */
if (t == TRUST_TEST && exp)
/* Are we looking for the default version and does the installed
have a higher version number than the "curr" package? This means
user has installed a "test" version, or built her own version
than "curr". Rather than pulling the user back to "curr", we
"test" if a "test" version is available and the version number is
or we stick to "installed" if not. This reflects the behaviour
`yum update' on Fedora. */
//Log (LOG_PLAIN) << "HENRI:" << "\t" << this->name << "\t" << _default
<< "\t" << prev << curr << exp << "\t" << installed << endLog;
Log (LOG_PLAIN) << "HENRI:" << "\t" << this->name << " " \
<< curr << " " << installed << " cmp(c,i): " <<
packageversion::compareVersions (curr, installed) << " " \
<< installed << " " << exp << " cmp(i,e): " <<
packageversion::compareVersions (installed, exp) << endLog;
// Henri: Oops, current (setup.ini) is NOT present in repo in my case
// if (_default && curr && installed
if (_default && installed
&& packageversion::compareVersions (curr, installed) < 0)
if (exp && packageversion::compareVersions (installed, exp) < 0)
Log (LOG_PLAIN) << "HENRI!" << "\t" << this->name << endLog;
/* Otherwise, if a "curr" version exists, return "curr". */
/* Otherwise return the installed version. */
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple