]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2002-07-05 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
080bec6e
RC
12002-07-05 Robert Collins <rbtcollins@hotmail.com>
2
3 * io_stream.cc: Use STL containers rather than custom ones.
4 (io_stream::registerProvider): Ditto.
5 (findProvider): Ditto.
6
3f34f364
RC
72002-07-05 Robert Collins <rbtcollins@hotmail.com>
8
9 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
10 Use STL collections for download site collections.
11 (IniDBBuilderPackage::add_correct_version): Ditto.
12 (IniDBBuilderPackage::process_src): Ditto.
13 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
14 accessible() call to abstract package availability.
15 * choose.cc (scanAVersion): Use STL collections for download site
16 collections.
17 * download.cc (check_for_cached): Ditto.
18 (download_one): Ditto.
19 * package_meta.cc (packagemeta::set_action): Use the packageversion
20 accessible() call to abstract package availability.
21 * package_source.h: Use STL containers rather than custom containers.
22 (site): Create a == operator to allow STL container use.
23 (packagesource::sites): Use STL containers rather than custom
24 containers.
25 * package_version.cc (_packageversion::accessible): Use STL containers
26 for download site containers.
27
e2cdf72c
RC
282002-07-05 Robert Collins <rbtcollins@hotmail.com>
29
30 * LogFile.cc: Use STL containers rather than custom containers.
31 (filedef): Create == and < operators for STL use.
32 (files): Convert to an STL set.
33 (LogFile::setFile): Use STL operations on files.
34 (LogFile::exit): Ditto.
35
3bac26a1
RC
362002-07-05 Robert Collins <rbtcollins@hotmail.com>
37
38 * ini.cc (do_remote_ini): Use STL collection for site collection.
39 * site.cc: Include site.h first to ensure it's parsable standalone.
40 Use STL algorithms.
41 (site_list): Convert to an STL container.
42 (all_site_list): Ditto.
43 (site_list_type::site_list_type): Implement copy constructor.
44 (site_list_type::operator=): Implement assignment operator.
45 (site_list_type::operator ==): Implement.
46 (site_list_type::operator <): Ditto.
47 (save_dialog): Use STL collection calls for site collection.
48 (save_site_url): Ditto.
49 (get_site_list): Ditto.
50 (get_saved_sites): Ditto.
51 (do_download_site_info_thread): Ditto.
52 (SitePage::OnNext): Ditto.
53 (SitePage::PopulateListBox): Ditto.
54 (SitePage::OnMessageCmd): Ditto.
55 * site.h: Use STL vectors instead of custom code.
56 (site_list_type::site_list_type): Declare.
57 (site_list_type::operator=): Ditto.
58 (site_list_type::operator ==): Ditto.
59 (site_list_type::operator !=): Ditto.
60 (site_list_type::operator <): Ditto.
61 (site_list_type::operator <=): Ditto.
62 (site_list_type::operator >): Ditto.
63 (site_list_type::operator >=): Ditto.
64 (site_list): Convert to an STL container.
65 (all_site_list): Ditto.
66
528a8edb
RC
672002-07-05 Robert Collins <rbtcollins@hotmail.com>
68
69 * choose.cc (default_trust): Check package accessibility before
70 triggering an install. (Suggested by Pavel).
71
722002-07-03 Pavel Tsekov <ptsekov@gmx.net>
73
74 * compress_gz.cc (compress_gz::construct): Always initialize key members
75 to ensure the destructor does the right thing.
76
4e868a01
RC
772002-07-03 Pavel Tsekov <ptsekov@gmx.net>
78
79 * filemanip.cc (parse_filename): Do not try to parse empty
80 strings (filenames).
81 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
82 extracted good package name and filename.
83
7f2b9277
RC
842002-07-03 Robert Collins <rbtcollins@hotmail.com>
85
86 * package_meta.cc (packagemeta::set_requirements): Automatically select
87 version of dependent packages that satisfies the requirements.
88 Use processOneDependency to trigger the install of those packages.
89 (checkForInstalled): Check that the package remains installed.
90 (processOneDependency): Helper function for dependent packages.
91 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
92 debug information.
93 Clear out all current state on new packages.
94 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
95 across.
96
84c4f5d1
RC
972002-07-02 Robert Collins <rbtcollins@hotmail.com>
98
99 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
100 nb: inilint is still incomplete, as the packageversion code is not
101 ready for database-less linking.
102 * site.cc (get_site_list): When the same site is reentered by the user
103 replace the old one. (Suggested by John Marshall).
104
64cd7f94
RC
1052002-07-02 Robert Collins <rbtcollins@hotmail.com>
106
107 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
108 Clear out package selections when generating implicit source packages.
109 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
110 (PackageSpecification::_operators::satisfies): Implement.
111 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
112 Worker function for testing versions.
113
3c196821
RC
1142002-07-01 Robert Collins <rbtcollins@hotmail.com>
115
116 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
117 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
118 * IniDBBuilderPackage.cc: Use the STL algorithms.
119 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
120 functions for the same variable throughout.
121 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
122 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
123 and set an empty source package.
124 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
125 to record an install package.
126 (IniDBBuilderPackage::buildPackageSource): Move source package logic
127 out from process_src, as it now occurs at separate times.
128 (IniDBBuilderPackage::buildPackageRequirement): Remove.
129 (IniDBBuilderPackage::buildSourceName): Use renamed package
130 specifiation accessor for clarity.
131 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
132 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
133 than custom code.
134 Remove source package references.
135 (IniDBBuilderPackage::process_src): Remove source package code as it's
136 now handled separately.
137 Set Path information before merging versions, to prevent dangling
138 pointers.
139 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
140 Remove.
141 (IniDBBuilderPackage::cpv): Remove.
142 (IniDBBuilderPackage::cbpv): New generic binary working variable.
143 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
144 (IniDBBuilderPackage::csp): Source package variable for disjoint
145 source packages.
146 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
147 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
148 * PickPackageLine.cc: Adjust packageversion accessors to the new
149 reference calls. (i.e. -> to .) throughout.
150 (PickPackageLine::paint): Use accessible() for clarity.
151 Use new split out source package logic.
152 (PickPackageLine::click): Ditto.
153 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
154 to the new reference calls. (i.e. -> to .) throughout.
155 Use new split out source package logic.
156 * choose.cc: Don't depend on a specific package type.
157 Adjust packageversion accessors to the new reference calls. (i.e. -> to
158 .) throughout.
159 (set_existence): Use accessible () for clarity.
160 (default_trust): Simplify a little.
161 (scanAVersion): Factored out code from scan_downloaded_files for
162 clarity.
163 (scan_downloaded_files): Factor out inner loop for clarity.
164 (ChooserPage::OnNext): Don't dump the dependency list,
165 it's parsing is robust now!.
166 * cygpackage.cc (createInstance): Use a factory method to create new
167 objects.
168 (cygpackage::cygpackage): Make this private for use by the factory.
169 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
170 Remove key usage as it's obsolete.
171 * cygpackage.h (cygpackage): Inherit from _packageversion, not
172 packageversion.
173 (cygpackage::createInstance): New factory.
174 (cygpackage::cygpackage): Make private.
175 * desktop.cc (make_passwd_group): Use new packageversion reference.
176 * download.cc (do_download_thread): Use changeRequested() for clarity.
177 Use new packageversion reference calls.
178 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
179 requires code.
180 * install.cc: Adjust -> to ., and use the new accessor functions for
181 packageversion throughout.
182 * package_db.cc: Adjust -> to ., and use the new accessor functions for
183 packageversion throughout.
184 (packagedb::packagedb): Use the new cygpackage factory.
185 (packagedb::flush): Leverage String to remove buffer overflow chance in
186 sprintf.
187 (packagedb::findBinary): Find a binary meta package that has a version
188 matching a given specification.
189 (packagedb::findSource): Ditto, but for source.
190 * package_db.h (packagedb::findBinary): Declare.
191 (packagedb::findSource): Ditto.
192 * package_meta.cc: Adjust packageversion accessors to the new
193 reference calls. (i.e. -> to .) throughout.
194 Include the package_meta header first to ensure it parses standalone.
195 Use the STL algorithms.
196 (packagemeta::packagemeta): Create a copy constructor to allowing
197 cloning binary package metadata to source package metadata.
198 (packagemeta::~packagemeta): Use the STL coleltion code rather than
199 custom collection code.
200 (packagemeta::add_version): Ditto.
201 (packagemeta::set_installed): Ditto.
202 (packagemeta::SDesc): Ditto.
203 (hasSDesc): Helper function for find_if.
204 (checkForInstalled): Ditto.
205 (checkForUpgradeable): Ditto.
206 (checkForSatisfiable): Ditto.
207 (packagemeta::action_caption): Update for split out source packages.
208 (packagemeta::set_action): Ditto.
209 (packagemeta::set_requirements): Support multi-valued dependency
210 lists - a|b & c|d - with versioned package specifications.
211 (packagemeta::accessible): Helper member to improve abstraction.
212 (packagemeta::sourceAccessible): Ditto.
213 * package_meta.h: Adjust packageversion accessors to the new
214 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
215 (packagemeta::packagemeta): Declare copy constructor.
216 Remove self initialising members.
217 (packagemeta::set_action): Update parameters for new packageversion.
218 (packagemeta::trustp): Ditto.
219 (packagemeta::versions): Becomes an STL set.
220 * package_source.h (packagesource::Cached): Const correctness change.
221 * package_version.cc: Rewrite the packageversion interface to remove
222 the cygpackage nonvirtual members, and provide a copy by value,
223 pointer semantics reference counting wrapper class to ease use and
224 comparison of packageversions.
225 Change existing packageversion class to _packageversion throughout.
226 (_defaultversion): A trivial concrete class to prevent specialcasing
227 the default constructor for packageversion;
228 (packageversion::packageversion): Implement.
229 (packageversion::~packageversion): Ditto.
230 (packageversion::operator=): Ditto.
231 (packageversion::operator !): Ditto.
232 (packageversion::operator bool): Ditto.
233 (packageversion::operator ==): Ditto.
234 (packageversion::operator !=): Ditto.
235 (packageversion::operator <): Ditto.
236 (packageversion::Name): Ditto.
237 (packageversion::Canonical_version): Ditto.
238 (packageversion::setCanonicalVersion): Ditto.
239 (packageversion::getfirstfile): Ditto.
240 (packageversion::getnextfile): Ditto.
241 (packageversion::SDesc): Ditto.
242 (packageversion::set_sdesc): Ditto.
243 (packageversion::LDesc): Ditto.
244 (packageversion::set_ldesc): Ditto.
245 (packageversion::sourcePackage): Ditto.
246 (packageversion::sourcePackageSpecification): Ditto.
247 (packageversion::setSourcePackageSpecification): Ditto.
248 (packageversion::depends): Ditto.
249 (packageversion::predepends): Ditto.
250 (packageversion::recommends): Ditto.
251 (packageversion::suggests): Ditto.
252 (packageversion::replaces): Ditto.
253 (packageversion::conflicts): Ditto.
254 (packageversion::provides): Ditto.
255 (packageversion::picked): Ditto.
256 (packageversion::pick): Ditto.
257 (packageversion::changeRequested): Ditto.
258 (packageversion::uninstall): Ditto.
259 (packageversion::source): Ditto.
260 (packageversion::accessible): Ditto.
261 (_packageversion::sourcePackage): Ditto.
262 (_packageversion::accessible): Ditto.
263 (_packageversion::changeRequested): Ditto.
264 * package_version.h: Rewrite the packageversion interface to remove
265 the cygpackage nonvirtual members, and provide a copy by value,
266 pointer semantics reference counting wrapper class to ease use and
267 comparison of packageversions.
268 Change existing packageversion class to _packageversion throughout.
269 (Dependency): Remove.
270 (packageversion): New wrapper class.
271 (_packageversion): Renamed from packageversion.
272 (_packageversion::setCanonicalVersion): New method.
273 (_packageversion::sourcePackage): Ditto.
274 (_packageversion::sourcePackageSpecification): Ditto.
275 (_packageversion::setSourcePackageSpecification): Ditto.
276 (_packageversion::changeRequested): Ditto.
277 (_packageversion::bin): Rename to source.
278 (_packageversion::src): Remove.
279 (_packageversion::accessible): New method.
280 (_packageversion::references): Allow reference counting.
281 (_packageversion::sourceVersion): Cached the best-match source
282 package version.
283
387cb501
RC
2842002-06-27 Robert Collins <rbtcollins@hotmail.com>
285
286 * compress_bz.h (compress_bz::position): Track how much has been read.
287 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
288 (compress_bz::read): Track amount read by the client.
289 (compress_bz::tell): And report it when asked.
290
7d702af3
RC
2912002-06-27 Robert Collins <rbtcollins@hotmail.com>
292
293 * Makefile.am (snapshot): Automate snapshot creation some more.
294
08cd08c3
RC
2952002-06-27 Robert Collins <rbtcollins@hotmail.com>
296
297 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
298 (mbox): Ditto.
299 * ini.cc (fprintf): Ditto.
300 * log.cc (log): Ditto.
301 * package_db.cc (packagedb::sourcePackages): Split out source packages
302 from binary packages.
303 * package_db.h: Ditto.
304
aa1e3b4d
RC
3052002-06-27 Robert Collins <rbtcollins@hotmail.com>
306
307 * PackageSpecification.h: New file. Abstracts the ability to refer
308 to another package, by name, or name and version.
309 * PackageSpecification.cc: Ditto.
310 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
311 (IniDBBuilder::buildPackageSource): Ditto.
312 (IniDBBuilder::buildBeginDepends): New method for versioned
313 dependencies.
314 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
315 satisfied before pre-install.
316 (IniDBBuilder::buildPriority): New method, for getting the package
317 Priority.
318 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
319 (IniDBBuilder::buildMaintainer): Who maintains the package?
320 (IniDBBuilder::buildArchitecture): What platform is it for?
321 (IniDBBuilder::buildInstallSize): How big is the binary download?
322 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
323 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
324 (IniDBBuilder::buildBeginRecommends): What other packages are
325 recommended with this one?
326 (IniDBBuilder::buildBeginSuggests): And suggested?
327 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
328 (IniDBBuilder::buildBeginConflicts): And collide with?
329 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
330 package names) does this provide?
331 (IniDBBuilder::buildDescription): Grab a multi line description one
332 line at a time.
333 (IniDBBuilder::buildSourceName): What source package should be used to
334 install the source for this binary package?
335 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
336 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
337 list of package specifications.
338 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
339 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
340 to the current specification.
341 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
342 operator act on?
343 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
344 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
345 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
346 (IniDBBuilderPackage::process_src): Streamline and split out
347 functionality.
348 (IniDBBuilderPackage::setSourceSize): From process_src.
349 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
350 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
351 (IniDBBuilderPackage::currentOrList): Track the current Or list.
352 (IniDBBuilderPackage::currentAndList): Track the current And list.
353 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
354 progress on parsing.
355 (IniParseFeedback::iniName): Tell what ini filename we are currently
356 processing.
357 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
358 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
359 Make the feedback object non-const to allow mutating methods which are
360 needed when the object has state.
361 (IniParseFindVisitor::visitFile): Tell the caller the name of each
362 .ini found.
363 Initialise the parser with the feedback object to allow it to tell of
364 progress.
365 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
366 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
367 (setup_SOURCES): Add the new PackageSpecification sources.
368 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
369 builder syntax to setup binary package details.
370 * choose.cc: Use the LogSingleton calls throughout.
371 * configure.in: Create the INILINT substitution correctly for recent
372 autotool configurations.
373 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
374 rather than a string built from an int. Thanks to Pavel Tsekov for
375 identifying the bug.
376 (cygpackage::getnextfile): Ditto.
377 * download.cc: Use LogSIngletion calls throughout.
378 (validateCachedPackage): A refactoring of the
379 check_for_cached code to eliminate duplciation.
380 (check_for_cached): Use validateCachedPackage to check packages.
381 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
382 parsing progress.
383 (do_remote_ini): Ditto.
384 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
385 progress reporting.
386 * inilex.l: Identify new symbols - operators, and multi line plain text.
387 Releases files.
388 * inilintmain.cc (show_help): Provide basic infomation on inilint.
389 * iniparse.y: Adjust for the new builder syntax, and process debian
390 Release files.
391 * io_stream_file.cc: Always include mkdir.h.
392 * list.h: Factor index location into a private routine.
393 (list::findindex): Implement this.
394 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
395 builds. NB: This breaks cygwin build functionality still.
396 * package_meta.cc: Use the LogSingleton calls throughout.
397 (packagemeta::set_requirements): Adjust for object changes in
398 dependencies.
399 * package_meta.h (packagemeta::packagemeta): Initialise new members.
400 (packagemeta::architecture): What platform does this package run on?
401 This may need to move in the future to a per packagefile object.
402 (packagemeta::priority): What priority does this package have?
403 * package_source.h (packagesource::packagesource): Initialise new
404 members.
405 (packagesource::installedSize): How much space does the package need?
406 (packagesource::setInstalledSize): Tell the amount.
407 (packagesource::_installedSize): And store it.
408 * package_version.cc (packageversion::sourcePackage): return the
409 source package.
410 (packageversion::setSourcePackage): And set it.
411 * package_version.h: Declare the package_version.cc changes.
412 (packageversion::depends): New package specification AND list.
413 (packageversion::predepends): Ditto.
414 (packageversion::recommends): Ditto.
415 (packageversion::suggests): Ditto.
416 (packageversion::replaces): Ditto.
417 (packageversion::conflicts): Ditto.
418 (packageversion::provides): Ditto.
419 (packageversion::sourcePackage): What source package is needed?
420 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
421 the bottom bar.
422 * threebar.h: Declare the threebar.cc change.
423
4242002-06-27 John Marshall <johnm@falch.net>
425
426 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
427 * site.cc (SitePage::OnMessageCmd): Ditto
428
2a994e0b
RC
4292002-06-15 Robert Collins <rbtcollins@hotmail.com>
430
431 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
432
ceff7035
RC
4332002-06-15 Robert Collins <rbtcollins@hotmail.com>
434
435 * package_meta.cc (packagemeta::set_action): When installing packages
436 with no binaries, choose the source package.
437
9bd27040
RC
4382002-06-10 Robert Collins <rbtcollins@hotmail.com>
439
440 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
441 Bowshers fix for the crash with a root level setup.ini.
442 * README: Update todos.
443
1dcff4a0
RC
4442002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
445
446 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
447 GNU long name extension support.
448
0773e4f2
RC
4492002-05-27 Robert Collins <rbtcollins@hotmail.com>
450
451 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
452 unescape 0 length strings.
453
a828d772
RC
4542002-05-20 Robert Collins <rbtcollins@hotmail.com>
455
456 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
457 when local with no cached file, and install the default source if the
458 default version has no binary.
459
67829ce0
RC
4602002-05-19 Robert Collins <rbtcollins@hotmail.com>
461
462 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
463 method.
464 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
465 setup version created the ini file.
466 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
467 method.
468 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
469 feedback strategy.
470 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
471 Require a feedback strategy.
472 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
473 * Makefile.in: Regenerate.
474
4849e2fc
RC
4752002-05-19 Robert Collins <rbtcollins@hotmail.com>
476
477 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
478 trick to delete read only files.
479 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
480 remove files.
481 * Makefile.am (release): Tweak to be more helpful.
482 * Makefile.in: Regenerate.
483
7cb35117
RC
4842002-05-19 Robert Collins <rbtcollins@hotmail.com>
485
486 * Makefile.am (release): Tweak to be more helpful.
487 * Makefile.in: Regenerate.
7cb35117 488
5090e3ce
RC
4892002-05-19 Robert Collins <rbtcollins@hotmail.com>
490
491 * Makefile.am (release): Tweak to be more helpful.
492 * Makefile.in: Regenerate.
493
9e9b881a
RC
4942002-05-19 Robert Collins <rbtcollins@hotmail.com>
495
496 * choose.cc (scan_downloaded_files): When a non-installed version
497 has neither bin nor src cached files for local installs,
498 remove the version from availability.
499
ea36e064
RC
5002002-05-19 Robert Collins <rbtcollins@hotmail.com>
501
502 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
503
b401ef47
RC
5042002-05-19 Robert Collins <rbtcollins@hotmail.com>
505
506 * rsync: New support library, contains librsync. This is not (yet)
507 rsync interoperable.
508 * configure.in: --with-rsync to enable rsync support. (Not complete).
509 * Makefile.am: Enable building with rsync.
510 * Makefile.in: Regenerate.
511 * configure: Ditto.
512 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
513 an array.
514 (IniDBBuilder::buildPackageSource): Ditto.
515 * IniDBBuilder.h: Ditto.
516 * IniDBBuilderPackage.cc: Ditto.
517 * IniDBBuilderPackage.h: Ditto.
518 * FindVisitor.cc: New file.
519 * FindVisitor.h: New file, interface for visiting a file system
520 aggregate.
521 * IniParseFindVisitor.cc: New file.
522 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
523 found setup.ini's.
524 * README: Update TODO's.
525 * String++.cc (String::String): New constructor for <string> inter-
526 operability.
527 (String::substr): New method.
528 * String++.h: Ditto.
529 * choose.cc (scan2): Remove.
530 (scan_downloaded_files): Simplify.
531 * dialog.h: Include parsing pre-requirements.
532 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
533 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
534 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
535 * find.h: Ditto.
536 * fromcwd.cc: Remove unneeded includes.
537 (is_test_version): Remove.
538 (found_file): Remove.
539 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
540 (found_ini): Remove.
541 (do_fromcwd): Remove commented code that has be replaced elsewhere.
542 * ini.cc (local_ini): Remove.
543 (findBuilder): Remove.
544 (find_routine): Remove.
545 (do_local_ini): Use new IniParseFindVisitor.
546 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
547 unsigned char.
548 * postinstall.cc: Remove non-core includes.
549 (run_script_in_postinstall): Remove.
550 (RunFindVisitor): Trivial Visitor, runs each found script.
551 (do_postinstall): Use new find syntax.
552
0d4e0aad
CF
5532002-05-14 Christopher Faylor <cgf@redhat.com>
554
555 * ini.cc (find_routine): Don't clear buffer it it's NULL.
556
5572002-05-14 Christopher Faylor <cgf@redhat.com>
558
559 * filemanip.h (trail): Declare.
560 * filemanip.cc (trail): New function.
561 (find_tar_ext): Use trail() instead of strstr().
562 * fromcwd.cc (check_ini): Ditto.
563 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
564 should now be fully qualified. Set ini_filename. Reset error_buf and
565 error_count for any subsequent ini file parsing.
566 (ini_filename): New static variable for parse error reporting.
567 (yyerror): Use full path of setup.ini in error message. Subtract one
568 from line number if at bol.
569 * find.cc (found_part): Eliminate.
570 (find_sub): Call for_each with full path found rather than just file
571 component.
572 (find): Don't calculate found_part.
573 * inilex.l (ini_init): Flush input buffer and reset line number.
574 (yybol): New function. Exports YY_AT_BOL.
575 * iniparse.y: Increase stack depth to allow more tokens to be processed.
576 (yyparse): Remove newline from error condition to allow subsequent
577 per-line error processing to proceed normally.
578
5792002-05-14 Christopher Faylor <cgf@redhat.com>
580
581 * find.cc (find_sub): Be more defensive in preserving trailing parts of
582 components when doing recursive directory searches or calling user
583 supplied for_each().
584 * ini.cc (find_routine): Don't assume that any path name with
585 "setup.ini" in it is actually a setup.ini file. Only honor trailing
586 components. Copy path argument to temporary storage when unescaping
587 to prevent nuking of argument.
588
874c569a
RC
5892002-05-12 Robert Collins <rbtcollins@hotmail.com>
590
591 * CONTRIBUTORS: New file.
592
f6a81f69
RC
5932002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
594
595 * choose.cc: Run indent.
596 (nextbutton): Remove static variable.
597 (default_trust): Remove use of nextbutton.
598 (set_view_mode): Ditto.
599 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
600 rbset() sets the prev/next/curr radio buttons properly.
601 (dialog_cmd): Delete function.
602 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
603 ChooserPage::OnInit.
604 (do_choose): Delete function. Move pre-DialogBox() code to
605 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
606 (WM_APP_START_CHOOSE): Remove define.
607 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
608 (do_choose_thread): Delete function.
609 (ChooserPage::OnActivate): Delete method.
610 (ChooserPage::OnMessageApp): Delete method.
611 (ChooserPage::OnInit): New method.
612 (ChooserPage::OnNext): New method.
613 (ChooserPage::OnBack): New method.
614 (ChooserPage::OnMessageCmd): New method.
615 * choose.h: Run indent.
616 (ChooserPage::OnMessageApp): Delete declaration.
617 (ChooserPage::OnActivate): Ditto.
618 (ChooserPage::OnMessageCmd): New declaration.
619 (ChooserPage::OnInit): Ditto.
620 (ChooserPage::OnNext): Ditto.
621 (ChooserPage::OnBack): Ditto.
622 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
623 with IDD_CHOOSE.
624 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
625 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
626 * res.rc (IDD_CHOOSE): Remove dialog template.
627 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
628
74617327
RC
6292002-05-12 Robert Collins <rbtcollins@hotmail.com>
630
631 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
632 corrupt log file entries.
633 * geturl.cc: Convert to the new LogSingleton logging.
634
3272d625
RC
6352002-05-12 Robert Collins <rbtcollins@hotmail.com>
636
637 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
638 setup.ini.
639
fc687221
RC
6402002-05-12 Robert Collins <rbtcollins@hotmail.com>
641
642 * geturl.h: Declare getUrlToStream.
643 * geturl.cc (getUrlToStream): New function.
644 (get_url_to_membuf): Refactor to use getUrlToStream.
645
902c8a3f
RC
6462002-05-11 Robert Collins <rbtcollins@hotmail.com>
647
648 * Makefile.am: Add a release target to automate some of the routine
649 work.
650 * Makefile.in: Regenerate.
651
2ab26cdb
RC
6522002-05-11 Robert Collins <rbtcollins@hotmail.com>
653
654 * choose.cc (scan_downloaded_files): On local installs remove all
655 mirror sites if no cached copy of a package is found.
656
94852d65
RC
6572002-05-10 Robert Collins <rbtcollins@hotmail.com>
658
659 * Makefile.in: Regenerate.
660 * iniparse.y: Use left recursion, not right in the lines rule to
661 avoid stack overflows.
662 * README: Update TODO's.
663 * io_stream_file.cc: Native builds need to include sys/stat.h
664
3548fbc3
RC
6652002-05-06 John Marshall <jmarshall@acm.org>
666
667 * site.cc (SitePage::OnMessageCmd): recalculate navigation
668 button activation when "Add" is pressed.
669 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
670
6712002-05-07 Robert Collins <rbtcollins@hotmail.com>
2b48ecd0
RC
672
673 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
674 depending on platform.
675 Add file:// support.
676 * configure.in: Set conditional MINGWTARGET if compiling against mingw
677 libraries.
678 * Makefile.in: Regenerate.
679 * configure: Ditto.
680 * io_stream_file.cc: Only use win32 calls when building for mingw.
681
19911586
RC
6822002-05-05 Robert Collins <rbtcollins@hotmail.com>
683
684 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
685 * configure.in: Ditto.
686 Fix incorrect header checking syntax.
687 * aclocal.m4: Regenerate.
688 * configure: Regenerate.
689 * Makefile.in: Regenerate.
690 * io_stream.cc: Remove platform specific and provider specific code.
691 (io_stream::registerProvider): New method, registers a Url provider with
692 the io_stream code.
693 Make all methods consistently throw invalid_argument exceptions when
694 a provider that is requested is not present.
695 (findProvider): New private function, finds a provider.
696 * io_stream.h: Declare io_stream::registerProvider.
697 * io_stream_cygfile.cc: Create a Provider class to register with
698 io_stream.cc.
699 * io_stream_file.cc: Ditto.
700 * archive.cc: Remove unneeded includes.
701 * archive_tar.cc: Remove unneeded includes.
702 * archive_tar.h: Add required include.
703 * archive_tar_file.cc: Remove unneded includes.
704 * choose.cc: Remove unneeded includes:
705
bf4ffcd9
RC
7062002-05-04 Robert Collins <rbtcollins@hotmail.com>
707
708 * io_stream.cc: Use the new log interface thruout.
709
9f4a0c62
RC
7102002-05-04 Robert Collins <rbtcollins@hotmail.com>
711
712 * log.cc (log): Reimplement via LogSingleton.
713 (log_save): Remove.
714 (exit_setup): Remove.
715 * log.h (log_save): Remove.
716 (exit_setup): Remove.
717 * LogSingleton.cc: New file.
718 * LogSingleton.h: New file.
719 * LogFile.cc: New file.
720 * LogFile.h: New file.
721 * Makefile.am (inilint_SOURCES): Add the new log interface.
722 (setup_SOURCES): Add the new log interface and the concrete File
723 implementation.
724 * Makefile.in: Regenerate.
725 * archive.cc: Use the new log interface thruout.
726 * archive_tar.cc: Ditto.
727 * main.cc: Ditto.
728 * dialog.cc (fatal): Use the new log interface.
729 * ini.cc (do_ini_thread): Use the log interface to exit.
730 * isntall.cc (do_install_thread): Ditto.
731 * netio.cc (auth_cmd): Ditto.
732 * msg.cc (fatal): Ditto.
733 * localdir.cc (save_local_dir): Save to different files depending on
734 the mode, and if a root dir exists.
735
076654e7
RC
7362002-05-04 Robert Collins <rbtcollins@hotmail.com>
737
738 * IniDBBuilder.cc: New file.
739 * IniDBBuilder.h: New file.
740 * IniDBBuilderPackage.cc: New file.
741 * IniDBBuilderPackage.h: New file.
742 * PackageTrust.h: New file.
743 * IniState.h: Remove, wasn't thought out well enough.
744 * Makefile.am (inilint_SOURCES): Add more requirements.
745 (setup_SOURCES): Add new Builder base and concrete classes.
746 * Makefile.in: Regenerate.
747 * String++.cc (String::String): Implement int contructor.
748 * String++.h (String): Declare int constructor.
749 * archive_tar.cc (archive_tar::next_file_name): Return String() when
750 no filename exists.
751 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
752 it's not needed.
753 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
754 (find_routine): Use new IniDBBuilder to configure the parser.
755 (do_local_ini): Ditto.
756 (do_remote_ini): Ditto.
757 * ini.h: Use IniDBBuilder to initialise parsing.
758 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
759 swapped.
760 (ini_init): Use an IniDBBuilder rather than static variables.
761 * iniparse.y: Hand off all the object creation to a builder, rather
762 than hardcoding the behaviour. This allows run-time configured
763 behaviour.
764 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
765 method, it's not needed.
766 * io_stream_file.h (io_stream_file): Ditto.
767 * mount.cc (cygpath): Return String() for missing mounts.
768 * package_meta.cc (packagemeta::SDesc): Return String() for blank
769 descriptions.
770 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
771 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
772 usage.
773 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
774 String constructor usage.
775 * site.h (site_list_type): Ditto.
776
6391823e
RC
7772002-05-03 Robert Collins <rbtcollins@hotmail.com>
778
779 * String++.h: Declare a << operator that accepts String objects.
780 * String++.cc: We need iostream for..
781 (operator <<): this. Provide a << operator that accepts String objects.
782 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
783 Change from vargs to a String parameter.
784 * inilintmail.cc: Remove the gui related headers.
785 (yyerror): Implement this for parsing.
786 * iniparse.y: Use the new yyerror syntax.
787
b92028a4
RC
7882002-05-03 Robert Collins <rbtcollins@hotmail.com>
789
790 * Makefile.am: Add IniState.h.
791 * Makefile.in: Regenerate.
792 * IniState.h: New file.
793 * choose.cc: Don't include ini.h - it's not needed.
794 * configure: Regenerate.
795 * desktop.cc: Don't include ini.h - it's not needed.
796 * download.cc: Ditto.
797 * fromcwd.cc: Ditto.
798 * ini.cc: Use IniState.h to track each parsing calling.
799 (find_routine): Ditto.
800 (do_remote_ini): Ditto.
801 (do_ini_thread): Ditto.
802 * ini.h (ini_init): Adjust parameters to include state object.
803 * inilex.l: Declare parser state variable.
804 (ini_init): Adjust parameters to include state object.
805 * iniparse.y: Remove obsolete setup_timestamp and setup_version
806 declarations.
807 (setup_header): Use new state variable to track time and version.
808 (add_correct_version): Ditto.
809 * install.cc: Don't include ini.h - it's not needed.
810
e0a4db64
RC
8112002-05-03 Robert Collins <rbtcollins@hotmail.com>
812
813 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
814 * io_stream_file.cc: Don't include filemanip.h.
815 (io_stream_file::get_size): Implement here to remove filemanip
816 dependency.
817 * io_stream_cygfile.cc: Don't include filemanip.h.
818 (io_stream_cygfile::get_size): Implement here to remove filemanip
819 dependency.
820 Implement a stat based version for when win32 is not available.
821 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
822 * filemanip.cc: Don't include win32.h - be platform independent.
823 Include strings.h and io_stream.h as part of that.
824 (get_file_size): Leverage io_streams and remove win32 implementation.
825 * download.cc (check_for_cached): Use io_stream syntax for
826 get_file_size.
827 (download_one): Ditto.
828
8292002-05-02 Robert Collins <rbtcollins@hotmail.com>
ac65f5c5
RC
830
831 * configure.in: Correct a typo in last change.
832 * configure: Regenerate.
833 * Makefile.in: Regenerate.
834
e0a4db64 8352002-05-02 Robert Collins <rbtcollins@hotmail.com>
e06ded88
RC
836
837 * configure.in: Check for string.h and string.
838 * configure: Regenerate.
839 * Makefile.in: Regenerate.
840
1fd0694a
RC
8412002-05-01 Robert Collins <rbtcollins@hotmail.com>
842
843 * res.rc (IDD_SPLASH): Remove white box.
844
89ca06c0
RC
8452002-05-01 Robert Collins <rbtcollins@hotmail.com>
846
847 Oops! forgot to list these in the last checkin.
848 * inilintmain.cc: New file.
849 * md5.h: New file - imported md5 source, BSD style licence.
850 * md5.cc: New file - imported md5 source, BSD style licence.
851 * Exception.cc: New file.
852 * Exception.h: New file.
853 * MD5++.cc: New file.
854 * MD5++.h: New file.
855
58ee6135
RC
8562002-05-01 Robert Collins <rbtcollins@hotmail.com>
857
858 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
859 Remove -fno-rtti, we need it for exceptions.
860 (AM_CXXFLAGS): Ditto.
861 (WARNONLY_CFLAGS): Ditto.
862 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
863 (setup_LDFLAGS): Add and set to -mwindows.
864 (setup_SOURCES): Add new sources.
865 * Makefile.in: Regenerate.
866 * README: Update TODO.
867 * choose.cc (scan_downloaded_files): Use ini information if it's
868 available.
869 * configure: Regenerate.
870 * download.cc (check_for_cached): Make reusable from elsewhere.
871 Throw exceptions on errors (as opposed to failures).
872 Check MD5 sum when it's known.
873 (download_one): Never force a download.
874 Handle corrupt package exceptions.
875 * ini.cc (find_routine): Reverse escape the URL to correctly identify
876 the site URL.
877 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
878 * iniparse.y: Allow calculation of MD5 sums, and allow src only
879 packages.
880 (process_src): New helper function.
881 * isntall.cc (install_one_source): Check MD5 sums when possible.
882 Throw exceptions on errors.
883 (do_install_thread): Handle exceptions for installation calls.
884 * package_source.h: Store MD5 information.
885 * propsheet.cc (PropSheet::Create): Add a useful comment.
886 * res.rc (IDS_INSTALL_ERROR): Define.
887 (IDS_CORRUPT_PACKAGE): Define.
888 * resource.h (IDS_INSTALL_ERROR): Define.
889 (IDS_CORRUPT_PACKAGE): Define.
890 * rfc1738.cc (rfc1738_unescape_part): Implement.
891 * rfc1738.h (rfc1738_unescape_part): Declare.
892
45e01f23
RC
8932002-04-29 Robert Collins <rbtcollins@hotmail.com>
894
895 * Makefile.am: Remove dependecy rules that automake emits.
896 Correct badly copied dependency info for manually compiled files.
897 (setup_SOURCES): Add all used headers.
898 (EXTRA_DIST): Include non compilate but required sources.
899 (setup_LDADD): Remove mingw32, it is autodetected.
900 * Makefile.in: Regenerate.
901 * String++.h: sys/types is a system header.
902 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
903 Use ExitThread.
904 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
905 portable).
906 * configure: Regenerate.
907 * configure.in: Check for mingw32/cygwin specific headers and libraries.
908 * cygpackage.h: Include the win32.h header to get correct macro
909 definitions in all situations.
910 * download.cc (do_download_reflector): Make into a Win32 thread routine.
911 Use ExitThread.
912 (do_download): Use Win32 threads.
913 * ini.cc: Ditto.
914 * install.cc: Ditto.
915 * (WinMain): Adjust to build valid command line using application
916 under both mingw32 and cygwin.
917 * mount.cc (set)cygdrive_flags): Create new system flags if the
918 user requests system and the value does not exist.
919 * nio-http.cc: Define a _strnicmp for cygwin.
920 * package_db.cc: Include <errno.h> if it exists.
921 * site.cc (do_download_site_info_thread): Make into a Win32 thread
922 routine.
923 Use ExitThread.
924 (do_download_site-Info): Use Win32 threads.
925 * state.cc: Explicity declare variables to avoid header conflicts
926 caused by '#define extern" on cygwin.
927 * win32.h: Include <alloca.h> if it exists.
928 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
929 (_access): Define as access if not defined by windows.h.
930
8bb9dad9
RC
9312002-04-27 Robert Collins <rbtcollins@hotmail.com>
932
933 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
934
6908b7d7
RC
9352002-04-27 Robert Collins <rbtcollins@hotmail.com>
936
937 * Makefile.am: Add libgetopt++ to the subdirs list.
938 Search the libgetopt++ header directory.
939 Link against libgetopt++.la.
940 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
941 (setup_LDADD): Explicitly include res.o.
942 * Makefile.in: Regenerate.
943 * aclocal.m4: Regenerate.
944 * bootstrap.sh: Call libtoolize.
945 * configure: Regenerate.
946 * configure.in: Add libtool support and configure libgetopt++.
947 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
948 (DesktopSetupPage::OnInit): Use the simpler syntax.
949 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
950 declaration.
951 * main.cc: Include getopt++/GetOption.h.
952 (main): Use simpler syntax.
953 * cdefs.h: Remove.
954 * getopt.h: Remove.
955 * getopt.c: Remove.
956 * GetOption.h: Remove.
957 * GetOption.cc: Remove.
958 * Option.h: Remove.
959 * Option.cc: Remove.
960
9063358a
RC
9612002-04-26 Robert Collins <rbtcollins@hotmail.com>
962
963 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
964
f6100b6f
RC
9652002-04-26 Robert Collins <rbtcollins@hotmail.com>
966
967 * aclocal.m4: New file, cached macros.
968 * bootstrap.sh: New file, calls required autotools in appropriate
969 order.
970 * Makefile.am: New file, input Makefile for automake.
971 * Makefile,in: Now a generated file - regenerate.
972 * configure: Regenerate.
973 * configure.in: Add automake support.
974 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
975 automake's VERSION define.
976 * iniparse.y: Ditto.
977
db04fc41
RC
9782002-04-26 Robert Collins <rbtcollins@hotmail.com>
979
980 * cdefs.h: New file, imported to allow getopt.c to build without
981 cygwin headers.
982 * getopt.h: New file, imported to allow building without cygwin headers.
983 * getopt.c: Ditto.
984 * bz2lib: New directory, contains copy of bz2lib.
985 * cfgaux: New directory, contains autotool helper scripts.
986 * Makefile,in: Adjust library and target definitions for building
987 outside the sourceware tree.
988 * compress_bz.h: Use new bz2lib header location.
989 * mount.cc: Import key defines and enums to be independent of cygwin
990 headers.
991 * configure.in: Update to autoconf 2.53, and to be sourceware
992 independent.
993 * configure: Regenerate.
994
931f2755
RC
9952002-04-12 Robert Collins <rbtcollins@hotmail.com>
996
997 * mklink2.cc (make_link_2): Tweak to work with current w32api
998 headers.
999
10002002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1001
1002 * version.cc (canonicalize_version): Fix a call delete[]
1003 to delete the allocated address.
1004
10052002-03-29 Robert Collins <rbtcollins@hotmail.com>
1006
1007 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1008 to Ton van Overbeek for locating the bug area.
1009
49cf3899
RC
10102003-03-27 Robert Collins <rbtcollins@hotmail.com>
1011
1012 * PickView.cc (PickView::insert_pkg): Be more generic with
1013 object use.
1014 (PickView::insert_category): Ditto.
1015 (PickView::~PickView): Create.
1016 * PickView.h (PickView::~PickView): Declare.
1017
1be8f8fd
RC
10182003-03-27 Robert Collins <rbtcollins@hotmail.com>
1019
1020 * Makefile.in (OBJS): Add new commandline objects.
1021 * desktop.cc (NoShortCutsOption): New option code.
1022 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1023 * desktop.h (NoShortCutsOption): New concrete command line option class.
1024 * main.cc (WinMain): Process command line options.
1025 * GetOption.h: New file, singleton command line class.
1026 * GetOption.cc: New file, implementation of the above.
1027 * Option.h : New file, abstract option for GetOption.
1028 * Option.cc: New file, implement constructor and destructor.
1029
f2e49cf8
RC
10302002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1031
1032 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1033
10342002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1035
1036 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1037 to textheight, so large fonts work.
1038
10392003-03-26 Robert Collins <rbtcollins@hotmail.com>
1040
1041 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1042 symlinks.
1043
10442003-03-26 Robert Collins <rbtcollins@hotmail.com>
1045
1046 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1047 (io_stream_cygfile::normalise): New method.
1048 (io_stream_cygfile::io_stream_cygfile): Use it.
1049 (io_stream_cygfile::exists): Ditto.
1050 (io_stream_cygfile::remove): Ditto.
1051 (io_stream_cygfile::mklink): And again.
1052 (cygmkdir_p): Yes, again.
1053 (io_stream_cygfile::move): And once more.
1054 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1055 (io_stream_cygfile::cwd): Ditto.
1056
51ebb760
RC
10572003-03-26 Robert Collins <rbtcollins@hotmail.com>
1058
1059 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1060 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1061 Overbeek for the report).
1062 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1063 Make g++ compatible.
1064 * mklink2.c: Remove.
1065 * site.cc (site_list_type::init): Delete the correct memory addres.
1066 Thanks to Pavel Tsekov for tracking this down.
1067
e7d67c03
RC
10682002-03-20 Robert Collins <rbtcollins@hotmail.com>
1069
1070 * win32.h: Only define alloca if it's not already.
1071
2fa7c5a4
RC
10722002-03-20 Robert Collins <rbtcollins@hotmail.com>
1073
1074 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1075 packages alone.
1076 * README: Update with latest requests.
1077 * Various: MTC fixes from setup200202 branch.
1078
7bf13fc9
CF
10792002-03-19 Christopher Faylor <cgf@redhat.com>
1080
1081 * Makefile.in (setup_version.c): Add back magic which allows detection
1082 of setup.exe version number.
1083
2fa7c5a4
RC
10842002-03-17 Robert Collins <rbtcollins@hotmail.com>
1085
1086 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1087 calculation on win9x systems.
1088
10892002-03-16 Robert Collins <rbtcollins@hotmail.com>
1090
1091 * install.cc (install_one_source): Write the correct length of a string to the
1092 lst file (Thanks to Pavel Tsekov for reporting the bug).
1093
10942002-03-15 Robert Collins <rbtcollins@hotmail.com>
1095
1096 * choose.cc (list_click): Always refresh the entire chooser, as our
1097 package state change mechanism is broken with the new improved list classes.
1098
10992002-03-15 Robert Collins <rbtcollins@hotmail.com>
1100
1101 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1102 /etc/group.
1103
11042002-03-15 Robert Collins <rbtcollins@hotmail.com>
1105
1106 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1107 paint().
1108 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1109 bin tickbox.
1110 (PickPackageLine::click): Handle the new bin tickbox.
1111 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1112 * PickView.cc (pkg_headers): Add a Bin? column.
1113 (cat_headers): Ditto.
1114 (PickView::set_headers): Ditto.
1115 (PickView::init_headers): Ditto.
1116 * PickView.h (PickView): Ditto.
1117 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1118
11192002-02-24 Michael A Chase <mchase@ix.netcom.com>
1120
1121 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1122 fixup.
1123
11242002-02-24 Michael A Chase <mchase@ix.netcom.com>
1125
1126 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1127 call.
1128 (make_passwd_group): Ditto.
1129 * localdir.cc (save_local_dir): Ditto.
1130 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1131 Add "cygfile://" prefix to io_stream::open() calls.
1132
204315f9
RC
11332002-02-24 Robert Collins <rbtcollins@hotmail.com>
1134
1135 * log.cc (log_save): Fix creating /var/log.
1136 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1137
58db1046
RC
11382002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1139
1140 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1141 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1142 * resource.h: Add IDS_CYGWIN_SETUP and
1143 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1144
1145 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1146 operator (::SetWindowText()).
1147
1148 * threebar.cc: Run indent.
1149 (cistring.h): Add include.
1150 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1151 global scope operator.
1152 (SetBar2): Add logic for writing percent complete into window title.
1153
1154 * window.h: Run indent.
1155 (SetWindowText): New function.
1156 (String): Add forward declaration.
1157 * window.cc: Run indent.
1158 (String++.h): Add include.
1159 (SetWindowText): New function.
1160
490717ef
RC
11612002-02-24 Robert Collins <rbtcollins@hotmail.com>
1162
1163 * README: Update TODO list.
1164 * install.cc (install_one): Fix src package location.
1165 (do_install_thread): Fix creating directories.
1166
7c6ef2c3
RC
11672002-02-19 Robert Collins <rbtcollins@hotmail.com>
1168
1169 * choose.cc: Include cygpackage.h for scan2 use.
1170 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1171 (scan2): Process any valid file.
1172 Add cache entries when a file matching a setup.ini listed version is found.
1173 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1174 * filemanip.h (filemanip::pkgtar): Remove.
1175 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1176 (packagemeta::~packagemeta): Move from package_meta.h
1177 Remove and delete all version and category information.
1178 * package_meta.h (CategoryPackage): Create a destructor.
1179 (packagemeta::~packagemeta): Move to .cc file.
1180
11812002-02-19 Robert Collins <rbtcollins@hotmail.com>
1182
1183 * install.cc (install_one_source): Make NULL cached package names cause
1184 errors.
1185
bb087dce
RC
11862002-02-18 Michael A Chase <mchase@ix.netcom.com>
1187
1188 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1189 unnecessarily.
1190
11912002-02-18 Michael A Chase <mchase@ix.netcom.com>
1192
1193 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1194
c90bc3df
RC
11952002-02-19 Robert Collins <rbtcollins@hotmail.com>
1196
1197 * mount.cc (create_mount): Avoid a const char*->char* warning.
1198 (read_mounts): Ditto.
1199
3bab9a49
RC
12002002-02-05 Jason Tishler <jason@tishler.net>
1201
2fa7c5a4 1202 * download.cc (do_download_thread): Fix off-by-one error.
3bab9a49 1203
1ac649ed
RC
12042002-02-19 Robert Collins <rbtcollins@hotmail.com>
1205
1206 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1207 * configure (CXXFLAGS): Regenerate.
1208 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1209 * README: TODO list updates.
1210
12112002-02-19 Michael A Chase <mchase@ix.netcom.com>
1212
1213 * String++.cc (String::concat):: Remove.
1214 (String::vconcat):: Ditto.
1215 * String++.h (String::concat):: Remove.
1216 (String::vconcat):: Ditto.
1217 * archive_tar.cc: Don't include concat.h.
1218 * archive_tar_file.cc: Don't include concat.h.
1219 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1220 (compress_bz::seek): Ditto.
1221 (compress_bz::~compress_bz): Ditto.
1222 * compress_gz.cc (compress_gz::peek): Ditto.
1223 (compress_gz::error): Ditto.
1224 (compress_gz::~compress_gz): Ditto.
1225 * concat.cc (vconcat): Remove.
1226 (concat): Ditto.
1227 * concat.h (vconcat): Remove.
1228 (concat): Ditto.
1229 * desktop.cc (desktop_icon): Use new cygpath.
1230 (make_etc_profile): Ditto.
1231 (uexists): Ditto.
1232 (make_passwd_group): Ditto.
1233 (save_icon): Ditto.
1234 (check_desktop): Remove concat use.
1235 (check_start_menu): Ditto.
1236 * download.cc (download_one): Use new mkpath_p correctly.
1237 Use LOG_PLAIN.
1238 * fromcwd.cc: Don't include concat.h.
1239 * geturl.cc (get_url_to_membuf): Use String log() call.
1240 (get_url_to_file): Ditto.
1241 * install.cc: Don't include concat.h.
1242 (uninstall_one): Use LOG_PLAIN.
1243 (replace_one): Ditto.
1244 (install_one_source): Ditto.
1245 (install_one): More char to String conversion.
1246 (do_install_thread): Use new cygpath.
1247 Use new create_mount.
1248 * io_stream.cc (io_stream::move): Use new log().
1249 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1250 (io_stream_cygfile::exists): Ditto.
1251 (io_stream_cygfile::remove): Ditto.
1252 (io_stream_cygfile::mklink): Ditto.
1253 (io_stream_cygfile::write): Ditto.
1254 (cygmkdir_p): Ditto.
1255 (io_stream_cygfile::move): Ditto.
1256 * io_stream_file.cc: Don't include log.h.
1257 (io_stream_file::write): Don't log unneeded messages.
1258 * localdir.cc: Don't include concat.h.
1259 (LocalDirPage::OnNext): Use LOG_PLAIN.
1260 * log.cc: Don't include log.h.
1261 (exit_setup): Use new cygpath.
1262 * log.h (log_level): Add new level LOG_PLAIN.
1263 * main.cc (WinMain): Use new log().
1264 * mount.cc (SLASH_P): New macro from concat.h.
1265 (cygpath): Make String version globally visible.
1266 Remove varargs version.
1267 * mount,h: Ditto.
1268 * msg.cc (mbox): Use LOG_PLAIN.
1269 * net.cc (NetPage::OnNext): Ditto.
1270 * nio-ftp.cc (ftp_line): Use new log().
1271 * nio-http.cc: Don't include log.h.
1272 (retry_get): Use alternative url variable.
1273 * package_db.cc: Don't include concat.h.
1274 (packagedb::flush): Don't use concat.
1275 * package_meta.cc: Don't include concat.h.
1276 (packagemeta::uninstall): Use new cygpath.
1277 * postinstall.cc (do_postinstall): Ditto.
1278 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1279 * script.cc: Don't include concat.h.
1280 (init_run_script): Use new cygpath.
1281 (run_script): More char * to String conversion.
1282 (try_run_script): Ditto.
1283 * site.cc: Don't include concat.h.
1284 (SitePage::OnNext): Use LOG_PLAIN.
1285 (SitePage::OnMessageCmd): Use new log().
1286 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1287
3c054baf
RC
12882002-02-19 Robert Collins <rbtcollins@hotmail.com>
1289
1290 * Makefile.in (OBJS): Add new object.
1291 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1292 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1293 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1294 (PickLine::Pickline): Accept a String for the key.
1295 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1296 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1297 initialisednow.
1298 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1299 (PickView::init_header): Move category length checking out of the inner loop for
1300 efficiency.
1301 Convert all char use to Strings.
1302 * PickView.h: Include the String++ header.
1303 (PickView::note_width): Update the prototype.
1304 * String++.cc: New file, implements a reference counting string class.
1305 * String++.h: New file, declares a reference counting string class.
1306 * archive.cc: Include String++ instead of concat.
1307 (archive::extract_file): Convert char * usage to Strings.
1308 * archive.h: Inlude the String++ header.
1309 (archive::extract_file): Update prototype.
1310 (archive::next_file_name): Convert to a String.
1311 (archive::linktarget): Ditto.
1312 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1313 (archive_tar::linktarget): Ditto.
1314 * arhive_tar.h: Update the copyright.
1315 Explicitly include the relevant headers.
1316 (tar_map_result_type): Convert to String usage.
1317 (archive_tar::next_file_name): Update prototype.
1318 (archive_tar::linktarget): Ditto.
1319 * category.cc (Category::Category): Update initialisers.
1320 Convert to String usage.
1321 (Categorycmp): Update to String usage.
1322 * category.h: Include the String++ header.
1323 (Category::Category): Update to String usage.
1324 (Category::name): Ditto.
1325 (Category::key): Ditto.
1326 * choose.cc: Remove concat.h, it's not needed.
1327 (scan2): Update to String usage.
1328 (do_choose): Ditto.
1329 * cygpackage.cc: Update includes for use of String class.
1330 (cygpackage::cygpackage): Update for String usage.
1331 (cygpackage::set_canonical_version): Ditto.
1332 (cygpackage::destroy): Ditto.
1333 (cygpackage::getfirstfile): Ditto.
1334 (cygpackage::getnextfile): Ditto.
1335 (cygpackage::Name): Ditto.
1336 (cygpackage::Vendor_version): Ditto.
1337 (cygpackage::Package_version): Ditto.
1338 (cygpackage::Canonical_version): Ditto.
1339 (cygpackage::set_sdesc): Ditto.
1340 (cygpackage::set_ldesc): Ditto.
1341 * cygpackage.h: Include String++.h for parsing this file.
1342 (cygpackage::cygpackage): Update for String usage.
1343 (cygpackage::set_canonical_version): Ditto.
1344 (cygpackage::destroy): Ditto.
1345 (cygpackage::getfirstfile): Ditto.
1346 (cygpackage::getnextfile): Ditto.
1347 (cygpackage::Name): Ditto.
1348 (cygpackage::Vendor_version): Ditto.
1349 (cygpackage::Package_version): Ditto.
1350 (cygpackage::Canonical_version): Ditto.
1351 (cygpackage::set_sdesc): Ditto.
1352 (cygpackage::set_ldesc): Ditto.
1353 (cygpackage::name): Ditto.
1354 (cygpackage::vendor): Ditto.
1355 (cygpackage::packagev): Ditto.
1356 (cygpackage::canonical): Ditto.
1357 (cygpackage::fn): Ditto.
1358 (cygpackage::sdesc): Ditto.
1359 (cygpackage::ldesc): Ditto.
1360 * desktop.cc: Update includes for use of String class.
1361 (batname): Update for String usage.
1362 (iconname): Ditto.
1363 (make_link): Ditto.
1364 (start)menu): Ditto.
1365 (desktop_icon): Ditto.
1366 (make_cygwin_bat): Ditto.
1367 (make_etc_profile): Ditto.
1368 (uexists): Ditto.
1369 (make_passwd_group): Ditto.
1370 (save_icon): Ditto.
1371 (check_desktop): Ditto.
1372 (check_startmenu): Ditto.
1373 * dialog.cc (eget): Update for String usage.
1374 (egetString): New function.
1375 (eset): New variant for Strings.
1376 * dialog.h: Include String++.h for parsing this file.
1377 (egetString): New function.
1378 (eset): New variant for Strings.
1379 * diskfull.cc (diskfull): Update for String usage.
1380 * diskfull.h: Include String++.h for parsing this file.
1381 (diskfull): Update for String usage.
1382 * download.cc: Update includes for use of String class.
1383 (check_for_cached): Update for String usage.
1384 (download_one): Ditto.
1385 * filemanip.cc (get_file_size): Ditto.
1386 (base): Ditto.
1387 (parse_filename): Ditto.
1388 (backslash): Ditto.
1389 * filemanip.h: Include String++.h for parsing this file.
1390 (fileparse): Update for String usage.
1391 (base): Ditto.
1392 (parse_filename): Ditto.
1393 Don't consider '_' to be a separator.
1394 (backslash): Ditto.
1395 * find.cc: Update includes for use of String class.
1396 (find_sub): Make more flexible.
1397 (find): Update for String usage.
1398 * find.h (find): Use Strings.
1399 * fromcwd.cc (found_file): Update for String usage.
1400 * geturl.cc: Ditto.
1401 (init_dialog): Ditto.
1402 (get_url_to_membuf): Ditto.
1403 (get_url_to_string): Ditto.
1404 (get_url_to_file): Ditto.
1405 * geturl.h: Ditto.
1406 (get_url_to_membuf): Ditto.
1407 (get_url_to_string): Ditto.
1408 (get_url_to_file): Ditto.
1409 * hash.h: Ditto.
1410 (add_subdirs): Ditto.
1411 * ini.cc: Update includes for String usage.
1412 (find_routine): Update for String usage.
1413 (do_remote_ini): Ditto.
1414 (do_ini_thread): Ditto.
1415 * ini.h (ini_init): Ditto.
1416 * inilex.l: Update includes for String usage.
1417 (ini_init): Update for String usage.
1418 * iniparse.y: Ditto.
1419 (add_correct_version): Ditto.
1420 * install.cc: Update includes for String usage.
1421 (install_one_source): Update for String usage.
1422 (uninstall_one): Ditto.
1423 (replace_one): Ditto.
1424 (install_one_source): Ditto.
1425 (do_install_thread): Ditto.
1426 * io_stream.cc: Update includes for String usage.
1427 (io_stream::open): Update for String usage.
1428 (io_stream::mkpath_p): Ditto.
1429 (io_stream::remove): Ditto.
1430 (io_stream::mklink): Ditto.
1431 (io_stream::move_copy): Ditto.
1432 (io_stream::move): Ditto.
1433 (io_stream::exists): Ditto.
1434 * io_stream.h: Update includes to allow correct parsing.
1435 (io_stream::open): Update for String usage.
1436 (io_stream::mkpath_p): Ditto.
1437 (io_stream::remove): Ditto.
1438 (io_stream::mklink): Ditto.
1439 (io_stream::move_copy): Ditto.
1440 (io_stream::move): Ditto.
1441 (io_stream::exists): Ditto.
1442 * io_stream_cygfile.cc: Update includes for String usage.
1443 (get_root_dir_now): Update for String usage.
1444 (io_stream_cygfile::io_stream_cygfile): Ditto.
1445 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1446 (io_stream_cygfile::exists): Ditto.
1447 (io_stream_cygfile::remove): Ditto.
1448 (io_stream_cygfile::mklink): Ditto.
1449 (cygmkdir_p): Ditto.
1450 (io_stream_cygfile::set_mtime): Ditto.
1451 (io_stream_cygfile::move): Ditto.
1452 (io_stream_cygfile::get_size): Ditto.
1453 * io_stream_cygfile.h: Update includes for String usage.
1454 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1455 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1456 (io_stream_cygfile::exists): Ditto.
1457 (io_stream_cygfile::remove): Ditto.
1458 (io_stream_cygfile::mklink): Ditto.
1459 (cygmkdir_p): Ditto.
1460 (io_stream_cygfile::set_mtime): Ditto.
1461 (io_stream_cygfile::move): Ditto.
1462 (io_stream_cygfile::get_size): Ditto.
1463 (io_stream_cygfile::fname): Ditto.
1464 (io_stream_cygfile::lmode): Ditto.
1465 * io_stream_file.cc: Update includes for String usage.
1466 (io_stream_file::io_stream_file): Update for String usage.
1467 (io_stream_file::~io_stream_file): Ditto.
1468 (io_stream_file::exists): Ditto.
1469 (io_stream_file::remove): Ditto.
1470 (io_stream_file::mklink): Ditto.
1471 (io_stream_file::set_mtime): Ditto.
1472 (io_stream_file::move): Ditto.
1473 (io_stream_file::get_size): Ditto.
1474 * io_stream_file.h: Update includes for String usage.
1475 * io_stream_file.cc: Update includes for String usage.
1476 (io_stream_file::io_stream_file): Update for String usage.
1477 (io_stream_file::~io_stream_file): Ditto.
1478 (io_stream_file::exists): Ditto.
1479 (io_stream_file::remove): Ditto.
1480 (io_stream_file::mklink): Ditto.
1481 (io_stream_file::set_mtime): Ditto.
1482 (io_stream_file::move): Ditto.
1483 (io_stream_file::get_size): Ditto.
1484 (io_stream_file::fname): Ditto.
1485 (io_stream_file::lmode): Ditto.
1486 * localdir.cc: Update includes for String usage.
1487 (save_local_dir): Update for String usage.
1488 (check_if_enable_next): Ditto.
1489 (load_dialog): Ditto.
1490 (browse_cb): Ditto.
1491 (LocalDirPage::OnInit): Ditto.
1492 (LocalDirPage::OnNext): Ditto.
1493 * log.cc: Update includes for String usage.
1494 (struct LogEnt): Update for String usage.
1495 (log): Ditto.
1496 (log_save): Ditto.
1497 (exit_setup): Ditto.
1498 * log.h: Update includes for String usage.
1499 (log_level): Update for String usage.
1500 (log): Ditto.
1501 (log_save): Ditto.
1502 * main.cc (WinMain): Update for String usage.
1503 * mklink2.c (make_link_2): Update for String usage.
1504 * mklink2.h (make_link_2): Update for String usage.
1505 * mount.cc: Update includes for String usage.
1506 (mount_table): Update for String usage.
1507 (find2): Ditto.
1508 (create_mount): Ditto.
1509 (remove1): Ditto.
1510 (remove_mount): Ditto.
1511 (read_mounts): Ditto.
1512 (set_root_dir): Ditto.
1513 (get_root_dir): Ditto.
1514 (path_prefix_p): Ditto.
1515 (cygpath): Ditto.
1516 * mount.h: Update includes for String usage.
1517 (create_mount): Update for String usage.
1518 (remove_mount): Ditto.
1519 (cygpath): Ditto.
1520 (set_root_dir): Ditto.
1521 (get_root_dir): Ditto.
1522 * msg.cc (mbox): Ditto.
1523 * net.cc (NetPage::OnNext): Ditto.
1524 * package_db.cc (packagedb::flush): Ditto.
1525 (packagedb::packages): Ditto.
1526 (packagedb::categories): Ditto.
1527 * package_db.h: Update includes for String usage.
1528 (packagedb::packages): Update for String usage.
1529 (packagedb::categories): Ditto.
1530 * package_meta.cc: Update includes for String usage.
1531 (hash::add_subdirs): Update for String usage.
1532 (packagemeta::uninstall): Ditto.
1533 (packagemeta::SDesc): Ditto.
1534 (packagemeta::action_caption): Ditto.
1535 * package_meta.h: Update includes for String usage.
1536 (packagemeta::packagemeta): Update for String usage.
1537 (packagemeta::~packagemeta): Ditto.
1538 (packagemeta::uninstall): Ditto.
1539 (packagemeta::SDesc): Ditto.
1540 (packagemeta::action_caption): Ditto.
1541 (package_source.cc site::site): Ditto.
1542 (packagesource::set_canonical): Ditto.
1543 (packagesource::set_cached): Ditto.
1544 * package_source.h: Update includes for String usage.
1545 (site::site): Update for String usage.
1546 (packagesource::set_canonical): Ditto.
1547 (packagesource::set_cached): Ditto.
1548 (packagesource::packagesource): Ditto.
1549 (packagesource::sites): Ditto.
1550 (packagesource::cached): Ditto.
1551 * package_version.h: Update includes for String usage.
1552 (Dependency): Update for String usage.
1553 (packageversion): Ditto.
1554 * postinstall.cc: Update includes for String usage.
1555 (do_postinstall): Update for String usage.
1556 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1557 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1558 * rfc1738.h: Update includes for String usage.
1559 (rfc1738_escape_part): Update for String usage.
1560 * root.cc: Update includes for String usage.
1561 (check_if_enable_next): Update for String usage.
1562 (save_dialog): Ditto.
1563 (browse_cb): Ditto.
1564 (directory_is_absolute): Ditto.
1565 (directory_is_rootdir): Ditto.
1566 (directory_has_spaces): Ditto.
1567 (RootPage::OnInit): Ditto.
1568 (RootPage::OnNext): Ditto.
1569 * script.cc: Update includes for String usage.
1570 (init_run_script): Update for String usage.
1571 (run): Ditto.
1572 (run_script): Ditto.
1573 (try_run_script): Ditto.
1574 * script.h: Update includes for String usage.
1575 (run_script): Update for String usage.
1576 (try_run_script): Ditto.
1577 * site.cc site_list): Ditto.
1578 (all_site_list): Ditto.
1579 (other_url): Eliminate.
1580 (site_list_type::init): Update for String usage.
1581 (site_list_type::site_list_type): Ditto.
1582 (get_site_list): Ditto.
1583 (get_saved_sites): Ditto.
1584 (do_download_site_info_thread): Ditto.
1585 (SitePage::OnNext): Ditto.
1586 (SitePage::OnActivate): Ditto.
1587 (SitePage::PopulateListBox): Ditto.
1588 (SitePage::OnMessageCmd): Handle empty url's.
1589 * site.h: Update includes for String usage.
1590 (site_list_type::site_list_type): Update for String usage.
1591 (site_list_type::init): Ditto.
1592 (site_list_type::~site_list_type): Ditto.
1593 (site_list_type::url): Ditto.
1594 (site_list_type::displayed_url): Ditto.
1595 (site_list_type::key): Ditto.
1596 * source.cc (SourcePage::OnDeactivate): Ditto.
1597 * state.h: Update includes for String usage.
1598 (local_dir): Update for String usage.
1599 (trust_level): Remove.
1600 * version.cc: Update includes for String usage.
1601 (canonicalize_version): Update for String usage.
1602 * version.h: Update includes for String usage.
1603 (canonicalize_version): Update for String usage.
1604
08233ec7
CF
16052002-02-15 Christopher Faylor <cgf@redhat.com>
1606
1607 * filemanip.c (parse_filename): Revert previous change.
1608
94dffbdd
CF
16092002-02-14 Christopher Faylor <cgf@redhat.com>
1610
1611 * filemanip.c (parse_filename): Don't treat '_' as a version number
1612 introducer.
1613
cef493d7
CF
16142002-01-29 Christopher Faylor <cgf@redhat.com>
1615
1616 * configure: Regenerate.
1617
57219197
RC
16182002-01-27 Robert Collins <rbtcollins@hotmail.com>
1619
94dffbdd
CF
1620 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1621 <Hoeck@extern.lrz-muenchen.de>
57219197 1622
cc7493c3
RC
16232002-01-27 Robert Collins <rbtcollins@hotmail.com>
1624
1625 * README: Update Todo's.
1626 * list.h: Run indent.
1627 (list): New methods checksize and insert to reduce code duplication.
1628 (list::registerbykey): Use them.
1629 (list::registerbyobject): Ditto.
94dffbdd
CF
1630 (list::removebyindex): Copy each object individually - safe for non
1631 trivial objects.
cc7493c3
RC
1632 (list::checksize): Implement.
1633 (list::insert): Implement.
1634
a900d1fa
RC
16352002-01-27 Robert Collins <rbtcollins@hotmail.com>
1636
1637 * Makefile.in: Remove the dlmalloc object by default.
94dffbdd
CF
1638 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1639 around' the crashing issue.
a900d1fa 1640 * package_db.h: Include <string.h> - it's needed to parse this.
94dffbdd 1641 * package_source.cc (site::site): Move here from the header file.
a900d1fa
RC
1642 * package_source.h (site): Stop the constructor being inlinable.
1643
9835fb4a
RC
16442002-01-26 Robert Collins <rbtcollins@hotmail.com>
1645
1646 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1647
16482002-01-25 Michael A Chase <mchase@ix.netcom.com>
1649
1650 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1651 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
94dffbdd
CF
1652 * install.cc (install_one_source): Add space between words in log()
1653 call.
cef493d7 1654
77ba23d8
RC
16552002-01-22 Robert Collins <rbtcollins@hotmail.com>
1656
94dffbdd
CF
1657 * log.cc (exit_setup): When saving to the download dir, explicity
1658 specify the path.
77ba23d8 1659
6dc75764
RC
16602002-01-22 Robert Collins <rbtcollins@hotmail.com>
1661
94dffbdd
CF
1662 * archive.cc (extract_file): Separate out the prefix and the URL
1663 scheme.
6dc75764 1664 * archive.h (archive::extract_file): Ditto.
94dffbdd
CF
1665 * install.cc (install_one_source): Ditto. Use the new
1666 archive::extract_file syntax.
6dc75764
RC
1667 (replace_one): Use the new syntax.
1668 (io_stream.cc): Add some log info for links.
1669
7e8fc33c
RC
16702002-01-22 Robert Collins <rbtcollins@hotmail.com>
1671
1672 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1673 (PickCategoryLine::paint): Use the new action method.
1674 (PickCategoryLine::click): Set the action for all children.
1675 (PickCategoryLine::set_action): New method.
1676 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1677 (PickCategoryLine::current_default): Use packagemeta _actions class.
94dffbdd
CF
1678 * PickLine.h (PickLine::set_action): New abstract method that requires
1679 including package_meta.h.
7e8fc33c
RC
1680 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1681 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1682 * list.h (getbykey): A const correctness fix.
1683 * package_meta.cc: Run indent.
1684 (packagemeta::Default_action): New const.
1685 (packagemeta::Install_action): Ditto.
1686 (packagemeta::Reinstall_action): Ditto.
1687 (packagemeta::Uninstall_action): Ditto.
1688 (packagemeta::_actions::caption): New method.
1689 (packagemeta::_actions::operator++): Ditto.
1690 (packagemeta::set_action): New overload.
1691 * package_meta.h (packagemeta::_actions): New class.
1692 (packagemeta::set_action): Declare this.
1693
2c9254b6
RC
16942002-01-22 Robert Collins <rbtcollins@hotmail.com>
1695
1696 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1697 * choose.cc: Don't define alloca anymore, it's done in win32.h
1698
97647369
RC
16992002-01-22 Robert Collins <rbtcollins@hotmail.com>
1700
1701 * PickPackageLine.cc: New file.
1702 * PickPackageLine.h: New file.
1703 * PickLine.cc: New file.
1704 * PickLine.h: New file.
1705 * PickCategoryLine.cc: New file.
1706 * PickCategoryLine.h: New file.
1707 * PickView.cc: New file.
1708 * PickView.h: New file.
1709 * Makefile.in: Add new objects to setup.exe.
1710 Backout -fno-exceptions option.
1711 * choose.cc: Include PickView.h.
1712 Remove view related defines and static variables.
1713 (_pkg_headers): Moved to PickView.cc.
1714 (_cat_headers): Ditto.
1715 (view::views::Unknown): Ditto.
1716 (view::views::PackageFull):
1717 (view::views::Package):
1718 (view::views::Category):
1719 (pkgtrustp): Moved to package_meta.cc.
1720 (add_required): Moved to package_meta.cc.
1721 (pick_category_line::empty): Moved to PickCategoryLine.cc
1722 (paint): Adjust for moved static variables.
1723 (view::scroll): Moved to PickView.cc.
1724 (list_vscroll): Adjust for moved static variables.
1725 (list_hscroll): Ditto.
1726 (list_click): Ditto.
1727 (note_width): Moved to PickView.cc.
1728 (view::view): Ditto.
1729 (view::set_view_mode): Ditto.
1730 (view::mode_caption): Ditto.
1731 (view::views::caption): Ditto.
1732 (view::set_headers): Ditto.
1733 (DoInsertItem): Ditto.
1734 (view::init_headers): Ditto.
1735 (view::insert_pkg): Ditto.
1736 (view::insert_category): Ditto.
1737 (view::clear_view): Ditto.
1738 (view::views::operator++): Ditto.
1739 (view::click): Ditto.
1740 (default_trust): Adjust for moved statics.
1741 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1742 (pick_pkg_line::click): Ditto.
1743 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1744 (pick_category_line::paint): Ditto.
1745 (pick_category_line::click): Ditto.
1746 (set_view_mode): Adjust for moved statics.
1747 (create_listview): Ditto.
1748 * choose.h: Remove Category and packagemeta forward defines - not needed.
1749 Don't include unneeded headers list and package_meta.
1750 (_header): Move to PickView.h.
1751 (pick_line): Move to PickLine.h.
1752 (pick_pkg_line): Move to PickPackageLine.h.
1753 (pick_category_line): Move to PickCategoryLine.h.
1754 (view): Move to PickView.h.
1755 * ini.h (trusts): Move to package_meta.h.
1756 * package_meta.h (trusts): New enum.
1757 (packagemeta::set_requirements): New helper method.
1758 (packagemeta::trustp): Ditto.
1759
b566778e
CF
17602002-01-21 Christopher Faylor <cgf@redhat.com>
1761
1762 * choose.h (view): Move forward declaration of views into public area
1763 or g++ v3 will complain.
1764
f71e9756
CF
17652002-01-21 Christopher Faylor <cgf@redhat.com>
1766
1767 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1768 * win32.h (alloca): Define as __builtin_alloca.
1769 * io_stream_memory.cc: Add include file.
1770
e9440f0f
RC
17712002-01-21 Robert Collins <rbtcollins@hotmail.com>
1772
1773 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1774 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1775 * compress.cc (compress::~compress): Be less verbose.
1776 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1777 Mark the stream as destroyed.
1778 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1779 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1780 as destroyed.
cef493d7 1781 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
e9440f0f
RC
1782 stream as destroyed.
1783 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1784 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
cef493d7 1785
5e0464a1
RC
17862002-01-21 Robert Collins <rbtcollins@hotmail.com>
1787
1788 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1789 (OBJS): Link in malloc objects.
1790 * category.cc (category): Use new char, not strdup.
1791 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1792 (do_choose): Use new char, not malloc.
1793 * concat.cc (vconcat): Ditto.
1794 * cygpackage.cc (cygpackage): Use new char, not strdup.
1795 (set_canonical_version): Ditto.
1796 (cygpackage::destroy): Use delete[], not free.
1797 * desktop.cc (uexists): Ditto.
1798 * dialog.cc (egest): Use new char, not strdup.
1799 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1800 * hash.cc (hash::hash): Use delete instead of free.
1801 (hash::add): Use new char, not strdup.
1802 * ini.cc (do_remote_ini): Use delete[] not free.
1803 * inilex.l: Use new char, not strdup.
1804 (ini_init): Ditto.
1805 * iniparse.y: Ditto.
1806 Use a local package_db rather than a static one.
1807 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1808 (do_install_thread): Call mallinfo to force a consistency check. Appears
1809 to fix a 'inuse' error in -DDEBUG builds.
1810 Use delete[] for strings.
1811 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1812 not strdup.
1813 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1814 (io_stream_cygfile::remove): Use new char, not strdup.
1815 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1816 (io_stream_file::io_stream_file): Use delete[], not free.
1817 (io_stream_file::remove): Use new char, not strdup.
1818 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1819 * io_stream_memory.h (memblock): Use new char, not malloc.
1820 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1821 * main.cc (WinMain): Use new char, not strdup.
1822 * mount.cc (find2): Use new char, not malloc.
1823 (read_mounts): Ditto.
1824 (cygpath): Use new char, not strdup.
1825 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1826 (NetIO::set_url): Use new char, not strdup.
1827 (NetIO::get_ftp_auth): Use delete[], not free.
1828 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1829 Use new char instead of strdup.
1830 * nio-http.cc (base64_encode): Use new char, not malloc.
1831 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1832 * package_source.h (~ packagesource): Use delete[] instead of delete.
1833 * port.h (strdup): Deprecate the use of strdup.
1834 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1835 * script.cc (init_run_script): Us delete[], not free.
1836 (run_script): Ditto.
1837 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1838 (SimpleSocket::invalidate): Use delete[], not free.
1839 * site.cc (site_list_type::init): Use new char instead of strdup.
1840 * site.h (~site_list_type): Use delete[], not free.
1841
ad3c7385
RC
18422002-01-20 Robert Collins <rbtcollins@hotmail.com>
1843
1844 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1845 * README: Update todos.
1846 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1847 * archive.h: Ditto.
1848 * choose.cc (set_view_mode): Use the new view::views class.
1849 (view::views::Unknown): New static for defaulting view::views variables.
1850 (view::views::PackageFull): New static for the current view.
1851 (view::views::Package): Ditto.
1852 (view::views::Category): Ditto.
1853 (topbucket::paint): Remove.
1854 (topbucket::empty): Rename to pick_category_line::empty.
1855 (topbucket::~topbucket): Remove.
1856 (paint): Use the new view::views class.
1857 Don't paint 'all' as a category when showing package categoies.
1858 (pick_category_line::actiontext): New method.
1859 (pick_category_line::paint): Make showing the category optional, and show the
1860 'category action'.
1861 (pick_category_line::click): Make showing the category optional, and
1862 differentiate between the name being clicked, and the action description.
1863 (view::view): Use the new view::views class.
1864 (view::set_view_mode): Ditto.
1865 (view::mode_caption): Ditto.
1866 (view::views::caption): New method.
1867 (view::set_headers): Use the new view::views class.
1868 (view::clear_view): Ditto.
cef493d7 1869 (viewsplusplus): Replaced by
ad3c7385
RC
1870 (view::views::operator++): New operator.
1871 (set_view_mode): Use the new view::views class.
1872 (create_listview): Ditto.
1873 (dialog_cmd): Ditto.
1874 * choose.h (actions): Remove.
1875 (views): Remove.
1876 (pick_line): Add a new convenience constructor.
1877 (top_bucket): Remove.
1878 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
1879 (view::views): New class.
1880 * ini.h: Don't include choose.h
1881 (is_download_action): Remove.
1882 (is_upgrade_action): Remove.
1883 (is_uninstall_action): Remove.
1884 (is_full_action): Remove.
1885 * install.cc (num_replacements): New static.
1886 (rebootneeded): Ditto.
1887 (replace_one): Handle upgrades separate from removal or new installs.
1888 (install_one_source): Handle in use files.
1889 (install_one): Don't repeat upgrades.
1890 (do_install_thread): Initialize new statics.
1891 Order actions as uninstall, replace, install.
1892 Warn about rebooting if needed.
1893 * res.rc (IDS_REBOOT_REQUIRED): New string.
1894 * resource.h (IDS_REBOOT_REQUIRED): Give value.
1895 * win32.h: Declare class Win32, and update copyright and intent message.
1896 * win32.cc: New file.
1897
edef4f57
CV
18982002-01-15 Corinna Vinschen <corinna@vinschen.de>
1899
1900 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
1901 * package_meta.cc (packagemeta::uninstall): Check for additional
1902 Windows shortcut. Unset R/O file attribute before trying to delete
1903 file.
1904
21f325d7
RC
19052002-01-09 Robert Collins <rbtcollins@hotmail.com>
1906
1907 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
1908 the current trust level. For prev, fall back via curr.
1909 (set_existence): Allow sources with no sites, but cached files to be
1910 kept.
1911 (pick_category_line::paint): Start drawing clickable categories.
1912 * fromcwd.cc (found_file): Reinstate local file scanning.
1913
858f100d
RC
19142002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1915
cef493d7 1916 * fromcwd.cc: Run indent.
858f100d
RC
1917 (do_fromcwd): Reverse sense of comment. Set next_dialog
1918 to IDD_CHOOSER instead of IDD_CHOOSE.
1919 * ini.cc (find_routine): Remove "/" from "/setup.ini".
cef493d7 1920
d343da15
RC
19212001-01-07 Robert Collins <rbtcollins@hotmail.com>
1922
1923 * category.cc (Categorycmp): Add a const safe version.
1924 * category.h (Categorycmp): Add a const safe version.
1925 (Category): Add operator ==.
1926 * choose.cc (fill_missing_category): Add every package to "All".
1927 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
1928 (pick_category_line::click): Ditto.
1929 (view::view): Pass in a top level category to use.
1930 (view::insert_pkg): Special case - skip category "All".
1931 (view::insert_category): Ditto.
1932 (view::clear_view): Set the contents label state.
1933 (create_listview): Pass in a top level category to view().
1934 * choose.h (topbucket): Make bucket available to derived classes.
1935 (pick_category_line): Add support for hidden labels, and a tree depth.
1936 Remove our second copy of bucket.
1937 (view): Pass in a top level category to the constructor.
1938 Use pick_category_line to allow three level display.
1939
bcf20115
RC
19402001-01-06 Robert Collins <rbtcollins@hotmail.com>
1941
1942 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
1943 * iniparse.y (add_correct_version): Copy descriptions across.
cef493d7 1944 * package_meta.cc (SDesc): Iterate through versions, return the first with a
bcf20115
RC
1945 description.
1946 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
1947
bc78a6d5
RC
19482001-01-04 Robert Collins <rbtcollins@hotmail.com>
1949
1950 * script.cc (run_script): Change cygpath:// to cygfile://.
1951 * install.cc (do_install_thread): Fix off-by-one errors.
1952
4f4e55c2
RC
19532001-01-04 Robert Collins <rbtcollins@hotmail.com>
1954
1955 * package_db.cc (packagedb::flush): Fix an off-by-one error.
1956
8e9aa511
RC
19572002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
1958
1959 * Makefile.in (realclean): more clean.
1960 (OBJS): Add script.o.
1961 * postinstall.cc (run_script_in_etc_postinstall): New function.
1962 (do_postinstall): Split off new funtion init_run_script ().
1963 (init_run_script):
1964 (run):
1965 (run_script): Move to script.cc. Replace some deprecated remove
1966 and move calls.
1967 * script.h:
1968 * script.cc: New file.
1969 * Forward port cygwin-20010707.jcn3.patch.
1970 * package_meta.cc (uninstall): Run pre- and postremove scripts.
1971 * install.cc: Typo fix.
1972 (do_install): Run script initialisation.
cef493d7 1973
b7301c43
RC
19742001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1975
1976 * cistring.cc: Run d2u.
1977 * cistring.h: Run d2u.
1978
1979 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
1980 from the generated /etc/profile. Bash will source this file
1981 automatically, and having this here merely results in .bashrc being
1982 executed twice. Run d2u.
1983 * desktop.h: Run d2u.
1984
1985 * propsheet.cc: Run d2u.
1986 (PropSheetProc): New function. Add minimize box here instead of in
1987 PropertyPage::DialogProc.
1988 (PropSheet::Create): Change to use creation callback PropSheetProc.
1989 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
1990
1991 * propsheet.h: Run indent, d2u.
1992 * proppage.h: Run indent, d2u.
1993
1994 * proppage.cc: Run d2u.
1995 (PropertyPage::DialogProc): Remove minimize-box-adding
1996 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
1997 Add support for calling virtual OnMessageCmd. Add setting of fonts in
1998 WM_INITDIALOG handler.
1999 (resource.h): New include for resource IDs.
2000
2001 * res.rc: Resize and rearrange property page dialog templates
2002 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2003 specification. Run d2u.
2004 (IDD_SITE): Add an edit control and an "Add" button in order to
2005 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2006 (IDD_OTHER_URL): Remove dialog template.
2007 (IDD_DLSTATUS): Remove dialog template.
2008
2009 * site.cc: Run d2u.
2010 (SitePage::OnBack): Remove NEXT() macro invocation.
2011 (SitePage::OnActivate): New member function.
2012 (load_dialog): Remove. Functionality subsumed into
2013 SitePage::OnActivate.
2014 (save_dialog): Change to support both list and user URLs. Remove
2015 OTHER_IDX and mirror_idx logic.
2016 (SitePage::PopulateListBox): New member function.
2017 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2018 (SitePage::OnMessageCmd): New override.
2019 (check_if_enable_next): Remove.
2020 (dialog_cmd): Remove.
2021 (do_download_site_info_thread): Remove calls to NEXT() macro.
2022 (SitePage::Create): Call the single-param PropertyPage::Create
2023 overload.
2024 (other_url): New static taken from other.cc.
2025 (SitePage::OnNext): Remove mirror_idx logic.
2026 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2027 list box populating code, now handled in SitePage::PopulateListBox.
2028 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2029 (save_site_url): Fix potential buffer overflow problem. Switched to
2030 TCHAR in grossly premature preparation for multilingual support.
2031 * site.h: Run d2u.
2032 (SitePage::OnActivate): New member function.
2033 (SitePage::CheckControlsAndDisableAccordingly) New member.
2034 (SitePage::OnMessageCmd): New override.
2035 (do_download_site_info_thread): Add MessageBox call on failure to
2036 download site list.
2037
2038 * splash.cc: Run d2u.
2039 (SplashPage::OnInit): Set the font for the title.
2040 * splash.h: Run d2u.
2041
2042 * threebar.cc: Run d2u.
2043 * threebar.h: Run d2u.
2044
2045 * window.h: Run d2u.
2046 (Window::IsButtonChecked): New member function declaration.
2047 (Window::OnMessageCmd): New member function.
2048 (Window::SetDlgItemFont): New member function declaration.
2049 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2050 members.
2051 * window.cc: Run d2u.
2052 (Window::IsButtonChecked): New member function definition.
2053 (Window::SetDlgItemFont): New member function definition.
2054 (Window::Window): Add initialization for FontCounter.
2055 (Window::~Window): Delete any fonts we created.
2056
2057 * geturl.cc: Run d2u.
2058 (progress): Remove the "3" field width from the "%3d"
2059 percent-complete format indicator. Causes line to not start at
2060 beginning of text box, and does little to help with "jumping", since
2061 the "bytes downloaded so far" field is variable-width anyway. Change
2062 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2063 painfully slow connections, or temporary slowdowns in faster
2064 connections should such more-instantaneous functionality become
2065 available.
2066
2067 * net.h: Run d2u.
2068 (NetPage::OnMessageCmd): New member function declaration.
2069 (NetPage::CheckIfEnableNext): New member function declaration.
2070 * net.cc: Run d2u.
2071 (NetPage::OnMessageCmd): New member function definition.
2072 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2073 (check_if_enable_next): Remove.
2074 (NetPage::CheckIfEnableNext): New member function, subsumes
2075 check_if_enable_next.
2076 (propsheet.h): Add include.
2077 (NetPage::Init): Add call to CheckIfEnableNext.
2078 (load_dialog): Remove call to check_if_enable_next.
2079 (NetPage::Create): Call single-template-ID-parameter overload of
2080 PropertyPage::Create instead of three-parameter one.
2081
2082 * Makefile.in (OBJS): Remove other.o.
2083 * other.cc: Remove file.
2084
df62e023
RC
20852002-01-01 Robert Collins <rbtcollins@hotmail.com>
2086
2087 * README: Update TODO's.
2088 * choose.cc (set_existence): Delete non installed packages with no
2089 mirrors.
2090 (fill_missing_category): Fix an off-by-one error.
cef493d7 2091 (default_trust): Ditto. Also delete any unused categories.
df62e023
RC
2092 (view::init_headers): Fix an off-by-one error.
2093 (set_view_mode): Ditto.
2094 (set_view_mode): Ditto.
2095 (create_listview): Ditto.
2096 (dialog_cmd): Ditto.
2097 (do_choose): Ditto.
2098 * io_stream.cc: Indent.
2099 * io_stream.h: Ditto.
2100 * package_db.cc: Ditto.
2101 * package_meta.h: Const correctness for SDesc ();
2102 * proppage.cc: Run d2u and indent.
2103 * propsheet.cc: Run d2u and indent.
2104 * window.cc: Run d2u and indent.
2105 * window.h: Run d2u and indent.
2106
cec57ee1
CF
21072001-12-28 Christopher Faylor <cgf@redhat.com>
2108
e98c531e 2109 * Makefile.in (iniparse.o): Accommodate newer bisons.
cec57ee1 2110
ab57ceaa
RC
21112001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2112
2113 * window.h (Window): New file, new class.
2114 * window.cc (Window): New file, new class.
2115
2116 * threebar.h (ThreeBarProgressPage): New file, new class.
2117 * threebar.cc (ThreeBarProgressPage): New file, new class.
2118
2119 * splash.h (SplashPage): New file, new class.
2120 * splash.cc (SplashPage): Replace file with implementation of new
2121 class.
2122
2123 * source.h (SourcePage): New file, new class.
2124 * source.cc: Run indent.
2125 (SourcePage): Add class implementation to this file.
2126 (do_source): Remove, functionality subsumed by SourcePage::Create()
2127 and SourcePage::OnDeactivate().
cef493d7 2128 (dialog_proc): Remove, functionality subsumed by
ab57ceaa
RC
2129 SourcePage::OnActivate().
2130
2131 * site.h: Run indent.
2132 (SitePage): Add class declaration.
2133 * site.cc: Run indent.
2134 (SitePage): Add class implementation.
2135 (do_download_site_info_thread): New function.
2136 (context): New var. Context info for do_download_site_info_thread().
2137 (do_download_site_info): New function.
2138 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2139 (SitePage::OnBack): SitePage class implementation..
2140 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2141 by SitePage members.
2142 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2143 functionality.
2144 (do_site): Remove, now handled by do_download_site_info_thread() and
2145 SitePage::OnNext functionality.
2146 (get_site_list): Remove dismiss_url_status_dialog() call.
2147
2148 * root.h (RootPage): New file, new class.
2149 * root.cc: Run indent.
2150 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2151 (dialog_proc): Remove.
2152 (do_root): Remove
2153 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2154 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2155 here from do_root().
2156 (RootPage::Create): New member function.
cef493d7 2157 (RootPage::OnNext): New member function. Move IDOK logic from
ab57ceaa
RC
2158 dialog_cmd() to here.
2159 (RootPage::OnBack): New member function.
2160
2161 * propsheet.h (PropSheet): New file, new class.
2162 * propsheet.cc (PropSheet): New file, new class.
2163
2164 * proppage.h (PropertyPage): New file, new class.
2165 * proppage.cc (PropertyPage): New file, new class.
2166
2167 * postinstall.cc (do_postinstall): Add owner parameter.
2168
2169 * other.cc (do_other): Add owner parameter.
2170
2171 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
cef493d7 2172 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
ab57ceaa 2173 get_ftp_auth().
cef493d7 2174 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
ab57ceaa
RC
2175 get_proxy_auth(),
2176 and get_ftp_auth().
cef493d7 2177 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
ab57ceaa
RC
2178 get_auth(), get_proxy_auth().
2179
2180 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
cef493d7 2181 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
ab57ceaa
RC
2182 NetIO::get_ftp_auth)
2183 (auth_common): Add owner param. Pass owner param to DialogBox.
cef493d7 2184 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
ab57ceaa
RC
2185 owner param to auth_common().
2186
2187 * net.h (NetPage): New file, new class.
2188 * net.cc: Run indent.
2189 (net.h, threebar.h): Add includes.
2190 (Progress): Add extern.
2191 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2192 property sheet logic. Saved temporarily for reference.
cef493d7 2193 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
ab57ceaa
RC
2194 NetPage::OnNext, NetPage::OnBack):
2195 New implementation of NetPage class members.
2196 (do_net): Remove.
2197 (dialog_proc): Remove.
2198
2199 * msg.h (fatal, note, yesno): Add owner param.
2200 * msg.c (fatal, note, yesno, mbox): Add owner param.
2201 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2202 now that we have a parent.
2203
2204 * main.cc: Run indent.
cef493d7 2205 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
ab57ceaa
RC
2206 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2207 headers.
2208 (root_dialog_proc): extern into this file.
2209 (Progress): Progress dialog defined here, used in several other files.
2210 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2211 Site, Chooser, Desktop pages and MainWindow sheet. Call
2212 InitCommonControls() to make sure Windows is set up for our use of
2213 property sheets. Add pages to sheet.
2214 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2215 now handled by the PropSheet class.
2216 (root.h): Add include.
2217
2218 * log.cc (log_save): Pass NULL parent to fatal().
2219 (exit_setup): Pass NULL parent to note().
2220
2221 * localdir.h (LocalDirPage): New file, new class.
2222 * localdir.cc: Run indent.
2223 (localdir.h): New include.
2224 (threebar.h): New include.
2225 (Progress): extern into this file.
2226 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
cef493d7 2227 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
ab57ceaa
RC
2228 LocalDirPage.
2229 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2230 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2231 (do_local_dir): Remove.
2232 (dialog_proc): Remove.
2233 (cwd): Remove, not used by anything.
2234
2235 * install.cc: Run indent.
2236 (process.h, threebar.h): New includes.
2237 (Progress): extern into this file.
2238 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2239 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2240 ThreeBarProgressPage.
cef493d7 2241 (dialog_cmd, dialog_proc, dialog): Removed, handled in
ab57ceaa 2242 ThreeBarProgressPage.
cef493d7
CF
2243 (init_dialog): Remove all mention of the above ins_* handles. Now
2244 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
ab57ceaa
RC
2245 ThreeBarProgressPage instance Progress directly.
2246 (progress): Alter bar update logic to call ThreeBarProgressPage
2247 instance Progress directly.
2248 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2249 instance Progress directly.
cef493d7 2250 (install_one_source): Alter SetWindowText()s to call
ab57ceaa
RC
2251 ThreeBarProgressPage
2252 instance Progress directly. Pass NULL parent to note().
cef493d7 2253 (do_install_thread): Rename from do_install(), added owner param.
ab57ceaa
RC
2254 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2255 directly.
2256 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
cef493d7 2257 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
ab57ceaa
RC
2258 fatal().
2259 (do_install_reflector): New function.
2260 (do_install): New function.
2261
2262 * ini.cc (process.h, threebar.h): New includes.
2263 (Progress): externed into this file.
2264 (find_routine): Pass NULL parent to note().
2265 (do_local_ini): Add owner param.
cef493d7 2266 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
ab57ceaa
RC
2267 and note(). Remove call to dismiss_url_status_dialog().
2268 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
cef493d7 2269 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
ab57ceaa
RC
2270 to IDD_CHOOSER on exit.
2271 (do_ini_thread_reflector): New function.
2272 (context): New var. Context for do_ini_thread.
2273 (do_ini): New function.
2274
2275 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2276 owner param.
cef493d7 2277 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
ab57ceaa 2278 gw_iprogress)
cef493d7 2279 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
ab57ceaa
RC
2280 Removed.
2281 (threebar.h): New include.
2282 (Progress): externed into this file.
cef493d7 2283 (dialog_cmd, dialog_proc, dialog): Removed, handled by
ab57ceaa 2284 ThreeBarProgressPage now.
cef493d7 2285 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
ab57ceaa 2286 SetWindowText()s
cef493d7 2287 and bar setting SendMessage()s to call ThreeBarProgressPage instance
ab57ceaa
RC
2288 Progress directly. Remove "one bar only" logic, this is now handled
2289 explicitly in the ThreeBarProgressPage class.
cef493d7 2290 (progress): Altered bar and text update logic to call
ab57ceaa
RC
2291 ThreeBarProgressPage instance Progress directly. Changed kbps
2292 calculation to floating point and now print out a single decimal
2293 place.
2294 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2295 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
cef493d7 2296 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
ab57ceaa
RC
2297 update logic to call ThreeBarProgressPage instance Progress directly.
2298 (dismiss_url_status_dialog): Remove.
2299
2300 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2301 false, was true.
2302
2303 * download.cc: Run indent.
2304 (process.h, threebar.h): New includes.
2305 (Progress): externed into this file.
2306 (download_one): Add owner param. Pass it to get_url_to_file().
2307 (do_download_thread): Renamed from do_download. Add owner param. When
2308 calculating total_download_bytes, take binpicked and srcpicked into
2309 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2310 Pass owner handle to download_one() and yesno().
2311 (do_download_reflector, do_download): New functions.
2312 (context): New var. Context for do_download_thread().
2313
2314 * dialog.h (D(x)): Add owner param.
2315
2316 * desktop.h (DesktopSetupPage): New file, new class.
2317 * desktop.cc: Run indent.
2318 (desktop.h): Add include.
cef493d7 2319 (dialog_proc, do_desktop): Remove, now handled in
ab57ceaa
RC
2320 DesktopSetupPage::OnInit().
2321 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2322 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2323 resp.
2324 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2325 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2326 of DesktopSetupPage.
2327
2328 * cistring.h: New file, new class.
2329 * cistring.cc: New file, new class.
2330
2331 * choose.h: Run indent.
2332 (Chooser): New class declaration.
2333 * choose.cc: Run indent.
cef493d7 2334 (do_choose): Add owner param. Pass it to DialogBox() and
ab57ceaa
RC
2335 fatal().
2336 (Chooser): New class implementation.
2337
2338 * res.rc (IDS_VERSION_INFO): New string.
2339 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2340 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2341 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2342 throughout.
2343 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2344 TAB control navigation etc. Give the controls a reasonable tab order.
2345 Grouped radio buttons. Something's still not right, can't tab away
2346 from back/next/cancel group reliably.
2347 * resource.h (IDD_CHOOSER): New dialog ID.
2348
2349 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2350 threebar.o, and window.o.
2351
cc41a057
RC
23522001-12-21 Robert Collins <rbtcollins@hotmail.com>
2353
2354 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2355 (pick_pkg_line::paint): Clip columns to prevent overlap.
2356
cbfc4215
RC
23572001-12-20 Robert Collins <rbtcollins@hotmail.com>
2358
2359 * Makefile.in: Add libcomctl32.a for setup.exe.
2360 * archive.h (archive): Prevent non-child direct creation of the class.
2361 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2362 * choose.cc: Include commctrl for the choose header.
2363 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2364 (pkgtrustp): Convert to function.
2365 (set_action): Remove.
cef493d7 2366 (add_required, fill_missing_category,default_trust): Use list syntax for
cbfc4215
RC
2367 package list.
2368 Use new set_action.
2369 (choose_caption): Remove.
2370 (topbucket::paint): New method.
2371 (topbucket::empty): Ditto.
2372 (topbucket::click): Ditto.
2373 (topbucket::~topbucket): Ditto.
2374 (paint): Remove i,ii and p as they are obsolete.
2375 Remove header drawing code.
2376 Use new chooser method to paint the chooser.
2377 Use new chooser itemcount method.
2378 (scroll_common): Rename to view::scroll.
2379 Scroll the header window separately.
2380 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2381 (listview_proc): Look for header messages.
2382 (note_width): Accept stringless calls.
2383 (pick_line::set_line): Remove.
2384 (pick_line::paint): Remove.
2385 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2386 (pick_category_line::paint): Paint this category, and anything in the bucket.
2387 (pick_line::click): Remove.
2388 (pick_pkg_line::click): Handle a click.
2389 (pick_category_line::click): Handle a click.
2390 (_view): Rename all to view.
2391 (view::view): Initialise the control contents.
2392 (view::set_headers): Work with the header control.
2393 (view::init_headers): Use list syntax for package list.
2394 Rearrange the width logic a little.
2395 (view::insert_pkg): Update to use the hierarchy.
2396 (view::insert_category): Ditto.
2397 (view::insert_at, view::insert_under): Remove.
2398 (view::clear_view): Update to use the hierarchy.
2399 (view::click): Update to use the hierarchy.
2400 (set_view_mode): Use list syntax for package list.
2401 Update for new chooser methods.
2402 (DoInsertItem): New helper function. (Needs a home somewhere).
2403 (create_listview): Remove choose control code and use the constructor instead.
2404 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2405 * choose.h: Include newly required headers list and package_meta.
2406 (_voew): Rename to view.
2407 (pick_line): Convert to an ABC.
2408 (pick_pkg_line): New class.
2409 (pick_catgory_line): New class.
2410 (topbucket): New class.
2411 (view::scroll): New method created from listview_scroll function.
2412 * desktop.cc (make_passwd_group): Use list syntax for package list.
2413 * download.cc (do_download): Use list syntax for package list.
2414 * fromcwd.cc (found_file): Use list syntax for package list.
2415 * iniparse.y (pacakges): Use list syntax for package list.
2416 * install.cc (uninstall_one): Use list syntax for package list.
2417 (do_install): Use list syntax for package list.
2418 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2419 Prevent inaccurate synthetic copy and assignment.
2420 * list.h: Include required header stdlib.
2421 Work on const correctness.
2422 * package_db.cc (packagedb::getpackagebyname): Remove.
2423 (packagedb::packagedb): Remove custom list code, and make db a local.
2424 (packagedb::getfirstpackage): Remove.
2425 (packagedb::getnextpackage): Remove.
2426 (packagedb::addpackage): Remove.
2427 (flush): Remove custom list code.
2428 (packagedb::registerpackage): Remove.
2429 (packagedb::packages): New static member.
2430 (packagedb::task): New static member.
2431 * package_db.h (PackageDBActions): New enum.
2432 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2433 addpackage, registerpackage, packages, packagecount, curr_package, db.
2434 Add packages, task.
2435 * pacakge_meta.cc: Include package_db.h.
2436 (packagemeta::action_caption): New method.
2437 (packagemeta::set_action): New method.
2438 * package_meta.h (CategoryPackage): Initialise key.
2439 (packagemeta): Initialise key.
2440 Add set_action and action_caption methods.
2441 Prevent inaccurate synthetic copy and assignment.
2442 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2443 * source.cc: Include package_db for db manipulation.
2444 (save_dialog): Set the db task.
2445 * win32.h: Tell the w32 include headers what IE version to expect/require.
2446
cd8e5750
RC
24472001-12-06 Robert Collins <rbtcollins@hotmail.com>
2448
2449 * README: Wishlist updates.
2450
5519d243
RC
24512001-12-04 Robert Collins <rbtcollins@hotmail.com>
2452
2453 * package_db.cc (getnextpackage): Don't overrun the array.
2454
de6a1a64
RC
24552001-12-04 Robert Collins <rbtcollins@hotmail.com>
2456
2457 * Makefile.in (OBJS): Add setup_version.o.
2458 (version.c): Rename to setup_version.
2459 * choose.cc (set_action): Prevent NULL pointer dereference.
2460 (package_sort): Remove.
2461 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2462 (check_ini): New function for use with find to see if there is a cached setup.ini.
2463 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2464 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2465 (do_local_ini): New function, drives parsing of local ini's.
2466 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2467 (do_ini): Move guts to do_remote_ini and do_local_ini.
2468 * list.h (removebyindex): New method.
2469 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2470 new site to the site picklist.
2471 (dialog_cmd): Only save the dialog when exiting the dialog.
2472 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2473 * site.cc (site_list_type): Move to site.h
2474 (site_list): New global, sites chosen by the user.
2475 (all_site_list): New global, all potential sites.
cef493d7 2476 (site_list_type::init): New method, parses a mirror.lst URL string into a
de6a1a64
RC
2477 site_list_type object.
2478 (site_list_type::site_list_type): New method.
2479 (check_if_enable_next): Examine the control, not a local variable.
2480 (load_dialog): Select all the user chosen sites by default.
cef493d7 2481 (save_dialog): Adjust for multiple selection semantics.
de6a1a64 2482 (save_site_url): Save all user chosen sites.
cef493d7 2483 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
de6a1a64
RC
2484 thats not needed.
2485 Remove obsolete other_url reference.
2486 (dialog_proc): Use all_site_list instead of site_list.
2487 (site_sort): Remove.
2488 (get_site_list): Remove malloc use - use list template instead.
2489 Move site_list_type initialisation to site_list_type::init().
2490 (get_initial_list_idx): Renamed to ...
2491 (get_saved_sites): this. Also read in multiple sites to the site_list.
2492 (do_site): Use all_site_list not site_list.
2493 Log all chosen sites.
2494 * site.h: New file, defines site related class, functions and variables.
2495 * state.h: Add comment about use of state.h
2496 (mirror_site): Remove.
2497 (other_url): Remove.
2498 (MIRROR_SITE): Remove.
2499 * version.cc: New file, for version-handling and related functions.
2500
341988b9
RC
25012001-12-02 Robert Collins <rbtcollins@hotmail.com>
2502
2503 * Makefile.in: Add filemanip.o to setup.
2504 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2505 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2506 (archive_tar): Ditto.
2507 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2508 (paint): Ditto.
2509 (_view::init_headers): Ditto.
2510 (_view::insert_pkg): Ditto.
2511 (set_view_mode): Ditto.
2512 (scan2): Ditto.
2513 (do_choose): Ditto.
2514 (base): Moved to filemanip.cc.
2515 (find_tar_ext): Ditto.
2516 (parse_filename): Ditto.
2517 (_Info::_Info): Remove.
2518 * compress_bz.h (compress_bz): Implement get_size virtual.
2519 * compress_gz.h (compress_gz): Implement get_size virtual.
2520 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2521 * download.cc (get_file_size): Move to filemanip.cc.
2522 (check_for_cached): Use [] operator instead of getnth - its more readable.
2523 (download_one): Ditto.
2524 * filemanip.cc: New file.
2525 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2526 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2527 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2528 * geturl.h: Declare new prototype.
2529 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2530 Tidy up the error code a little.
2531 * ini.h: Remove __cplusplus protection for ini_init.
2532 (_Info): Remove.
2533 * inilex.l: Remove old globals.
2534 (ini_init): Use an io_stream for getting the characters.
2535 (ini_getchar): Ditto.
2536 * iniparse.y: Declare yylex as a C++ function.
2537 (add_correct_version): Use [] operator instead of getnth - its more readable.
2538 * io_stream.cc (io_stream::move_copy): Use the copy method.
2539 (io_stream::copy): New method to simply copy from one stream to another.
2540 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2541 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2542 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2543 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2544 * io_stream_file.h (io_stream_file::get_size): Declare this.
2545 * io_stream_memory.h: Include errno as it's neded to parse the header.
2546 (io_stream_memory::get_size): Implement this.
2547 (io_stream_memory::st_size): Delete this.
2548 * list.h: Change getnth into the [] operator.
2549 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2550 (NetIO::set_url): Ditto.
2551 (NetIO::open): Ditto.
2552 * netio.h: As for netio.cc.
2553 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2554 being modified.
2555 * nio-file.h: Ditto.
2556 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2557 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2558 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2559 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2560 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2561 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2562 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2563 * package_source.cc (packagesource::set_canonical): Ditto.
2564 (packagesource::set_cached): Ditto.
2565 * package_source.h (site::~site): Ditto.
cef493d7 2566 * site.cc: Change site_list_type to a class, and search and replace sort_key to
341988b9
RC
2567 key globally.
2568
071c1c54
RC
25692001-12-01 Robert Collins <rbtcollins@hotmail.com>
2570
2571 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2572
4fe323f9
RC
25732001-11-30 Robert Collins <rbtcollins@hotmail.com>
2574
2575 * Makefile.in (OBJS): Remove category_list - it's not needed.
2576 * README: More wishlist updates.
2577 * category.cc (Category::Category): Initialise new members.
2578 (Categorycmp): New function.
2579 * category.h (Category): New member key for template use.
2580 * category_list.cc: Remove.
2581 * category_list.h: Remove.
2582 (Categorycmp): New function prototype.
2583 * choose.cc: Remove category_list - not needed.
cef493d7 2584 (set_action): Only show the 'source' option when the source is actually
4fe323f9
RC
2585 available.
2586 (add_required): Fix recursion limiter to 5.
2587 (fill_missing_category): Use list access.
2588 (default_trust): Ditto.
2589 (pick_line::paint): Ditto.
2590 (_view::init_headers): Ditto.
2591 (_view::insert_pkg): Ditto.
2592 (_view::insert_category): Ditto.
2593 (_view::click): Ditto.
2594 (set_view_mode): Ditto.
2595 (do_choose): Ditto.
2596 * cygpackage.h: Remove category_list - not needed.
2597 * geturl.cc (get_url_to_string): Fix null byte insertion.
2598 * inipatse.y: Remove category_list - not needed.
2599 (categories): Use list access.
2600 * package_db.cc: Ditto.
2601 * package_db.h: Remove category_list - not needed.
2602 (packagedb): Use the list template for categories.
2603 * package_meta.cc (add_category): Ditto.
2604 * package_meta.h (CategoryPackage): Link to the category as well.
cef493d7 2605 (packagemeta): Use a list of CategoryPackages instead of Categories
4fe323f9
RC
2606 for more memory efficient cross-referencing.
2607
7d66d192
RC
26082001-11-30 Robert Collins <rbtcollins@hotmail.com>
2609
2610 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2611 irrespective of the media they were installed from.
2612
bb849dbd
RC
26132001-11-29 Robert Collins <rbtcollins@hotmail.com>
2614
2615 * Makefile.in (OBJS): Add package_source and rfc1738.
2616 * README: Wishlist update.
2617 * category_list.cc (register_category): Use references.
2618 * category_list.h (CategoryList): Ditto.
2619 * choose.cc (isinstalled): Remove.
2620 (pkgtrustp): New macro.
2621 (set_action): Use packagemeta.
2622 (add_required): Ditto.
2623 (choose_caption): Example package to choose caption, rather than state flags.
2624 (check_existence): Remove.
2625 (set_existence): Remove old code.
2626 (fill_missing_category): Use packagemeta.
2627 (keep_or_skip): Remove.
2628 (default_trust): Use packagemeta and set trust values directly.
2629 (pick_line::set_line): Use packagemeta.
2630 (_view::insert_pkg): Ditto.
2631 (_view::insert_category): Ditto.
2632 (_view::click): Ditto.
2633 (set_view_mode): Ditto. Also remove "exclude" code.
2634 (create_listview): Use packagemeta.
2635 (dialog_cmd): Ditto.
2636 (getpkgbyname): Remove
2637 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2638 (read_installed_db): Remove.
2639 (package_sort): Use packagemeta.
2640 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2641 * choose.h: Use packagemeta.
2642 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2643 (cygpackage::cygpackage): Ditto.
2644 (cygpackage::set_canonical_version): Copy the passed string.
2645 (cygpackage::~cygpackage): Move cleanup code to destroy().
2646 (cygpackage::destroy): New function.
2647 (cygpackage::getfirstfile): Use a separate buffer.
2648 (cygpackage::getnextfile): Ditto.
2649 (cygpackage::Canonical_version): New function.
2650 (cygpackage::set_sdesc): Ditto.
2651 (cygpackage::set_ldesc): Ditto.
2652 * cygpackage.h (cygpackage::Canonical_version): New method.
2653 (cygpackage::set_sdesc): New method.
2654 (cygpackage::set_ldesc): New method.
2655 (cygpackage::SDesc): New method.
2656 (cygpackage::LDesc): New method.
2657 (cygpackage::set_canonical_version): New method.
2658 * desktop.cc: Include packagedb headers.
2659 (make_password_group): Use packagemeta.
2660 * download.cc: Include packagedb headers.
2661 (check_for_cached): New method to find any cached file and fill out the database
2662 info.
2663 (download_one): Take a packagesource, support multiple mirrors.
2664 (do_download): Use packagemeta.
2665 * from cwd.cc: Include packagedb headers.
2666 (found_file): Use packagemeta.
2667 * ini.cc (do_ini): Beginning of multiple-mirror support.
2668 * ini.h (CategoryPackage): Remove.
2669 (Dependency): Remove.
2670 (Package): Remove.
2671 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2672 * inilex.l: Support multiple mirrors.
2673 * iniparse.y: Include packagedb headers.
2674 (parser): Use packagemeta.
2675 (new_package): Remove.
2676 (add_correct_version): New function.
2677 (new_requirement): Remove.
2678 (add_category): Remove.
2679 * install.cc (uninstall_one): Use packagemeta.
2680 (install_one_source): New function.
2681 (install_one): Use packagemeta.
2682 (do_install): Use packagemeta.
2683 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2684 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2685 after setting the mtime, it makes no sense, and results in 0 length files.
2686 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2687 * list.h: New file, template class for a form of list.
2688 * package_db.cc (packagedb::registerpackage): New function.
2689 * package_db.h (packagedb::npackages ()): New method.
2690 * package_meta.cc (packagemeta::add_version): Use list template.
2691 (packagemeta::set_installed): Ditto.
2692 (packagemeta::add_category): New method.
2693 * package_meta.h: Include necessary headers to parse the class.
2694 (CategoryPackage): New class.
2695 (packagemeta): Initialise all members.
2696 (packagemeta::SDesc): New method.
2697 (packagemeta::Categories): New method.
2698 (packagemeta::add_category): Ditto.
2699 (packagemeta::versions): Change to be a list instance.
2700 * package_source.cc (packagesource::set_canonical): New method.
2701 (packagesource::set_cached): New method.
2702 * package_source.h: Include necessary headers to parse the class.
2703 (site): New class.
2704 (packagesource::packagesource): Initialize all members.
2705 (packagesource): Make this class non-abstract.
2706 * package_version.cc (packageversion::packageversion): New method.
2707 * package_version.h (Dependency): New class.
2708 (packageversion::Canonical_vesion): New method.
2709 (packageversion::SDesc): New method.
2710 (packageversion::LDesc): New method.
2711 (packageversion::new_requirement): Ditto.
2712 (packageversion::srcpicked, binpicked): What to install.
2713 (packageversion::src, bin): Installation source data.
2714 * rfc1738.cc: New file. Escapes special characters in URL's.
2715 * rfc1738.h: Ditto.
2716
90d14922
RC
27172001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2718
2719 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2720 SimpleSocket::gets() returns a zero-length string, so that we
2721 don't end up eating the entire stream thinking it's all header info.
2722
7c7034e8
RC
27232001-11-23 Robert Collins <rbtcollins@hotmail.com>
2724
2725 * install.cc (badrename): Remove.
2726 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2727 * io_stream.cc (io_stream::move_copy): New method.
2728 (io_stream::move): New method.
2729 * io_stream.h (io_stream): New methods move and move_copy.
2730 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2731 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2732 * io_stream_file.cc (io_stream_file::move): New method.
2733 * io_stream_file.h (io_stream_file): New method move.
2734 * package_db.cc (packagedb::flush): New method.
2735 * package_db.h (packagedb): New method flush.
2736
fa0c0d10
RC
27372001-11-23 Robert Collins <rbtcollins@hotmail.com>
2738
2739 * Makefile.in (OBJS): Add package_version.
2740 * ategory.cc (Category::Category): Update constructors.
2741 * category_list.cc (CategoryList::register_category): Insert correctly.
2742 * choose.cc: Include package_version.h, not package.h.
2743 * cygpackage.cc: Ditto.
2744 (cygpackage::uninstall): New method.
2745 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2746 New method uninstall.
2747 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2748 * hash.h (hash): Change prototypes to be accurate.
2749 * ini.h (_Info): New parameterless constructor.
2750 (CategoryPackage): New constructor.
2751 (Package): Ditto.
2752 * install.cc: Don't include unneeded headers.
2753 Include package database headers.
2754 (hash::add_subdirs): Remove.
2755 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2756 Don't uninstall source packages.
2757 (do_install): Just can uninstall_one once as we ignore source packages now.
cef493d7 2758 Don't copy the installed.old database accross, instead iterate through the
fa0c0d10
RC
2759 packagedb packages list and write the isntalled packages out.
2760 * package_db.cc: Include package_version.h, not package.h.
2761 (packagedb::packagedb): Never let db be undefined.
2762 Record the installation filename, so we can reconstruct installed.db.
2763 (packagedb::addpackage): Insert packages in alpha sorted order.
2764 (packagedb::categories): Initialise correctly.
2765 * package_meta.cc: Include win32 and mount headers as a workaround to
2766 current io_stream limitations. Include a TODO about that.
2767 (standard_dirs): New, from install.cc.
2768 (hash::add_subdirs): New, from install.cc.
2769 (packagemeta::set_installed): Rename genericpackage to packageversion.
2770 (packagemeta::uninstall): New method.
2771 * package_meta.h: Rename genericpackage to packageversion.
2772 (packagemeta): Update constructor.
2773 (add_version, set_installed): Rename genericpackage to packageversion.
2774 (uninstall): New method.
2775 (installed_from): New member.
2776 * package_source.cc: New file.
2777 * package_source.h: New file.
2778 * package_version.cc: New file.
2779 * package_version.h: New file.
2780 * package.cc: Removed.
2781 * package.h: Removed.
cef493d7 2782
7b606ae5
RC
27832001-11-21 Robert Collins <rbtcollins@hotmail.com>
2784
2785 * Makefile.in (OBJS): Add category.o and category_list.o.
2786 * category.h: New file.
2787 * category.cc: New file.
2788 * category_list.h: New file.
2789 * category_list.cc: New file.
2790 * choose.cc: Include category headers.
2791 (fill_missing_category): Use package_db to access global categories.
2792 (_view::insert_pkg): Ditto.
2793 (_view::insert_category): Ditto.
2794 (set_view_mode): Ditto.
2795 (getcategorybyname): Remove.
2796 * cygpackage.h: Include category_list.h to parse this correctly.
2797 (cygpackage): New virtual &Categories.
2798 * ini.h (_CategoryPackage): More C to C++ conversion.
2799 (Category): Remove.
2800 (getcategorybyname): Remove.
2801 (register_category): Remove.
2802 * iniparse.y: Include package db and category headers.
2803 (categories): Use package_db to access global categories.
2804 (category): Remove.
2805 (ncategories): Remove.
2806 (register_category): Remove.
2807 * package.h: New virtual &Categories.
2808 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2809 (packagedb::categories): Declare.
2810 * package_db.h (packagedb): New member categories for global categories list.
2811
d0fa1c4e
RC
28122001-11-21 Robert Collins <rbtcollins@hotmail.com>
2813
2814 * choose.h: Don't include ini.h
2815 * ini.h: Allow pure c++ in the header file.
2816
24cbae7f
RC
28172001-11-21 Robert Collins <rbtcollins@hotmail.com>
2818
2819 * install.cc (do_install): Write a version 2 installed.db file.
2820 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2821
7939f6d1
RC
28222001-11-21 Robert Collins <rbtcollins@hotmail.com>
2823
2824 * Makefile.in (OBJS): Add package abstraction objects.
2825 * choose.cc: Include package abstraction headers.
2826 (read_installed_db): Use packagedb class and ignore installed sources.
2827 * cygpackage.cc: New file.
2828 * cygpackage.h: New file.
2829 * filemanip.h (get_file_size): Use unixy types.
2830 * package.h: New file.
2831 * package.cc: New file.
2832 * package_db.cc: New file.
2833 * package_db.h: New file.
2834 * package_meta.cc: New file.
2835 * package_meta.h: New file.
2836
33bc0053
RC
28372001-11-21 Robert Collins <rbtcollins@hotmail.com>
2838
2839 * REAME: Updates to wishlist.
2840
12ccadc0
RC
28412001-11-16 Robert Collins <rbtcollins@hotmail.com>
2842
2843 * README: Updated and added my list of wishlist and todo items.
2844
ca9506cc
RC
28452001-11-14 Robert Collins <rbtcollins@hotmail.com>
2846
2847 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2848 * archive_tar.cc (archive_tar::write): New prototype.
2849 (archive_tar::seek): New method.
2850 * archive.h (archive_tar_file): Update write() and add seek().
2851 (archive_tar): Ditto.
2852 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2853 (archive_tar_file::seek): New method.
2854 * compress_bz.cc (compress_bz::write): New prototype.
2855 (compress_bz::seek): New function.
2856 * compress_bz.h (compress_bz): Update write() and add seek().
2857 * compress_gz.cc (compress_gz::write): New prototype.
2858 (compress_gz::seek): New function.
2859 * compress_gz.h (compress_gz): Update write() and add seek().
2860 * geturl.cc: Include io_stream headers.
2861 (GUBuf): Remove.
2862 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
2863 * io_stream.h (io_stream_seek_t): New enum.
2864 (io_stream): Update write() and add seek().
2865 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
2866 (io_stream_cygfile::seek): New function.
2867 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
2868 * io_stream_file.cc (io_stream_file::write): New prototype.
2869 (io_stream_file::seek): New function.
2870 * io_stream_file.h (io_stream_file): Update write() and add seek().
2871
2db33f10
RC
28722001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
2873
2874 * localdir.cc: Add headers unistd.h and port.h.
cef493d7 2875 (save_local_dir): Expand search logic to include local directory for
2db33f10
RC
2876 location of file last-cache.
2877 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
cef493d7 2878 (do_local_dir): Expand search logic to include local directory for file
2db33f10
RC
2879 last-cache.
2880 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
cef493d7 2881 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2db33f10 2882 Internet.
cef493d7 2883 (do_source): Default to Install from Internet on first entry or
2db33f10
RC
2884 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
2885
03a6c5b1
RC
28862001-11-13 Robert Collins <rbtcollins@hotmail.com>
2887
2888 * choose.cc (find_tar_ext): Only match at the end of the string.
2889 (getpkgbyname): Prevent NULL pointer dereference.
2890
b24c88b3
RC
28912001-11-13 Robert Collins <rbtcollins@hotmail.com>
2892
2893 * Makefile.in (CFLAGS): Add warnings and -Werr.
2894 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
2895 (OBJS): Add io_stream class' objects.
2896 (autoload.o): Use WARNONLY_FLAGS.
2897 (inilex.o): Ditto.
2898 (iniparse.o): Ditto.
2899 * archive.cc: New file.
2900 * archive.h: New file.
2901 * archive_tar.cc: New file.
2902 * archive_tar.h: New file.
2903 * archive_tar_file.cc: New file.
2904 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
2905 * choose.cc: Use io_stream.h, not mount.h.
2906 Run indent.
2907 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
2908 (read_installed_db): Use io_streams.
2909 * choose.h: Run indent.
2910 * compress.cc: New file.
2911 * compress.h: New file.
2912 * compress_bz.cc: New file.
2913 * compress_bz.h: New file.
2914 * compress_gz.cc: New file.
2915 * compress_gz.h: New file.
2916 * concat.cc: Run indent.
2917 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2918 * concat.h: Run indent.
2919 * desktop.cc: Run indent.
2920 Include mklink2.h rather than redefining by hand.
2921 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2922 (etc_profile): Fix compiler warning (deprecated conversion).
2923 (make_link): Fix compiler warning (deprecated conversion).
2924 Tidy up use of args variable - consolidate into argbuf.
2925 (start_menu): Fix compiler warning (deprecated conversion).
2926 (desktop_icon): Fix compiler warning (deprecated conversion).
2927 (make_etc_profile): Fix compiler warning (deprecated conversion).
2928 (uexists): Fix compiler warning (deprecated conversion).
2929 (check_desktop): Fix compiler warning (deprecated conversion).
2930 (check_startmenu): Fix compiler warning (deprecated conversion).
2931 * dialog.cc: Run indent.
2932 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2933 (fatal): Fix compiler warning (deprecated conversion).
2934 * dialog.h: Run indent.
2935 * diskfull.cc: Run indent.
2936 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2937 * download.cc: Run indent.
2938 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2939 (download_one): Fix compiler warning (signed vs unsigned comparison).
2940 * filemanip.h: Run indent.
2941 * find.cc: Run indent.
2942 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2943 (find): Fix compiler warning (deprecated conversion).
2944 * find.h: Run indent.
2945 * fromcwd.cc: Run indent.
2946 * geturl.cc: Run indent.
2947 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2948 (dialog_cmd): Return a value.
2949 (dialog_proc): Remove unused variables.
2950 Return a value.
2951 (get_url_to_file): Fix compiler warning (deprecated conversion).
2952 * geturl.h: Run indent.
2953 * hash.cc: Run indent.
2954 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2955 * hash.h: Run indent.
2956 * ini.cc: Run indent.
2957 Use io_streams.
2958 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2959 (do_ini): Use io_streams for local io.
2960 * ini.h: Run indent.
2961 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
2962 Fix compiler warning (brackets for truth assignment).
2963 * install.cc: Run indent.
2964 Fix compiler warning (/* in comment).
2965 Use io_streams.
2966 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2967 (dialog_cmd): Return a value.
2968 (dialog_proc): Return a value.
2969 (start_tics): Deleted - was unused.
2970 (badrename): Fix compiler warnings (unused, deprecated conversion).
2971 (standard_dirs): Fix compiler warning (deprecated conversion).
2972 (exists): Remove.
2973 (uninstall_one): Convert to io_streams.
2974 (install_one): Convert to io_streams.
2975 (do_install): Convert to io_streans.
2976 Fix compiler warning (deprecated conversion).
2977 * io_stream.cc: New file.
2978 * io_stream.h: New file.
2979 * io_stream_cygfile.cc: New file.
2980 * io_stream_cygfile.h: New file.
2981 * io_stream_file.cc: New file.
2982 * io_stream_file.h: New file.
2983 * localdir.cc: Run indent.
2984 Use io_streams.
2985 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2986 (get_root_dir_now): Remove.
2987 (save_local_dir): Convert to io_streams.
2988 (dialog_cmd): Return a value.
2989 (do_local_dir): Convert to io_streams.
2990 (log.cc): Run indent.
2991 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2992 (log): Fix compiler warning (deprecated conversion).
2993 (log_save): Fix compiler warning (deprecated conversion).
2994 * log.h: Run indent.
2995 (log): Fix compiler warning (deprecated conversion).
2996 (log_save): Fix compiler warning (deprecated conversion).
2997 * main.cc: Run indent.
2998 Don't include "netio.h".
2999 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3000 (netio_test): Remove.
3001 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3002 (WinMain): Return a value.
3003 * mkdir.cc: Run indent.
3004 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3005 * mklink2.c: Run indent.
3006 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3007 (mkcygsymlink): New function.
3008 * mklink2.h: New file.
3009 * mount.cc: Run indent.
3010 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3011 (create_mount): Remove unused variables.
3012 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3013 * mount.h: Run indent.
3014 * msg.cc: Run indent.
3015 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3016 (msg): Fix compiler warning (deprecated conversion).
3017 (mbox): Fix compiler warning (deprecated conversion).
3018 * msg.h: Run indent.
3019 (msg): Fix compiler warning (deprecated conversion).
3020 * net.cc: Run indent.
3021 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3022 (dialog_cmd): Return a value.
3023 * netio.cc: Run indent.
3024 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3025 (auth_cmd): Return a value.
3026 * netio.h: Run indent.
3027 * nio-file.cc: Run indent.
3028 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3029 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3030 * nio-file.h: Run indent.
3031 * nio-ftp.cc: Run indent.
3032 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3033 * nio-ftp.h: Run indent.
3034 * nio-http.cc: Run indent.
3035 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3036 * nio-http.h: Run indent.
3037 * nio-ie5.cc: Run indent.
3038 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3039 * nio-ie5.h: Run indent.
3040 * other.cc: Run indent.
3041 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3042 (dialog_cmd): Return a value.
3043 * port.h: Run indent.
3044 * postinstall.cc: Run indent.
3045 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3046 (cmd): Fix compiler warning (deprecated conversion).
3047 (eun): Fix compiler warning (deprecated conversion).
3048 * root.cc: Run indent.
3049 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3050 * simpsock.cc: Run indent.
3051 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3052 * simpsock.h: Run indent.
3053 * site.cc: Run indent.
3054 Use io_streams.
3055 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3056 (get_root_dir_now): Remove.
3057 (save_site_url): Convert to io_streams.
3058 (dialog_cmd): Return 0.
3059 (get_initial_list_idx): Convert to io_streans.
3060 * source.cc: Run indent.
3061 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3062 (check_if_enable_next): Remove.
3063 (load_dialog): Remove unused variables.
3064 (save_dialog): Ditto.
3065 (dialog_cmd): Return a value.
3066 * splash.cc: Return a value.
3067 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3068 (dialog_cmd): Return a value.
3069 * state.cc: Run indent.
3070 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3071 * state.h: Run indent.
3072 * tar.h: Remove.
3073 * tar.cc: Remove.
3074
398dd7b2
CF
30752001-11-12 Christopher Faylor <cgf@redhat.com>
3076
3077 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3078 (check_startmenu): Ditto.
3079
c29ee141
CF
30802001-11-11 Christopher Faylor <cgf@redhat.com>
3081
3082 * choose.cc (parse_filename): Finish reorganization by correctly
3083 decrementing p in memmove.
3084
3a8276de
CF
30852001-11-11 Christopher Faylor <cgf@redhat.com>
3086
3087 * choose.cc (parse_filename): Reorganize code to work around gcc
3088 optimization problem.
3089
6eea52fb
RC
30902001-11-09 Gareth Pearce <tilps@hotmail.com>
3091
3092 * choose.cc (set_action): Allow skip as an option for installed
3093 packages that have version number not listed in setup.ini.
3094
cf99b153
RC
30952001-11-10 Robert Collins <rbtcollins@hotmail.com>
3096
3097 * choose.cc (set_cation): Backout last change.
3098 (choose_caption): Ditto.
3099
55e204f6
RC
31002001-11-10 Robert Collins <rbtcollins@hotmail.com>
3101
3102 * ini.h (actions): Remove - transferred to choose.h.
3103 (views): Ditto.
3104 * choose.h: Protect class's from "C" compilers.
3105 (actions): New enum, from ini.h. This may not be the 'right' place
3106 but that place doesn't exist yet.
3107 (_views): New enum, from ini.h.
cef493d7 3108 * choose.cc (set_action): Handle installed packages with a version not in
55e204f6
RC
3109 setup.ini.
3110 (choose_caption): Ditto.
3111 * iniparse.y: Rearrange header order to handle new ini.h.
3112
31132001-11-10 Robert Collins <rbtcollins@hotmail.com>
3114
3115 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3116 (registry_category): Fix compiler warning (deprecated conversion).
3117 * iniparse.y (registry_category): Ditto.
3118 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3119 (add_requried): Remove unused variable.
3120 (choose_caption): Handle all enumeration values via a default.
3121 (paint): Fix compiler warnings (unused, deprecated conversion).
3122 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3123 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3124 (note_width): Fix compiler warnings (deprecated conversion).
3125 (keep_or_skip): Fix compiler warnings (unused).
3126 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3127 (set_view_mode): Fix compiler warnings (unused).
3128 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3129 end of function).
3130 (dialog_proc): Fix compiler warnings (unused).
3131 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3132 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3133 (_view): Ditto.
3134
67a55ad9 31352001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
cef493d7 3136
67a55ad9
RC
3137 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3138 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3139 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3140 memory for buf in the constructor.
3141 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3142 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3143 (SimpleSocket::write): Check object consistency - return -1 on error.
3144 invalidate() the object on socket write error.
3145 (SimpleSocket::fill): Check object consistency - return -1 on error.
3146 invalidate() the object if socket read error is encountered and there
3147 is no more data available in the internal read buffer.
3148 Allocate memory for the internal read buffer.
3149 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3150 during fill() and no more data is available in the internal read buffer.
3151 (SimpleSocket::read): Check object consistency - return -1 on error.
3152 invalidate() the object if socket read error is encountered.
3153 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3154 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3155 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3156 (NetIO_FTP::read): Use NetIO_FTP::ok().
3157 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3158 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3159
5898e300
RC
31602001-11-09 Robert Collins <rbtcollins@hotmail.com>
3161
3162 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3163 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3164 (SimpleSocket::printf): Ditto.
3165 (SimpleSocket::write): Ditto.
3166 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3167 printf and write.
3168 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3169 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3170 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3171
8e58f8fd
RC
31722001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3173
3174 * geturl.cc (get_url_to_string): clean up memory leak
3175 (get_url_to_file): ditto
cef493d7 3176
4b4002ab
RC
31772001-11-06 Robert Collins <rbtcollins@hotmail.com>
3178
3179 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3180 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3181
94525fd9
RC
31822001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3183
3184 * fromcwd.cc (found_file): Free() memory containing the version and
3185 filepath information for a given package, before replacing the pointers which
3186 reference this memory.
3187
31882001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
3189
3190 * fromcwd: Fix compiler warnings for cvsid.
3191 (canonicalize_version): Fix compilter warnings.
3192 (do_fromcwd): Ditto.
3193 * version.h: Fix compiler warnings for canonicalize_version.
3194
ce1f9ec2
RC
31952001-11-03 Robert Collins <rbtcollins@hotmail.com>
3196
3197 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3198
89d82ec7
RC
31992001-11-02 Robert Collins <rbtcollins@hotmail.com>
3200
3201 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3202
c8fea72a
RC
32032001-11-02 Robert Collins <rbtcollins@hotmail.com>
3204
8114d309
RC
3205 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3206
32072001-11-02 Robert Collins <rbtcollins@hotmail.com>
3208
cef493d7 3209 * choose.cc (default_trust): Change the "Required" forced install category to
8114d309 3210 "Base".
c8fea72a 3211
f557695e
RC
32122001-11-02 Robert Collins <rbtcollins@hotmail.com>
3213
3214 * choose.cc: Ran indent.
3215 (set_action): When the requested trust level is missing and the level was not
3216 user requested, set the action to ACTION_SAME_CURR.
3217
9a60dafc
CF
32182001-11-01 Christopher Faylor <cgf@redhat.com>
3219
cef493d7 3220 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
f557695e
RC
3221
32222001-11-02 Robert Collins <rbtcollins@hotmail.com>
3223
3224 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 3225
878faffd
RC
32262001-11-02 Robert Collins <rbtcollins@hotmail.com>
3227
cef493d7 3228 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
878faffd
RC
3229 packages.
3230
05bfdf26
RC
32312001-11-02 Robert Collins <rbtcollins@hotmail.com>
3232
3233 * choose.cc (default_trust): Autoset currently installed packages per the user's
3234 selection of prev/curr/exp.
3235
0b9af00c
RC
32362001-11-02 Robert Collins <rbtcollins@hotmail.com>
3237
3238 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3239
7cefe128
RC
32402001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3241
3242 * geturl.cc (is_showing): Remove.
3243 (is_local_install): New static variable. Controls whether the
3244 progress dialog and the supporting thread will be created.
3245 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3246 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
cef493d7 3247 This prevents the progress dialog to gain control over the
7cefe128
RC
3248 application and fixes the "setup.exe going to background" problem.
3249 (progress): Use is_local_install.
3250 (get_url_to_string): Set is_local_install.
3251 (dismiss_url_status_dialog): Use is_local_install.
3252 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3253 (init_dialog): Remove usage of SetForegroundWindow.
cef493d7 3254 This prevents the progress dialog to gain control over the
7cefe128
RC
3255 application and fixes the "setup.exe going to background" problem.
3256
42a99ed1
RC
32572001-11-02 Robert Collins <rbtcollins@hotmail.com>
3258
3259 * choose.cc (list_click): Change r to row for clarity.
3260 When we shrink the list below 1 page, scroll to the top of the list.
3261 (_view::click): Return the actual change for contractions.
3262 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3263
45c2d7d3
RC
32642001-11-02 Robert Collins <rbtcollins@hotmail.com>
3265
3266 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3267 * localdir.cc: Ran indent.
3268 (get_root_dir_now): New function.
3269 (save_local_dir): New function.
3270 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3271 (do_local_dir): If there is a saved local dir, read it in.
3272 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3273 * root.cc (dialog_cmd): Ditto.
3274 * source.cc (dialog_cmd): Ditto.
3275
2399c54d
RC
32762001-11-01 Robert Collins <rbtcollins@hotmail.com>
3277
3278 * choose.cc(list_vscroll): Return 0 as required by win32.
3279 (list_hscroll): Ditto.
3280 (list_click): Ditto.
3281
8e4402a9
RC
32822001-11-01 Robert Collins <rbtcollins@hotmail.com>
3283
3284 * argv.cc: Remove.
3285 * argv.h: Remove.
3286 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3287 * Makefile,in: Remove argv.o.
3288
c168185f
RC
32892001-11-01 Matt Hargett <matt@use.net>
3290
cef493d7
CF
3291 * geturl.cc (progress): Change int to unsigned int to eliminate
3292 lint warnings.
3293 * (get_url_to_string): Check for NULL pointer.
3294 * mount.cc (find2): Use free instead of delete for malloc'd
3295 memory.
3296 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
c168185f 3297
f97a1ece
RC
32982001-10-31 Robert Collins <rbtcollins@hotmail.com>
3299
3300 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3301 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3302 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3303 Reported by Matt (matt@usa.net).
cef493d7 3304 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
f97a1ece
RC
3305 confusion and lint errors. Reported by Matt (matt@usa.net).
3306
d52ed64b
RC
33072001-10-31 Robert Collins <rbtcollins@hotmail.com>
3308
cef493d7 3309 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
d52ed64b
RC
3310 from dcrt0.cc.)
3311 * argv.h: New file.
3312 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3313 Add mingw_getopt.o build rule.
3314 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3315
392ba1ba
CF
33162001-10-27 Christopher Faylor <cgf@redhat.com>
3317
3318 * res.rc: Rearrange info on top line slightly.
3319
31324d15
CF
33202001-10-27 Christopher Faylor <cgf@redhat.com>
3321
3322 * desktop.cc (make_passwd_group): Move file creation earlier in the
3323 process to ensure that passwd-grp.bat reflects desired operation.
3324
33252001-27-10 Trevor Forbes <t4bs@hotmail.com>
3326
3327 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3328
ee411d77
CF
33292001-10-16 Christopher Faylor <cgf@redhat.com>
3330
3331 * res.rc: Oops. Take 640x480 screen size into account.
3332
e74944da
CF
33332001-10-16 Christopher Faylor <cgf@redhat.com>
3334
3335 * res.rc: Enlarge chooser screen.
3336
e368cfb9
CF
33372001-10-12 Christopher Faylor <cgf@redhat.com>
3338
3339 * Makefile.in: Accomodate changes to w32api_include macro.
3340
a6ba3670
CF
33412001-10-12 Christopher Faylor <cgf@redhat.com>
3342
3343 * Makefile.in: Use correct flags for windres.
3344
683e96f6
CF
33452001-10-12 Christopher Faylor <cgf@redhat.com>
3346
3347 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3348
2c18c00b
CF
33492001-10-12 Christopher Faylor <cgf@redhat.com>
3350
3351 * choose.cc (pick_line::paint): Reorganize after botched patch.
3352
0f61a05a
CF
33532001-10-12 Christopher Faylor <cgf@redhat.com>
3354
3355 * choose.cc (pick_line::paint): Add missing declaration.
3356
308d6f3e
CF
33572001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3358
3359 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3360
3bcf85be
RC
3361Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3362
3363 * choose.cc (_view::insert_pkg): Correctly exit loop.
3364 * iniparse.y (register_category): Always insert new categories.
3365
fb2cd8f6
CF
3366Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3367
3368 * inilex.l (yylex): For comments, eat all characters up to, but not
3369 including newline.
3370
127b32e1
CF
3371Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3372
3373 * fromcwd.cc (found_file): Use correct package name when adding an
3374 unknown package rather than random stack garbage.
3375
2cd555aa
CF
3376Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3377
3378 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3379
4254cc64
CF
3380Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3381
3382 * desktop.cc (etc_profile): Leave environment variables untouched.
3383
acbae401
CV
33842001-08-07 Corinna Vinschen <corinna@vinschen.de>
3385
3386 * autoload.c: Add dynamic load statements for NT/W2K
3387 advapi32 functions not available in 9x/ME.
3388 * main.cc (set_default_dacl): New function.
3389 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3390
969a294c
CF
3391Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3392
3393 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3394 consistency.
3395 * choose.cc: Use pkgname field when referencing _CategoryPackage
3396 throughout.
3397 (fill_missing_category): Don't add excluded packages.
3398 (default_trust): Ditto.
3399 (_view::insert_pkg): Ditto.
3400 * iniparse.y (register_category): Use consistent variable name.
3401
9eeb0e83
ED
34022001-07-09 Egor Duda <deo@logos-m.ru>
3403
3404 * choose.cc: Use system foreground color for text output.
3405
06560feb
CF
3406Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3407
3408 * choose.cc (set_action): Use default trust for determining reinstall
3409 and source only.
3410 (default_trust): Set default trust.
3411 (pick_line::paint): Allow source selection when reinstalling or
3412 retrieving.
3413
1fb09149
CF
3414Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3415
3416 * choose.cc (isinstalled): Modify to properly accomodate special case
3417 of "download only".
3418 (set_action): Check downloaded components, not installed components if
3419 "download only".
3420 (set_existence): Always include full list of files when "download
3421 only".
3422
14cfffa5
CF
3423Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3424
3425 * choose.cc (pick_line::paint): Properly display "na" field when no
3426 source exists.
3427
f54385f6
CF
3428Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3429
3430 * choose.cc (scan2): Ensure that older versions do not show up in
3431 "Test" slot.
3432
85b1fb54
CF
3433Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3434
3435 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3436 * res.rc: Fix copyright.
3437
2dada532
CF
3438Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3439
3440 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3441 boxes.
06c6d195 3442 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
3443
3444 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3445 (paint): Wrap some excessively long lines.
3446 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3447 right to where it belongs. Move the source checkbox slightly to the
3448 right.
3449 (do_choose): List categories and required packages in setup.log.full.
3450
3451Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3452
3453 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3454
1b13eeec
CF
3455Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3456
3457 * ini.h (struct _Info): Add "derived" element.
3458 * choose.cc (scan2): Try to place unknown tar files into proper slot
3459 when package exists in setup.ini but tar file does not.
3460
9307254d
RC
3461Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3462
3463 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3464 (do_choose): Log the first category name.
3465
3467d79f
CF
3466Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3467
3468 *ini.h: Reapply 2001-06-25 changes.
3469 * choose.cc (add_required): Ditto. Default to "Keep" state if
3470 UNINSTALL and product is installed. Default to curr state if SKIP,
3471 etc.
3472 (keep_or_skip): New function. Returns skip or keep state depending on
3473 installed state of package.
3474 (default_trust): Use keep_or_skip to set state.
3475 (_view::insert_pkg): Use calloc to allocate lines.
3476 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3477
8f53e82a
RC
3478Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3479
1fb09149 3480 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
3481 nindexes.
3482 Add globals cat_headers, pkg_headers and chooser.
3483 (add_required): New function.
3484 (paint): Use the chooser for header details.
3485 Call into the chooser to paint each line.
1fb09149 3486 (list_click): Use new global variables.
8f53e82a
RC
3487 Call into the chooser to handle the click.
3488 Repaint the entire view if packages have been added or removed.
3489 (note_width): Get passed a headers struct rather than using a global
3490 variable.
3491 (fill_missing_category): New function.
3492 (default_trust): Skip non-"Required" or "Misc" packages.
3493 (pick_line::set_line (Package *)): New function.
3494 (pick_line::set_line (Category *)): New function.
3495 (pick_line::paint): New function.
3496 (pick_line::click): New function.
3497 (_view::_view): New function.
3498 (_view::set_view_mode): New function.
3499 (_view::mode_caption): New function.
3500 (_view::set_headers): New function.
3501 (_view::init_header): New function.
3502 (_view::insert_pkg): New function.
3503 (_view::insert_category): New function.
3504 (_view::insert_at): New function.
3505 (_view::insert_under): New function.
3506 (_view::clear_view): New function.
3507 (viewsplusplus): New function.
3508 (_view::client): New function.
3509 (set_view_mode): Use new chooser functionality.
3510 (set_full_list): Use new global variables.
3511 (create_listview): Instantiate chooser.
3512 Remove all hardcoded headers[] code.
3513 (dialog_cmd): On trust changes, check dependencies.
3514 (getcategorybyname): New function.
3515 (getpackagecategorybyname): New function.
3516 (scan2): Use case-insensitive package comparison.
3517 (do_choose): Use fill_missing_category ().
3518 Show some category data.
3519 * ini.h: Protect against multiple inclusion.
3520 (views) New enum.
3521 (_CategoryPackage): New struct.
3522 (_Category): New struct.
3523 (_Package): Change category to Category * from char *.
3524 (extern Category category): New global variable.
3525 (extern in ncategories): Ditto.
3526 (getcategorybyname): New prototype.
3527 (catpackagecategorybyname): New prototype.
3528 (register_category): New prototype.
3529 (add_category): New prototype.
3530 * iniparse.y: Parse multiple categories per package.
2dada532
CF
3531 (category): New global variable.
3532 (ncategories): New global variable.
8f53e82a
RC
3533 (new_package): Compare package against NULL, not 0.
3534 (new_requirement): Source formatting fix.
3535 (register_category): New function.
3536 (add_category): New function.
3537 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3538 IDC_CHOOSE_VIEWCAPTION: New control.
3539 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3540 IDC_CHOOSE_VIEWCAPTION: New control.
3541 Increment _APS_NEXT_CONTROL_VALUE.
3542
26a27c14
CF
3543Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3544
e19ad6a3 3545 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
3546 (list_click): Ditto.
3547 (create_listview): Ditto.
3548 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3549 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3550 installing from local directories.
3551
97312777
CF
3552Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3553
5f9f0d8d
CF
3554 * choose.cc (set_action): Only clear srcpicked when moving to next
3555 state. Allow source installation if it exists in the current "trust"
3556 state. Don't move to skip state when package is installed.
97312777
CF
3557 (list_click): Don't allow source clicking when no source is available.
3558 (set_full_list): Display package when not is_full_action.
3559 * ini.h (is_full_action): Define.
3560
72fd1d1e
CF
3561Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3562
3563 * install.cc (check_for_old_cygwin): New function. First stab at
3564 checking for old cygwin versions.
3565 (do_install): Call check_for_old_cygwin if there were no errors during
3566 the install.
3567
41ac91b5 3568Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
3569
3570 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3571 than zeroed "source" element.
3572
80429b97
CF
3573Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3574
3575 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3576 the highest available "hole" in the trust array.
3577
654ea642
CF
3578Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3579
3580 * choose.cc (set_existence): Use pointer method for indexing in trust
3581 array.
3582 (create_listview): Ditto.
3583 (scan2): Ditto. Also, use consistent variable name for indexing into
3584 trust array.
3585 * ini.h (Package): Reorganize info array for easier scanning.
3586
e98d90bd
CF
3587Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3588
3589 * choose.cc (isinstalled): Eliminate special download only test.
3590 (set_action): Don't move to next state if in ACTION_SAME range and not
3591 incrementing.
3592 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3593 downloading.
3594 (do_choose): Sort packages after all packages have been read.
3595 Accomodate the fact that first element in trust array is empty so that
3596 log files don't report the wrong trust value.
3597 * iniparse.y (new_package): Malloc space for package name or suffer
3598 memory corruption.
3599
38c97581
CF
3600Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3601
3602 * ini.h (Dependency): New structure. Declare new function.
3603 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3604 * iniparse.y: Declare new setup.ini token values.
3605 (yyparse): Parse new token values.
3606 (new_requirement): New function.
3607
3608Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3609
3610 * choose.cc (read_installed_db): Eliminate obsolete code.
3611
3ae6c15c
CF
3612Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3613
3614 * choose.cc (set_action): Set trust on "redo".
3615 (_Info::_Info): New constructor.
3616 (read_installed_db): Use new constructor. Use trusts type for
3617 iterator.
3618 * ini.h (struct _Info): Label struct, add constructor.
3619 (Package): Make installed_ix a type 'trusts.'
3620 * install.cc (uninstall_one): Unset any installed info for current
3621 package.
3622 (install_one): Allocate new Info struct for installed reflecting new
3623 installed info.
3624 (do_install): Don't output line to installed.db if package is being
3625 uninstalled.
3626
9c0a9876
CF
3627Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3628
3629 * choose.cc (getpkgbyname): Use consistent method for scanning package
3630 array.
3631
68b27c12
CF
3632Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3633
3634 * choose.cc: Add some comments.
3635 (getpkgbyname): Use strcasecmp for comparisons.
3636
07108cc2
CF
3637Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3638
f0984dcb 3639 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
3640 package wasn't currently retrieved.
3641
c46a33a9
CF
3642Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3643
3644 * choose.cc: Eliminate extra array throughout. Use element in package
3645 structure instead. Use pointers rather than array indexes where
3646 appropriate.
3647 (set_action): New function to set next action based on current.
3648 (choose_caption): New function. Returns display caption.
3649 (check_existence): Change arguments. Use pointer to 'info' structure.
3650 (set_existence): Use pointer rather than array index.
3651 (default_trust): Use trusts enum for second argument.
3652 (set_full_list): Honor exclude element in package structure.
3653 (build_labels): Eliminate.
3654 (base): Make global. Use const char * argument.
3655 (get_package_version): Eliminate.
3656 (getpkgbyname): New function.
3657 (read_installed_db): Use parse_filename to get version info.
3658 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3659 * download.cc (get_file_size): const argument.
3660 (do_download): Use is_download_action to determine when something
3661 should be downloaded.
3662 * filemanip.h: Add some functions.
3663 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3664 * ini.h: Use enums for actions and trusts.
3665 (is_download_action): New macro.
3666 (is_upgrade_action): Ditto.
3667 (is_uninstall_action): Ditto.
3668 (struct Package): Add new fields.
3669 * inilex.l (yylex): Detect new setup.ini options.
3670 * iniparse.y: Declare new tokens.
3671 (yyparse): Detect exclude keyword. Fill out version field even if
3672 version == 0.
3673 (new_package): Use greater granularity when allocating package array to
3674 avoid repeated calls to realloc.
3675 * install.cc (exists): const argument.
3676 (uninstall_one): Take pkg argument.
3677 (install_one): Ditto. Eliminate unneeded arguments which can be
3678 derived from package info.
3679 (do_install): Iterate over package array using a pointer. Use
3680 is_download_action to control when package should be downloaded.
3681 * tar.cc (tar_open): const argument.
3682 * tar.h: Refloect const argument.
3683
7cc06fd3
CF
36842001-05-31 Michael Chase mchase@ix.netcom.com
3685
3686 * main.cc (WinMain): Add setup version to starting setup.log entry
3687
9522028b
CF
3688Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3689
3690 * inilex.l: Add + to list of valid string characters.
3691
e9b1aaa7
CF
3692Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3693
3694 * Makefile.in: Remove more stuff in the clean target.
3695
8e1299fa
CF
3696Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3697
3698 * Makefile.in: Correctly generate iniparse.h.
3699
85553593
CV
3700Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3701
3702 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3703 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3704 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3705 Set member `ftp_auth'.
3706 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3707 to constructors of derived classes.
3708 (NetIO::get_ftp_auth): New method.
3709 * netio.h: Change class definition accordingly.
3710 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3711 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3712 Add code for ftp authentication retry.
3713 * nio-ftp.h: Change class definition accordingly.
3714 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3715 Add code for ftp authentication retry in case of proxy connection.
3716 * nio-http.h: Change class definition accordingly.
3717 * res.rc: Add FTP authentication dialog.
3718 * resource.h: Add new constants used in res.rc.
3719 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3720
c4174b9c
CF
3721Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3722
3723 * res.rc (IDD_SPLASH): Add a copyright year.
3724
0af2d779
CF
3725Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3726
3727 * Makefile.in: Make iniparse.y produce a c++ file.
3728 * choose.cc (set_existence): Revert 2001-05-27 change.
3729 * ini.cc: Remove "C" from declaration of yyparse.
3730 * iniparse.y (yyparse): Fill out version field by default when a binary
3731 install is detected and no version has been set yet.
3732 * install.cc (do_install): Mount things earlier so that we can use
3733 proper mount table settings. Don't remove mounts since they are now
3734 honored.
3735 * mount.cc (create_mount): Reread the mount table after establishing a
3736 new mount.
3737 (read_mounts): Explicitly clear root_here to allow multiple uses of
3738 this function. Ensure that there is no garbage in the table when we've
3739 exhausted all of the mounts in the registry.
3740 (cygpath): Accomodate ./ in path.
3741
85b43844
CF
3742Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3743
0af2d779
CF
3744 Use parse_filename method to parse filenames throughout. Use
3745 get_root_dir to retrieve the current root directory throughout. Set
3746 const in argument list, where appropriate, throughout.
3747 * choose.cc (set_existence): Detect case of uninstalled package with no
3748 version.
85b43844
CF
3749 (parse_filename): New function.
3750 * filemanip.h (fileparse): New structure.
3751 * mount.cc (read_mounts): Remember where we found the root mount.
3752 (set_root_dir): New function.
3753 (get_root_dir): Ditto.
3754 * mount.h: Declare new functions.
3755 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3756 (save_site_url): Use new function name.
3757 (get_initial_list_idx): Ditto.
3758
08f8c762
CF
3759Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3760
3761 * choose.cc: Use a constant throughout to deal with chooser icon
3762 length.
3763 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3764
47f8d8b3
CF
37652001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3766
3767 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3768 use when Redownload or Sources Only selected.
3769
6a748750
CF
3770Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3771
3772 Reformat file after botched patch formatting.
3773 * choose.cc (which_trust): Eliminate variable.
3774 (default_trust): Don't set which_trust.
3775 (do_choose): Use selected trust when reinstalling or installing source.
3776
a351e48c
CF
3777Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3778
3779 Change concat to cygpath throughout.
3780 Change map_filename to cygpath throughout.
3781 * concat.cc (vconcat): New function.
3782 (concat): Use vconcat.
3783 * concat.h: Reflect above.
3784 * install.cc (map_filename): Eliminate.
3785 (install_one): Free dest_file.
3786 * mount.cc (find2): Expect input key to be pointing to mount record.
3787 (in_table): New function.
3788 (is_admin): Move from root.cc.
3789 (read_mounts): New function.
3790 (path_prefix_p): New function.
3791 (cygpath): New function.
3792 * mount.h: Define new functions and structure.
3793 * root.cc (in_table): Move to mount.cc.
3794 (do_root): Call read_mounts to initialize root stuff and mount table.
3795 * site.cc (get_root_dir): Ditto.
3796
e227ee24
CF
37972001-05-09 Matt Hargett <matt@use.net>
3798
3799 * Makefile.in: Remove *.rc from clean.
3800
25fd2965
CF
3801Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3802
3803 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3804 TRUST_PREV which produced "0" versions.
3805
42bf5b92
CF
38062001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3807
3808 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3809 _APS_NEXT_CONTROL_VALUE to account for addition of
3810 IDC_CHOOSE_INST_TEXT.
3811 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3812 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3813 hot keys to select Prev, Curr, Exp.
3814 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3815 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3816 ACTION_SRC_ONLY.
3817 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3818 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3819 source Checkbox to use.
3820 (build_labels): Add logic to allow for selection of Source only
3821 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3822 current version binary.
3823 (dialog_proc): Add conditional display for file selection prompt based
3824 on download vs install using IDC_CHOOSE_INST_TEXT.
3825 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3826 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3827 handle the instance where Source Download/Install was selected. Modify
3828 log file to store appropriate information regarding Action selected and
3829 the new actions that were added (I.E.: ACTION_REDO and
3830 ACTION_SRC_ONLY).
3831 * download.cc: Add include for <unistd.h> and "port.h".
3832 (download_one): Modify parameter list to include the selected action
3833 for the file to be downloaded. Modify size check against expected size
3834 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3835 .tmp file to also remove the destination file if exists due to ability
3836 to redownload source and binary now.
3837 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3838 calculation of Download Bytes. Modify to also use ACTION_REDO and
3839 ACTION_SRC_ONLY in determining files selected for download.
3840 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3841 upgrade so current version will be uninstalled prior to reinstall.
3842 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3843 uninstalling and installing binary and source packages.
3844 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3845 only cygwin install when checking for cygwin to determine need for
3846 mkpasswd and mkgroup.
3847
3848Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
3849
3850 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3851 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3852 changes in net.cc and source.cc.
3853 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3854 a default is selected.
3855 * winsup/cinstall/source.cc (dialog_proc): Ditto.
3856 (check_if_enable_next): Removed. No longer needed since a radio button
3857 will always be selected.
3858 (load_dialog): Removed call to check_if_enable_next.
3859 (dialog_cmd): Ditto. Also added default to switch.
3860
87bdba0c
CF
3861Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
3862
3863 * res.rc: Resize affected text.
3864
8293fc16
CF
3865Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
3866
3867 * net.cc (do_net): Default to direct download.
87bdba0c 3868 * res.rc: Move default selections to the top.
8293fc16 3869
ed96c6da
EB
38702001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
3871
3872 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
3873 Must now include <windows.h> and not the pieces.
3874 * choose.cc (create_listview): Clean up type mismatch problems.
3875 * dialog.h (NEXT(id)): Ditto.
3876 * geturl.cc (dialog): Ditto.
3877 * install.cc (dialog): Ditto.
3878 * splash.cc (load_dialog): Ditto.
3879
fe94cc29
CF
3880Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
3881
3882 * tar.cc (class gzbz): Define dummy virtual functions.
3883
fb087b80
CF
3884Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
3885
3886 * Makefile.in: Add bz2 include/library support.
3887 * filemanip.h: New file.
fe94cc29
CF
3888 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
3889 .tar.bz2 found.
fb087b80
CF
3890 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
3891 (read_installed_db): Ditto.
3892 (do_choose): Ditto.
3893 * fromcwd.cc (found_file): Ditto.
3894 (do_fromcwd): Ditto.
3895 * tar.cc (class gzbz): New super class for uncompression support.
3896 (gz): New class for gzip support.
3897 (bz): New class for bzip2 support.
3898 (tar_open): Use gzbz class to control file opening.
3899 (tar_ftell): Ditto for returning position in file.
3900 (skip_file): Ditto for reading file.
3901 (tar_next_file): Ditto.
3902 (tar_read_file): Ditto.
3903 (tar_close): Ditto for close.
3904
3905 * zlib/configure.in: Force NM substitution.
3906
3907 * source.cc (do_source): Default to "Install from Internet".
3908
88bcaf07
CF
39092001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
3910
3911 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
3912 `stat'.
3913 * choose.cc (list_click): Correct inability to select source code for
3914 download.
3915 (scan2): Modify to skip source tarballs when scanning disk for
3916 installable packages.
3917
ef45c299
CV
39182001-03-10 Chris Abbey <chris_abbey@yahoo.com>
3919
3920 * install.cc: install sources into /usr/src instead
3921 of /, also include the sizes of source tarballs
3922 in total_bytes.
3923 * download.cc: include sizes of source tarballs in
3924 total_download_bytes.
3925
9fe1181b
CV
3926Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
3927
3928 * download.cc (get_file_size): Remove `static'.
3929
2bfdb848
CV
3930Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
3931
3932 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
3933
60c632b3
CV
39342001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
3935
3936 * choose.cc (paint): Modify message for nothing to download vs
3937 nothing to install/update based on installation method.
3938 (list_click): Modify to skip versions in selection process if
88bcaf07 3939 installing from local directory and installation file does not exist.
60c632b3
CV
3940 Also leaves Source Action set to N/A if the source file does not exist
3941 and installing from local directory.
3942 (check_existence): New method to check current existence of installation
3943 files based on selected installation method.
3944 (set_existence): New method to set the current existence of installation
3945 files based on selected installation method.
3946 (best_trust): Modify decision process for best trust to base decision on
3947 current trust selected (IE: Prev, Curr, or Test), existence of file and
3948 installation method selected.
3949 (default_trust): Add logic to capture the current trust level and the
3950 trust selected for the given package.
88bcaf07 3951 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
3952 the selection list to include file existence/non-existence and selected
3953 installation method.
3954 (build_labels): Modify criteria for label addition to include
3955 installation method and file existence/non-existence.
88bcaf07 3956 (create_listview): Modify to establish package trust level for each
60c632b3
CV
3957 package before setting up the display list. Also modification to set
3958 current trust button as the default.
88bcaf07 3959 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
3960 a reset of the selection list in addition to setting the default trust.
3961 (get_package_version): New method to provide reusable code for
3962 determining the package version from the file name for a specified
3963 trust.
3964 (scan2): Modify to use new method get_package_version and
3965 also enhance handling of the build for the structures package and
3966 extra.
3967 (read_installed_db): Modify to use the new method
3968 get_package_version and also enhance handling of the build for the
3969 structures package and extra.
88bcaf07 3970 (do_choose): Add additional initialization of package and extra
60c632b3
CV
3971 structures. Modify to use read_installed_db all the time despite
3972 install method. Modify output to setup.log.full log file to increase
3973 readability by adding additional spacing, expanded code and available
3974 versions.
3975 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 3976 partial_list_display to the structure definition for package.
60c632b3
CV
3977 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
3978 pushbuttons by replacing with Radio Buttons thus allowing the
3979 operator to better determine which is selected.
3980
2f9645a1
CV
39812001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
3982
88bcaf07 3983 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
3984 total_download_bytes_sofar for download progress meter. Add loop
3985 to accumulate the total bytes to download from the selected packages.
3986 * geturl.cc: Add state.h and diskfull.h to include list. Add new
3987 variables gw_iprogress, gw_pprogress, gw_progress_text,
3988 gw_pprogress_text, and gw_iprogress_text to allow for addition of
3989 total packages download progress meter and disk full percent
3990 progress meter. Add variables total_download_bytes and
3991 total_download_bytes_sofar for use by progress meters.
88bcaf07
CF
3992 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
3993 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
3994 allow for addition of total packages download progress meter and disk
3995 full percent progress meter.
2f9645a1
CV
3996 (init_dialog): Ditto.
3997 (progress): Ditto.
3998 (get_url_to_file): Ditto.
3999 * geturl.h: Add external definition for total_download_bytes and
4000 total_download_bytes_sofar.
88bcaf07 4001 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
4002 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4003 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4004 download meters.
88bcaf07 4005 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
4006 _APS_NEXT_CONTROL_VALUE.
4007
b41962a3
CV
4008Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4009
4010 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4011 for NULL.
4012
4013Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
4014
4015 * download.cc (download_one): Add missing parenthesis.
4016
88a77116
CV
4017Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4018
4019 * download.cc (get_file_size): New function. Eliminates the need
4020 to call `stat'.
4021 (download_one): Call `get_file_size' instead of `stat'. This
4022 workarounds a problem with mingw's `stat' call.
4023
577f35ed
EB
40242001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4025
4026 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4027 This is to allow cinstall to build with 2.95.2-7 and to make the
4028 use of headers consistent.
4029
38f5563e
DD
40302000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4031
4032 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4033
c0a7e0f2
DD
4034Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4035
4036 * winsup/cinstall/res.rc: Added accelerators and improved focus
4037 order.
4038
72826a5b
CF
40392000-12-10 Egor Duda <deo@logos-m.ru>
4040
4041 * choose.cc (paint): Use system background color for text output.
4042
4043Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4044
4045 * Makefile.in: Use CXX for linking and for compiling .cc files.
4046 * configure.in: Find correct c++ compiler.
4047 * configure: Regenerate.
4048
67bebcb5
DD
40492000-11-17 DJ Delorie <dj@redhat.com>
4050
4051 * splash.cc (load_dialog): Make message more obvious.
4052 * res.rc: Ditto.
4053
25fb9139
CF
4054Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4055
4056 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4057 necessary for newer compilers.
4058
ef2007fd
CV
4059Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4060
4061 * desktop.cc: Include "ini.h" and "version.h".
4062 (make_passwd_group): Skip the function on 9x/ME boxes when an
4063 older version of Cygwin has been installed which doesn't
4064 support mkpasswd/mkgroup on 9x/ME.
4065 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4066 * ini.h: ...here.
4067
277b4d56
CV
4068Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4069
4070 * desktop.cc (make_passwd_group): Don't exit when started
4071 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4072
f8a6415f
DD
4073Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4074
4075 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4076 the mount modes.
4077 * mount.cc (set_cygdrive_flags): New function.
4078 (get_cygdrive_flags): Ditto.
4079 (default_cygdrive): Ditto.
4080 (set_cygdrive_flags): Ditto.
4081 * mount.h: Add prototype for set_cygdrive_flags.
4082
3b9077d4
DD
40832000-10-23 DJ Delorie <dj@redhat.com>
4084
4085 * ini.h: add source actions
4086 * fromcwd.cc: check for available sources
4087 * res.rc: add checkbox bitmaps
4088 * resource.h: ditto
4089 * check-*.bmp: new
4090 * choose.cc: add source column
4091 * download.cc: download sources if called for
4092 * install.cc: [un]install sources too
4093
1b1b33ac
DD
40942000-10-22 DJ Delorie <dj@redhat.com>
4095
4096 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4097 ignore it wrt full_list if there's already a version installed.
4098 (do_choose): Sort the list.
4099 (package_sort): New.
4100
2a1a01e0
DD
41012000-10-12 DJ Delorie <dj@redhat.com>
4102
4103 * res.rc: Add more error strings.
4104 * resource.h: Ditto.
4105 * iniparse.y (new_package): re-initialize if needed.
4106 * download.cc (do_download): Keep track of errors; notify and
4107 allow retry.
4108 * install.cc (do_install): Ditto.
4109
1a9886fe
DD
41102000-10-05 DJ Delorie <dj@redhat.com>
4111
4112 * Makefile.in: fix %.cc rule
4113
40aef45e
DD
41142000-10-04 DJ Delorie <dj@redhat.com>
4115
4116 * desktop.cc: quote HOME and USER, don't . ./.profile
4117
4118 * choose.cc (build_labels): don't include in partial list just
4119 because there's a *previous* version available.
4120
4121 * install.cc (do_install): if installing from local directory with
4122 setup.ini and the file isn't found, look in "." also. Note errors.
4123
dd3f7f9b
DD
41242000-10-02 DJ Delorie <dj@redhat.com>
4125
4126 * ini.cc (do_ini): save setup.ini locally
4127
41282000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4129
4130 * desktop.cc: quote escapes in prompt
4131
fee2a8d0
DD
41322000-10-02 Jason Tishler <jt@dothill.com>
4133
4134 * root.cc (is_admin): New function.
4135 (read_mount_table): Check for administrative priviledges and set
4136 installation scope as appropriate.
4137
a03db251
DD
41382000-09-28 DJ Delorie <dj@redhat.com>
4139
4140 * nio-ftp.cc (ftp_line): handle continuations more robustly
4141
b151e01e 41422000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
4143
4144 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4145 corresponding list box to provide for more URL's to be listed.
4146 Modified the position of the Back, Next and Cancel buttons to
4147 correspond to the new size of the dialog.
4148
d07591a3
DD
41492000-09-13 DJ Delorie <dj@redhat.com>
4150
4151 * install.cc (do_install): update disk fullness once per package
4152 to improve performance
4153
4154 * choose.cc (create_listview): call ReleaseDC
4155
89725f30
DD
4156Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4157
4158 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4159 returned, as it seems Samba 2.0.6+ returns this instead of
4160 ERROR_PATH_NOT_FOUND
88bcaf07 4161
6fbc690d
CF
4162Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4163
4164 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4165 refers to sources.
4166
13d27274
DD
41672000-09-07 DJ Delorie <dj@redhat.com>
4168
4169 * splash.cc: use version.h, not local decl
4170 * res.rc: add "old version" message
4171 * resource.h: ditto
4172 * version.h: new
4173 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
4174 * iniparse.y: add setup-version support, fix bug in blank line
4175 handling
4176
13d27274
DD
4177 * inilex.l: add [exp] as alias for [test], add setup-version
4178 * Makefile.in (version.c): add setup-version tag
4179
4180 * desktop.cc (do_desktop): remove 1.1 version number
4181 (do_desktop_setup): ditto
4182
4183 * ini.cc (do_ini): zero out package list just in case we redo it.
4184
8cfbc487
DD
41852000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4186
4187 * choose.cc (list_click): Check for nindexes==0; if so, return.
4188
c92e1307
DD
41892000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4190
4191 * localdir.cc: new, local package directory selection dialog; cd
4192 into selected directory
4193 * Makefile.in (OBJS): add localdir.o
4194 * dialog.h: add prototype for do_local_dir
4195 * main.cc (WinMain): initialize local_dir to cwd; add call to
4196 do_local_dir
4197 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4198 * source.cc (dialog_cmd): ditto
4199 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4200 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4201 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4202 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4203 * state.h: add local_dir variable
4204
42052000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
4206
4207 * desktop.cc: added logic to handle to the new dialog and to
4208 default the setting for the new checkboxes based on whether the
4209 desktop icon or start menu link already exist.
4210 (desktop_icon): correction to desktop directories for desktop icon
4211 creation. Additional logic added for Win95 which does not appear
4212 to have Common Directories so if Common selected and null uses
4213 normal directory.
4214 (start_menu): Additional logic added for Win95 which does not
4215 appear to have Common Directories so if Common selected and null
4216 uses normal directory.
4217 (do_desktop_setup): moved the saving of the icon, creation of the
4218 bat file, profile, passwd, Start Menu link and desktop shortcut to
4219 this method from do_desktop. Made the creation of the desktop
4220 icon and start menu link conditional on settings of new dialog
4221 created for desktop.
4222 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4223 IDD_DESKTOP.
4224 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4225 * res.rc: added new resource to create a desktop dialog with 2
4226 checkboxes for creating the desktop icon and start menu link.
4227 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4228 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4229 * state.h: added root_menu and root_desktop for use in dialog.
4230
4a83b7b0
DD
42312000-08-29 DJ Delorie <dj@redhat.com>
4232
4233 * choose.cc (scan_downloaded_files): scan for existing files, so
4234 that the user only sees new downloads.
4235
4236 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4237 * site.cc (do_site): if we can't download the mirror list, go back
4238 to the net setup box to choose another transport.
4239 * autoload.c: add more functions
4240 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4241 * resource.h: add WININET message
4242
4243 * net.cc (do_net): no longer default to IE5
4244 * simpsock.h (class SimpleSocket): new, simplify socket operations
4245 * simpsock.cc: ditto
4246 * nio-http.h: new, for direct http protocol
4247 * nio-http.cc: ditto
4248 * nio-ftp.h: new, for direct http protocol
4249 * nio-ftp.cc: ditto
4250 * netio.cc (set_url): move initialization here to handle redirections
4251 (open): add direct http/ftp
4252 * netio.h (NetIO::set_url): new
4253
4254 * log.cc (log_save): create directory for log if needed
4255
4256 * hash.cc, hash.h: new
4257 * Makefile: add hash.o
4258 * choose.cc: enable "uninstall" option
4259 * download.cc: invert action test to accomodate uninstalling
4260 * ini.h: add ACTION_UNINSTALL
4261 * install.cc: add uninstall functionality
4262 * res.rc: make install tag changeable
4263 * resource.h: add uninstall resources
4264
4265 * res.rc: update mirror list URL
88bcaf07 4266
50f64a4b
DD
42672000-08-24 DJ Delorie <dj@redhat.com>
4268
89b1a15b
DD
4269 * log.cc, log.h: new files
4270 * Makefile.in (OBJS): add log.o
4271 * tar.cc: use exit_setup instead of exit
4272 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4273 * msg.cc (fatal): ditto
4274 * install.cc (dialog_cmd): ditto
4275 * ini.cc (do_ini): ditto
4276 * main.cc (main): add logging
4277 * source.cc (do_source): ditto
4278 * root.cc (do_source): ditto
4279 * site.cc (do_site): ditto
4280 * other.cc (do_other): ditto
4281 * net.cc (do_net): ditto
4282 * choose.cc (do_choose): ditto
4283 * download.cc (do_download): ditto
4284 * install.cc (do_install): ditto
4285 * msg.cc (fatal): ditto
4286
4287 * res.rc: mark password boxes as *being* password boxes.
4288
50f64a4b
DD
4289 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4290 calls won't use the same buffer.
4291 * choose.cc (create_listview): don't default to full list if no changes
4292 (base): return computed value, not temporary :-(
4293 (do_choose): don't use installed.db if we're only downloading.
4294
348860fa
DD
42952000-08-23 DJ Delorie <dj@redhat.com>
4296
4297 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4298 * nio-ie5.h (flush_io): new
4299 * netio.cc (load_dialog): note when we're initializing the dialog
4300 box, and ignore changes to the edit fields then.
4301
5f48f258
DD
43022000-08-21 DJ Delorie <dj@redhat.com>
4303
4304 * README: Update
4305
4306 * fromcwd.cc (found_file): don't remember the canonicalized version
4307
4308 * choose.cc (paint): print "nothing to do" message when list is empty.
4309 (build_labels): Use version "0.0" if no version is available.
4310 (create_listview): default to full list if nothing to install/update.
4311 (base): new, returns basename of file
4312 (read_installed_db): compare base names, not full paths
4313
713bbe5f
DD
43142000-08-11 DJ Delorie <dj@redhat.com>
4315
4316 * choose.cc: add new chooser dialog
4317 * fromcwd.cc: use IDD_CHOOSE
4318 * ini.cc: use IDD_CHOOSE
4319 * main.cc: use IDD_CHOOSE
4320 * ini.h: cosmetic changes
4321 * res.rc: add choose dialog, bitmaps
4322 * choose-spin.bmp: new
4323 * choose-rtarrow.bmp: new
4324 * resource.h: add choose dialog controls
4325
4326 * mount.cc: remove debug statement
88bcaf07 4327
2e9cbac5
DD
43282000-08-08 DJ Delorie <dj@redhat.com>
4329
4330 * Makefile.in (version.c): make version checking more robust
4331 * splash.cc (load_dialog): handle case where there's no version
4332
8507f105
DD
43332000-08-07 DJ Delorie <dj@redhat.com>
4334
4335 * (all): add cvsid tags
4336 * Makefile.in: generate version.c from ChangeLog, add splash.o
4337 * splash.o: new
4338 * res.rc: add splash screen
88bcaf07 4339
f5d0464b
DD
43402000-08-02 DJ Delorie <dj@redhat.com>
4341
4e8ff53f
DD
4342 * net.cc: remove proxy password code
4343 * res.rc: remove proxy user/pass from net, add auth dialogs
4344 * netio.cc,h: add sys/proxy auth methods
4345 * nio-ie5: use them, check for http status codes
4346 * state.h: add system authorization
4347
f5d0464b
DD
4348 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4349 meaning an url)
4350
76cbfa85
DD
43512000-08-02 Norman Vine <nhv@yahoo,com>
4352
4353 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4354
e92c4436
DD
43552000-08-01 DJ Delorie <dj@redhat.com>
4356
bf74c544
DD
4357 * postinstall.cc (each): don't rename files we ignore
4358 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4359
e92c4436
DD
4360 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4361
a6100861
DD
43622000-07-31 DJ Delorie <dj@redhat.com>
4363
4364 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4365
b11b49f3
DD
43662000-07-18 DJ Delorie <dj@redhat.com>
4367
a99bdfd8
DD
4368 * autoload.c: new, autoload dlls that might not be available.
4369 * Makefile.in (OBJS): add autoload.o
4370
4371 * res.rc: rewrite root options (text/binary, system/user) to be
4372 more obvious.
4373
b5b282c4
DD
4374 * site.cc (get_site_list): trim displayed URL, sort by domain
4375
4376 * net.cc (do_net): make IE5 default to checked, for now
4377
b11b49f3
DD
4378 * choose.cc (do_choose): sort packages correctly
4379 * ini.cc (do_ini): handle parse errors more gracefully
4380 (yyerror): ditto
4381 (fprintf): line buffer output
b5b282c4 4382 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
4383 * ini.h: add "unknown" trust level
4384 * inilex.l: absorb unknown trust levels and key/value pairs,
4385 add line number logic
4386 * iniparse.y: handle parse errors more gracefully.
4387 * install.cc: skip packages with no valid install entry
4388
1fd6d0a2
DD
43892000-07-17 DJ Delorie <dj@cygnus.com>
4390
4391 * coding standards fixups, many files
4392 * mkdir.cc: warn about deletions *before* deleting them
4393
ed3e8b9b
DD
43942000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4395
4396 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4397
4398 * other.cc (dialog_cmd): save download site URL
4399 * site.cc (get_root_dir): new
4400 (save_mirror_site): new
4401 (dialog_cmd): save download site URL
4402 (get_site_list): make list big enough to add prev site
4403 (get_initial_list_idx): new, read last-used URL from file and
4404 append it to site_list
4405 (do_site): call get_initial_list_idx
4406
4407 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 4408
f57c332f
DD
44092000-07-13 DJ Delorie <dj@cygnus.com>
4410
4411 * postinstall.cc: new
4412 * Makefile.in: add postinstall.o
4413 * concat.h: add backslash ()
4414 * concat.cc: ditto
4415 * desktop.cc (etc_profile): don't do postinstall
4416 (backslash): moved to concat.cc
4417 (uexists): new
4418 (make_postinstall_script): run directly
4419 (do_desktop): chain to do_postinstall
4420 * dialog.h: add exit_msg, do_postinstall
4421 * download.cc: use exit_msg
4422 * install.cc: ditto
4423 * main.cc: add postinstall, exit_msg
4424 * resource.h: add postinstall
d6cda811 4425 * README: add more to-do items
f57c332f 4426
3a8e3956
DD
44272000-07-12 DJ Delorie <dj@cygnus.com>
4428
4429 * desktop.cc: add /etc/postinstall/ support
1a18aed7 4430 * install.cc: add more "standard" directories
3a8e3956 4431
e0c3d906
DD
44322000-07-11 DJ Delorie <dj@cygnus.com>
4433
4434 * desktop.cc: create /etc/profile
ad09bcd9
DD
4435 * desktop.cc: fix include syntax
4436 * Makefile.in: add auto-dependencies
24e259bb
DD
4437 * root.cc: support system vs user
4438 * desktop.cc: ditto
4439 * mount.h: ditto
4440 * mount.cc: ditto
4441 * install.cc: ditto
4442 * res.rc: ditto
4443 * resource.h: ditto
4444 * state.h: ditto
84d58d4c 4445 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
4446 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4447 * geturl.cc: change math for percentage to avoid overflow
4448 * install.cc: ditto
4449 * download.cc: post "download complete" message.
4450 * root.cc: pre-fill in defaults if needed, don't start
4451 browse at root_dir unless it's set.
a3f48e18 4452 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 4453
904d24fe
DD
44542000-07-10 DJ Delorie <dj@cygnus.com>
4455
4456 * Makefile.in: add desktop.o and mklink2.o
4457 * dialog.h: add do_desktop
4458 * install.cc: create standard directories, call do_desktop
4459 * res.rc: add cygwin.ico as a file also
4460 * desktop.cc: new, do shortcuts, batch files, and icons
4461 * mklink2.c: new, for COM
1ab805b8 4462 * README: update to-do list
904d24fe 4463
04d6e06b
DD
44642000-07-10 DJ Delorie <dj@cygnus.com>
4465
4466 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 4467 actually installing.
04d6e06b 4468
5601a13d
DD
44692000-07-09 DJ Delorie <dj@cygnus.com>
4470
4471 * Makefile.in: add -I$(srcdir) for ini.h
4472
23c9e63c
DD
44732000-07-06 DJ Delorie <dj@cygnus.com>
4474
4475 * Replace everything with a new GUI version
4476 * zlib/gzio.c: add gzctell() for progress displays
4477
44782000-06-22 DJ Delorie <dj@cygnus.com>
4479
4480 * setup.c (tarx): re-add call to write_pkg()
4481
aa32874b
DD
44822000-06-07 DJ Delorie <dj@cygnus.com>
4483
4484 * cygcalls.c: new, call cygwin1.dll functions directly
4485 * cygcalls.h: header for same
4486 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4487 exes, fix cinstall.rc dependencies.
4488 * path.c: remove unneeded code
4489 * setup.c: use cygcalls instead of xcreate_process.
4490 uncompress embedded files with zlib
4491 add "-d" for "download only"
4492 add "-h" for help
4493 postpone mount changes until very end
4494 add download progress indicators
4495 pack multi-column listings more
4496 auto-delete temp files
4497 customize banner message according to options
4498 prompt user for text/binary mounts
4499 add warnings about empty setup directory, root installs, etc
4500
99d1bf2d
DD
45012000-05-24 DJ Delorie <dj@cygnus.com>
4502
4503 * tar.c: New file; built-in tar using zlib.
4504 * tar.h: New file; header for same.
4505 * ctar.c: New file; test program for same.
4506 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4507 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4508 * setup.c (tarx): add support for built-in tar
4509 (main): accept unix-style slashes, check root dir for drive letters,
4510 warn about installing in /, make sure cwd is empty for internet installs,
4511 defer mounts to end of install, support built-in tar.
4512
55650749
CF
4513Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4514
4515 Fix compiler warnings throughout.
4516 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4517 get_pkg_stuff.
4518 * setup.c: Make 'root' global.
4519 (istargz): Return pointer to "stem" of matched .tar.gz file.
4520 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4521 bogus check_for_installed check.
4522 (recurse_dirs): Add preliminary support for .bat file execution.
4523 (create_uninstall): Eliminate unneeded parameter.
4524 (do_start_menu): Ditto.
4525 (mkmount): Ditto.
4526 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4527 scanning for the version number. Eliminate unneeded argument to
4528 create_uninstall.
4529 (getdownloadsource): Add 'name' to list of names rather than url.
4530 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4531 unneeded argument in mkmount and do_start_menu.
4532
f4dda8f0
DD
45332000-05-18 DJ Delorie <dj@cygnus.com>
4534
4535 * setup.c (optionprompt): allow multi-column, clean up message
4536 about more options, be more robust about user input.
4537 (getdownloadsource): make the mirror URL a macro.
4538 (main): do mounts after done prompting user.
4539
62844d84
CF
4540Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4541
4542 * setup.c (cleanup): Inverse order of deletion stands a better chance
4543 of deleting cygpath.exe. Still seems to suffer from occasional races,
4544 though.
4545 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4546 w2k.
4547 (output_file): Defend against an unlikely handle leak.
4548 (main): Don't set up signal handling until we have something special to
4549 do.
4550
ad6749c8
CF
4551Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4552
4553 * path.c (kill_cygpath): Delete function.
4554 (exit_cygpath): Make more defensive so that it can be called at any
4555 time.
4556 (cygpath_pipe): Don't set up signal here. Do it in main().
4557 * setup.c (istargz): New function.
4558 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4559 inexplicably fails on samba mounted partitions. Use istargz to match
4560 tar.gz tail.
4561 (processdirlisting) Use istargz to match tar.gz tail.
4562 (cleanup): Renamed from filedel.
4563 (cleanup_on_signal): New function. Called on CTRL-C.
4564 (main): Record handle of main thread so that it can be suspended when
4565 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4566
460cf7b6
CF
4567Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4568
4569 * setup.c (do_start_menu): Don't concatenate paths to already built
4570 paths.
4571
9e76799c
CF
4572Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4573
4574 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4575 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4576 that.
4577 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4578 root"-specific.
4579 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4580 that cygpath subprocess has died. This allows us to delete cygpath.exe
4581 and cygwin1.dll.
4582 (optionprompt): Initialize response to -1 so that second screen of
4583 mirrors will appear.
4584 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4585 * setup.h: Reflect init_pkgs prototype change.
4586
2cf65e6e
CF
4587Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4588
4589 * pkg.c (init_pkgs): Accept an argument to control what root registry
4590 key should be used.
4591 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4592 * setup.h: Reflect init_pkgs prototype change.
4593
4594Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4595
4596 * error.c (winerror): Respond to gcc warning.
4597 * path.c (cygpath_pipe): Ditto.
4598 * setup.c (filedel): Call sa_cleanup on deleteme.
4599 (create_shortcut): Coerce argument to eliminate compiler warning.
4600 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4601 (refmatches): New function. Tests if ref is contained in a list of
4602 packages to install.
4603 (filematches): New function. Tests if filename matches one of a list
4604 of packages to install.
4605 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4606 test to accomodate _tar.gz.
4607 (prompt): Ensure that stdout is flushed prior to asking for input.
4608 (findhref): Initialize variables to quiet a compiler warning.
4609 (processdirlisting): Accept list of packages to install. Special case
4610 cygwin tar file version number.
4611 (downloaddir): Accept list of packages to install.
4612 (downloadfrom): Ditto.
4613 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4614 regtool.
4615 (do_start_menu): Don't create uninstall bat file if updating or user
4616 specified a list of packages.
4617 (mkmount): Eliminate unneeded variables.
4618 (get_pkg_stuff): New function. Checks for previous unversioned
4619 installation.
4620 (main): Accept -u and -f options and package names on the command line.
4621 Use get_pkg_stuff to initialize package information. Umount /etc.
4622 Call recurse_dirs and downloadfrom with list of package to install.
4623 Ensure that all /usr/local directories are created. Output
4624 installation time to setup.log.
4625 * setup.h: Add some prototypes.
4626 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4627
4cf88dd9
CF
4628Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4629
4630 * setup.c (optionprompt): Don't overlap display of already seen options
4631 on next page.
4632 (geturl): Print name of site which we're connecting to rather than "ftp
4633 site".
4634 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4635 test too simplistic?
4636 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4637 problems when user chooses x:\ as their root.
4638 (main): For now, default to "non-update" mode. Allow -u option to
4639 signify an update.
4640
36591a07
CF
4641Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4642
4643 * pkg.c: New file.
4644 * setup.c (tarx): Skip already installed or older packages. Report
4645 when a package has been updated.
4646 (processdirlisting): Skip already installed or older packages.
4647 (main): Detect -f option for forced installation. Initialize pkg stuff
4648 if appropriate.
4649 * setup.h: Add pkg definitions.
4650
c298ea4a
CF
4651Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4652
4653 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4654 ";something".
4655 (processdirlisting): Attempt to limit recursively processing the same
4656 directory.
4657
f4cafa7e
CF
4658Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4659
4660 * setup.c (filedel): New function.
4661 (output_file): Keep track of files extracted from setup.exe for
4662 subsequent deletion.
4663 (tarx): Close process handle of child tar process or suffer handle
4664 leak.
4665 (getdownloadsource): Close mirror file so that it can be unlinked.
4666 (processdirlisting): Return total number of files extracted.
4667 (main): Initialize array of files to delete. Ensure that files are
4668 closed on exit. Make the directory that setup.exe is started from ==
4669 the directory where temporary files are placed. Issue an error if no
4670 files were found to download.
4671 * xsystem.c (xcreate_process): Close the thread handle. Close the
4672 process handle if we waited for it to exit.
4673
cd475210
CF
4674Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4675
4676 * setup.c (main): Change version number output.
4677
7dff5e71
CF
4678Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4679
4680 * setup.c (tarx): Use full path name to tar executable.
4681 (main): Build full pathname to tar executable. Create /usr/local/etc
4682 by default.
4683
99437fdb
CF
4684Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4685
4686 * setup.c (findhref): Change method for scanning for href= to choose
4687 the last one on the line. This is still not foolproof and probably
4688 will need to be changed eventually. Don't abort if no "size" field is
4689 evident.
4690 (processdirlisting): Fix boolean algebra.
4691
0f562d55
CF
4692Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4693
4694 * main.c (tarx): Add some code for future task of unmounting
4695 directories encountered in tar file.
4696
4356382d
CF
4697Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4698
4699 * setup.c (findhref): Decode file size, when appropriate.
4700 (needfile): New function. Returns 1 when file should be
4701 downloaded.
4702 (processdirlisting): Always download if file size does not
4703 match. Prompt when download fails for some reason.
4704 (getdownloadsource): Accomodate findhref argument changes.
4705
6ab1ce6c
CF
4706Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4707
4708 Throughout, use global session handle rather than reinitializing for
4709 each connect. Don't pass session as an argument to setup.c functions.
4710 * setup.c (geturl): Only issue "Connecting to.." message when using
4711 http or first time for ftp since subsequent connections will be fast.
4712 (processdirlisting): Allocate space for "N" when user has specified
4713 "N"ever option so that it can be subsequently freed.
4714 (main): Abort if we can't get the list of mirrors.
4715
37ee316b
CF
4716Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4717
4718 * setup.c (main): Umount /bin and /lib.
4719
a59fb4fa
CF
4720Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4721
4722 * setup.c (main): Create an empty /var/run/utmp.
4723
75f4b861
CF
4724Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4725
4726 * Makefile.in: Add umount to list of files to include in setup.exe.
4727 * setup.c (xumount): New function for unmounting directories.
4728 (main): Unmount /usr.
4729 (mkmount): Unmount "unix directory" before trying to figure out where
4730 to create the directory.
4731
d4a66789
CF
4732Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4733
4734 * setup.c (mkmount): Use xcreate_process to start mount process,
4735 avoiding the shell.
4736 (main): Don't do buffering on stdout or prompts won't be displayed
4737 correctly if running in a cygwin shell with CYGWIN=tty.
4738
a6c3982d
CF
4739Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4740
4741 * setup.c (main): Remove the CYGWIN environment variable before
4742 starting any cygwin programs.
4743
0ffd5e3b
CF
4744Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4745
4746 * setup.c (geturl): Use alternative method for finding filename part of
4747 a URL.
4748 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4749 (downloaddir): Unlink file containing dir listing.
4750 (downloadfrom): Ditto.
4751
3e54bcf9
CF
4752Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4753
4754 * setup.c (main): Disallow running setup.exe from the "root".
4755
005b73c4
CF
4756Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4757
2cf65e6e 4758 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
4759 * setup.c (warning): New function -- outputs warning to console and log
4760 file.
4761 (tarx): Fix index used to reset file protection.
4762 (main): Open the log file earlier so that more stuff can be sent to it.
4763
36dc5fc8
CF
4764Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4765
4766 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4767
c73320de
CF
4768Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4769
4770 * setup.c (tarx): Wait to after tar has completed to reset protections
4771 or suffer races with tar process.
4772
68cdfc92
CF
4773Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4774
4775 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4776 * setup.c (create_uninstall): Create the uninstall .bat file in the
4777 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4778 list of files to be deleted. Fix directory detection for determining
4779 when to use 'rmdir'.
4780 (do_start_menu): Add /usr/local/bin to the path.
4781 (main): Add slop to files.array allocation so that we don't have to
4782 worry about reallocating the array when it grows too large when doing
4783 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4784 files.
4785
35d18861
CF
4786Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4787
4788 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4789 download.
4790
20904de1
CF
4791Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4792
4793 * path.c (kill_cygpath): New cleanup function.
4794 (exit_cygpath): New cleanup function.
4795 (cygpath_pipe): New function. Sets up cygpath in the background for
4796 translating filenames.
4797 (pathcvt): Use background cygpath for file translation.
4798 * setup.c (tarx): New function. Called to extract tar files, capture
4799 logging output, and translate it to Windows format.
4800 (recurse_dirs): Use 'tarx' function to extract files.
4801 (create_uninstall): Use file list built up by tarx rather than reading
4802 the log file.
4803 (mkmount): Add ability to mount root.
4804 (main): Track elapsed install time. Mount root.
4805 * starry.h: Add index field to strarry for tracking of tarx's usage of
4806 this structure.
4807 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4808
c1246750
CF
4809Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4810
4811 * path.c: New file.
4812 (pathfp): New function. Preliminary work for new -f cygpath
4813 functionality.
4814 * Makefile.in: Add new file.
4815 (pathcvt): Move to new file.
4816 (dtoupath): Ditto.
4817 (utodpath): Ditto.
4818 (pathcat): Ditto.
4819 * setup.c (processdirlisting): Always open file in text mode.
4820 (create_uninstall): Ditto.
4821 (getdownloadsource): Ditto.
4822 (main): Ditto.
4823
4b40edd0
CF
4824Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4825
4826 * xsystem.c: New file.
4827 * Makefile.in: Accomodate new file.
4828 * setup.c (xsystem): Move to new file.
4829 (recurse_dirs): Accept handle to output log file. Don't use ">"
4830 redirection to trap tar output. Use supplied handle instead.
4831 (create_uninstall): Accept FILE pointer to opened log file. Don't
4832 unlink log file here.
4833 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4834 (main): Open log file here and pass it to various functions. Unlink
4835 when done.
4836
6f8e3b45
CF
4837Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4838
4839 Change occurrences of .usr.bin to .bin throughout.
4840 * setup.c (geturl): Increase number of retries to 20. Let user know
4841 what's going on during long connects.
4842 (processdirlisting): Accept "A"lways and "N"ever as update options.
4843 (create_uninstall): Load cygwin1.dll from the current directory rather
4844 than \bin.
4845 (main): Add some expository text.
4846
2a907b70
CF
4847Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4848
4849 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4850 creating a cygwin1.dll in the current directory. Ensure the addition
4851 of -nostdinc to MINGW_CFLAGS.
4852
c4285a3c
CF
4853Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
4854
4855 * Makefile.in: Augment clean target.
4856
ea615d51
RP
4857Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
4858
4859 * README: Added info about non-working mingw implementation
c1246750 4860 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 4861 tools.
c1246750 4862 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 4863 tools.
c1246750 4864 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
4865 * cygpath.exe.gz: ditto
4866 * cygwin1.dll.gz: ditto
c1246750
CF
4867 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
4868 for Win9x. Display only a screenfull of options at a time. Call all
4869 tools with an absolute path.
4870 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
4871 them.
ea615d51
RP
4872 * setup.dsw: ditto
4873 * zlib.dsw: ditto
4874
51954e74
CF
4875Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
4876
c1246750
CF
4877 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
4878 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
4879 * gzip.exe.gz: Update.
4880 * tar.exe.gz: Update.
4881
7b777418
CF
4882Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
4883
4884 * Makefile.in: Use ZLIB variable as a target.
4885
4306b490
CF
4886Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
4887
5e7eb909
CF
4888 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
4889 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
4890 sources.
4306b490
CF
4891 * configure.in: Locate correct objcopy.
4892 * configure: Regenerate.
4893
739457f4
CF
4894Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
4895
4896 * Makefile.in: New file.
4897 * configure.in: New file.
4898 * configure: New file.
4899 * zlib/Makefile.am: New file.
4900 * zlib/configure.in: New file.
4901 * zlib/aclocal.m4: New file.
4902 * zlib/acinclude.m4: New file.
4903 * zlib/configure: Regenerate from configure.in.
4904 * zlib/Makefile.in: Regenerate from Makefile.am
8507f105
DD
4905
4906%%% $Id$
4907$Revision$
This page took 0.587666 seconds and 5 git commands to generate.