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