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