1 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
3 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
4 Clear out package selections when generating implicit source packages.
5 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
6 (PackageSpecification::_operators::satisfies): Implement.
7 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
8 Worker function for testing versions.
10 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
12 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
13 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
14 * IniDBBuilderPackage.cc: Use the STL algorithms.
15 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
16 functions for the same variable throughout.
17 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
18 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
19 and set an empty source package.
20 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
21 to record an install package.
22 (IniDBBuilderPackage::buildPackageSource): Move source package logic
23 out from process_src, as it now occurs at separate times.
24 (IniDBBuilderPackage::buildPackageRequirement): Remove.
25 (IniDBBuilderPackage::buildSourceName): Use renamed package
26 specifiation accessor for clarity.
27 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
28 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
30 Remove source package references.
31 (IniDBBuilderPackage::process_src): Remove source package code as it's
32 now handled separately.
33 Set Path information before merging versions, to prevent dangling
35 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
37 (IniDBBuilderPackage::cpv): Remove.
38 (IniDBBuilderPackage::cbpv): New generic binary working variable.
39 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
40 (IniDBBuilderPackage::csp): Source package variable for disjoint
42 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
43 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
44 * PickPackageLine.cc: Adjust packageversion accessors to the new
45 reference calls. (i.e. -> to .) throughout.
46 (PickPackageLine::paint): Use accessible() for clarity.
47 Use new split out source package logic.
48 (PickPackageLine::click): Ditto.
49 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
50 to the new reference calls. (i.e. -> to .) throughout.
51 Use new split out source package logic.
52 * choose.cc: Don't depend on a specific package type.
53 Adjust packageversion accessors to the new reference calls. (i.e. -> to
55 (set_existence): Use accessible () for clarity.
56 (default_trust): Simplify a little.
57 (scanAVersion): Factored out code from scan_downloaded_files for
59 (scan_downloaded_files): Factor out inner loop for clarity.
60 (ChooserPage::OnNext): Don't dump the dependency list,
61 it's parsing is robust now!.
62 * cygpackage.cc (createInstance): Use a factory method to create new
64 (cygpackage::cygpackage): Make this private for use by the factory.
65 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
66 Remove key usage as it's obsolete.
67 * cygpackage.h (cygpackage): Inherit from _packageversion, not
69 (cygpackage::createInstance): New factory.
70 (cygpackage::cygpackage): Make private.
71 * desktop.cc (make_passwd_group): Use new packageversion reference.
72 * download.cc (do_download_thread): Use changeRequested() for clarity.
73 Use new packageversion reference calls.
74 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
76 * install.cc: Adjust -> to ., and use the new accessor functions for
77 packageversion throughout.
78 * package_db.cc: Adjust -> to ., and use the new accessor functions for
79 packageversion throughout.
80 (packagedb::packagedb): Use the new cygpackage factory.
81 (packagedb::flush): Leverage String to remove buffer overflow chance in
83 (packagedb::findBinary): Find a binary meta package that has a version
84 matching a given specification.
85 (packagedb::findSource): Ditto, but for source.
86 * package_db.h (packagedb::findBinary): Declare.
87 (packagedb::findSource): Ditto.
88 * package_meta.cc: Adjust packageversion accessors to the new
89 reference calls. (i.e. -> to .) throughout.
90 Include the package_meta header first to ensure it parses standalone.
91 Use the STL algorithms.
92 (packagemeta::packagemeta): Create a copy constructor to allowing
93 cloning binary package metadata to source package metadata.
94 (packagemeta::~packagemeta): Use the STL coleltion code rather than
95 custom collection code.
96 (packagemeta::add_version): Ditto.
97 (packagemeta::set_installed): Ditto.
98 (packagemeta::SDesc): Ditto.
99 (hasSDesc): Helper function for find_if.
100 (checkForInstalled): Ditto.
101 (checkForUpgradeable): Ditto.
102 (checkForSatisfiable): Ditto.
103 (packagemeta::action_caption): Update for split out source packages.
104 (packagemeta::set_action): Ditto.
105 (packagemeta::set_requirements): Support multi-valued dependency
106 lists - a|b & c|d - with versioned package specifications.
107 (packagemeta::accessible): Helper member to improve abstraction.
108 (packagemeta::sourceAccessible): Ditto.
109 * package_meta.h: Adjust packageversion accessors to the new
110 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
111 (packagemeta::packagemeta): Declare copy constructor.
112 Remove self initialising members.
113 (packagemeta::set_action): Update parameters for new packageversion.
114 (packagemeta::trustp): Ditto.
115 (packagemeta::versions): Becomes an STL set.
116 * package_source.h (packagesource::Cached): Const correctness change.
117 * package_version.cc: Rewrite the packageversion interface to remove
118 the cygpackage nonvirtual members, and provide a copy by value,
119 pointer semantics reference counting wrapper class to ease use and
120 comparison of packageversions.
121 Change existing packageversion class to _packageversion throughout.
122 (_defaultversion): A trivial concrete class to prevent specialcasing
123 the default constructor for packageversion;
124 (packageversion::packageversion): Implement.
125 (packageversion::~packageversion): Ditto.
126 (packageversion::operator=): Ditto.
127 (packageversion::operator !): Ditto.
128 (packageversion::operator bool): Ditto.
129 (packageversion::operator ==): Ditto.
130 (packageversion::operator !=): Ditto.
131 (packageversion::operator <): Ditto.
132 (packageversion::Name): Ditto.
133 (packageversion::Canonical_version): Ditto.
134 (packageversion::setCanonicalVersion): Ditto.
135 (packageversion::getfirstfile): Ditto.
136 (packageversion::getnextfile): Ditto.
137 (packageversion::SDesc): Ditto.
138 (packageversion::set_sdesc): Ditto.
139 (packageversion::LDesc): Ditto.
140 (packageversion::set_ldesc): Ditto.
141 (packageversion::sourcePackage): Ditto.
142 (packageversion::sourcePackageSpecification): Ditto.
143 (packageversion::setSourcePackageSpecification): Ditto.
144 (packageversion::depends): Ditto.
145 (packageversion::predepends): Ditto.
146 (packageversion::recommends): Ditto.
147 (packageversion::suggests): Ditto.
148 (packageversion::replaces): Ditto.
149 (packageversion::conflicts): Ditto.
150 (packageversion::provides): Ditto.
151 (packageversion::picked): Ditto.
152 (packageversion::pick): Ditto.
153 (packageversion::changeRequested): Ditto.
154 (packageversion::uninstall): Ditto.
155 (packageversion::source): Ditto.
156 (packageversion::accessible): Ditto.
157 (_packageversion::sourcePackage): Ditto.
158 (_packageversion::accessible): Ditto.
159 (_packageversion::changeRequested): Ditto.
160 * package_version.h: Rewrite the packageversion interface to remove
161 the cygpackage nonvirtual members, and provide a copy by value,
162 pointer semantics reference counting wrapper class to ease use and
163 comparison of packageversions.
164 Change existing packageversion class to _packageversion throughout.
165 (Dependency): Remove.
166 (packageversion): New wrapper class.
167 (_packageversion): Renamed from packageversion.
168 (_packageversion::setCanonicalVersion): New method.
169 (_packageversion::sourcePackage): Ditto.
170 (_packageversion::sourcePackageSpecification): Ditto.
171 (_packageversion::setSourcePackageSpecification): Ditto.
172 (_packageversion::changeRequested): Ditto.
173 (_packageversion::bin): Rename to source.
174 (_packageversion::src): Remove.
175 (_packageversion::accessible): New method.
176 (_packageversion::references): Allow reference counting.
177 (_packageversion::sourceVersion): Cached the best-match source
180 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
182 * compress_bz.h (compress_bz::position): Track how much has been read.
183 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
184 (compress_bz::read): Track amount read by the client.
185 (compress_bz::tell): And report it when asked.
187 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
189 * Makefile.am (snapshot): Automate snapshot creation some more.
191 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
193 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
195 * ini.cc (fprintf): Ditto.
196 * log.cc (log): Ditto.
197 * package_db.cc (packagedb::sourcePackages): Split out source packages
198 from binary packages.
199 * package_db.h: Ditto.
201 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
203 * PackageSpecification.h: New file. Abstracts the ability to refer
204 to another package, by name, or name and version.
205 * PackageSpecification.cc: Ditto.
206 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
207 (IniDBBuilder::buildPackageSource): Ditto.
208 (IniDBBuilder::buildBeginDepends): New method for versioned
210 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
211 satisfied before pre-install.
212 (IniDBBuilder::buildPriority): New method, for getting the package
214 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
215 (IniDBBuilder::buildMaintainer): Who maintains the package?
216 (IniDBBuilder::buildArchitecture): What platform is it for?
217 (IniDBBuilder::buildInstallSize): How big is the binary download?
218 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
219 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
220 (IniDBBuilder::buildBeginRecommends): What other packages are
221 recommended with this one?
222 (IniDBBuilder::buildBeginSuggests): And suggested?
223 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
224 (IniDBBuilder::buildBeginConflicts): And collide with?
225 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
226 package names) does this provide?
227 (IniDBBuilder::buildDescription): Grab a multi line description one
229 (IniDBBuilder::buildSourceName): What source package should be used to
230 install the source for this binary package?
231 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
232 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
233 list of package specifications.
234 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
235 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
236 to the current specification.
237 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
239 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
240 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
241 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
242 (IniDBBuilderPackage::process_src): Streamline and split out
244 (IniDBBuilderPackage::setSourceSize): From process_src.
245 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
246 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
247 (IniDBBuilderPackage::currentOrList): Track the current Or list.
248 (IniDBBuilderPackage::currentAndList): Track the current And list.
249 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
251 (IniParseFeedback::iniName): Tell what ini filename we are currently
253 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
254 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
255 Make the feedback object non-const to allow mutating methods which are
256 needed when the object has state.
257 (IniParseFindVisitor::visitFile): Tell the caller the name of each
259 Initialise the parser with the feedback object to allow it to tell of
261 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
262 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
263 (setup_SOURCES): Add the new PackageSpecification sources.
264 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
265 builder syntax to setup binary package details.
266 * choose.cc: Use the LogSingleton calls throughout.
267 * configure.in: Create the INILINT substitution correctly for recent
268 autotool configurations.
269 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
270 rather than a string built from an int. Thanks to Pavel Tsekov for
272 (cygpackage::getnextfile): Ditto.
273 * download.cc: Use LogSIngletion calls throughout.
274 (validateCachedPackage): A refactoring of the
275 check_for_cached code to eliminate duplciation.
276 (check_for_cached): Use validateCachedPackage to check packages.
277 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
279 (do_remote_ini): Ditto.
280 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
282 * inilex.l: Identify new symbols - operators, and multi line plain text.
284 * inilintmain.cc (show_help): Provide basic infomation on inilint.
285 * iniparse.y: Adjust for the new builder syntax, and process debian
287 * io_stream_file.cc: Always include mkdir.h.
288 * list.h: Factor index location into a private routine.
289 (list::findindex): Implement this.
290 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
291 builds. NB: This breaks cygwin build functionality still.
292 * package_meta.cc: Use the LogSingleton calls throughout.
293 (packagemeta::set_requirements): Adjust for object changes in
295 * package_meta.h (packagemeta::packagemeta): Initialise new members.
296 (packagemeta::architecture): What platform does this package run on?
297 This may need to move in the future to a per packagefile object.
298 (packagemeta::priority): What priority does this package have?
299 * package_source.h (packagesource::packagesource): Initialise new
301 (packagesource::installedSize): How much space does the package need?
302 (packagesource::setInstalledSize): Tell the amount.
303 (packagesource::_installedSize): And store it.
304 * package_version.cc (packageversion::sourcePackage): return the
306 (packageversion::setSourcePackage): And set it.
307 * package_version.h: Declare the package_version.cc changes.
308 (packageversion::depends): New package specification AND list.
309 (packageversion::predepends): Ditto.
310 (packageversion::recommends): Ditto.
311 (packageversion::suggests): Ditto.
312 (packageversion::replaces): Ditto.
313 (packageversion::conflicts): Ditto.
314 (packageversion::provides): Ditto.
315 (packageversion::sourcePackage): What source package is needed?
316 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
318 * threebar.h: Declare the threebar.cc change.
320 2002-06-27 John Marshall <johnm@falch.net>
322 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
323 * site.cc (SitePage::OnMessageCmd): Ditto
325 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
327 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
329 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
331 * package_meta.cc (packagemeta::set_action): When installing packages
332 with no binaries, choose the source package.
334 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
336 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
337 Bowshers fix for the crash with a root level setup.ini.
338 * README: Update todos.
340 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
342 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
343 GNU long name extension support.
345 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
347 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
348 unescape 0 length strings.
350 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
352 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
353 when local with no cached file, and install the default source if the
354 default version has no binary.
356 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
358 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
360 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
361 setup version created the ini file.
362 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
364 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
366 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
367 Require a feedback strategy.
368 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
369 * Makefile.in: Regenerate.
371 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
373 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
374 trick to delete read only files.
375 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
377 * Makefile.am (release): Tweak to be more helpful.
378 * Makefile.in: Regenerate.
380 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
382 * Makefile.am (release): Tweak to be more helpful.
383 * Makefile.in: Regenerate.
385 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
387 * Makefile.am (release): Tweak to be more helpful.
388 * Makefile.in: Regenerate.
390 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
392 * choose.cc (scan_downloaded_files): When a non-installed version
393 has neither bin nor src cached files for local installs,
394 remove the version from availability.
396 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
398 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
400 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
402 * rsync: New support library, contains librsync. This is not (yet)
404 * configure.in: --with-rsync to enable rsync support. (Not complete).
405 * Makefile.am: Enable building with rsync.
406 * Makefile.in: Regenerate.
408 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
410 (IniDBBuilder::buildPackageSource): Ditto.
411 * IniDBBuilder.h: Ditto.
412 * IniDBBuilderPackage.cc: Ditto.
413 * IniDBBuilderPackage.h: Ditto.
414 * FindVisitor.cc: New file.
415 * FindVisitor.h: New file, interface for visiting a file system
417 * IniParseFindVisitor.cc: New file.
418 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
420 * README: Update TODO's.
421 * String++.cc (String::String): New constructor for <string> inter-
423 (String::substr): New method.
425 * choose.cc (scan2): Remove.
426 (scan_downloaded_files): Simplify.
427 * dialog.h: Include parsing pre-requirements.
428 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
429 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
430 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
432 * fromcwd.cc: Remove unneeded includes.
433 (is_test_version): Remove.
434 (found_file): Remove.
435 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
437 (do_fromcwd): Remove commented code that has be replaced elsewhere.
438 * ini.cc (local_ini): Remove.
439 (findBuilder): Remove.
440 (find_routine): Remove.
441 (do_local_ini): Use new IniParseFindVisitor.
442 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
444 * postinstall.cc: Remove non-core includes.
445 (run_script_in_postinstall): Remove.
446 (RunFindVisitor): Trivial Visitor, runs each found script.
447 (do_postinstall): Use new find syntax.
449 2002-05-14 Christopher Faylor <cgf@redhat.com>
451 * ini.cc (find_routine): Don't clear buffer it it's NULL.
453 2002-05-14 Christopher Faylor <cgf@redhat.com>
455 * filemanip.h (trail): Declare.
456 * filemanip.cc (trail): New function.
457 (find_tar_ext): Use trail() instead of strstr().
458 * fromcwd.cc (check_ini): Ditto.
459 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
460 should now be fully qualified. Set ini_filename. Reset error_buf and
461 error_count for any subsequent ini file parsing.
462 (ini_filename): New static variable for parse error reporting.
463 (yyerror): Use full path of setup.ini in error message. Subtract one
464 from line number if at bol.
465 * find.cc (found_part): Eliminate.
466 (find_sub): Call for_each with full path found rather than just file
468 (find): Don't calculate found_part.
469 * inilex.l (ini_init): Flush input buffer and reset line number.
470 (yybol): New function. Exports YY_AT_BOL.
471 * iniparse.y: Increase stack depth to allow more tokens to be processed.
472 (yyparse): Remove newline from error condition to allow subsequent
473 per-line error processing to proceed normally.
475 2002-05-14 Christopher Faylor <cgf@redhat.com>
477 * find.cc (find_sub): Be more defensive in preserving trailing parts of
478 components when doing recursive directory searches or calling user
480 * ini.cc (find_routine): Don't assume that any path name with
481 "setup.ini" in it is actually a setup.ini file. Only honor trailing
482 components. Copy path argument to temporary storage when unescaping
483 to prevent nuking of argument.
485 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
487 * CONTRIBUTORS: New file.
489 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
491 * choose.cc: Run indent.
492 (nextbutton): Remove static variable.
493 (default_trust): Remove use of nextbutton.
494 (set_view_mode): Ditto.
495 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
496 rbset() sets the prev/next/curr radio buttons properly.
497 (dialog_cmd): Delete function.
498 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
500 (do_choose): Delete function. Move pre-DialogBox() code to
501 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
502 (WM_APP_START_CHOOSE): Remove define.
503 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
504 (do_choose_thread): Delete function.
505 (ChooserPage::OnActivate): Delete method.
506 (ChooserPage::OnMessageApp): Delete method.
507 (ChooserPage::OnInit): New method.
508 (ChooserPage::OnNext): New method.
509 (ChooserPage::OnBack): New method.
510 (ChooserPage::OnMessageCmd): New method.
511 * choose.h: Run indent.
512 (ChooserPage::OnMessageApp): Delete declaration.
513 (ChooserPage::OnActivate): Ditto.
514 (ChooserPage::OnMessageCmd): New declaration.
515 (ChooserPage::OnInit): Ditto.
516 (ChooserPage::OnNext): Ditto.
517 (ChooserPage::OnBack): Ditto.
518 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
520 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
521 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
522 * res.rc (IDD_CHOOSE): Remove dialog template.
523 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
525 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
527 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
528 corrupt log file entries.
529 * geturl.cc: Convert to the new LogSingleton logging.
531 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
533 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
536 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
538 * geturl.h: Declare getUrlToStream.
539 * geturl.cc (getUrlToStream): New function.
540 (get_url_to_membuf): Refactor to use getUrlToStream.
542 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
544 * Makefile.am: Add a release target to automate some of the routine
546 * Makefile.in: Regenerate.
548 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
550 * choose.cc (scan_downloaded_files): On local installs remove all
551 mirror sites if no cached copy of a package is found.
553 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
555 * Makefile.in: Regenerate.
556 * iniparse.y: Use left recursion, not right in the lines rule to
557 avoid stack overflows.
558 * README: Update TODO's.
559 * io_stream_file.cc: Native builds need to include sys/stat.h
561 2002-05-06 John Marshall <jmarshall@acm.org>
563 * site.cc (SitePage::OnMessageCmd): recalculate navigation
564 button activation when "Add" is pressed.
565 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
567 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
569 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
570 depending on platform.
572 * configure.in: Set conditional MINGWTARGET if compiling against mingw
574 * Makefile.in: Regenerate.
576 * io_stream_file.cc: Only use win32 calls when building for mingw.
578 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
580 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
581 * configure.in: Ditto.
582 Fix incorrect header checking syntax.
583 * aclocal.m4: Regenerate.
584 * configure: Regenerate.
585 * Makefile.in: Regenerate.
586 * io_stream.cc: Remove platform specific and provider specific code.
587 (io_stream::registerProvider): New method, registers a Url provider with
589 Make all methods consistently throw invalid_argument exceptions when
590 a provider that is requested is not present.
591 (findProvider): New private function, finds a provider.
592 * io_stream.h: Declare io_stream::registerProvider.
593 * io_stream_cygfile.cc: Create a Provider class to register with
595 * io_stream_file.cc: Ditto.
596 * archive.cc: Remove unneeded includes.
597 * archive_tar.cc: Remove unneeded includes.
598 * archive_tar.h: Add required include.
599 * archive_tar_file.cc: Remove unneded includes.
600 * choose.cc: Remove unneeded includes:
602 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
604 * io_stream.cc: Use the new log interface thruout.
606 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
608 * log.cc (log): Reimplement via LogSingleton.
610 (exit_setup): Remove.
611 * log.h (log_save): Remove.
612 (exit_setup): Remove.
613 * LogSingleton.cc: New file.
614 * LogSingleton.h: New file.
615 * LogFile.cc: New file.
616 * LogFile.h: New file.
617 * Makefile.am (inilint_SOURCES): Add the new log interface.
618 (setup_SOURCES): Add the new log interface and the concrete File
620 * Makefile.in: Regenerate.
621 * archive.cc: Use the new log interface thruout.
622 * archive_tar.cc: Ditto.
624 * dialog.cc (fatal): Use the new log interface.
625 * ini.cc (do_ini_thread): Use the log interface to exit.
626 * isntall.cc (do_install_thread): Ditto.
627 * netio.cc (auth_cmd): Ditto.
628 * msg.cc (fatal): Ditto.
629 * localdir.cc (save_local_dir): Save to different files depending on
630 the mode, and if a root dir exists.
632 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
634 * IniDBBuilder.cc: New file.
635 * IniDBBuilder.h: New file.
636 * IniDBBuilderPackage.cc: New file.
637 * IniDBBuilderPackage.h: New file.
638 * PackageTrust.h: New file.
639 * IniState.h: Remove, wasn't thought out well enough.
640 * Makefile.am (inilint_SOURCES): Add more requirements.
641 (setup_SOURCES): Add new Builder base and concrete classes.
642 * Makefile.in: Regenerate.
643 * String++.cc (String::String): Implement int contructor.
644 * String++.h (String): Declare int constructor.
645 * archive_tar.cc (archive_tar::next_file_name): Return String() when
647 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
649 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
650 (find_routine): Use new IniDBBuilder to configure the parser.
651 (do_local_ini): Ditto.
652 (do_remote_ini): Ditto.
653 * ini.h: Use IniDBBuilder to initialise parsing.
654 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
656 (ini_init): Use an IniDBBuilder rather than static variables.
657 * iniparse.y: Hand off all the object creation to a builder, rather
658 than hardcoding the behaviour. This allows run-time configured
660 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
661 method, it's not needed.
662 * io_stream_file.h (io_stream_file): Ditto.
663 * mount.cc (cygpath): Return String() for missing mounts.
664 * package_meta.cc (packagemeta::SDesc): Return String() for blank
666 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
667 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
669 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
670 String constructor usage.
671 * site.h (site_list_type): Ditto.
673 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
675 * String++.h: Declare a << operator that accepts String objects.
676 * String++.cc: We need iostream for..
677 (operator <<): this. Provide a << operator that accepts String objects.
678 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
679 Change from vargs to a String parameter.
680 * inilintmail.cc: Remove the gui related headers.
681 (yyerror): Implement this for parsing.
682 * iniparse.y: Use the new yyerror syntax.
684 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
686 * Makefile.am: Add IniState.h.
687 * Makefile.in: Regenerate.
688 * IniState.h: New file.
689 * choose.cc: Don't include ini.h - it's not needed.
690 * configure: Regenerate.
691 * desktop.cc: Don't include ini.h - it's not needed.
692 * download.cc: Ditto.
694 * ini.cc: Use IniState.h to track each parsing calling.
695 (find_routine): Ditto.
696 (do_remote_ini): Ditto.
697 (do_ini_thread): Ditto.
698 * ini.h (ini_init): Adjust parameters to include state object.
699 * inilex.l: Declare parser state variable.
700 (ini_init): Adjust parameters to include state object.
701 * iniparse.y: Remove obsolete setup_timestamp and setup_version
703 (setup_header): Use new state variable to track time and version.
704 (add_correct_version): Ditto.
705 * install.cc: Don't include ini.h - it's not needed.
707 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
709 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
710 * io_stream_file.cc: Don't include filemanip.h.
711 (io_stream_file::get_size): Implement here to remove filemanip
713 * io_stream_cygfile.cc: Don't include filemanip.h.
714 (io_stream_cygfile::get_size): Implement here to remove filemanip
716 Implement a stat based version for when win32 is not available.
717 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
718 * filemanip.cc: Don't include win32.h - be platform independent.
719 Include strings.h and io_stream.h as part of that.
720 (get_file_size): Leverage io_streams and remove win32 implementation.
721 * download.cc (check_for_cached): Use io_stream syntax for
723 (download_one): Ditto.
725 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
727 * configure.in: Correct a typo in last change.
728 * configure: Regenerate.
729 * Makefile.in: Regenerate.
731 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
733 * configure.in: Check for string.h and string.
734 * configure: Regenerate.
735 * Makefile.in: Regenerate.
737 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
739 * res.rc (IDD_SPLASH): Remove white box.
741 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
743 Oops! forgot to list these in the last checkin.
744 * inilintmain.cc: New file.
745 * md5.h: New file - imported md5 source, BSD style licence.
746 * md5.cc: New file - imported md5 source, BSD style licence.
747 * Exception.cc: New file.
748 * Exception.h: New file.
749 * MD5++.cc: New file.
752 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
754 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
755 Remove -fno-rtti, we need it for exceptions.
756 (AM_CXXFLAGS): Ditto.
757 (WARNONLY_CFLAGS): Ditto.
758 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
759 (setup_LDFLAGS): Add and set to -mwindows.
760 (setup_SOURCES): Add new sources.
761 * Makefile.in: Regenerate.
762 * README: Update TODO.
763 * choose.cc (scan_downloaded_files): Use ini information if it's
765 * configure: Regenerate.
766 * download.cc (check_for_cached): Make reusable from elsewhere.
767 Throw exceptions on errors (as opposed to failures).
768 Check MD5 sum when it's known.
769 (download_one): Never force a download.
770 Handle corrupt package exceptions.
771 * ini.cc (find_routine): Reverse escape the URL to correctly identify
773 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
774 * iniparse.y: Allow calculation of MD5 sums, and allow src only
776 (process_src): New helper function.
777 * isntall.cc (install_one_source): Check MD5 sums when possible.
778 Throw exceptions on errors.
779 (do_install_thread): Handle exceptions for installation calls.
780 * package_source.h: Store MD5 information.
781 * propsheet.cc (PropSheet::Create): Add a useful comment.
782 * res.rc (IDS_INSTALL_ERROR): Define.
783 (IDS_CORRUPT_PACKAGE): Define.
784 * resource.h (IDS_INSTALL_ERROR): Define.
785 (IDS_CORRUPT_PACKAGE): Define.
786 * rfc1738.cc (rfc1738_unescape_part): Implement.
787 * rfc1738.h (rfc1738_unescape_part): Declare.
789 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
791 * Makefile.am: Remove dependecy rules that automake emits.
792 Correct badly copied dependency info for manually compiled files.
793 (setup_SOURCES): Add all used headers.
794 (EXTRA_DIST): Include non compilate but required sources.
795 (setup_LDADD): Remove mingw32, it is autodetected.
796 * Makefile.in: Regenerate.
797 * String++.h: sys/types is a system header.
798 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
800 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
802 * configure: Regenerate.
803 * configure.in: Check for mingw32/cygwin specific headers and libraries.
804 * cygpackage.h: Include the win32.h header to get correct macro
805 definitions in all situations.
806 * download.cc (do_download_reflector): Make into a Win32 thread routine.
808 (do_download): Use Win32 threads.
811 * (WinMain): Adjust to build valid command line using application
812 under both mingw32 and cygwin.
813 * mount.cc (set)cygdrive_flags): Create new system flags if the
814 user requests system and the value does not exist.
815 * nio-http.cc: Define a _strnicmp for cygwin.
816 * package_db.cc: Include <errno.h> if it exists.
817 * site.cc (do_download_site_info_thread): Make into a Win32 thread
820 (do_download_site-Info): Use Win32 threads.
821 * state.cc: Explicity declare variables to avoid header conflicts
822 caused by '#define extern" on cygwin.
823 * win32.h: Include <alloca.h> if it exists.
824 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
825 (_access): Define as access if not defined by windows.h.
827 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
829 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
831 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
833 * Makefile.am: Add libgetopt++ to the subdirs list.
834 Search the libgetopt++ header directory.
835 Link against libgetopt++.la.
836 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
837 (setup_LDADD): Explicitly include res.o.
838 * Makefile.in: Regenerate.
839 * aclocal.m4: Regenerate.
840 * bootstrap.sh: Call libtoolize.
841 * configure: Regenerate.
842 * configure.in: Add libtool support and configure libgetopt++.
843 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
844 (DesktopSetupPage::OnInit): Use the simpler syntax.
845 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
847 * main.cc: Include getopt++/GetOption.h.
848 (main): Use simpler syntax.
852 * GetOption.h: Remove.
853 * GetOption.cc: Remove.
857 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
859 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
861 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
863 * aclocal.m4: New file, cached macros.
864 * bootstrap.sh: New file, calls required autotools in appropriate
866 * Makefile.am: New file, input Makefile for automake.
867 * Makefile,in: Now a generated file - regenerate.
868 * configure: Regenerate.
869 * configure.in: Add automake support.
870 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
871 automake's VERSION define.
874 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
876 * cdefs.h: New file, imported to allow getopt.c to build without
878 * getopt.h: New file, imported to allow building without cygwin headers.
880 * bz2lib: New directory, contains copy of bz2lib.
881 * cfgaux: New directory, contains autotool helper scripts.
882 * Makefile,in: Adjust library and target definitions for building
883 outside the sourceware tree.
884 * compress_bz.h: Use new bz2lib header location.
885 * mount.cc: Import key defines and enums to be independent of cygwin
887 * configure.in: Update to autoconf 2.53, and to be sourceware
889 * configure: Regenerate.
891 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
893 * mklink2.cc (make_link_2): Tweak to work with current w32api
896 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
898 * version.cc (canonicalize_version): Fix a call delete[]
899 to delete the allocated address.
901 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
903 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
904 to Ton van Overbeek for locating the bug area.
906 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
908 * PickView.cc (PickView::insert_pkg): Be more generic with
910 (PickView::insert_category): Ditto.
911 (PickView::~PickView): Create.
912 * PickView.h (PickView::~PickView): Declare.
914 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
916 * Makefile.in (OBJS): Add new commandline objects.
917 * desktop.cc (NoShortCutsOption): New option code.
918 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
919 * desktop.h (NoShortCutsOption): New concrete command line option class.
920 * main.cc (WinMain): Process command line options.
921 * GetOption.h: New file, singleton command line class.
922 * GetOption.cc: New file, implementation of the above.
923 * Option.h : New file, abstract option for GetOption.
924 * Option.cc: New file, implement constructor and destructor.
926 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
928 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
930 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
932 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
933 to textheight, so large fonts work.
935 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
937 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
940 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
942 * io_stream_cygfile.cc (cwd): New static for cwd storage.
943 (io_stream_cygfile::normalise): New method.
944 (io_stream_cygfile::io_stream_cygfile): Use it.
945 (io_stream_cygfile::exists): Ditto.
946 (io_stream_cygfile::remove): Ditto.
947 (io_stream_cygfile::mklink): And again.
948 (cygmkdir_p): Yes, again.
949 (io_stream_cygfile::move): And once more.
950 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
951 (io_stream_cygfile::cwd): Ditto.
953 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
955 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
956 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
957 Overbeek for the report).
958 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
961 * site.cc (site_list_type::init): Delete the correct memory addres.
962 Thanks to Pavel Tsekov for tracking this down.
964 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
966 * win32.h: Only define alloca if it's not already.
968 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
970 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
972 * README: Update with latest requests.
973 * Various: MTC fixes from setup200202 branch.
975 2002-03-19 Christopher Faylor <cgf@redhat.com>
977 * Makefile.in (setup_version.c): Add back magic which allows detection
978 of setup.exe version number.
980 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
982 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
983 calculation on win9x systems.
985 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
987 * install.cc (install_one_source): Write the correct length of a string to the
988 lst file (Thanks to Pavel Tsekov for reporting the bug).
990 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
992 * choose.cc (list_click): Always refresh the entire chooser, as our
993 package state change mechanism is broken with the new improved list classes.
995 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
997 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1000 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1002 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1004 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1006 (PickPackageLine::click): Handle the new bin tickbox.
1007 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1008 * PickView.cc (pkg_headers): Add a Bin? column.
1009 (cat_headers): Ditto.
1010 (PickView::set_headers): Ditto.
1011 (PickView::init_headers): Ditto.
1012 * PickView.h (PickView): Ditto.
1013 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1015 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1017 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1020 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1022 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1024 (make_passwd_group): Ditto.
1025 * localdir.cc (save_local_dir): Ditto.
1026 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1027 Add "cygfile://" prefix to io_stream::open() calls.
1029 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1031 * log.cc (log_save): Fix creating /var/log.
1032 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1034 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1036 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1037 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1038 * resource.h: Add IDS_CYGWIN_SETUP and
1039 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1041 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1042 operator (::SetWindowText()).
1044 * threebar.cc: Run indent.
1045 (cistring.h): Add include.
1046 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1047 global scope operator.
1048 (SetBar2): Add logic for writing percent complete into window title.
1050 * window.h: Run indent.
1051 (SetWindowText): New function.
1052 (String): Add forward declaration.
1053 * window.cc: Run indent.
1054 (String++.h): Add include.
1055 (SetWindowText): New function.
1057 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1059 * README: Update TODO list.
1060 * install.cc (install_one): Fix src package location.
1061 (do_install_thread): Fix creating directories.
1063 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1065 * choose.cc: Include cygpackage.h for scan2 use.
1066 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1067 (scan2): Process any valid file.
1068 Add cache entries when a file matching a setup.ini listed version is found.
1069 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1070 * filemanip.h (filemanip::pkgtar): Remove.
1071 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1072 (packagemeta::~packagemeta): Move from package_meta.h
1073 Remove and delete all version and category information.
1074 * package_meta.h (CategoryPackage): Create a destructor.
1075 (packagemeta::~packagemeta): Move to .cc file.
1077 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1079 * install.cc (install_one_source): Make NULL cached package names cause
1082 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1084 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1087 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1089 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1091 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1093 * mount.cc (create_mount): Avoid a const char*->char* warning.
1094 (read_mounts): Ditto.
1096 2002-02-05 Jason Tishler <jason@tishler.net>
1098 * download.cc (do_download_thread): Fix off-by-one error.
1100 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1102 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1103 * configure (CXXFLAGS): Regenerate.
1104 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1105 * README: TODO list updates.
1107 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1109 * String++.cc (String::concat):: Remove.
1110 (String::vconcat):: Ditto.
1111 * String++.h (String::concat):: Remove.
1112 (String::vconcat):: Ditto.
1113 * archive_tar.cc: Don't include concat.h.
1114 * archive_tar_file.cc: Don't include concat.h.
1115 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1116 (compress_bz::seek): Ditto.
1117 (compress_bz::~compress_bz): Ditto.
1118 * compress_gz.cc (compress_gz::peek): Ditto.
1119 (compress_gz::error): Ditto.
1120 (compress_gz::~compress_gz): Ditto.
1121 * concat.cc (vconcat): Remove.
1123 * concat.h (vconcat): Remove.
1125 * desktop.cc (desktop_icon): Use new cygpath.
1126 (make_etc_profile): Ditto.
1128 (make_passwd_group): Ditto.
1130 (check_desktop): Remove concat use.
1131 (check_start_menu): Ditto.
1132 * download.cc (download_one): Use new mkpath_p correctly.
1134 * fromcwd.cc: Don't include concat.h.
1135 * geturl.cc (get_url_to_membuf): Use String log() call.
1136 (get_url_to_file): Ditto.
1137 * install.cc: Don't include concat.h.
1138 (uninstall_one): Use LOG_PLAIN.
1139 (replace_one): Ditto.
1140 (install_one_source): Ditto.
1141 (install_one): More char to String conversion.
1142 (do_install_thread): Use new cygpath.
1143 Use new create_mount.
1144 * io_stream.cc (io_stream::move): Use new log().
1145 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1146 (io_stream_cygfile::exists): Ditto.
1147 (io_stream_cygfile::remove): Ditto.
1148 (io_stream_cygfile::mklink): Ditto.
1149 (io_stream_cygfile::write): Ditto.
1150 (cygmkdir_p): Ditto.
1151 (io_stream_cygfile::move): Ditto.
1152 * io_stream_file.cc: Don't include log.h.
1153 (io_stream_file::write): Don't log unneeded messages.
1154 * localdir.cc: Don't include concat.h.
1155 (LocalDirPage::OnNext): Use LOG_PLAIN.
1156 * log.cc: Don't include log.h.
1157 (exit_setup): Use new cygpath.
1158 * log.h (log_level): Add new level LOG_PLAIN.
1159 * main.cc (WinMain): Use new log().
1160 * mount.cc (SLASH_P): New macro from concat.h.
1161 (cygpath): Make String version globally visible.
1162 Remove varargs version.
1164 * msg.cc (mbox): Use LOG_PLAIN.
1165 * net.cc (NetPage::OnNext): Ditto.
1166 * nio-ftp.cc (ftp_line): Use new log().
1167 * nio-http.cc: Don't include log.h.
1168 (retry_get): Use alternative url variable.
1169 * package_db.cc: Don't include concat.h.
1170 (packagedb::flush): Don't use concat.
1171 * package_meta.cc: Don't include concat.h.
1172 (packagemeta::uninstall): Use new cygpath.
1173 * postinstall.cc (do_postinstall): Ditto.
1174 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1175 * script.cc: Don't include concat.h.
1176 (init_run_script): Use new cygpath.
1177 (run_script): More char * to String conversion.
1178 (try_run_script): Ditto.
1179 * site.cc: Don't include concat.h.
1180 (SitePage::OnNext): Use LOG_PLAIN.
1181 (SitePage::OnMessageCmd): Use new log().
1182 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1184 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1186 * Makefile.in (OBJS): Add new object.
1187 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1188 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1189 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1190 (PickLine::Pickline): Accept a String for the key.
1191 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1192 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1194 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1195 (PickView::init_header): Move category length checking out of the inner loop for
1197 Convert all char use to Strings.
1198 * PickView.h: Include the String++ header.
1199 (PickView::note_width): Update the prototype.
1200 * String++.cc: New file, implements a reference counting string class.
1201 * String++.h: New file, declares a reference counting string class.
1202 * archive.cc: Include String++ instead of concat.
1203 (archive::extract_file): Convert char * usage to Strings.
1204 * archive.h: Inlude the String++ header.
1205 (archive::extract_file): Update prototype.
1206 (archive::next_file_name): Convert to a String.
1207 (archive::linktarget): Ditto.
1208 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1209 (archive_tar::linktarget): Ditto.
1210 * arhive_tar.h: Update the copyright.
1211 Explicitly include the relevant headers.
1212 (tar_map_result_type): Convert to String usage.
1213 (archive_tar::next_file_name): Update prototype.
1214 (archive_tar::linktarget): Ditto.
1215 * category.cc (Category::Category): Update initialisers.
1216 Convert to String usage.
1217 (Categorycmp): Update to String usage.
1218 * category.h: Include the String++ header.
1219 (Category::Category): Update to String usage.
1220 (Category::name): Ditto.
1221 (Category::key): Ditto.
1222 * choose.cc: Remove concat.h, it's not needed.
1223 (scan2): Update to String usage.
1225 * cygpackage.cc: Update includes for use of String class.
1226 (cygpackage::cygpackage): Update for String usage.
1227 (cygpackage::set_canonical_version): Ditto.
1228 (cygpackage::destroy): Ditto.
1229 (cygpackage::getfirstfile): Ditto.
1230 (cygpackage::getnextfile): Ditto.
1231 (cygpackage::Name): Ditto.
1232 (cygpackage::Vendor_version): Ditto.
1233 (cygpackage::Package_version): Ditto.
1234 (cygpackage::Canonical_version): Ditto.
1235 (cygpackage::set_sdesc): Ditto.
1236 (cygpackage::set_ldesc): Ditto.
1237 * cygpackage.h: Include String++.h for parsing this file.
1238 (cygpackage::cygpackage): Update for String usage.
1239 (cygpackage::set_canonical_version): Ditto.
1240 (cygpackage::destroy): Ditto.
1241 (cygpackage::getfirstfile): Ditto.
1242 (cygpackage::getnextfile): Ditto.
1243 (cygpackage::Name): Ditto.
1244 (cygpackage::Vendor_version): Ditto.
1245 (cygpackage::Package_version): Ditto.
1246 (cygpackage::Canonical_version): Ditto.
1247 (cygpackage::set_sdesc): Ditto.
1248 (cygpackage::set_ldesc): Ditto.
1249 (cygpackage::name): Ditto.
1250 (cygpackage::vendor): Ditto.
1251 (cygpackage::packagev): Ditto.
1252 (cygpackage::canonical): Ditto.
1253 (cygpackage::fn): Ditto.
1254 (cygpackage::sdesc): Ditto.
1255 (cygpackage::ldesc): Ditto.
1256 * desktop.cc: Update includes for use of String class.
1257 (batname): Update for String usage.
1260 (start)menu): Ditto.
1261 (desktop_icon): Ditto.
1262 (make_cygwin_bat): Ditto.
1263 (make_etc_profile): Ditto.
1265 (make_passwd_group): Ditto.
1267 (check_desktop): Ditto.
1268 (check_startmenu): Ditto.
1269 * dialog.cc (eget): Update for String usage.
1270 (egetString): New function.
1271 (eset): New variant for Strings.
1272 * dialog.h: Include String++.h for parsing this file.
1273 (egetString): New function.
1274 (eset): New variant for Strings.
1275 * diskfull.cc (diskfull): Update for String usage.
1276 * diskfull.h: Include String++.h for parsing this file.
1277 (diskfull): Update for String usage.
1278 * download.cc: Update includes for use of String class.
1279 (check_for_cached): Update for String usage.
1280 (download_one): Ditto.
1281 * filemanip.cc (get_file_size): Ditto.
1283 (parse_filename): Ditto.
1285 * filemanip.h: Include String++.h for parsing this file.
1286 (fileparse): Update for String usage.
1288 (parse_filename): Ditto.
1289 Don't consider '_' to be a separator.
1291 * find.cc: Update includes for use of String class.
1292 (find_sub): Make more flexible.
1293 (find): Update for String usage.
1294 * find.h (find): Use Strings.
1295 * fromcwd.cc (found_file): Update for String usage.
1297 (init_dialog): Ditto.
1298 (get_url_to_membuf): Ditto.
1299 (get_url_to_string): Ditto.
1300 (get_url_to_file): Ditto.
1302 (get_url_to_membuf): Ditto.
1303 (get_url_to_string): Ditto.
1304 (get_url_to_file): Ditto.
1306 (add_subdirs): Ditto.
1307 * ini.cc: Update includes for String usage.
1308 (find_routine): Update for String usage.
1309 (do_remote_ini): Ditto.
1310 (do_ini_thread): Ditto.
1311 * ini.h (ini_init): Ditto.
1312 * inilex.l: Update includes for String usage.
1313 (ini_init): Update for String usage.
1314 * iniparse.y: Ditto.
1315 (add_correct_version): Ditto.
1316 * install.cc: Update includes for String usage.
1317 (install_one_source): Update for String usage.
1318 (uninstall_one): Ditto.
1319 (replace_one): Ditto.
1320 (install_one_source): Ditto.
1321 (do_install_thread): Ditto.
1322 * io_stream.cc: Update includes for String usage.
1323 (io_stream::open): Update for String usage.
1324 (io_stream::mkpath_p): Ditto.
1325 (io_stream::remove): Ditto.
1326 (io_stream::mklink): Ditto.
1327 (io_stream::move_copy): Ditto.
1328 (io_stream::move): Ditto.
1329 (io_stream::exists): Ditto.
1330 * io_stream.h: Update includes to allow correct parsing.
1331 (io_stream::open): Update for String usage.
1332 (io_stream::mkpath_p): Ditto.
1333 (io_stream::remove): Ditto.
1334 (io_stream::mklink): Ditto.
1335 (io_stream::move_copy): Ditto.
1336 (io_stream::move): Ditto.
1337 (io_stream::exists): Ditto.
1338 * io_stream_cygfile.cc: Update includes for String usage.
1339 (get_root_dir_now): Update for String usage.
1340 (io_stream_cygfile::io_stream_cygfile): Ditto.
1341 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1342 (io_stream_cygfile::exists): Ditto.
1343 (io_stream_cygfile::remove): Ditto.
1344 (io_stream_cygfile::mklink): Ditto.
1345 (cygmkdir_p): Ditto.
1346 (io_stream_cygfile::set_mtime): Ditto.
1347 (io_stream_cygfile::move): Ditto.
1348 (io_stream_cygfile::get_size): Ditto.
1349 * io_stream_cygfile.h: Update includes for String usage.
1350 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1351 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1352 (io_stream_cygfile::exists): Ditto.
1353 (io_stream_cygfile::remove): Ditto.
1354 (io_stream_cygfile::mklink): Ditto.
1355 (cygmkdir_p): Ditto.
1356 (io_stream_cygfile::set_mtime): Ditto.
1357 (io_stream_cygfile::move): Ditto.
1358 (io_stream_cygfile::get_size): Ditto.
1359 (io_stream_cygfile::fname): Ditto.
1360 (io_stream_cygfile::lmode): Ditto.
1361 * io_stream_file.cc: Update includes for String usage.
1362 (io_stream_file::io_stream_file): Update for String usage.
1363 (io_stream_file::~io_stream_file): Ditto.
1364 (io_stream_file::exists): Ditto.
1365 (io_stream_file::remove): Ditto.
1366 (io_stream_file::mklink): Ditto.
1367 (io_stream_file::set_mtime): Ditto.
1368 (io_stream_file::move): Ditto.
1369 (io_stream_file::get_size): Ditto.
1370 * io_stream_file.h: Update includes for String usage.
1371 * io_stream_file.cc: Update includes for String usage.
1372 (io_stream_file::io_stream_file): Update for String usage.
1373 (io_stream_file::~io_stream_file): Ditto.
1374 (io_stream_file::exists): Ditto.
1375 (io_stream_file::remove): Ditto.
1376 (io_stream_file::mklink): Ditto.
1377 (io_stream_file::set_mtime): Ditto.
1378 (io_stream_file::move): Ditto.
1379 (io_stream_file::get_size): Ditto.
1380 (io_stream_file::fname): Ditto.
1381 (io_stream_file::lmode): Ditto.
1382 * localdir.cc: Update includes for String usage.
1383 (save_local_dir): Update for String usage.
1384 (check_if_enable_next): Ditto.
1385 (load_dialog): Ditto.
1387 (LocalDirPage::OnInit): Ditto.
1388 (LocalDirPage::OnNext): Ditto.
1389 * log.cc: Update includes for String usage.
1390 (struct LogEnt): Update for String usage.
1393 (exit_setup): Ditto.
1394 * log.h: Update includes for String usage.
1395 (log_level): Update for String usage.
1398 * main.cc (WinMain): Update for String usage.
1399 * mklink2.c (make_link_2): Update for String usage.
1400 * mklink2.h (make_link_2): Update for String usage.
1401 * mount.cc: Update includes for String usage.
1402 (mount_table): Update for String usage.
1404 (create_mount): Ditto.
1406 (remove_mount): Ditto.
1407 (read_mounts): Ditto.
1408 (set_root_dir): Ditto.
1409 (get_root_dir): Ditto.
1410 (path_prefix_p): Ditto.
1412 * mount.h: Update includes for String usage.
1413 (create_mount): Update for String usage.
1414 (remove_mount): Ditto.
1416 (set_root_dir): Ditto.
1417 (get_root_dir): Ditto.
1418 * msg.cc (mbox): Ditto.
1419 * net.cc (NetPage::OnNext): Ditto.
1420 * package_db.cc (packagedb::flush): Ditto.
1421 (packagedb::packages): Ditto.
1422 (packagedb::categories): Ditto.
1423 * package_db.h: Update includes for String usage.
1424 (packagedb::packages): Update for String usage.
1425 (packagedb::categories): Ditto.
1426 * package_meta.cc: Update includes for String usage.
1427 (hash::add_subdirs): Update for String usage.
1428 (packagemeta::uninstall): Ditto.
1429 (packagemeta::SDesc): Ditto.
1430 (packagemeta::action_caption): Ditto.
1431 * package_meta.h: Update includes for String usage.
1432 (packagemeta::packagemeta): Update for String usage.
1433 (packagemeta::~packagemeta): Ditto.
1434 (packagemeta::uninstall): Ditto.
1435 (packagemeta::SDesc): Ditto.
1436 (packagemeta::action_caption): Ditto.
1437 (package_source.cc site::site): Ditto.
1438 (packagesource::set_canonical): Ditto.
1439 (packagesource::set_cached): Ditto.
1440 * package_source.h: Update includes for String usage.
1441 (site::site): Update for String usage.
1442 (packagesource::set_canonical): Ditto.
1443 (packagesource::set_cached): Ditto.
1444 (packagesource::packagesource): Ditto.
1445 (packagesource::sites): Ditto.
1446 (packagesource::cached): Ditto.
1447 * package_version.h: Update includes for String usage.
1448 (Dependency): Update for String usage.
1449 (packageversion): Ditto.
1450 * postinstall.cc: Update includes for String usage.
1451 (do_postinstall): Update for String usage.
1452 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1453 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1454 * rfc1738.h: Update includes for String usage.
1455 (rfc1738_escape_part): Update for String usage.
1456 * root.cc: Update includes for String usage.
1457 (check_if_enable_next): Update for String usage.
1458 (save_dialog): Ditto.
1460 (directory_is_absolute): Ditto.
1461 (directory_is_rootdir): Ditto.
1462 (directory_has_spaces): Ditto.
1463 (RootPage::OnInit): Ditto.
1464 (RootPage::OnNext): Ditto.
1465 * script.cc: Update includes for String usage.
1466 (init_run_script): Update for String usage.
1468 (run_script): Ditto.
1469 (try_run_script): Ditto.
1470 * script.h: Update includes for String usage.
1471 (run_script): Update for String usage.
1472 (try_run_script): Ditto.
1473 * site.cc site_list): Ditto.
1474 (all_site_list): Ditto.
1475 (other_url): Eliminate.
1476 (site_list_type::init): Update for String usage.
1477 (site_list_type::site_list_type): Ditto.
1478 (get_site_list): Ditto.
1479 (get_saved_sites): Ditto.
1480 (do_download_site_info_thread): Ditto.
1481 (SitePage::OnNext): Ditto.
1482 (SitePage::OnActivate): Ditto.
1483 (SitePage::PopulateListBox): Ditto.
1484 (SitePage::OnMessageCmd): Handle empty url's.
1485 * site.h: Update includes for String usage.
1486 (site_list_type::site_list_type): Update for String usage.
1487 (site_list_type::init): Ditto.
1488 (site_list_type::~site_list_type): Ditto.
1489 (site_list_type::url): Ditto.
1490 (site_list_type::displayed_url): Ditto.
1491 (site_list_type::key): Ditto.
1492 * source.cc (SourcePage::OnDeactivate): Ditto.
1493 * state.h: Update includes for String usage.
1494 (local_dir): Update for String usage.
1495 (trust_level): Remove.
1496 * version.cc: Update includes for String usage.
1497 (canonicalize_version): Update for String usage.
1498 * version.h: Update includes for String usage.
1499 (canonicalize_version): Update for String usage.
1501 2002-02-15 Christopher Faylor <cgf@redhat.com>
1503 * filemanip.c (parse_filename): Revert previous change.
1505 2002-02-14 Christopher Faylor <cgf@redhat.com>
1507 * filemanip.c (parse_filename): Don't treat '_' as a version number
1510 2002-01-29 Christopher Faylor <cgf@redhat.com>
1512 * configure: Regenerate.
1514 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1516 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1517 <Hoeck@extern.lrz-muenchen.de>
1519 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1521 * README: Update Todo's.
1522 * list.h: Run indent.
1523 (list): New methods checksize and insert to reduce code duplication.
1524 (list::registerbykey): Use them.
1525 (list::registerbyobject): Ditto.
1526 (list::removebyindex): Copy each object individually - safe for non
1528 (list::checksize): Implement.
1529 (list::insert): Implement.
1531 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1533 * Makefile.in: Remove the dlmalloc object by default.
1534 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1535 around' the crashing issue.
1536 * package_db.h: Include <string.h> - it's needed to parse this.
1537 * package_source.cc (site::site): Move here from the header file.
1538 * package_source.h (site): Stop the constructor being inlinable.
1540 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1542 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1544 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1546 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1547 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1548 * install.cc (install_one_source): Add space between words in log()
1551 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1553 * log.cc (exit_setup): When saving to the download dir, explicity
1556 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1558 * archive.cc (extract_file): Separate out the prefix and the URL
1560 * archive.h (archive::extract_file): Ditto.
1561 * install.cc (install_one_source): Ditto. Use the new
1562 archive::extract_file syntax.
1563 (replace_one): Use the new syntax.
1564 (io_stream.cc): Add some log info for links.
1566 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1568 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1569 (PickCategoryLine::paint): Use the new action method.
1570 (PickCategoryLine::click): Set the action for all children.
1571 (PickCategoryLine::set_action): New method.
1572 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1573 (PickCategoryLine::current_default): Use packagemeta _actions class.
1574 * PickLine.h (PickLine::set_action): New abstract method that requires
1575 including package_meta.h.
1576 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1577 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1578 * list.h (getbykey): A const correctness fix.
1579 * package_meta.cc: Run indent.
1580 (packagemeta::Default_action): New const.
1581 (packagemeta::Install_action): Ditto.
1582 (packagemeta::Reinstall_action): Ditto.
1583 (packagemeta::Uninstall_action): Ditto.
1584 (packagemeta::_actions::caption): New method.
1585 (packagemeta::_actions::operator++): Ditto.
1586 (packagemeta::set_action): New overload.
1587 * package_meta.h (packagemeta::_actions): New class.
1588 (packagemeta::set_action): Declare this.
1590 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1592 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1593 * choose.cc: Don't define alloca anymore, it's done in win32.h
1595 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1597 * PickPackageLine.cc: New file.
1598 * PickPackageLine.h: New file.
1599 * PickLine.cc: New file.
1600 * PickLine.h: New file.
1601 * PickCategoryLine.cc: New file.
1602 * PickCategoryLine.h: New file.
1603 * PickView.cc: New file.
1604 * PickView.h: New file.
1605 * Makefile.in: Add new objects to setup.exe.
1606 Backout -fno-exceptions option.
1607 * choose.cc: Include PickView.h.
1608 Remove view related defines and static variables.
1609 (_pkg_headers): Moved to PickView.cc.
1610 (_cat_headers): Ditto.
1611 (view::views::Unknown): Ditto.
1612 (view::views::PackageFull):
1613 (view::views::Package):
1614 (view::views::Category):
1615 (pkgtrustp): Moved to package_meta.cc.
1616 (add_required): Moved to package_meta.cc.
1617 (pick_category_line::empty): Moved to PickCategoryLine.cc
1618 (paint): Adjust for moved static variables.
1619 (view::scroll): Moved to PickView.cc.
1620 (list_vscroll): Adjust for moved static variables.
1621 (list_hscroll): Ditto.
1622 (list_click): Ditto.
1623 (note_width): Moved to PickView.cc.
1624 (view::view): Ditto.
1625 (view::set_view_mode): Ditto.
1626 (view::mode_caption): Ditto.
1627 (view::views::caption): Ditto.
1628 (view::set_headers): Ditto.
1629 (DoInsertItem): Ditto.
1630 (view::init_headers): Ditto.
1631 (view::insert_pkg): Ditto.
1632 (view::insert_category): Ditto.
1633 (view::clear_view): Ditto.
1634 (view::views::operator++): Ditto.
1635 (view::click): Ditto.
1636 (default_trust): Adjust for moved statics.
1637 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1638 (pick_pkg_line::click): Ditto.
1639 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1640 (pick_category_line::paint): Ditto.
1641 (pick_category_line::click): Ditto.
1642 (set_view_mode): Adjust for moved statics.
1643 (create_listview): Ditto.
1644 * choose.h: Remove Category and packagemeta forward defines - not needed.
1645 Don't include unneeded headers list and package_meta.
1646 (_header): Move to PickView.h.
1647 (pick_line): Move to PickLine.h.
1648 (pick_pkg_line): Move to PickPackageLine.h.
1649 (pick_category_line): Move to PickCategoryLine.h.
1650 (view): Move to PickView.h.
1651 * ini.h (trusts): Move to package_meta.h.
1652 * package_meta.h (trusts): New enum.
1653 (packagemeta::set_requirements): New helper method.
1654 (packagemeta::trustp): Ditto.
1656 2002-01-21 Christopher Faylor <cgf@redhat.com>
1658 * choose.h (view): Move forward declaration of views into public area
1659 or g++ v3 will complain.
1661 2002-01-21 Christopher Faylor <cgf@redhat.com>
1663 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1664 * win32.h (alloca): Define as __builtin_alloca.
1665 * io_stream_memory.cc: Add include file.
1667 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1669 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1670 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1671 * compress.cc (compress::~compress): Be less verbose.
1672 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1673 Mark the stream as destroyed.
1674 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1675 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1677 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1678 stream as destroyed.
1679 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1680 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1682 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1684 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1685 (OBJS): Link in malloc objects.
1686 * category.cc (category): Use new char, not strdup.
1687 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1688 (do_choose): Use new char, not malloc.
1689 * concat.cc (vconcat): Ditto.
1690 * cygpackage.cc (cygpackage): Use new char, not strdup.
1691 (set_canonical_version): Ditto.
1692 (cygpackage::destroy): Use delete[], not free.
1693 * desktop.cc (uexists): Ditto.
1694 * dialog.cc (egest): Use new char, not strdup.
1695 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1696 * hash.cc (hash::hash): Use delete instead of free.
1697 (hash::add): Use new char, not strdup.
1698 * ini.cc (do_remote_ini): Use delete[] not free.
1699 * inilex.l: Use new char, not strdup.
1701 * iniparse.y: Ditto.
1702 Use a local package_db rather than a static one.
1703 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1704 (do_install_thread): Call mallinfo to force a consistency check. Appears
1705 to fix a 'inuse' error in -DDEBUG builds.
1706 Use delete[] for strings.
1707 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1709 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1710 (io_stream_cygfile::remove): Use new char, not strdup.
1711 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1712 (io_stream_file::io_stream_file): Use delete[], not free.
1713 (io_stream_file::remove): Use new char, not strdup.
1714 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1715 * io_stream_memory.h (memblock): Use new char, not malloc.
1716 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1717 * main.cc (WinMain): Use new char, not strdup.
1718 * mount.cc (find2): Use new char, not malloc.
1719 (read_mounts): Ditto.
1720 (cygpath): Use new char, not strdup.
1721 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1722 (NetIO::set_url): Use new char, not strdup.
1723 (NetIO::get_ftp_auth): Use delete[], not free.
1724 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1725 Use new char instead of strdup.
1726 * nio-http.cc (base64_encode): Use new char, not malloc.
1727 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1728 * package_source.h (~ packagesource): Use delete[] instead of delete.
1729 * port.h (strdup): Deprecate the use of strdup.
1730 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1731 * script.cc (init_run_script): Us delete[], not free.
1732 (run_script): Ditto.
1733 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1734 (SimpleSocket::invalidate): Use delete[], not free.
1735 * site.cc (site_list_type::init): Use new char instead of strdup.
1736 * site.h (~site_list_type): Use delete[], not free.
1738 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1740 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1741 * README: Update todos.
1742 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1744 * choose.cc (set_view_mode): Use the new view::views class.
1745 (view::views::Unknown): New static for defaulting view::views variables.
1746 (view::views::PackageFull): New static for the current view.
1747 (view::views::Package): Ditto.
1748 (view::views::Category): Ditto.
1749 (topbucket::paint): Remove.
1750 (topbucket::empty): Rename to pick_category_line::empty.
1751 (topbucket::~topbucket): Remove.
1752 (paint): Use the new view::views class.
1753 Don't paint 'all' as a category when showing package categoies.
1754 (pick_category_line::actiontext): New method.
1755 (pick_category_line::paint): Make showing the category optional, and show the
1757 (pick_category_line::click): Make showing the category optional, and
1758 differentiate between the name being clicked, and the action description.
1759 (view::view): Use the new view::views class.
1760 (view::set_view_mode): Ditto.
1761 (view::mode_caption): Ditto.
1762 (view::views::caption): New method.
1763 (view::set_headers): Use the new view::views class.
1764 (view::clear_view): Ditto.
1765 (viewsplusplus): Replaced by
1766 (view::views::operator++): New operator.
1767 (set_view_mode): Use the new view::views class.
1768 (create_listview): Ditto.
1769 (dialog_cmd): Ditto.
1770 * choose.h (actions): Remove.
1772 (pick_line): Add a new convenience constructor.
1773 (top_bucket): Remove.
1774 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
1775 (view::views): New class.
1776 * ini.h: Don't include choose.h
1777 (is_download_action): Remove.
1778 (is_upgrade_action): Remove.
1779 (is_uninstall_action): Remove.
1780 (is_full_action): Remove.
1781 * install.cc (num_replacements): New static.
1782 (rebootneeded): Ditto.
1783 (replace_one): Handle upgrades separate from removal or new installs.
1784 (install_one_source): Handle in use files.
1785 (install_one): Don't repeat upgrades.
1786 (do_install_thread): Initialize new statics.
1787 Order actions as uninstall, replace, install.
1788 Warn about rebooting if needed.
1789 * res.rc (IDS_REBOOT_REQUIRED): New string.
1790 * resource.h (IDS_REBOOT_REQUIRED): Give value.
1791 * win32.h: Declare class Win32, and update copyright and intent message.
1792 * win32.cc: New file.
1794 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
1796 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
1797 * package_meta.cc (packagemeta::uninstall): Check for additional
1798 Windows shortcut. Unset R/O file attribute before trying to delete
1801 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
1803 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
1804 the current trust level. For prev, fall back via curr.
1805 (set_existence): Allow sources with no sites, but cached files to be
1807 (pick_category_line::paint): Start drawing clickable categories.
1808 * fromcwd.cc (found_file): Reinstate local file scanning.
1810 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1812 * fromcwd.cc: Run indent.
1813 (do_fromcwd): Reverse sense of comment. Set next_dialog
1814 to IDD_CHOOSER instead of IDD_CHOOSE.
1815 * ini.cc (find_routine): Remove "/" from "/setup.ini".
1817 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
1819 * category.cc (Categorycmp): Add a const safe version.
1820 * category.h (Categorycmp): Add a const safe version.
1821 (Category): Add operator ==.
1822 * choose.cc (fill_missing_category): Add every package to "All".
1823 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
1824 (pick_category_line::click): Ditto.
1825 (view::view): Pass in a top level category to use.
1826 (view::insert_pkg): Special case - skip category "All".
1827 (view::insert_category): Ditto.
1828 (view::clear_view): Set the contents label state.
1829 (create_listview): Pass in a top level category to view().
1830 * choose.h (topbucket): Make bucket available to derived classes.
1831 (pick_category_line): Add support for hidden labels, and a tree depth.
1832 Remove our second copy of bucket.
1833 (view): Pass in a top level category to the constructor.
1834 Use pick_category_line to allow three level display.
1836 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
1838 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
1839 * iniparse.y (add_correct_version): Copy descriptions across.
1840 * package_meta.cc (SDesc): Iterate through versions, return the first with a
1842 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
1844 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
1846 * script.cc (run_script): Change cygpath:// to cygfile://.
1847 * install.cc (do_install_thread): Fix off-by-one errors.
1849 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
1851 * package_db.cc (packagedb::flush): Fix an off-by-one error.
1853 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
1855 * Makefile.in (realclean): more clean.
1856 (OBJS): Add script.o.
1857 * postinstall.cc (run_script_in_etc_postinstall): New function.
1858 (do_postinstall): Split off new funtion init_run_script ().
1861 (run_script): Move to script.cc. Replace some deprecated remove
1864 * script.cc: New file.
1865 * Forward port cygwin-20010707.jcn3.patch.
1866 * package_meta.cc (uninstall): Run pre- and postremove scripts.
1867 * install.cc: Typo fix.
1868 (do_install): Run script initialisation.
1870 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1872 * cistring.cc: Run d2u.
1873 * cistring.h: Run d2u.
1875 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
1876 from the generated /etc/profile. Bash will source this file
1877 automatically, and having this here merely results in .bashrc being
1878 executed twice. Run d2u.
1879 * desktop.h: Run d2u.
1881 * propsheet.cc: Run d2u.
1882 (PropSheetProc): New function. Add minimize box here instead of in
1883 PropertyPage::DialogProc.
1884 (PropSheet::Create): Change to use creation callback PropSheetProc.
1885 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
1887 * propsheet.h: Run indent, d2u.
1888 * proppage.h: Run indent, d2u.
1890 * proppage.cc: Run d2u.
1891 (PropertyPage::DialogProc): Remove minimize-box-adding
1892 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
1893 Add support for calling virtual OnMessageCmd. Add setting of fonts in
1894 WM_INITDIALOG handler.
1895 (resource.h): New include for resource IDs.
1897 * res.rc: Resize and rearrange property page dialog templates
1898 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
1899 specification. Run d2u.
1900 (IDD_SITE): Add an edit control and an "Add" button in order to
1901 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
1902 (IDD_OTHER_URL): Remove dialog template.
1903 (IDD_DLSTATUS): Remove dialog template.
1906 (SitePage::OnBack): Remove NEXT() macro invocation.
1907 (SitePage::OnActivate): New member function.
1908 (load_dialog): Remove. Functionality subsumed into
1909 SitePage::OnActivate.
1910 (save_dialog): Change to support both list and user URLs. Remove
1911 OTHER_IDX and mirror_idx logic.
1912 (SitePage::PopulateListBox): New member function.
1913 (SitePage::CheckControlsAndDisableAccordingly): New member function.
1914 (SitePage::OnMessageCmd): New override.
1915 (check_if_enable_next): Remove.
1916 (dialog_cmd): Remove.
1917 (do_download_site_info_thread): Remove calls to NEXT() macro.
1918 (SitePage::Create): Call the single-param PropertyPage::Create
1920 (other_url): New static taken from other.cc.
1921 (SitePage::OnNext): Remove mirror_idx logic.
1922 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
1923 list box populating code, now handled in SitePage::PopulateListBox.
1924 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
1925 (save_site_url): Fix potential buffer overflow problem. Switched to
1926 TCHAR in grossly premature preparation for multilingual support.
1928 (SitePage::OnActivate): New member function.
1929 (SitePage::CheckControlsAndDisableAccordingly) New member.
1930 (SitePage::OnMessageCmd): New override.
1931 (do_download_site_info_thread): Add MessageBox call on failure to
1934 * splash.cc: Run d2u.
1935 (SplashPage::OnInit): Set the font for the title.
1936 * splash.h: Run d2u.
1938 * threebar.cc: Run d2u.
1939 * threebar.h: Run d2u.
1941 * window.h: Run d2u.
1942 (Window::IsButtonChecked): New member function declaration.
1943 (Window::OnMessageCmd): New member function.
1944 (Window::SetDlgItemFont): New member function declaration.
1945 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
1947 * window.cc: Run d2u.
1948 (Window::IsButtonChecked): New member function definition.
1949 (Window::SetDlgItemFont): New member function definition.
1950 (Window::Window): Add initialization for FontCounter.
1951 (Window::~Window): Delete any fonts we created.
1953 * geturl.cc: Run d2u.
1954 (progress): Remove the "3" field width from the "%3d"
1955 percent-complete format indicator. Causes line to not start at
1956 beginning of text box, and does little to help with "jumping", since
1957 the "bytes downloaded so far" field is variable-width anyway. Change
1958 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
1959 painfully slow connections, or temporary slowdowns in faster
1960 connections should such more-instantaneous functionality become
1964 (NetPage::OnMessageCmd): New member function declaration.
1965 (NetPage::CheckIfEnableNext): New member function declaration.
1967 (NetPage::OnMessageCmd): New member function definition.
1968 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
1969 (check_if_enable_next): Remove.
1970 (NetPage::CheckIfEnableNext): New member function, subsumes
1971 check_if_enable_next.
1972 (propsheet.h): Add include.
1973 (NetPage::Init): Add call to CheckIfEnableNext.
1974 (load_dialog): Remove call to check_if_enable_next.
1975 (NetPage::Create): Call single-template-ID-parameter overload of
1976 PropertyPage::Create instead of three-parameter one.
1978 * Makefile.in (OBJS): Remove other.o.
1979 * other.cc: Remove file.
1981 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
1983 * README: Update TODO's.
1984 * choose.cc (set_existence): Delete non installed packages with no
1986 (fill_missing_category): Fix an off-by-one error.
1987 (default_trust): Ditto. Also delete any unused categories.
1988 (view::init_headers): Fix an off-by-one error.
1989 (set_view_mode): Ditto.
1990 (set_view_mode): Ditto.
1991 (create_listview): Ditto.
1992 (dialog_cmd): Ditto.
1994 * io_stream.cc: Indent.
1995 * io_stream.h: Ditto.
1996 * package_db.cc: Ditto.
1997 * package_meta.h: Const correctness for SDesc ();
1998 * proppage.cc: Run d2u and indent.
1999 * propsheet.cc: Run d2u and indent.
2000 * window.cc: Run d2u and indent.
2001 * window.h: Run d2u and indent.
2003 2001-12-28 Christopher Faylor <cgf@redhat.com>
2005 * Makefile.in (iniparse.o): Accommodate newer bisons.
2007 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2009 * window.h (Window): New file, new class.
2010 * window.cc (Window): New file, new class.
2012 * threebar.h (ThreeBarProgressPage): New file, new class.
2013 * threebar.cc (ThreeBarProgressPage): New file, new class.
2015 * splash.h (SplashPage): New file, new class.
2016 * splash.cc (SplashPage): Replace file with implementation of new
2019 * source.h (SourcePage): New file, new class.
2020 * source.cc: Run indent.
2021 (SourcePage): Add class implementation to this file.
2022 (do_source): Remove, functionality subsumed by SourcePage::Create()
2023 and SourcePage::OnDeactivate().
2024 (dialog_proc): Remove, functionality subsumed by
2025 SourcePage::OnActivate().
2027 * site.h: Run indent.
2028 (SitePage): Add class declaration.
2029 * site.cc: Run indent.
2030 (SitePage): Add class implementation.
2031 (do_download_site_info_thread): New function.
2032 (context): New var. Context info for do_download_site_info_thread().
2033 (do_download_site_info): New function.
2034 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2035 (SitePage::OnBack): SitePage class implementation..
2036 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2037 by SitePage members.
2038 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2040 (do_site): Remove, now handled by do_download_site_info_thread() and
2041 SitePage::OnNext functionality.
2042 (get_site_list): Remove dismiss_url_status_dialog() call.
2044 * root.h (RootPage): New file, new class.
2045 * root.cc: Run indent.
2046 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2047 (dialog_proc): Remove.
2049 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2050 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2051 here from do_root().
2052 (RootPage::Create): New member function.
2053 (RootPage::OnNext): New member function. Move IDOK logic from
2054 dialog_cmd() to here.
2055 (RootPage::OnBack): New member function.
2057 * propsheet.h (PropSheet): New file, new class.
2058 * propsheet.cc (PropSheet): New file, new class.
2060 * proppage.h (PropertyPage): New file, new class.
2061 * proppage.cc (PropertyPage): New file, new class.
2063 * postinstall.cc (do_postinstall): Add owner parameter.
2065 * other.cc (do_other): Add owner parameter.
2067 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2068 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2070 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2073 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2074 get_auth(), get_proxy_auth().
2076 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2077 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2078 NetIO::get_ftp_auth)
2079 (auth_common): Add owner param. Pass owner param to DialogBox.
2080 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2081 owner param to auth_common().
2083 * net.h (NetPage): New file, new class.
2084 * net.cc: Run indent.
2085 (net.h, threebar.h): Add includes.
2086 (Progress): Add extern.
2087 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2088 property sheet logic. Saved temporarily for reference.
2089 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2090 NetPage::OnNext, NetPage::OnBack):
2091 New implementation of NetPage class members.
2093 (dialog_proc): Remove.
2095 * msg.h (fatal, note, yesno): Add owner param.
2096 * msg.c (fatal, note, yesno, mbox): Add owner param.
2097 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2098 now that we have a parent.
2100 * main.cc: Run indent.
2101 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2102 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2104 (root_dialog_proc): extern into this file.
2105 (Progress): Progress dialog defined here, used in several other files.
2106 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2107 Site, Chooser, Desktop pages and MainWindow sheet. Call
2108 InitCommonControls() to make sure Windows is set up for our use of
2109 property sheets. Add pages to sheet.
2110 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2111 now handled by the PropSheet class.
2112 (root.h): Add include.
2114 * log.cc (log_save): Pass NULL parent to fatal().
2115 (exit_setup): Pass NULL parent to note().
2117 * localdir.h (LocalDirPage): New file, new class.
2118 * localdir.cc: Run indent.
2119 (localdir.h): New include.
2120 (threebar.h): New include.
2121 (Progress): extern into this file.
2122 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2123 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2125 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2126 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2127 (do_local_dir): Remove.
2128 (dialog_proc): Remove.
2129 (cwd): Remove, not used by anything.
2131 * install.cc: Run indent.
2132 (process.h, threebar.h): New includes.
2133 (Progress): extern into this file.
2134 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2135 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2136 ThreeBarProgressPage.
2137 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2138 ThreeBarProgressPage.
2139 (init_dialog): Remove all mention of the above ins_* handles. Now
2140 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2141 ThreeBarProgressPage instance Progress directly.
2142 (progress): Alter bar update logic to call ThreeBarProgressPage
2143 instance Progress directly.
2144 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2145 instance Progress directly.
2146 (install_one_source): Alter SetWindowText()s to call
2147 ThreeBarProgressPage
2148 instance Progress directly. Pass NULL parent to note().
2149 (do_install_thread): Rename from do_install(), added owner param.
2150 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2152 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2153 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2155 (do_install_reflector): New function.
2156 (do_install): New function.
2158 * ini.cc (process.h, threebar.h): New includes.
2159 (Progress): externed into this file.
2160 (find_routine): Pass NULL parent to note().
2161 (do_local_ini): Add owner param.
2162 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2163 and note(). Remove call to dismiss_url_status_dialog().
2164 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2165 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2166 to IDD_CHOOSER on exit.
2167 (do_ini_thread_reflector): New function.
2168 (context): New var. Context for do_ini_thread.
2169 (do_ini): New function.
2171 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2173 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2175 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2177 (threebar.h): New include.
2178 (Progress): externed into this file.
2179 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2180 ThreeBarProgressPage now.
2181 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2183 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2184 Progress directly. Remove "one bar only" logic, this is now handled
2185 explicitly in the ThreeBarProgressPage class.
2186 (progress): Altered bar and text update logic to call
2187 ThreeBarProgressPage instance Progress directly. Changed kbps
2188 calculation to floating point and now print out a single decimal
2190 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2191 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2192 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2193 update logic to call ThreeBarProgressPage instance Progress directly.
2194 (dismiss_url_status_dialog): Remove.
2196 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2199 * download.cc: Run indent.
2200 (process.h, threebar.h): New includes.
2201 (Progress): externed into this file.
2202 (download_one): Add owner param. Pass it to get_url_to_file().
2203 (do_download_thread): Renamed from do_download. Add owner param. When
2204 calculating total_download_bytes, take binpicked and srcpicked into
2205 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2206 Pass owner handle to download_one() and yesno().
2207 (do_download_reflector, do_download): New functions.
2208 (context): New var. Context for do_download_thread().
2210 * dialog.h (D(x)): Add owner param.
2212 * desktop.h (DesktopSetupPage): New file, new class.
2213 * desktop.cc: Run indent.
2214 (desktop.h): Add include.
2215 (dialog_proc, do_desktop): Remove, now handled in
2216 DesktopSetupPage::OnInit().
2217 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2218 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2220 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2221 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2222 of DesktopSetupPage.
2224 * cistring.h: New file, new class.
2225 * cistring.cc: New file, new class.
2227 * choose.h: Run indent.
2228 (Chooser): New class declaration.
2229 * choose.cc: Run indent.
2230 (do_choose): Add owner param. Pass it to DialogBox() and
2232 (Chooser): New class implementation.
2234 * res.rc (IDS_VERSION_INFO): New string.
2235 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2236 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2237 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2239 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2240 TAB control navigation etc. Give the controls a reasonable tab order.
2241 Grouped radio buttons. Something's still not right, can't tab away
2242 from back/next/cancel group reliably.
2243 * resource.h (IDD_CHOOSER): New dialog ID.
2245 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2246 threebar.o, and window.o.
2248 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2250 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2251 (pick_pkg_line::paint): Clip columns to prevent overlap.
2253 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2255 * Makefile.in: Add libcomctl32.a for setup.exe.
2256 * archive.h (archive): Prevent non-child direct creation of the class.
2257 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2258 * choose.cc: Include commctrl for the choose header.
2259 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2260 (pkgtrustp): Convert to function.
2261 (set_action): Remove.
2262 (add_required, fill_missing_category,default_trust): Use list syntax for
2265 (choose_caption): Remove.
2266 (topbucket::paint): New method.
2267 (topbucket::empty): Ditto.
2268 (topbucket::click): Ditto.
2269 (topbucket::~topbucket): Ditto.
2270 (paint): Remove i,ii and p as they are obsolete.
2271 Remove header drawing code.
2272 Use new chooser method to paint the chooser.
2273 Use new chooser itemcount method.
2274 (scroll_common): Rename to view::scroll.
2275 Scroll the header window separately.
2276 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2277 (listview_proc): Look for header messages.
2278 (note_width): Accept stringless calls.
2279 (pick_line::set_line): Remove.
2280 (pick_line::paint): Remove.
2281 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2282 (pick_category_line::paint): Paint this category, and anything in the bucket.
2283 (pick_line::click): Remove.
2284 (pick_pkg_line::click): Handle a click.
2285 (pick_category_line::click): Handle a click.
2286 (_view): Rename all to view.
2287 (view::view): Initialise the control contents.
2288 (view::set_headers): Work with the header control.
2289 (view::init_headers): Use list syntax for package list.
2290 Rearrange the width logic a little.
2291 (view::insert_pkg): Update to use the hierarchy.
2292 (view::insert_category): Ditto.
2293 (view::insert_at, view::insert_under): Remove.
2294 (view::clear_view): Update to use the hierarchy.
2295 (view::click): Update to use the hierarchy.
2296 (set_view_mode): Use list syntax for package list.
2297 Update for new chooser methods.
2298 (DoInsertItem): New helper function. (Needs a home somewhere).
2299 (create_listview): Remove choose control code and use the constructor instead.
2300 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2301 * choose.h: Include newly required headers list and package_meta.
2302 (_voew): Rename to view.
2303 (pick_line): Convert to an ABC.
2304 (pick_pkg_line): New class.
2305 (pick_catgory_line): New class.
2306 (topbucket): New class.
2307 (view::scroll): New method created from listview_scroll function.
2308 * desktop.cc (make_passwd_group): Use list syntax for package list.
2309 * download.cc (do_download): Use list syntax for package list.
2310 * fromcwd.cc (found_file): Use list syntax for package list.
2311 * iniparse.y (pacakges): Use list syntax for package list.
2312 * install.cc (uninstall_one): Use list syntax for package list.
2313 (do_install): Use list syntax for package list.
2314 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2315 Prevent inaccurate synthetic copy and assignment.
2316 * list.h: Include required header stdlib.
2317 Work on const correctness.
2318 * package_db.cc (packagedb::getpackagebyname): Remove.
2319 (packagedb::packagedb): Remove custom list code, and make db a local.
2320 (packagedb::getfirstpackage): Remove.
2321 (packagedb::getnextpackage): Remove.
2322 (packagedb::addpackage): Remove.
2323 (flush): Remove custom list code.
2324 (packagedb::registerpackage): Remove.
2325 (packagedb::packages): New static member.
2326 (packagedb::task): New static member.
2327 * package_db.h (PackageDBActions): New enum.
2328 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2329 addpackage, registerpackage, packages, packagecount, curr_package, db.
2331 * pacakge_meta.cc: Include package_db.h.
2332 (packagemeta::action_caption): New method.
2333 (packagemeta::set_action): New method.
2334 * package_meta.h (CategoryPackage): Initialise key.
2335 (packagemeta): Initialise key.
2336 Add set_action and action_caption methods.
2337 Prevent inaccurate synthetic copy and assignment.
2338 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2339 * source.cc: Include package_db for db manipulation.
2340 (save_dialog): Set the db task.
2341 * win32.h: Tell the w32 include headers what IE version to expect/require.
2343 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2345 * README: Wishlist updates.
2347 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2349 * package_db.cc (getnextpackage): Don't overrun the array.
2351 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2353 * Makefile.in (OBJS): Add setup_version.o.
2354 (version.c): Rename to setup_version.
2355 * choose.cc (set_action): Prevent NULL pointer dereference.
2356 (package_sort): Remove.
2357 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2358 (check_ini): New function for use with find to see if there is a cached setup.ini.
2359 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2360 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2361 (do_local_ini): New function, drives parsing of local ini's.
2362 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2363 (do_ini): Move guts to do_remote_ini and do_local_ini.
2364 * list.h (removebyindex): New method.
2365 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2366 new site to the site picklist.
2367 (dialog_cmd): Only save the dialog when exiting the dialog.
2368 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2369 * site.cc (site_list_type): Move to site.h
2370 (site_list): New global, sites chosen by the user.
2371 (all_site_list): New global, all potential sites.
2372 (site_list_type::init): New method, parses a mirror.lst URL string into a
2373 site_list_type object.
2374 (site_list_type::site_list_type): New method.
2375 (check_if_enable_next): Examine the control, not a local variable.
2376 (load_dialog): Select all the user chosen sites by default.
2377 (save_dialog): Adjust for multiple selection semantics.
2378 (save_site_url): Save all user chosen sites.
2379 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2381 Remove obsolete other_url reference.
2382 (dialog_proc): Use all_site_list instead of site_list.
2383 (site_sort): Remove.
2384 (get_site_list): Remove malloc use - use list template instead.
2385 Move site_list_type initialisation to site_list_type::init().
2386 (get_initial_list_idx): Renamed to ...
2387 (get_saved_sites): this. Also read in multiple sites to the site_list.
2388 (do_site): Use all_site_list not site_list.
2389 Log all chosen sites.
2390 * site.h: New file, defines site related class, functions and variables.
2391 * state.h: Add comment about use of state.h
2392 (mirror_site): Remove.
2393 (other_url): Remove.
2394 (MIRROR_SITE): Remove.
2395 * version.cc: New file, for version-handling and related functions.
2397 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2399 * Makefile.in: Add filemanip.o to setup.
2400 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2401 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2402 (archive_tar): Ditto.
2403 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2405 (_view::init_headers): Ditto.
2406 (_view::insert_pkg): Ditto.
2407 (set_view_mode): Ditto.
2410 (base): Moved to filemanip.cc.
2411 (find_tar_ext): Ditto.
2412 (parse_filename): Ditto.
2413 (_Info::_Info): Remove.
2414 * compress_bz.h (compress_bz): Implement get_size virtual.
2415 * compress_gz.h (compress_gz): Implement get_size virtual.
2416 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2417 * download.cc (get_file_size): Move to filemanip.cc.
2418 (check_for_cached): Use [] operator instead of getnth - its more readable.
2419 (download_one): Ditto.
2420 * filemanip.cc: New file.
2421 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2422 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2423 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2424 * geturl.h: Declare new prototype.
2425 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2426 Tidy up the error code a little.
2427 * ini.h: Remove __cplusplus protection for ini_init.
2429 * inilex.l: Remove old globals.
2430 (ini_init): Use an io_stream for getting the characters.
2431 (ini_getchar): Ditto.
2432 * iniparse.y: Declare yylex as a C++ function.
2433 (add_correct_version): Use [] operator instead of getnth - its more readable.
2434 * io_stream.cc (io_stream::move_copy): Use the copy method.
2435 (io_stream::copy): New method to simply copy from one stream to another.
2436 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2437 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2438 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2439 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2440 * io_stream_file.h (io_stream_file::get_size): Declare this.
2441 * io_stream_memory.h: Include errno as it's neded to parse the header.
2442 (io_stream_memory::get_size): Implement this.
2443 (io_stream_memory::st_size): Delete this.
2444 * list.h: Change getnth into the [] operator.
2445 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2446 (NetIO::set_url): Ditto.
2447 (NetIO::open): Ditto.
2448 * netio.h: As for netio.cc.
2449 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2451 * nio-file.h: Ditto.
2452 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2453 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2454 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2455 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2456 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2457 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2458 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2459 * package_source.cc (packagesource::set_canonical): Ditto.
2460 (packagesource::set_cached): Ditto.
2461 * package_source.h (site::~site): Ditto.
2462 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2465 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2467 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2469 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2471 * Makefile.in (OBJS): Remove category_list - it's not needed.
2472 * README: More wishlist updates.
2473 * category.cc (Category::Category): Initialise new members.
2474 (Categorycmp): New function.
2475 * category.h (Category): New member key for template use.
2476 * category_list.cc: Remove.
2477 * category_list.h: Remove.
2478 (Categorycmp): New function prototype.
2479 * choose.cc: Remove category_list - not needed.
2480 (set_action): Only show the 'source' option when the source is actually
2482 (add_required): Fix recursion limiter to 5.
2483 (fill_missing_category): Use list access.
2484 (default_trust): Ditto.
2485 (pick_line::paint): Ditto.
2486 (_view::init_headers): Ditto.
2487 (_view::insert_pkg): Ditto.
2488 (_view::insert_category): Ditto.
2489 (_view::click): Ditto.
2490 (set_view_mode): Ditto.
2492 * cygpackage.h: Remove category_list - not needed.
2493 * geturl.cc (get_url_to_string): Fix null byte insertion.
2494 * inipatse.y: Remove category_list - not needed.
2495 (categories): Use list access.
2496 * package_db.cc: Ditto.
2497 * package_db.h: Remove category_list - not needed.
2498 (packagedb): Use the list template for categories.
2499 * package_meta.cc (add_category): Ditto.
2500 * package_meta.h (CategoryPackage): Link to the category as well.
2501 (packagemeta): Use a list of CategoryPackages instead of Categories
2502 for more memory efficient cross-referencing.
2504 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2506 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2507 irrespective of the media they were installed from.
2509 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2511 * Makefile.in (OBJS): Add package_source and rfc1738.
2512 * README: Wishlist update.
2513 * category_list.cc (register_category): Use references.
2514 * category_list.h (CategoryList): Ditto.
2515 * choose.cc (isinstalled): Remove.
2516 (pkgtrustp): New macro.
2517 (set_action): Use packagemeta.
2518 (add_required): Ditto.
2519 (choose_caption): Example package to choose caption, rather than state flags.
2520 (check_existence): Remove.
2521 (set_existence): Remove old code.
2522 (fill_missing_category): Use packagemeta.
2523 (keep_or_skip): Remove.
2524 (default_trust): Use packagemeta and set trust values directly.
2525 (pick_line::set_line): Use packagemeta.
2526 (_view::insert_pkg): Ditto.
2527 (_view::insert_category): Ditto.
2528 (_view::click): Ditto.
2529 (set_view_mode): Ditto. Also remove "exclude" code.
2530 (create_listview): Use packagemeta.
2531 (dialog_cmd): Ditto.
2532 (getpkgbyname): Remove
2533 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2534 (read_installed_db): Remove.
2535 (package_sort): Use packagemeta.
2536 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2537 * choose.h: Use packagemeta.
2538 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2539 (cygpackage::cygpackage): Ditto.
2540 (cygpackage::set_canonical_version): Copy the passed string.
2541 (cygpackage::~cygpackage): Move cleanup code to destroy().
2542 (cygpackage::destroy): New function.
2543 (cygpackage::getfirstfile): Use a separate buffer.
2544 (cygpackage::getnextfile): Ditto.
2545 (cygpackage::Canonical_version): New function.
2546 (cygpackage::set_sdesc): Ditto.
2547 (cygpackage::set_ldesc): Ditto.
2548 * cygpackage.h (cygpackage::Canonical_version): New method.
2549 (cygpackage::set_sdesc): New method.
2550 (cygpackage::set_ldesc): New method.
2551 (cygpackage::SDesc): New method.
2552 (cygpackage::LDesc): New method.
2553 (cygpackage::set_canonical_version): New method.
2554 * desktop.cc: Include packagedb headers.
2555 (make_password_group): Use packagemeta.
2556 * download.cc: Include packagedb headers.
2557 (check_for_cached): New method to find any cached file and fill out the database
2559 (download_one): Take a packagesource, support multiple mirrors.
2560 (do_download): Use packagemeta.
2561 * from cwd.cc: Include packagedb headers.
2562 (found_file): Use packagemeta.
2563 * ini.cc (do_ini): Beginning of multiple-mirror support.
2564 * ini.h (CategoryPackage): Remove.
2565 (Dependency): Remove.
2567 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2568 * inilex.l: Support multiple mirrors.
2569 * iniparse.y: Include packagedb headers.
2570 (parser): Use packagemeta.
2571 (new_package): Remove.
2572 (add_correct_version): New function.
2573 (new_requirement): Remove.
2574 (add_category): Remove.
2575 * install.cc (uninstall_one): Use packagemeta.
2576 (install_one_source): New function.
2577 (install_one): Use packagemeta.
2578 (do_install): Use packagemeta.
2579 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2580 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2581 after setting the mtime, it makes no sense, and results in 0 length files.
2582 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2583 * list.h: New file, template class for a form of list.
2584 * package_db.cc (packagedb::registerpackage): New function.
2585 * package_db.h (packagedb::npackages ()): New method.
2586 * package_meta.cc (packagemeta::add_version): Use list template.
2587 (packagemeta::set_installed): Ditto.
2588 (packagemeta::add_category): New method.
2589 * package_meta.h: Include necessary headers to parse the class.
2590 (CategoryPackage): New class.
2591 (packagemeta): Initialise all members.
2592 (packagemeta::SDesc): New method.
2593 (packagemeta::Categories): New method.
2594 (packagemeta::add_category): Ditto.
2595 (packagemeta::versions): Change to be a list instance.
2596 * package_source.cc (packagesource::set_canonical): New method.
2597 (packagesource::set_cached): New method.
2598 * package_source.h: Include necessary headers to parse the class.
2600 (packagesource::packagesource): Initialize all members.
2601 (packagesource): Make this class non-abstract.
2602 * package_version.cc (packageversion::packageversion): New method.
2603 * package_version.h (Dependency): New class.
2604 (packageversion::Canonical_vesion): New method.
2605 (packageversion::SDesc): New method.
2606 (packageversion::LDesc): New method.
2607 (packageversion::new_requirement): Ditto.
2608 (packageversion::srcpicked, binpicked): What to install.
2609 (packageversion::src, bin): Installation source data.
2610 * rfc1738.cc: New file. Escapes special characters in URL's.
2613 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2615 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2616 SimpleSocket::gets() returns a zero-length string, so that we
2617 don't end up eating the entire stream thinking it's all header info.
2619 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2621 * install.cc (badrename): Remove.
2622 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2623 * io_stream.cc (io_stream::move_copy): New method.
2624 (io_stream::move): New method.
2625 * io_stream.h (io_stream): New methods move and move_copy.
2626 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2627 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2628 * io_stream_file.cc (io_stream_file::move): New method.
2629 * io_stream_file.h (io_stream_file): New method move.
2630 * package_db.cc (packagedb::flush): New method.
2631 * package_db.h (packagedb): New method flush.
2633 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2635 * Makefile.in (OBJS): Add package_version.
2636 * ategory.cc (Category::Category): Update constructors.
2637 * category_list.cc (CategoryList::register_category): Insert correctly.
2638 * choose.cc: Include package_version.h, not package.h.
2639 * cygpackage.cc: Ditto.
2640 (cygpackage::uninstall): New method.
2641 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2642 New method uninstall.
2643 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2644 * hash.h (hash): Change prototypes to be accurate.
2645 * ini.h (_Info): New parameterless constructor.
2646 (CategoryPackage): New constructor.
2648 * install.cc: Don't include unneeded headers.
2649 Include package database headers.
2650 (hash::add_subdirs): Remove.
2651 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2652 Don't uninstall source packages.
2653 (do_install): Just can uninstall_one once as we ignore source packages now.
2654 Don't copy the installed.old database accross, instead iterate through the
2655 packagedb packages list and write the isntalled packages out.
2656 * package_db.cc: Include package_version.h, not package.h.
2657 (packagedb::packagedb): Never let db be undefined.
2658 Record the installation filename, so we can reconstruct installed.db.
2659 (packagedb::addpackage): Insert packages in alpha sorted order.
2660 (packagedb::categories): Initialise correctly.
2661 * package_meta.cc: Include win32 and mount headers as a workaround to
2662 current io_stream limitations. Include a TODO about that.
2663 (standard_dirs): New, from install.cc.
2664 (hash::add_subdirs): New, from install.cc.
2665 (packagemeta::set_installed): Rename genericpackage to packageversion.
2666 (packagemeta::uninstall): New method.
2667 * package_meta.h: Rename genericpackage to packageversion.
2668 (packagemeta): Update constructor.
2669 (add_version, set_installed): Rename genericpackage to packageversion.
2670 (uninstall): New method.
2671 (installed_from): New member.
2672 * package_source.cc: New file.
2673 * package_source.h: New file.
2674 * package_version.cc: New file.
2675 * package_version.h: New file.
2676 * package.cc: Removed.
2677 * package.h: Removed.
2679 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2681 * Makefile.in (OBJS): Add category.o and category_list.o.
2682 * category.h: New file.
2683 * category.cc: New file.
2684 * category_list.h: New file.
2685 * category_list.cc: New file.
2686 * choose.cc: Include category headers.
2687 (fill_missing_category): Use package_db to access global categories.
2688 (_view::insert_pkg): Ditto.
2689 (_view::insert_category): Ditto.
2690 (set_view_mode): Ditto.
2691 (getcategorybyname): Remove.
2692 * cygpackage.h: Include category_list.h to parse this correctly.
2693 (cygpackage): New virtual &Categories.
2694 * ini.h (_CategoryPackage): More C to C++ conversion.
2696 (getcategorybyname): Remove.
2697 (register_category): Remove.
2698 * iniparse.y: Include package db and category headers.
2699 (categories): Use package_db to access global categories.
2701 (ncategories): Remove.
2702 (register_category): Remove.
2703 * package.h: New virtual &Categories.
2704 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2705 (packagedb::categories): Declare.
2706 * package_db.h (packagedb): New member categories for global categories list.
2708 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2710 * choose.h: Don't include ini.h
2711 * ini.h: Allow pure c++ in the header file.
2713 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2715 * install.cc (do_install): Write a version 2 installed.db file.
2716 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2718 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2720 * Makefile.in (OBJS): Add package abstraction objects.
2721 * choose.cc: Include package abstraction headers.
2722 (read_installed_db): Use packagedb class and ignore installed sources.
2723 * cygpackage.cc: New file.
2724 * cygpackage.h: New file.
2725 * filemanip.h (get_file_size): Use unixy types.
2726 * package.h: New file.
2727 * package.cc: New file.
2728 * package_db.cc: New file.
2729 * package_db.h: New file.
2730 * package_meta.cc: New file.
2731 * package_meta.h: New file.
2733 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2735 * REAME: Updates to wishlist.
2737 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2739 * README: Updated and added my list of wishlist and todo items.
2741 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
2743 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2744 * archive_tar.cc (archive_tar::write): New prototype.
2745 (archive_tar::seek): New method.
2746 * archive.h (archive_tar_file): Update write() and add seek().
2747 (archive_tar): Ditto.
2748 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2749 (archive_tar_file::seek): New method.
2750 * compress_bz.cc (compress_bz::write): New prototype.
2751 (compress_bz::seek): New function.
2752 * compress_bz.h (compress_bz): Update write() and add seek().
2753 * compress_gz.cc (compress_gz::write): New prototype.
2754 (compress_gz::seek): New function.
2755 * compress_gz.h (compress_gz): Update write() and add seek().
2756 * geturl.cc: Include io_stream headers.
2758 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
2759 * io_stream.h (io_stream_seek_t): New enum.
2760 (io_stream): Update write() and add seek().
2761 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
2762 (io_stream_cygfile::seek): New function.
2763 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
2764 * io_stream_file.cc (io_stream_file::write): New prototype.
2765 (io_stream_file::seek): New function.
2766 * io_stream_file.h (io_stream_file): Update write() and add seek().
2768 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
2770 * localdir.cc: Add headers unistd.h and port.h.
2771 (save_local_dir): Expand search logic to include local directory for
2772 location of file last-cache.
2773 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
2774 (do_local_dir): Expand search logic to include local directory for file
2776 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
2777 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2779 (do_source): Default to Install from Internet on first entry or
2780 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
2782 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2784 * choose.cc (find_tar_ext): Only match at the end of the string.
2785 (getpkgbyname): Prevent NULL pointer dereference.
2787 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
2789 * Makefile.in (CFLAGS): Add warnings and -Werr.
2790 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
2791 (OBJS): Add io_stream class' objects.
2792 (autoload.o): Use WARNONLY_FLAGS.
2794 (iniparse.o): Ditto.
2795 * archive.cc: New file.
2796 * archive.h: New file.
2797 * archive_tar.cc: New file.
2798 * archive_tar.h: New file.
2799 * archive_tar_file.cc: New file.
2800 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
2801 * choose.cc: Use io_stream.h, not mount.h.
2803 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
2804 (read_installed_db): Use io_streams.
2805 * choose.h: Run indent.
2806 * compress.cc: New file.
2807 * compress.h: New file.
2808 * compress_bz.cc: New file.
2809 * compress_bz.h: New file.
2810 * compress_gz.cc: New file.
2811 * compress_gz.h: New file.
2812 * concat.cc: Run indent.
2813 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2814 * concat.h: Run indent.
2815 * desktop.cc: Run indent.
2816 Include mklink2.h rather than redefining by hand.
2817 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2818 (etc_profile): Fix compiler warning (deprecated conversion).
2819 (make_link): Fix compiler warning (deprecated conversion).
2820 Tidy up use of args variable - consolidate into argbuf.
2821 (start_menu): Fix compiler warning (deprecated conversion).
2822 (desktop_icon): Fix compiler warning (deprecated conversion).
2823 (make_etc_profile): Fix compiler warning (deprecated conversion).
2824 (uexists): Fix compiler warning (deprecated conversion).
2825 (check_desktop): Fix compiler warning (deprecated conversion).
2826 (check_startmenu): Fix compiler warning (deprecated conversion).
2827 * dialog.cc: Run indent.
2828 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2829 (fatal): Fix compiler warning (deprecated conversion).
2830 * dialog.h: Run indent.
2831 * diskfull.cc: Run indent.
2832 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2833 * download.cc: Run indent.
2834 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2835 (download_one): Fix compiler warning (signed vs unsigned comparison).
2836 * filemanip.h: Run indent.
2837 * find.cc: Run indent.
2838 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2839 (find): Fix compiler warning (deprecated conversion).
2840 * find.h: Run indent.
2841 * fromcwd.cc: Run indent.
2842 * geturl.cc: Run indent.
2843 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2844 (dialog_cmd): Return a value.
2845 (dialog_proc): Remove unused variables.
2847 (get_url_to_file): Fix compiler warning (deprecated conversion).
2848 * geturl.h: Run indent.
2849 * hash.cc: Run indent.
2850 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2851 * hash.h: Run indent.
2852 * ini.cc: Run indent.
2854 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2855 (do_ini): Use io_streams for local io.
2856 * ini.h: Run indent.
2857 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
2858 Fix compiler warning (brackets for truth assignment).
2859 * install.cc: Run indent.
2860 Fix compiler warning (/* in comment).
2862 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2863 (dialog_cmd): Return a value.
2864 (dialog_proc): Return a value.
2865 (start_tics): Deleted - was unused.
2866 (badrename): Fix compiler warnings (unused, deprecated conversion).
2867 (standard_dirs): Fix compiler warning (deprecated conversion).
2869 (uninstall_one): Convert to io_streams.
2870 (install_one): Convert to io_streams.
2871 (do_install): Convert to io_streans.
2872 Fix compiler warning (deprecated conversion).
2873 * io_stream.cc: New file.
2874 * io_stream.h: New file.
2875 * io_stream_cygfile.cc: New file.
2876 * io_stream_cygfile.h: New file.
2877 * io_stream_file.cc: New file.
2878 * io_stream_file.h: New file.
2879 * localdir.cc: Run indent.
2881 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2882 (get_root_dir_now): Remove.
2883 (save_local_dir): Convert to io_streams.
2884 (dialog_cmd): Return a value.
2885 (do_local_dir): Convert to io_streams.
2886 (log.cc): Run indent.
2887 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2888 (log): Fix compiler warning (deprecated conversion).
2889 (log_save): Fix compiler warning (deprecated conversion).
2890 * log.h: Run indent.
2891 (log): Fix compiler warning (deprecated conversion).
2892 (log_save): Fix compiler warning (deprecated conversion).
2893 * main.cc: Run indent.
2894 Don't include "netio.h".
2895 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2896 (netio_test): Remove.
2897 (sid_auth): Fix compiler warning (partially bracketed initialiser).
2898 (WinMain): Return a value.
2899 * mkdir.cc: Run indent.
2900 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2901 * mklink2.c: Run indent.
2902 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2903 (mkcygsymlink): New function.
2904 * mklink2.h: New file.
2905 * mount.cc: Run indent.
2906 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2907 (create_mount): Remove unused variables.
2908 (cygpath): Fix compiler warning (signed vs unsigned comparison).
2909 * mount.h: Run indent.
2910 * msg.cc: Run indent.
2911 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2912 (msg): Fix compiler warning (deprecated conversion).
2913 (mbox): Fix compiler warning (deprecated conversion).
2914 * msg.h: Run indent.
2915 (msg): Fix compiler warning (deprecated conversion).
2916 * net.cc: Run indent.
2917 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2918 (dialog_cmd): Return a value.
2919 * netio.cc: Run indent.
2920 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2921 (auth_cmd): Return a value.
2922 * netio.h: Run indent.
2923 * nio-file.cc: Run indent.
2924 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2925 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
2926 * nio-file.h: Run indent.
2927 * nio-ftp.cc: Run indent.
2928 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2929 * nio-ftp.h: Run indent.
2930 * nio-http.cc: Run indent.
2931 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2932 * nio-http.h: Run indent.
2933 * nio-ie5.cc: Run indent.
2934 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2935 * nio-ie5.h: Run indent.
2936 * other.cc: Run indent.
2937 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2938 (dialog_cmd): Return a value.
2939 * port.h: Run indent.
2940 * postinstall.cc: Run indent.
2941 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2942 (cmd): Fix compiler warning (deprecated conversion).
2943 (eun): Fix compiler warning (deprecated conversion).
2944 * root.cc: Run indent.
2945 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2946 * simpsock.cc: Run indent.
2947 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2948 * simpsock.h: Run indent.
2949 * site.cc: Run indent.
2951 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2952 (get_root_dir_now): Remove.
2953 (save_site_url): Convert to io_streams.
2954 (dialog_cmd): Return 0.
2955 (get_initial_list_idx): Convert to io_streans.
2956 * source.cc: Run indent.
2957 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2958 (check_if_enable_next): Remove.
2959 (load_dialog): Remove unused variables.
2960 (save_dialog): Ditto.
2961 (dialog_cmd): Return a value.
2962 * splash.cc: Return a value.
2963 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2964 (dialog_cmd): Return a value.
2965 * state.cc: Run indent.
2966 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2967 * state.h: Run indent.
2971 2001-11-12 Christopher Faylor <cgf@redhat.com>
2973 * desktop.cc (start_menu): Change start menu name to "Cygwin".
2974 (check_startmenu): Ditto.
2976 2001-11-11 Christopher Faylor <cgf@redhat.com>
2978 * choose.cc (parse_filename): Finish reorganization by correctly
2979 decrementing p in memmove.
2981 2001-11-11 Christopher Faylor <cgf@redhat.com>
2983 * choose.cc (parse_filename): Reorganize code to work around gcc
2984 optimization problem.
2986 2001-11-09 Gareth Pearce <tilps@hotmail.com>
2988 * choose.cc (set_action): Allow skip as an option for installed
2989 packages that have version number not listed in setup.ini.
2991 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2993 * choose.cc (set_cation): Backout last change.
2994 (choose_caption): Ditto.
2996 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2998 * ini.h (actions): Remove - transferred to choose.h.
3000 * choose.h: Protect class's from "C" compilers.
3001 (actions): New enum, from ini.h. This may not be the 'right' place
3002 but that place doesn't exist yet.
3003 (_views): New enum, from ini.h.
3004 * choose.cc (set_action): Handle installed packages with a version not in
3006 (choose_caption): Ditto.
3007 * iniparse.y: Rearrange header order to handle new ini.h.
3009 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3011 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3012 (registry_category): Fix compiler warning (deprecated conversion).
3013 * iniparse.y (registry_category): Ditto.
3014 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3015 (add_requried): Remove unused variable.
3016 (choose_caption): Handle all enumeration values via a default.
3017 (paint): Fix compiler warnings (unused, deprecated conversion).
3018 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3019 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3020 (note_width): Fix compiler warnings (deprecated conversion).
3021 (keep_or_skip): Fix compiler warnings (unused).
3022 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3023 (set_view_mode): Fix compiler warnings (unused).
3024 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3026 (dialog_proc): Fix compiler warnings (unused).
3027 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3028 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3031 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3033 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3034 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3035 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3036 memory for buf in the constructor.
3037 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3038 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3039 (SimpleSocket::write): Check object consistency - return -1 on error.
3040 invalidate() the object on socket write error.
3041 (SimpleSocket::fill): Check object consistency - return -1 on error.
3042 invalidate() the object if socket read error is encountered and there
3043 is no more data available in the internal read buffer.
3044 Allocate memory for the internal read buffer.
3045 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3046 during fill() and no more data is available in the internal read buffer.
3047 (SimpleSocket::read): Check object consistency - return -1 on error.
3048 invalidate() the object if socket read error is encountered.
3049 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3050 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3051 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3052 (NetIO_FTP::read): Use NetIO_FTP::ok().
3053 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3054 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3056 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3058 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3059 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3060 (SimpleSocket::printf): Ditto.
3061 (SimpleSocket::write): Ditto.
3062 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3064 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3065 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3066 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3068 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3070 * geturl.cc (get_url_to_string): clean up memory leak
3071 (get_url_to_file): ditto
3073 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3075 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3076 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3078 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3080 * fromcwd.cc (found_file): Free() memory containing the version and
3081 filepath information for a given package, before replacing the pointers which
3082 reference this memory.
3084 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3086 * fromcwd: Fix compiler warnings for cvsid.
3087 (canonicalize_version): Fix compilter warnings.
3088 (do_fromcwd): Ditto.
3089 * version.h: Fix compiler warnings for canonicalize_version.
3091 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3093 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3095 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3097 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3099 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3101 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3103 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3105 * choose.cc (default_trust): Change the "Required" forced install category to
3108 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3110 * choose.cc: Ran indent.
3111 (set_action): When the requested trust level is missing and the level was not
3112 user requested, set the action to ACTION_SAME_CURR.
3114 2001-11-01 Christopher Faylor <cgf@redhat.com>
3116 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3118 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3120 * choose.cc (_view::init_headers): Resync with the paint logic.
3122 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3124 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3127 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3129 * choose.cc (default_trust): Autoset currently installed packages per the user's
3130 selection of prev/curr/exp.
3132 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3134 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3136 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3138 * geturl.cc (is_showing): Remove.
3139 (is_local_install): New static variable. Controls whether the
3140 progress dialog and the supporting thread will be created.
3141 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3142 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3143 This prevents the progress dialog to gain control over the
3144 application and fixes the "setup.exe going to background" problem.
3145 (progress): Use is_local_install.
3146 (get_url_to_string): Set is_local_install.
3147 (dismiss_url_status_dialog): Use is_local_install.
3148 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3149 (init_dialog): Remove usage of SetForegroundWindow.
3150 This prevents the progress dialog to gain control over the
3151 application and fixes the "setup.exe going to background" problem.
3153 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3155 * choose.cc (list_click): Change r to row for clarity.
3156 When we shrink the list below 1 page, scroll to the top of the list.
3157 (_view::click): Return the actual change for contractions.
3158 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3160 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3162 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3163 * localdir.cc: Ran indent.
3164 (get_root_dir_now): New function.
3165 (save_local_dir): New function.
3166 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3167 (do_local_dir): If there is a saved local dir, read it in.
3168 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3169 * root.cc (dialog_cmd): Ditto.
3170 * source.cc (dialog_cmd): Ditto.
3172 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3174 * choose.cc(list_vscroll): Return 0 as required by win32.
3175 (list_hscroll): Ditto.
3176 (list_click): Ditto.
3178 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3182 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3183 * Makefile,in: Remove argv.o.
3185 2001-11-01 Matt Hargett <matt@use.net>
3187 * geturl.cc (progress): Change int to unsigned int to eliminate
3189 * (get_url_to_string): Check for NULL pointer.
3190 * mount.cc (find2): Use free instead of delete for malloc'd
3192 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3194 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3196 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3197 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3198 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3199 Reported by Matt (matt@usa.net).
3200 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3201 confusion and lint errors. Reported by Matt (matt@usa.net).
3203 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3205 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3208 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3209 Add mingw_getopt.o build rule.
3210 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3212 2001-10-27 Christopher Faylor <cgf@redhat.com>
3214 * res.rc: Rearrange info on top line slightly.
3216 2001-10-27 Christopher Faylor <cgf@redhat.com>
3218 * desktop.cc (make_passwd_group): Move file creation earlier in the
3219 process to ensure that passwd-grp.bat reflects desired operation.
3221 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3223 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3225 2001-10-16 Christopher Faylor <cgf@redhat.com>
3227 * res.rc: Oops. Take 640x480 screen size into account.
3229 2001-10-16 Christopher Faylor <cgf@redhat.com>
3231 * res.rc: Enlarge chooser screen.
3233 2001-10-12 Christopher Faylor <cgf@redhat.com>
3235 * Makefile.in: Accomodate changes to w32api_include macro.
3237 2001-10-12 Christopher Faylor <cgf@redhat.com>
3239 * Makefile.in: Use correct flags for windres.
3241 2001-10-12 Christopher Faylor <cgf@redhat.com>
3243 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3245 2001-10-12 Christopher Faylor <cgf@redhat.com>
3247 * choose.cc (pick_line::paint): Reorganize after botched patch.
3249 2001-10-12 Christopher Faylor <cgf@redhat.com>
3251 * choose.cc (pick_line::paint): Add missing declaration.
3253 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3255 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3257 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3259 * choose.cc (_view::insert_pkg): Correctly exit loop.
3260 * iniparse.y (register_category): Always insert new categories.
3262 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3264 * inilex.l (yylex): For comments, eat all characters up to, but not
3267 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3269 * fromcwd.cc (found_file): Use correct package name when adding an
3270 unknown package rather than random stack garbage.
3272 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3274 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3276 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3278 * desktop.cc (etc_profile): Leave environment variables untouched.
3280 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3282 * autoload.c: Add dynamic load statements for NT/W2K
3283 advapi32 functions not available in 9x/ME.
3284 * main.cc (set_default_dacl): New function.
3285 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3287 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3289 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3291 * choose.cc: Use pkgname field when referencing _CategoryPackage
3293 (fill_missing_category): Don't add excluded packages.
3294 (default_trust): Ditto.
3295 (_view::insert_pkg): Ditto.
3296 * iniparse.y (register_category): Use consistent variable name.
3298 2001-07-09 Egor Duda <deo@logos-m.ru>
3300 * choose.cc: Use system foreground color for text output.
3302 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3304 * choose.cc (set_action): Use default trust for determining reinstall
3306 (default_trust): Set default trust.
3307 (pick_line::paint): Allow source selection when reinstalling or
3310 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3312 * choose.cc (isinstalled): Modify to properly accomodate special case
3314 (set_action): Check downloaded components, not installed components if
3316 (set_existence): Always include full list of files when "download
3319 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3321 * choose.cc (pick_line::paint): Properly display "na" field when no
3324 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3326 * choose.cc (scan2): Ensure that older versions do not show up in
3329 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3331 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3332 * res.rc: Fix copyright.
3334 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3336 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3338 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3340 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3341 (paint): Wrap some excessively long lines.
3342 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3343 right to where it belongs. Move the source checkbox slightly to the
3345 (do_choose): List categories and required packages in setup.log.full.
3347 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3349 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3351 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3353 * ini.h (struct _Info): Add "derived" element.
3354 * choose.cc (scan2): Try to place unknown tar files into proper slot
3355 when package exists in setup.ini but tar file does not.
3357 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3359 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3360 (do_choose): Log the first category name.
3362 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3364 *ini.h: Reapply 2001-06-25 changes.
3365 * choose.cc (add_required): Ditto. Default to "Keep" state if
3366 UNINSTALL and product is installed. Default to curr state if SKIP,
3368 (keep_or_skip): New function. Returns skip or keep state depending on
3369 installed state of package.
3370 (default_trust): Use keep_or_skip to set state.
3371 (_view::insert_pkg): Use calloc to allocate lines.
3372 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3374 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3376 * choose.cc: Remove globals full_list, headers, package_indexes and
3378 Add globals cat_headers, pkg_headers and chooser.
3379 (add_required): New function.
3380 (paint): Use the chooser for header details.
3381 Call into the chooser to paint each line.
3382 (list_click): Use new global variables.
3383 Call into the chooser to handle the click.
3384 Repaint the entire view if packages have been added or removed.
3385 (note_width): Get passed a headers struct rather than using a global
3387 (fill_missing_category): New function.
3388 (default_trust): Skip non-"Required" or "Misc" packages.
3389 (pick_line::set_line (Package *)): New function.
3390 (pick_line::set_line (Category *)): New function.
3391 (pick_line::paint): New function.
3392 (pick_line::click): New function.
3393 (_view::_view): New function.
3394 (_view::set_view_mode): New function.
3395 (_view::mode_caption): New function.
3396 (_view::set_headers): New function.
3397 (_view::init_header): New function.
3398 (_view::insert_pkg): New function.
3399 (_view::insert_category): New function.
3400 (_view::insert_at): New function.
3401 (_view::insert_under): New function.
3402 (_view::clear_view): New function.
3403 (viewsplusplus): New function.
3404 (_view::client): New function.
3405 (set_view_mode): Use new chooser functionality.
3406 (set_full_list): Use new global variables.
3407 (create_listview): Instantiate chooser.
3408 Remove all hardcoded headers[] code.
3409 (dialog_cmd): On trust changes, check dependencies.
3410 (getcategorybyname): New function.
3411 (getpackagecategorybyname): New function.
3412 (scan2): Use case-insensitive package comparison.
3413 (do_choose): Use fill_missing_category ().
3414 Show some category data.
3415 * ini.h: Protect against multiple inclusion.
3417 (_CategoryPackage): New struct.
3418 (_Category): New struct.
3419 (_Package): Change category to Category * from char *.
3420 (extern Category category): New global variable.
3421 (extern in ncategories): Ditto.
3422 (getcategorybyname): New prototype.
3423 (catpackagecategorybyname): New prototype.
3424 (register_category): New prototype.
3425 (add_category): New prototype.
3426 * iniparse.y: Parse multiple categories per package.
3427 (category): New global variable.
3428 (ncategories): New global variable.
3429 (new_package): Compare package against NULL, not 0.
3430 (new_requirement): Source formatting fix.
3431 (register_category): New function.
3432 (add_category): New function.
3433 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3434 IDC_CHOOSE_VIEWCAPTION: New control.
3435 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3436 IDC_CHOOSE_VIEWCAPTION: New control.
3437 Increment _APS_NEXT_CONTROL_VALUE.
3439 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3441 * choose.cc (paint): Wrap excessively long lines.
3442 (list_click): Ditto.
3443 (create_listview): Ditto.
3444 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3445 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3446 installing from local directories.
3448 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3450 * choose.cc (set_action): Only clear srcpicked when moving to next
3451 state. Allow source installation if it exists in the current "trust"
3452 state. Don't move to skip state when package is installed.
3453 (list_click): Don't allow source clicking when no source is available.
3454 (set_full_list): Display package when not is_full_action.
3455 * ini.h (is_full_action): Define.
3457 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3459 * install.cc (check_for_old_cygwin): New function. First stab at
3460 checking for old cygwin versions.
3461 (do_install): Call check_for_old_cygwin if there were no errors during
3464 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3466 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3467 than zeroed "source" element.
3469 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3471 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3472 the highest available "hole" in the trust array.
3474 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3476 * choose.cc (set_existence): Use pointer method for indexing in trust
3478 (create_listview): Ditto.
3479 (scan2): Ditto. Also, use consistent variable name for indexing into
3481 * ini.h (Package): Reorganize info array for easier scanning.
3483 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3485 * choose.cc (isinstalled): Eliminate special download only test.
3486 (set_action): Don't move to next state if in ACTION_SAME range and not
3488 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3490 (do_choose): Sort packages after all packages have been read.
3491 Accomodate the fact that first element in trust array is empty so that
3492 log files don't report the wrong trust value.
3493 * iniparse.y (new_package): Malloc space for package name or suffer
3496 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3498 * ini.h (Dependency): New structure. Declare new function.
3499 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3500 * iniparse.y: Declare new setup.ini token values.
3501 (yyparse): Parse new token values.
3502 (new_requirement): New function.
3504 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3506 * choose.cc (read_installed_db): Eliminate obsolete code.
3508 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3510 * choose.cc (set_action): Set trust on "redo".
3511 (_Info::_Info): New constructor.
3512 (read_installed_db): Use new constructor. Use trusts type for
3514 * ini.h (struct _Info): Label struct, add constructor.
3515 (Package): Make installed_ix a type 'trusts.'
3516 * install.cc (uninstall_one): Unset any installed info for current
3518 (install_one): Allocate new Info struct for installed reflecting new
3520 (do_install): Don't output line to installed.db if package is being
3523 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3525 * choose.cc (getpkgbyname): Use consistent method for scanning package
3528 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3530 * choose.cc: Add some comments.
3531 (getpkgbyname): Use strcasecmp for comparisons.
3533 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3535 * install.cc (do_install): Avoid checking for download action if
3536 package wasn't currently retrieved.
3538 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3540 * choose.cc: Eliminate extra array throughout. Use element in package
3541 structure instead. Use pointers rather than array indexes where
3543 (set_action): New function to set next action based on current.
3544 (choose_caption): New function. Returns display caption.
3545 (check_existence): Change arguments. Use pointer to 'info' structure.
3546 (set_existence): Use pointer rather than array index.
3547 (default_trust): Use trusts enum for second argument.
3548 (set_full_list): Honor exclude element in package structure.
3549 (build_labels): Eliminate.
3550 (base): Make global. Use const char * argument.
3551 (get_package_version): Eliminate.
3552 (getpkgbyname): New function.
3553 (read_installed_db): Use parse_filename to get version info.
3554 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3555 * download.cc (get_file_size): const argument.
3556 (do_download): Use is_download_action to determine when something
3557 should be downloaded.
3558 * filemanip.h: Add some functions.
3559 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3560 * ini.h: Use enums for actions and trusts.
3561 (is_download_action): New macro.
3562 (is_upgrade_action): Ditto.
3563 (is_uninstall_action): Ditto.
3564 (struct Package): Add new fields.
3565 * inilex.l (yylex): Detect new setup.ini options.
3566 * iniparse.y: Declare new tokens.
3567 (yyparse): Detect exclude keyword. Fill out version field even if
3569 (new_package): Use greater granularity when allocating package array to
3570 avoid repeated calls to realloc.
3571 * install.cc (exists): const argument.
3572 (uninstall_one): Take pkg argument.
3573 (install_one): Ditto. Eliminate unneeded arguments which can be
3574 derived from package info.
3575 (do_install): Iterate over package array using a pointer. Use
3576 is_download_action to control when package should be downloaded.
3577 * tar.cc (tar_open): const argument.
3578 * tar.h: Refloect const argument.
3580 2001-05-31 Michael Chase mchase@ix.netcom.com
3582 * main.cc (WinMain): Add setup version to starting setup.log entry
3584 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3586 * inilex.l: Add + to list of valid string characters.
3588 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3590 * Makefile.in: Remove more stuff in the clean target.
3592 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3594 * Makefile.in: Correctly generate iniparse.h.
3596 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3598 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3599 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3600 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3601 Set member `ftp_auth'.
3602 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3603 to constructors of derived classes.
3604 (NetIO::get_ftp_auth): New method.
3605 * netio.h: Change class definition accordingly.
3606 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3607 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3608 Add code for ftp authentication retry.
3609 * nio-ftp.h: Change class definition accordingly.
3610 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3611 Add code for ftp authentication retry in case of proxy connection.
3612 * nio-http.h: Change class definition accordingly.
3613 * res.rc: Add FTP authentication dialog.
3614 * resource.h: Add new constants used in res.rc.
3615 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3617 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3619 * res.rc (IDD_SPLASH): Add a copyright year.
3621 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3623 * Makefile.in: Make iniparse.y produce a c++ file.
3624 * choose.cc (set_existence): Revert 2001-05-27 change.
3625 * ini.cc: Remove "C" from declaration of yyparse.
3626 * iniparse.y (yyparse): Fill out version field by default when a binary
3627 install is detected and no version has been set yet.
3628 * install.cc (do_install): Mount things earlier so that we can use
3629 proper mount table settings. Don't remove mounts since they are now
3631 * mount.cc (create_mount): Reread the mount table after establishing a
3633 (read_mounts): Explicitly clear root_here to allow multiple uses of
3634 this function. Ensure that there is no garbage in the table when we've
3635 exhausted all of the mounts in the registry.
3636 (cygpath): Accomodate ./ in path.
3638 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3640 Use parse_filename method to parse filenames throughout. Use
3641 get_root_dir to retrieve the current root directory throughout. Set
3642 const in argument list, where appropriate, throughout.
3643 * choose.cc (set_existence): Detect case of uninstalled package with no
3645 (parse_filename): New function.
3646 * filemanip.h (fileparse): New structure.
3647 * mount.cc (read_mounts): Remember where we found the root mount.
3648 (set_root_dir): New function.
3649 (get_root_dir): Ditto.
3650 * mount.h: Declare new functions.
3651 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3652 (save_site_url): Use new function name.
3653 (get_initial_list_idx): Ditto.
3655 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3657 * choose.cc: Use a constant throughout to deal with chooser icon
3659 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3661 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3663 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3664 use when Redownload or Sources Only selected.
3666 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3668 Reformat file after botched patch formatting.
3669 * choose.cc (which_trust): Eliminate variable.
3670 (default_trust): Don't set which_trust.
3671 (do_choose): Use selected trust when reinstalling or installing source.
3673 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3675 Change concat to cygpath throughout.
3676 Change map_filename to cygpath throughout.
3677 * concat.cc (vconcat): New function.
3678 (concat): Use vconcat.
3679 * concat.h: Reflect above.
3680 * install.cc (map_filename): Eliminate.
3681 (install_one): Free dest_file.
3682 * mount.cc (find2): Expect input key to be pointing to mount record.
3683 (in_table): New function.
3684 (is_admin): Move from root.cc.
3685 (read_mounts): New function.
3686 (path_prefix_p): New function.
3687 (cygpath): New function.
3688 * mount.h: Define new functions and structure.
3689 * root.cc (in_table): Move to mount.cc.
3690 (do_root): Call read_mounts to initialize root stuff and mount table.
3691 * site.cc (get_root_dir): Ditto.
3693 2001-05-09 Matt Hargett <matt@use.net>
3695 * Makefile.in: Remove *.rc from clean.
3697 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3699 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3700 TRUST_PREV which produced "0" versions.
3702 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3704 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3705 _APS_NEXT_CONTROL_VALUE to account for addition of
3706 IDC_CHOOSE_INST_TEXT.
3707 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3708 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3709 hot keys to select Prev, Curr, Exp.
3710 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3711 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3713 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3714 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3715 source Checkbox to use.
3716 (build_labels): Add logic to allow for selection of Source only
3717 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3718 current version binary.
3719 (dialog_proc): Add conditional display for file selection prompt based
3720 on download vs install using IDC_CHOOSE_INST_TEXT.
3721 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3722 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3723 handle the instance where Source Download/Install was selected. Modify
3724 log file to store appropriate information regarding Action selected and
3725 the new actions that were added (I.E.: ACTION_REDO and
3727 * download.cc: Add include for <unistd.h> and "port.h".
3728 (download_one): Modify parameter list to include the selected action
3729 for the file to be downloaded. Modify size check against expected size
3730 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3731 .tmp file to also remove the destination file if exists due to ability
3732 to redownload source and binary now.
3733 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3734 calculation of Download Bytes. Modify to also use ACTION_REDO and
3735 ACTION_SRC_ONLY in determining files selected for download.
3736 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3737 upgrade so current version will be uninstalled prior to reinstall.
3738 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3739 uninstalling and installing binary and source packages.
3740 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3741 only cygwin install when checking for cygwin to determine need for
3742 mkpasswd and mkgroup.
3744 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
3746 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3747 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3748 changes in net.cc and source.cc.
3749 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3750 a default is selected.
3751 * winsup/cinstall/source.cc (dialog_proc): Ditto.
3752 (check_if_enable_next): Removed. No longer needed since a radio button
3753 will always be selected.
3754 (load_dialog): Removed call to check_if_enable_next.
3755 (dialog_cmd): Ditto. Also added default to switch.
3757 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
3759 * res.rc: Resize affected text.
3761 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
3763 * net.cc (do_net): Default to direct download.
3764 * res.rc: Move default selections to the top.
3766 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
3768 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
3769 Must now include <windows.h> and not the pieces.
3770 * choose.cc (create_listview): Clean up type mismatch problems.
3771 * dialog.h (NEXT(id)): Ditto.
3772 * geturl.cc (dialog): Ditto.
3773 * install.cc (dialog): Ditto.
3774 * splash.cc (load_dialog): Ditto.
3776 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
3778 * tar.cc (class gzbz): Define dummy virtual functions.
3780 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
3782 * Makefile.in: Add bz2 include/library support.
3783 * filemanip.h: New file.
3784 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
3786 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
3787 (read_installed_db): Ditto.
3789 * fromcwd.cc (found_file): Ditto.
3790 (do_fromcwd): Ditto.
3791 * tar.cc (class gzbz): New super class for uncompression support.
3792 (gz): New class for gzip support.
3793 (bz): New class for bzip2 support.
3794 (tar_open): Use gzbz class to control file opening.
3795 (tar_ftell): Ditto for returning position in file.
3796 (skip_file): Ditto for reading file.
3797 (tar_next_file): Ditto.
3798 (tar_read_file): Ditto.
3799 (tar_close): Ditto for close.
3801 * zlib/configure.in: Force NM substitution.
3803 * source.cc (do_source): Default to "Install from Internet".
3805 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
3807 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
3809 * choose.cc (list_click): Correct inability to select source code for
3811 (scan2): Modify to skip source tarballs when scanning disk for
3812 installable packages.
3814 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
3816 * install.cc: install sources into /usr/src instead
3817 of /, also include the sizes of source tarballs
3819 * download.cc: include sizes of source tarballs in
3820 total_download_bytes.
3822 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
3824 * download.cc (get_file_size): Remove `static'.
3826 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
3828 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
3830 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
3832 * choose.cc (paint): Modify message for nothing to download vs
3833 nothing to install/update based on installation method.
3834 (list_click): Modify to skip versions in selection process if
3835 installing from local directory and installation file does not exist.
3836 Also leaves Source Action set to N/A if the source file does not exist
3837 and installing from local directory.
3838 (check_existence): New method to check current existence of installation
3839 files based on selected installation method.
3840 (set_existence): New method to set the current existence of installation
3841 files based on selected installation method.
3842 (best_trust): Modify decision process for best trust to base decision on
3843 current trust selected (IE: Prev, Curr, or Test), existence of file and
3844 installation method selected.
3845 (default_trust): Add logic to capture the current trust level and the
3846 trust selected for the given package.
3847 (set_full_list): Expand decision criteria for displaying a package in
3848 the selection list to include file existence/non-existence and selected
3849 installation method.
3850 (build_labels): Modify criteria for label addition to include
3851 installation method and file existence/non-existence.
3852 (create_listview): Modify to establish package trust level for each
3853 package before setting up the display list. Also modification to set
3854 current trust button as the default.
3855 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
3856 a reset of the selection list in addition to setting the default trust.
3857 (get_package_version): New method to provide reusable code for
3858 determining the package version from the file name for a specified
3860 (scan2): Modify to use new method get_package_version and
3861 also enhance handling of the build for the structures package and
3863 (read_installed_db): Modify to use the new method
3864 get_package_version and also enhance handling of the build for the
3865 structures package and extra.
3866 (do_choose): Add additional initialization of package and extra
3867 structures. Modify to use read_installed_db all the time despite
3868 install method. Modify output to setup.log.full log file to increase
3869 readability by adding additional spacing, expanded code and available
3871 * ini.h: Add new fields install_exists, source_exists and
3872 partial_list_display to the structure definition for package.
3873 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
3874 pushbuttons by replacing with Radio Buttons thus allowing the
3875 operator to better determine which is selected.
3877 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
3879 * download.cc (do_download): Add new variables total_download_bytes and
3880 total_download_bytes_sofar for download progress meter. Add loop
3881 to accumulate the total bytes to download from the selected packages.
3882 * geturl.cc: Add state.h and diskfull.h to include list. Add new
3883 variables gw_iprogress, gw_pprogress, gw_progress_text,
3884 gw_pprogress_text, and gw_iprogress_text to allow for addition of
3885 total packages download progress meter and disk full percent
3886 progress meter. Add variables total_download_bytes and
3887 total_download_bytes_sofar for use by progress meters.
3888 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
3889 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
3890 allow for addition of total packages download progress meter and disk
3891 full percent progress meter.
3892 (init_dialog): Ditto.
3894 (get_url_to_file): Ditto.
3895 * geturl.h: Add external definition for total_download_bytes and
3896 total_download_bytes_sofar.
3897 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
3898 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
3899 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
3901 * resource.h: Add new fields for progress meters and text and update
3902 _APS_NEXT_CONTROL_VALUE.
3904 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
3906 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
3909 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
3911 * download.cc (download_one): Add missing parenthesis.
3913 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
3915 * download.cc (get_file_size): New function. Eliminates the need
3917 (download_one): Call `get_file_size' instead of `stat'. This
3918 workarounds a problem with mingw's `stat' call.
3920 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
3922 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
3923 This is to allow cinstall to build with 2.95.2-7 and to make the
3924 use of headers consistent.
3926 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
3928 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
3930 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
3932 * winsup/cinstall/res.rc: Added accelerators and improved focus
3935 2000-12-10 Egor Duda <deo@logos-m.ru>
3937 * choose.cc (paint): Use system background color for text output.
3939 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
3941 * Makefile.in: Use CXX for linking and for compiling .cc files.
3942 * configure.in: Find correct c++ compiler.
3943 * configure: Regenerate.
3945 2000-11-17 DJ Delorie <dj@redhat.com>
3947 * splash.cc (load_dialog): Make message more obvious.
3950 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
3952 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
3953 necessary for newer compilers.
3955 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
3957 * desktop.cc: Include "ini.h" and "version.h".
3958 (make_passwd_group): Skip the function on 9x/ME boxes when an
3959 older version of Cygwin has been installed which doesn't
3960 support mkpasswd/mkgroup on 9x/ME.
3961 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
3964 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
3966 * desktop.cc (make_passwd_group): Don't exit when started
3967 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
3969 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
3971 * install.cc (do_install): Add call to set_cygdrive_flags to sync
3973 * mount.cc (set_cygdrive_flags): New function.
3974 (get_cygdrive_flags): Ditto.
3975 (default_cygdrive): Ditto.
3976 (set_cygdrive_flags): Ditto.
3977 * mount.h: Add prototype for set_cygdrive_flags.
3979 2000-10-23 DJ Delorie <dj@redhat.com>
3981 * ini.h: add source actions
3982 * fromcwd.cc: check for available sources
3983 * res.rc: add checkbox bitmaps
3986 * choose.cc: add source column
3987 * download.cc: download sources if called for
3988 * install.cc: [un]install sources too
3990 2000-10-22 DJ Delorie <dj@redhat.com>
3992 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
3993 ignore it wrt full_list if there's already a version installed.
3994 (do_choose): Sort the list.
3995 (package_sort): New.
3997 2000-10-12 DJ Delorie <dj@redhat.com>
3999 * res.rc: Add more error strings.
4000 * resource.h: Ditto.
4001 * iniparse.y (new_package): re-initialize if needed.
4002 * download.cc (do_download): Keep track of errors; notify and
4004 * install.cc (do_install): Ditto.
4006 2000-10-05 DJ Delorie <dj@redhat.com>
4008 * Makefile.in: fix %.cc rule
4010 2000-10-04 DJ Delorie <dj@redhat.com>
4012 * desktop.cc: quote HOME and USER, don't . ./.profile
4014 * choose.cc (build_labels): don't include in partial list just
4015 because there's a *previous* version available.
4017 * install.cc (do_install): if installing from local directory with
4018 setup.ini and the file isn't found, look in "." also. Note errors.
4020 2000-10-02 DJ Delorie <dj@redhat.com>
4022 * ini.cc (do_ini): save setup.ini locally
4024 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4026 * desktop.cc: quote escapes in prompt
4028 2000-10-02 Jason Tishler <jt@dothill.com>
4030 * root.cc (is_admin): New function.
4031 (read_mount_table): Check for administrative priviledges and set
4032 installation scope as appropriate.
4034 2000-09-28 DJ Delorie <dj@redhat.com>
4036 * nio-ftp.cc (ftp_line): handle continuations more robustly
4038 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4040 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4041 corresponding list box to provide for more URL's to be listed.
4042 Modified the position of the Back, Next and Cancel buttons to
4043 correspond to the new size of the dialog.
4045 2000-09-13 DJ Delorie <dj@redhat.com>
4047 * install.cc (do_install): update disk fullness once per package
4048 to improve performance
4050 * choose.cc (create_listview): call ReleaseDC
4052 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4054 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4055 returned, as it seems Samba 2.0.6+ returns this instead of
4056 ERROR_PATH_NOT_FOUND
4058 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4060 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4063 2000-09-07 DJ Delorie <dj@redhat.com>
4065 * splash.cc: use version.h, not local decl
4066 * res.rc: add "old version" message
4069 * fromcwd.cc (canonicalize_version): make global
4070 * iniparse.y: add setup-version support, fix bug in blank line
4073 * inilex.l: add [exp] as alias for [test], add setup-version
4074 * Makefile.in (version.c): add setup-version tag
4076 * desktop.cc (do_desktop): remove 1.1 version number
4077 (do_desktop_setup): ditto
4079 * ini.cc (do_ini): zero out package list just in case we redo it.
4081 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4083 * choose.cc (list_click): Check for nindexes==0; if so, return.
4085 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4087 * localdir.cc: new, local package directory selection dialog; cd
4088 into selected directory
4089 * Makefile.in (OBJS): add localdir.o
4090 * dialog.h: add prototype for do_local_dir
4091 * main.cc (WinMain): initialize local_dir to cwd; add call to
4093 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4094 * source.cc (dialog_cmd): ditto
4095 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4096 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4097 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4098 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4099 * state.h: add local_dir variable
4101 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4103 * desktop.cc: added logic to handle to the new dialog and to
4104 default the setting for the new checkboxes based on whether the
4105 desktop icon or start menu link already exist.
4106 (desktop_icon): correction to desktop directories for desktop icon
4107 creation. Additional logic added for Win95 which does not appear
4108 to have Common Directories so if Common selected and null uses
4110 (start_menu): Additional logic added for Win95 which does not
4111 appear to have Common Directories so if Common selected and null
4112 uses normal directory.
4113 (do_desktop_setup): moved the saving of the icon, creation of the
4114 bat file, profile, passwd, Start Menu link and desktop shortcut to
4115 this method from do_desktop. Made the creation of the desktop
4116 icon and start menu link conditional on settings of new dialog
4117 created for desktop.
4118 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4120 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4121 * res.rc: added new resource to create a desktop dialog with 2
4122 checkboxes for creating the desktop icon and start menu link.
4123 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4124 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4125 * state.h: added root_menu and root_desktop for use in dialog.
4127 2000-08-29 DJ Delorie <dj@redhat.com>
4129 * choose.cc (scan_downloaded_files): scan for existing files, so
4130 that the user only sees new downloads.
4132 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4133 * site.cc (do_site): if we can't download the mirror list, go back
4134 to the net setup box to choose another transport.
4135 * autoload.c: add more functions
4136 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4137 * resource.h: add WININET message
4139 * net.cc (do_net): no longer default to IE5
4140 * simpsock.h (class SimpleSocket): new, simplify socket operations
4141 * simpsock.cc: ditto
4142 * nio-http.h: new, for direct http protocol
4143 * nio-http.cc: ditto
4144 * nio-ftp.h: new, for direct http protocol
4146 * netio.cc (set_url): move initialization here to handle redirections
4147 (open): add direct http/ftp
4148 * netio.h (NetIO::set_url): new
4150 * log.cc (log_save): create directory for log if needed
4152 * hash.cc, hash.h: new
4153 * Makefile: add hash.o
4154 * choose.cc: enable "uninstall" option
4155 * download.cc: invert action test to accomodate uninstalling
4156 * ini.h: add ACTION_UNINSTALL
4157 * install.cc: add uninstall functionality
4158 * res.rc: make install tag changeable
4159 * resource.h: add uninstall resources
4161 * res.rc: update mirror list URL
4163 2000-08-24 DJ Delorie <dj@redhat.com>
4165 * log.cc, log.h: new files
4166 * Makefile.in (OBJS): add log.o
4167 * tar.cc: use exit_setup instead of exit
4168 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4169 * msg.cc (fatal): ditto
4170 * install.cc (dialog_cmd): ditto
4171 * ini.cc (do_ini): ditto
4172 * main.cc (main): add logging
4173 * source.cc (do_source): ditto
4174 * root.cc (do_source): ditto
4175 * site.cc (do_site): ditto
4176 * other.cc (do_other): ditto
4177 * net.cc (do_net): ditto
4178 * choose.cc (do_choose): ditto
4179 * download.cc (do_download): ditto
4180 * install.cc (do_install): ditto
4181 * msg.cc (fatal): ditto
4183 * res.rc: mark password boxes as *being* password boxes.
4185 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4186 calls won't use the same buffer.
4187 * choose.cc (create_listview): don't default to full list if no changes
4188 (base): return computed value, not temporary :-(
4189 (do_choose): don't use installed.db if we're only downloading.
4191 2000-08-23 DJ Delorie <dj@redhat.com>
4193 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4194 * nio-ie5.h (flush_io): new
4195 * netio.cc (load_dialog): note when we're initializing the dialog
4196 box, and ignore changes to the edit fields then.
4198 2000-08-21 DJ Delorie <dj@redhat.com>
4202 * fromcwd.cc (found_file): don't remember the canonicalized version
4204 * choose.cc (paint): print "nothing to do" message when list is empty.
4205 (build_labels): Use version "0.0" if no version is available.
4206 (create_listview): default to full list if nothing to install/update.
4207 (base): new, returns basename of file
4208 (read_installed_db): compare base names, not full paths
4210 2000-08-11 DJ Delorie <dj@redhat.com>
4212 * choose.cc: add new chooser dialog
4213 * fromcwd.cc: use IDD_CHOOSE
4214 * ini.cc: use IDD_CHOOSE
4215 * main.cc: use IDD_CHOOSE
4216 * ini.h: cosmetic changes
4217 * res.rc: add choose dialog, bitmaps
4218 * choose-spin.bmp: new
4219 * choose-rtarrow.bmp: new
4220 * resource.h: add choose dialog controls
4222 * mount.cc: remove debug statement
4224 2000-08-08 DJ Delorie <dj@redhat.com>
4226 * Makefile.in (version.c): make version checking more robust
4227 * splash.cc (load_dialog): handle case where there's no version
4229 2000-08-07 DJ Delorie <dj@redhat.com>
4231 * (all): add cvsid tags
4232 * Makefile.in: generate version.c from ChangeLog, add splash.o
4234 * res.rc: add splash screen
4236 2000-08-02 DJ Delorie <dj@redhat.com>
4238 * net.cc: remove proxy password code
4239 * res.rc: remove proxy user/pass from net, add auth dialogs
4240 * netio.cc,h: add sys/proxy auth methods
4241 * nio-ie5: use them, check for http status codes
4242 * state.h: add system authorization
4244 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4247 2000-08-02 Norman Vine <nhv@yahoo,com>
4249 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4251 2000-08-01 DJ Delorie <dj@redhat.com>
4253 * postinstall.cc (each): don't rename files we ignore
4254 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4256 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4258 2000-07-31 DJ Delorie <dj@redhat.com>
4260 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4262 2000-07-18 DJ Delorie <dj@redhat.com>
4264 * autoload.c: new, autoload dlls that might not be available.
4265 * Makefile.in (OBJS): add autoload.o
4267 * res.rc: rewrite root options (text/binary, system/user) to be
4270 * site.cc (get_site_list): trim displayed URL, sort by domain
4272 * net.cc (do_net): make IE5 default to checked, for now
4274 * choose.cc (do_choose): sort packages correctly
4275 * ini.cc (do_ini): handle parse errors more gracefully
4277 (fprintf): line buffer output
4278 (do_ini): if we can't load setup.ini, go back to the site list.
4279 * ini.h: add "unknown" trust level
4280 * inilex.l: absorb unknown trust levels and key/value pairs,
4281 add line number logic
4282 * iniparse.y: handle parse errors more gracefully.
4283 * install.cc: skip packages with no valid install entry
4285 2000-07-17 DJ Delorie <dj@cygnus.com>
4287 * coding standards fixups, many files
4288 * mkdir.cc: warn about deletions *before* deleting them
4290 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4292 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4294 * other.cc (dialog_cmd): save download site URL
4295 * site.cc (get_root_dir): new
4296 (save_mirror_site): new
4297 (dialog_cmd): save download site URL
4298 (get_site_list): make list big enough to add prev site
4299 (get_initial_list_idx): new, read last-used URL from file and
4300 append it to site_list
4301 (do_site): call get_initial_list_idx
4303 * concat.cc (concat): avoid segfault when first parm is null
4305 2000-07-13 DJ Delorie <dj@cygnus.com>
4307 * postinstall.cc: new
4308 * Makefile.in: add postinstall.o
4309 * concat.h: add backslash ()
4311 * desktop.cc (etc_profile): don't do postinstall
4312 (backslash): moved to concat.cc
4314 (make_postinstall_script): run directly
4315 (do_desktop): chain to do_postinstall
4316 * dialog.h: add exit_msg, do_postinstall
4317 * download.cc: use exit_msg
4319 * main.cc: add postinstall, exit_msg
4320 * resource.h: add postinstall
4321 * README: add more to-do items
4323 2000-07-12 DJ Delorie <dj@cygnus.com>
4325 * desktop.cc: add /etc/postinstall/ support
4326 * install.cc: add more "standard" directories
4328 2000-07-11 DJ Delorie <dj@cygnus.com>
4330 * desktop.cc: create /etc/profile
4331 * desktop.cc: fix include syntax
4332 * Makefile.in: add auto-dependencies
4333 * root.cc: support system vs user
4341 * desktop.cc: make sure we use backslashes, not slashes.
4342 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4343 * geturl.cc: change math for percentage to avoid overflow
4345 * download.cc: post "download complete" message.
4346 * root.cc: pre-fill in defaults if needed, don't start
4347 browse at root_dir unless it's set.
4348 * desktop.cc: quote $PATH in case it has spaces in it
4350 2000-07-10 DJ Delorie <dj@cygnus.com>
4352 * Makefile.in: add desktop.o and mklink2.o
4353 * dialog.h: add do_desktop
4354 * install.cc: create standard directories, call do_desktop
4355 * res.rc: add cygwin.ico as a file also
4356 * desktop.cc: new, do shortcuts, batch files, and icons
4357 * mklink2.c: new, for COM
4358 * README: update to-do list
4360 2000-07-10 DJ Delorie <dj@cygnus.com>
4362 * ini.cc (do_ini): don't worry about timestamps if we're not
4363 actually installing.
4365 2000-07-09 DJ Delorie <dj@cygnus.com>
4367 * Makefile.in: add -I$(srcdir) for ini.h
4369 2000-07-06 DJ Delorie <dj@cygnus.com>
4371 * Replace everything with a new GUI version
4372 * zlib/gzio.c: add gzctell() for progress displays
4374 2000-06-22 DJ Delorie <dj@cygnus.com>
4376 * setup.c (tarx): re-add call to write_pkg()
4378 2000-06-07 DJ Delorie <dj@cygnus.com>
4380 * cygcalls.c: new, call cygwin1.dll functions directly
4381 * cygcalls.h: header for same
4382 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4383 exes, fix cinstall.rc dependencies.
4384 * path.c: remove unneeded code
4385 * setup.c: use cygcalls instead of xcreate_process.
4386 uncompress embedded files with zlib
4387 add "-d" for "download only"
4389 postpone mount changes until very end
4390 add download progress indicators
4391 pack multi-column listings more
4392 auto-delete temp files
4393 customize banner message according to options
4394 prompt user for text/binary mounts
4395 add warnings about empty setup directory, root installs, etc
4397 2000-05-24 DJ Delorie <dj@cygnus.com>
4399 * tar.c: New file; built-in tar using zlib.
4400 * tar.h: New file; header for same.
4401 * ctar.c: New file; test program for same.
4402 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4403 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4404 * setup.c (tarx): add support for built-in tar
4405 (main): accept unix-style slashes, check root dir for drive letters,
4406 warn about installing in /, make sure cwd is empty for internet installs,
4407 defer mounts to end of install, support built-in tar.
4409 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4411 Fix compiler warnings throughout.
4412 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4414 * setup.c: Make 'root' global.
4415 (istargz): Return pointer to "stem" of matched .tar.gz file.
4416 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4417 bogus check_for_installed check.
4418 (recurse_dirs): Add preliminary support for .bat file execution.
4419 (create_uninstall): Eliminate unneeded parameter.
4420 (do_start_menu): Ditto.
4422 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4423 scanning for the version number. Eliminate unneeded argument to
4425 (getdownloadsource): Add 'name' to list of names rather than url.
4426 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4427 unneeded argument in mkmount and do_start_menu.
4429 2000-05-18 DJ Delorie <dj@cygnus.com>
4431 * setup.c (optionprompt): allow multi-column, clean up message
4432 about more options, be more robust about user input.
4433 (getdownloadsource): make the mirror URL a macro.
4434 (main): do mounts after done prompting user.
4436 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4438 * setup.c (cleanup): Inverse order of deletion stands a better chance
4439 of deleting cygpath.exe. Still seems to suffer from occasional races,
4441 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4443 (output_file): Defend against an unlikely handle leak.
4444 (main): Don't set up signal handling until we have something special to
4447 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4449 * path.c (kill_cygpath): Delete function.
4450 (exit_cygpath): Make more defensive so that it can be called at any
4452 (cygpath_pipe): Don't set up signal here. Do it in main().
4453 * setup.c (istargz): New function.
4454 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4455 inexplicably fails on samba mounted partitions. Use istargz to match
4457 (processdirlisting) Use istargz to match tar.gz tail.
4458 (cleanup): Renamed from filedel.
4459 (cleanup_on_signal): New function. Called on CTRL-C.
4460 (main): Record handle of main thread so that it can be suspended when
4461 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4463 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4465 * setup.c (do_start_menu): Don't concatenate paths to already built
4468 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4470 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4471 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4473 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4475 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4476 that cygpath subprocess has died. This allows us to delete cygpath.exe
4478 (optionprompt): Initialize response to -1 so that second screen of
4479 mirrors will appear.
4480 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4481 * setup.h: Reflect init_pkgs prototype change.
4483 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4485 * pkg.c (init_pkgs): Accept an argument to control what root registry
4487 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4488 * setup.h: Reflect init_pkgs prototype change.
4490 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4492 * error.c (winerror): Respond to gcc warning.
4493 * path.c (cygpath_pipe): Ditto.
4494 * setup.c (filedel): Call sa_cleanup on deleteme.
4495 (create_shortcut): Coerce argument to eliminate compiler warning.
4496 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4497 (refmatches): New function. Tests if ref is contained in a list of
4498 packages to install.
4499 (filematches): New function. Tests if filename matches one of a list
4500 of packages to install.
4501 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4502 test to accomodate _tar.gz.
4503 (prompt): Ensure that stdout is flushed prior to asking for input.
4504 (findhref): Initialize variables to quiet a compiler warning.
4505 (processdirlisting): Accept list of packages to install. Special case
4506 cygwin tar file version number.
4507 (downloaddir): Accept list of packages to install.
4508 (downloadfrom): Ditto.
4509 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4511 (do_start_menu): Don't create uninstall bat file if updating or user
4512 specified a list of packages.
4513 (mkmount): Eliminate unneeded variables.
4514 (get_pkg_stuff): New function. Checks for previous unversioned
4516 (main): Accept -u and -f options and package names on the command line.
4517 Use get_pkg_stuff to initialize package information. Umount /etc.
4518 Call recurse_dirs and downloadfrom with list of package to install.
4519 Ensure that all /usr/local directories are created. Output
4520 installation time to setup.log.
4521 * setup.h: Add some prototypes.
4522 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4524 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4526 * setup.c (optionprompt): Don't overlap display of already seen options
4528 (geturl): Print name of site which we're connecting to rather than "ftp
4530 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4531 test too simplistic?
4532 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4533 problems when user chooses x:\ as their root.
4534 (main): For now, default to "non-update" mode. Allow -u option to
4537 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4540 * setup.c (tarx): Skip already installed or older packages. Report
4541 when a package has been updated.
4542 (processdirlisting): Skip already installed or older packages.
4543 (main): Detect -f option for forced installation. Initialize pkg stuff
4545 * setup.h: Add pkg definitions.
4547 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4549 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4551 (processdirlisting): Attempt to limit recursively processing the same
4554 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4556 * setup.c (filedel): New function.
4557 (output_file): Keep track of files extracted from setup.exe for
4558 subsequent deletion.
4559 (tarx): Close process handle of child tar process or suffer handle
4561 (getdownloadsource): Close mirror file so that it can be unlinked.
4562 (processdirlisting): Return total number of files extracted.
4563 (main): Initialize array of files to delete. Ensure that files are
4564 closed on exit. Make the directory that setup.exe is started from ==
4565 the directory where temporary files are placed. Issue an error if no
4566 files were found to download.
4567 * xsystem.c (xcreate_process): Close the thread handle. Close the
4568 process handle if we waited for it to exit.
4570 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4572 * setup.c (main): Change version number output.
4574 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4576 * setup.c (tarx): Use full path name to tar executable.
4577 (main): Build full pathname to tar executable. Create /usr/local/etc
4580 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4582 * setup.c (findhref): Change method for scanning for href= to choose
4583 the last one on the line. This is still not foolproof and probably
4584 will need to be changed eventually. Don't abort if no "size" field is
4586 (processdirlisting): Fix boolean algebra.
4588 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4590 * main.c (tarx): Add some code for future task of unmounting
4591 directories encountered in tar file.
4593 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4595 * setup.c (findhref): Decode file size, when appropriate.
4596 (needfile): New function. Returns 1 when file should be
4598 (processdirlisting): Always download if file size does not
4599 match. Prompt when download fails for some reason.
4600 (getdownloadsource): Accomodate findhref argument changes.
4602 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4604 Throughout, use global session handle rather than reinitializing for
4605 each connect. Don't pass session as an argument to setup.c functions.
4606 * setup.c (geturl): Only issue "Connecting to.." message when using
4607 http or first time for ftp since subsequent connections will be fast.
4608 (processdirlisting): Allocate space for "N" when user has specified
4609 "N"ever option so that it can be subsequently freed.
4610 (main): Abort if we can't get the list of mirrors.
4612 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4614 * setup.c (main): Umount /bin and /lib.
4616 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4618 * setup.c (main): Create an empty /var/run/utmp.
4620 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4622 * Makefile.in: Add umount to list of files to include in setup.exe.
4623 * setup.c (xumount): New function for unmounting directories.
4624 (main): Unmount /usr.
4625 (mkmount): Unmount "unix directory" before trying to figure out where
4626 to create the directory.
4628 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4630 * setup.c (mkmount): Use xcreate_process to start mount process,
4632 (main): Don't do buffering on stdout or prompts won't be displayed
4633 correctly if running in a cygwin shell with CYGWIN=tty.
4635 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4637 * setup.c (main): Remove the CYGWIN environment variable before
4638 starting any cygwin programs.
4640 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4642 * setup.c (geturl): Use alternative method for finding filename part of
4644 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4645 (downloaddir): Unlink file containing dir listing.
4646 (downloadfrom): Ditto.
4648 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4650 * setup.c (main): Disallow running setup.exe from the "root".
4652 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4654 Use "warning" function, where appropriate, to output warnings.
4655 * setup.c (warning): New function -- outputs warning to console and log
4657 (tarx): Fix index used to reset file protection.
4658 (main): Open the log file earlier so that more stuff can be sent to it.
4660 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4662 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4664 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4666 * setup.c (tarx): Wait to after tar has completed to reset protections
4667 or suffer races with tar process.
4669 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4671 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4672 * setup.c (create_uninstall): Create the uninstall .bat file in the
4673 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4674 list of files to be deleted. Fix directory detection for determining
4675 when to use 'rmdir'.
4676 (do_start_menu): Add /usr/local/bin to the path.
4677 (main): Add slop to files.array allocation so that we don't have to
4678 worry about reallocating the array when it grows too large when doing
4679 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4682 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4684 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4687 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4689 * path.c (kill_cygpath): New cleanup function.
4690 (exit_cygpath): New cleanup function.
4691 (cygpath_pipe): New function. Sets up cygpath in the background for
4692 translating filenames.
4693 (pathcvt): Use background cygpath for file translation.
4694 * setup.c (tarx): New function. Called to extract tar files, capture
4695 logging output, and translate it to Windows format.
4696 (recurse_dirs): Use 'tarx' function to extract files.
4697 (create_uninstall): Use file list built up by tarx rather than reading
4699 (mkmount): Add ability to mount root.
4700 (main): Track elapsed install time. Mount root.
4701 * starry.h: Add index field to strarry for tracking of tarx's usage of
4703 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4705 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4708 (pathfp): New function. Preliminary work for new -f cygpath
4710 * Makefile.in: Add new file.
4711 (pathcvt): Move to new file.
4715 * setup.c (processdirlisting): Always open file in text mode.
4716 (create_uninstall): Ditto.
4717 (getdownloadsource): Ditto.
4720 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4722 * xsystem.c: New file.
4723 * Makefile.in: Accomodate new file.
4724 * setup.c (xsystem): Move to new file.
4725 (recurse_dirs): Accept handle to output log file. Don't use ">"
4726 redirection to trap tar output. Use supplied handle instead.
4727 (create_uninstall): Accept FILE pointer to opened log file. Don't
4728 unlink log file here.
4729 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4730 (main): Open log file here and pass it to various functions. Unlink
4733 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4735 Change occurrences of .usr.bin to .bin throughout.
4736 * setup.c (geturl): Increase number of retries to 20. Let user know
4737 what's going on during long connects.
4738 (processdirlisting): Accept "A"lways and "N"ever as update options.
4739 (create_uninstall): Load cygwin1.dll from the current directory rather
4741 (main): Add some expository text.
4743 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4745 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4746 creating a cygwin1.dll in the current directory. Ensure the addition
4747 of -nostdinc to MINGW_CFLAGS.
4749 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
4751 * Makefile.in: Augment clean target.
4753 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
4755 * README: Added info about non-working mingw implementation
4756 * gzip.exe.gz: Replace with a version from the same build as the other
4758 * tar.exe.gz: Replace with a version from the same build as the other
4760 * mount.exe.gz: Add to repository until, mingw can build setup.
4761 * cygpath.exe.gz: ditto
4762 * cygwin1.dll.gz: ditto
4763 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
4764 for Win9x. Display only a screenfull of options at a time. Call all
4765 tools with an absolute path.
4766 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
4771 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
4773 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
4774 cygwin1.dll from ../cygwin subdirectory.
4775 * gzip.exe.gz: Update.
4776 * tar.exe.gz: Update.
4778 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
4780 * Makefile.in: Use ZLIB variable as a target.
4782 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
4784 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
4785 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
4787 * configure.in: Locate correct objcopy.
4788 * configure: Regenerate.
4790 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
4792 * Makefile.in: New file.
4793 * configure.in: New file.
4794 * configure: New file.
4795 * zlib/Makefile.am: New file.
4796 * zlib/configure.in: New file.
4797 * zlib/aclocal.m4: New file.
4798 * zlib/acinclude.m4: New file.
4799 * zlib/configure: Regenerate from configure.in.
4800 * zlib/Makefile.in: Regenerate from Makefile.am