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