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