Package choosing algorithm ...
Wed Mar 23 16:22:00 GMT 2016
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.
> https://cygwin.com/acronyms#PGA anybody?
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
More information about the Cygwin