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