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