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