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