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