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