]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2004-12-26 Max Bowsher <maxb@ukf.net>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
2b734ec7
MB
12004-12-26 Max Bowsher <maxb@ukf.net>
2
3 The Big Cleanup: Phase "version"
4
5 * String++.h (operator std::string): Add.
6 * desktop.cc, fromcwd.cc: Remove irrelevant include.
7
8 * version.cc, version.h: Delete, replacing all functionality in new
9 files.
10
11 * setup_version.h: Add, taking over declaration of generated version
12 symbol functionality.
13
14 * Makefile.am (setup_SOURCES): Sync with new/deleted files.
15 (setup_version.c): Rename the symbol 'version' to 'setup_version'.
16 * main.cc: Modify includes.
17 (main): Adapt to setup_version rename.
18 * splash.cc: Modify includes.
19 (SplashPage::OnInit): Adapt to setup_version rename.
20
21 * csu_util/version_compare.cc, csu_util/version_compare.h: Add,
22 containing a completely rewritten replacement for canonical_version().
23
24 * IniDBBuilderPackage.cc: Modify includes.
25 (IniDBBuilderPackage::buildVersion): Use new version_compare API.
26 * ini.cc: Modify includes.
27 (setup_version): Rename...
28 (ini_setup_version): ...to this.
29 (do_local_ini, do_remote_ini): Adapt to above change.
30 (do_ini_thread): Adapt to above change. Use new version_compare API.
31
0f45aabe
MB
322004-12-25 Max Bowsher <maxb@ukf.net>
33
34 * install.cc (Installer::installOneSource): Remove a stray "break;"
35 left over from the switch-case -> if-else conversion in the previous
36 change.
37
4875ac88
MB
382004-12-25 Max Bowsher <maxb@ukf.net>
39
40 The Big Cleanup: Phase "win32"
41
42 * win32.h: Major overhaul. Document why we use _WIN32_IE. Move out
43 fragment dealing with alloca() to the single file in which it is used.
44 Remove fragment dealing with _MAX_PATH, and convert all uses of it
45 elsewhere to MAX_PATH. Remove random include of <stdarg.h>. Remove
46 NOCOMATTRIBUTE, as setup contains no code which it affects. Remove
47 includes of <wininet.h> and <windowsx.h> - see later in this log.
48 (IsWindowsNT): New inline function, a much simpler implementation of
49 Win32::OS().
50
51 * win32.cc: Delete.
52
53 * Makefile.am (setup_SOURCES): Remove "win32.cc".
54
55 * AntiVirus.cc (detect), PickPackageLine.cc (PickPackageLine::paint),
56 * install.c (Installer::installOneSource):
57 Use IsWindowsNT(), not Win32::OS().
58 * main.cc (main): Use IsWindowsNT(), not locally defined iswinnt.
59
60 * PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
61 * proppage.cc (PropertyPage::DialogProc):
62 Avoid using obfuscating macros from <windowsx.h>.
63
64 * archive.cc: Include or #define alloca() in the only file in which
65 it is used.
66
67 * nio-ie5.h: Include <wininet.h> here, where it is actually needed,
68 rather than in "win32.h" which is included almost everywhere.
69
70 * archive_tar.cc, archive_tar.h, cygpackage.cc, cygpackage.h,
71 * desktop.cc, find.cc, install.cc, main.cc, mklink2.c, mount.cc,
72 * script.cc: Use MAX_PATH, not _MAX_PATH.
73
f4a981ab
MB
742004-12-25 Max Bowsher <maxb@ukf.net>
75
76 Remove some overcomplications.
77
78 * Makefile.am (setup_SOURCES): Remove FilterVisitor.{cc,h}.
79 * FilterVisitor.cc, FilterVisitor.h: Delete.
80 * String++.cc (strmatch, String::matches): Remove.
81 * String++.h (String::matches): Remove.
82 * postinstall.cc: Do not include "FilterVisitor.h".
83 (RunFindVisitor): Exclude items with the extension ".done".
84 (do_postinstall_thread): Remove overcomplicated exclusion of items
85 with the extension ".done".
86
768d880e
MB
872004-12-24 Max Bowsher <maxb@ukf.net>
88
89 * String++.cc, String++.h: Remove unused and incomplete code.
90 * LogFile.cc (LogFile::log_save): Don't leak memory.
91 * filemanip.cc, geturl.cc, root.cc, version.cc:
92 Don't pointlessly create temporary copies strings.
93
db165a9a
MB
942004-12-23 Max Bowsher <maxb@ukf.net>
95
96 * choose.cc (ChooserPage::OnNext): Relegate some overly verbose
97 logging to an #ifdef DEBUG section.
98 * geturl.h (dismiss_url_status_dialog): Remove stale function
99 declaration, for which there is no definition.
100 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
101 Motivated by the recent unexplained hang bug, add some extra logging.
102
0229b1d7
MB
1032004-11-22 Max Bowsher <maxb@ukf.net>
104
105 * MD5++.cc, MD5++.h: Remove this class.
106 * csu_util/MD5Sum.cc, csu_util/MD5Sum.h: New more complete MD5 class.
107 * Makefile.am (setup_SOURCES): Adjust to new files.
108 * download.cc (validateCachedPackage): Simplify, using the new class.
109 * install.cc (md5_one): Ditto.
110 * package_source.h (packagesource::md5): Change to be an object of the
111 new class.
112
2c4261a8
MB
1132004-11-22 Max Bowsher <maxb@ukf.net>
114
115 * main.cc (main): Fix bug in first 2004-11-20 commit. Avoid referring
116 to the theLog pointer before it is set.
117
9132ff16
MB
1182004-11-20 Max Bowsher <maxb@ukf.net>
119
120 * res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
121 Re-layout the radio buttons.
122
6beebaa3
MB
1232004-11-20 Max Bowsher <maxb@ukf.net>
124
125 Repair the broken detection of wrongly-sized package files.
126
127 * download.cc (validateCachedPackage): Make static, since not used
128 elsewhere. Improve logging. Migrate file-size tests to here, alongside
129 the MD5 tests.
130 (check_for_cached): Remove broken testing of file-size, now covered by
131 the above. Code cleanups.
132
54ff37c8
MB
1332004-11-19 Max Bowsher <maxb@ukf.net>
134
135 * package_version.cc (dumpAndList): Make dependencies much more
136 readable in full log output.
137
4d7a6eeb
MB
1382004-11-19 Max Bowsher <maxb@ukf.net>
139
140 * proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
141 block, since allowing exceptions to unwind into the guts of Windows is
142 quite disasterous.
143
c66b9174
MB
1442004-11-19 Max Bowsher <maxb@ukf.net>
145
146 * main.cc (main): Move option parsing code earlier - it must execute
147 before any significant object creations, which might test options in
148 their initialization.
149
82b64f8a
MB
1502004-11-19 Max Bowsher <maxb@ukf.net>
151
152 * main.cc (main): Remove some junk code - either commented out, or
153 contained within unreachable preprocessor conditional sections.
154
4fa49408
MB
1552004-11-19 Max Bowsher <maxb@ukf.net>
156
157 * install.cc (Installer::installOneSource): Avoid leaking the open
158 file handles of every tarball that is installed.
159
0e9a5c4f
MB
1602004-11-19 Max Bowsher <maxb@ukf.net>
161
162 * package_source.h (packagesource::Canonical, packagesource::Base)
163 (packagesource::Filename): Add "const" specification to accessor
164 methods.
165
6b68e703
MB
1662004-11-18 Max Bowsher <maxb@ukf.net>
167
168 * archive.h (archive::~archive): Define a pure virtual destructor to
169 enforce the abstract nature of this class.
170 * archive.cc (archive::~archive): Pure virtual destructors require an
171 implementation! Add one.
172 * io_stream.h (io_stream::destroyed): Remove this severely
173 brain-damaged implementation of a weakly-enforced abstract class.
174 The pure virtual destructor was strongly enforcing the abstract nature
175 anyway.
176 * io_stream.cc (io_stream::~io_stream): Empty out horribly pointless
177 code from the pure virtual destructor.
178 * archive_tar.cc (archive_tar::~archive_tar): Remove all
179 reference to the removed "destroyed" member.
180 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
181 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
182 * compress_gz.cc (compress_gz::~compress_gz): Ditto.
183 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Ditto.
184 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
185 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
186
51200ef2
MB
1872004-11-17 Max Bowsher <maxb@ukf.net>
188
189 * mount.cc (create_mount): Fix operator precedence error introduced in
190 first 2004-11-11 commit - warned of by gcc 3.3.3 but not 3.4.1 !
191
f5d45c3b
MB
1922004-11-13 Max Bowsher <maxb@ukf.net>
193
194 Miscellaneous cleanup.
195
196 * geturl.cc (getUrlToStream): Make static.
197 * geturl.h (getUrlToStream): Remove declaration.
198
199 * geturl.cc, geturl.h, netio.cc, netio.h, nio-ftp.cc, nio-ftp.h,
200 nio-http.cc, nio-http.h:
201 Remove unused "allow_ftp_auth" flag throughout.
202
f4d80c3f
MB
2032004-11-11 Max Bowsher <maxb@ukf.net>
204
205 * libmd5-rfc: New directory, to hold code imported from the libmd5-rfc
206 project in a clearly delineated fashion.
207 * libmd5-rfc/README: New file.
208 * md5.c, md5.h: Delete...
209 * libmd5-rfc/md5.c, libmd5-rfc/md5.h: ...and replace with pristine
210 versions from upstream (only change is restoration of upstream CVS
211 keyword expansions).
212 * libmd5-rfc/md5main.c: New file.
213 * Makefile.ami (setup_SOURCES): Edit file paths.
214 * download.cc, install.cc: Edit include paths.
215
68d49419
MB
2162004-11-11 Max Bowsher <maxb@ukf.net>
217
218 * dialog.cc (fatal): Make capable of handling a passed-in error code,
219 as an alternative to calling GetLastError().
220 * dialog.h (fatal): Adjust prototype as above.
221 * mount.cc (create_mount): Use the above to correctly report errors.
222
af111c7d
MB
2232004-10-28 Max Bowsher <maxb@ukf.net>
224
225 * LogFile.cc (LogFile::getFileName), splash.cc (SplashPage::Create),
226 threebar.cc (ThreeBarProgressPage::SetBar2):
227 Migrate from cistring and string resources
228 to String and string literals.
229 * localdir.cc: Remove unneeded #include of "cistring.h".
230 * cistring.cc, cistring.h: Remove this now-redundant class.
231 * Makefile.am: Remove mention of the above removed files.
232 * res.rc, resource.h: Remove obsolete strings and IDs, both those
233 obseleted by and obselete before the above changes.
234 * res.rc: Merge the 2 adjacent STRINGTABLEs.
235
8a264069
MB
2362004-10-27 Max Bowsher <maxb@ukf.net>
237
238 * Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.
239
b4b8ab8d
MB
2402004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
241
242 * package_source.cc (packagesource::set_canonical):
243 Fix one-off in 'base' when ini is in same dir as package.
244
49560a44
MB
2452004-10-25 Max Bowsher <maxb@ukf.net>
246
247 * main.cc (next_dialog): Remove this legacy global variable.
248 * download.cc (do_download_thread): Return a value instead of setting
249 a global variable, then returning void.
250 (do_download_reflector): Look for the next dialog code as a return
251 value instead of a global variable.
252
99ff5a8b
MB
2532004-10-25 Max Bowsher <maxb@ukf.net>
254
255 * port.h: Remove this redundant file - all contained definitions are
256 duplicated in "win32.h".
257 * Makefile.am, UserSetting.cc, UserSettings.cc, archive.cc,
258 archive_tar.cc, archive_tar_file.cc, choose.cc, compress.cc,
259 compress_bz.cc, compress_gz.cc, desktop.cc, find.cc, fromcwd.cc,
260 iniparse.y, install.cc, io_stream_cygfile.cc, io_stream_file.cc,
261 main.cc, netio.cc, site.cc, version.cc:
262 Remove all references to "port.h".
263
46d04e97
MB
2642004-10-25 Max Bowsher <maxb@ukf.net>
265
266 Fix compilation with w32api 3.1 and later.
267
268 * ControlAdjuster.h, RECTWrapper.h, cistring.h, propsheet.h,
269 window.cc, window.h: Include "win32.h" not <windows.h> directly.
270 * win32.h (WINBASEAPI): Define to empty string.
271
5524909e
IP
2722004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
273
274 * script.cc (run): Kill stdin when running scripts.
275
84b9cc5e
MB
2762004-09-01 Max Bowsher <maxb@ukf.net>
277
278 * Makefile.am: Oops. Unwanted keyword expansion ate the code of the
279 previous commit. Restore the code, escaped to not look like a keyword.
280
012374fe
MB
2812004-09-01 Max Bowsher <maxb@ukf.net>
282
283 * Makefile.am: Simplify the shell incantation for getting the revision
284 of ChangeLog from grep-and-sed to just sed.
285
b4113ac0
MB
2862004-08-31 Max Bowsher <maxb@ukf.net>
287
288 Attain GCC 3.4 compatibility.
289
290 * PackageSpecification.h (PackageSpecification): Make the
291 unnecessarily private copy-constructor public.
292
fc2ba841
MB
2932004-08-30 Max Bowsher <maxb@ukf.net>
294
295 Rework the implementation of not including -Werror for specific files,
296 to a way that does not require hardcoding modified automake output back
297 into its input.
298
299 * Makefile.am (AM_CXXFLAGS, BASECXXFLAGS): Seperate out -Werror.
300 (autoload.o): Drop this rule, -finline-functions is no longer required
301 and -Werror is acceptable here now we have __attribute__ ((used)).
302 (WARNONLY_CFLAGS, inilex.o): Drop these.
303 (EXTRA_PROGRAMS): Add a fake "warnonly" program.
304 (warnonly_CXXFLAGS): Set to the $(BASECXXFLAGS).
305 (warnonly_SOURCES): Set to "inilex.cc".
306 (EXTRA_setup_SOURCES): Set to $(warnonly_SOURCES).
307 (setup_SOURCES): Remove "inilex.cc".
308 (setup_LDADD): Add "warnonly-inilex.o".
309
d3c2a043
MB
3102004-08-30 Max Bowsher <maxb@ukf.net>
311
312 Move closer to GCC 3.4 compatibility.
313
314 * IOStreamProvider.h, io_stream_cygfile.cc, io_stream_cygfile.h,
315 io_stream_file.cc: Do not incorrectly use "enum" after it has been
316 hidden inside a typedef.
317 * archive.h: In "virtual func() = 0;", the 0 is a language construct,
318 not some symbol that might evaluate to 0, and gcc 3.4 enforces this.
319 * autoload.c (DllInfo.name): Silence warning by making const.
320 (DLL, autoload_common): __attribute__ ((used)) is now required to
321 prevent gcc being over-eager in it's optimization, and removing these
322 seemingly-unused (used only from assembly) functions.
323 Silences some warnings, too.
324 * Makefile.am (AM_CXXFLAGS, AM_CFLAGS): The options
325 -Wstrict-prototypes -Wmissing-prototypes do not apply to C++ and
326 g++ 3.4 complains about them.
327
072fb49a
MB
3282004-08-29 Max Bowsher <maxb@ukf.net>
329
330 * Exception.h: Reformatting, #include more, remove incorrect and
331 less-than-useful comments.
332 (TOPLEVEL_CATCH): New preprocessor macro.
333
334 * LogFile.cc (LogFile::operator()): Throw an exception object, not a
335 char* string.
336
337 Wrap the top-level of each thread (including the main thread) in a
338 try...catch block, in order to display a useful error message if an
339 exception is not caught.
340 * download.cc (do_download_reflector): Here ...
341 * ini.cc (do_ini_thread_reflector): ... and here ...
342 * install.cc (do_install_reflector: ... and here ...
343 * main.cc (main): ... and here ...
344 * postinstall.cc (do_postinstall_thread): ... and here ...
345 * site.cc (do_download_site_info_thread): ... and here!
346
347 * msg.h: Include a missing header requirement.
348 * res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
349 New strings.
350 * resource.h (IDS_UNCAUGHT_EXCEPTION)
351 (IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.
352
56c41dda
MB
3532004-08-28 Max Bowsher <maxb@ukf.net>
354
355 * res.rc (IDS_WINDOW_INIT_BADMSG): New string.
356 * resource.h (IDS_WINDOW_INIT_BADMSG): New string resource ID.
357 * window.cc (Window::FirstWindowProcReflector): Convert an abort()
358 into a descriptive error.
359
abdd4b38
MB
3602004-08-24 Max Bowsher <maxb@ukf.net>
361
362 The Doug Lee replacement malloc was no longer hooked up with the
363 buildsystem in any way. Pruning the remaining unused file.
364
365 * dlmalloc.c: Removed.
366
24649384
MB
3672004-08-18 Max Bowsher <maxb@ukf.net>
368
369 "librsync is not wire-compatible with rsync 2.x, and is not likely
370 to be in the future." -- librsync.sourceforge.net
371
372 So, it is of no practical use to setup. Therefore, removing all
373 rsync related files and code from setup.
374
375 * rsync: Directory removed.
376 * Makefile.am: Remove rsync support from the buildsystem.
377 * configure.in: Ditto.
378 * README: Since it seems vanishingly unlikely that it will ever happen,
379 remove rsync support from the wishlist.
380 * io_stream_rsync.cc: Remove.
381 * io_stream_rsync.h: Remove.
382
2800a92a
RC
3832004-04-25 Robert Collins <rbtcollins@hotmail.com>
384
24649384
MB
385 * package_meta.cc (packagemeta::set_requirements): fix problem with
386 libpcre0 not being pulled in automatically.
2800a92a 387
304e9816
RC
3882004-04-25 Robert Collins <rbtcollins@hotmail.com>
389
24649384
MB
390 * IniDBBuilderPackage.cc (dumpAndList):
391 Move out to packageversion for reuse.
304e9816 392 * package_meta.cc (packagemeta::logAllVersions): log dependencies.
24649384
MB
393 * package_version.cc (packageversion::depends):
394 provide a const accessor.
304e9816
RC
395 (dumpAndList): Moved from INIDBBuilder.cc.
396 * package_version.h: declare new method and function.
397
5419ce48
RC
3982003-12-21 Robert Collins <rbtcollins@hotmail.com>
399
400 * main.cc (main): Update to head libgetopt++ syntax.
401
201741b7
RC
4022003-11-2 Robert Collins <rbtcollins@hotmail.com>
403
404 * ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
405 CP_CENTERED.
406 * ControlAdjuster.cc: Ditto.
407
081bf320
RC
4082003-10-31 Frank Richter <frichter@gmx.li>
409
410 * localdir.cc (OnNext): When SelectDirectoryA() fails, display a
411 message with the error returned from the system instead of just
412 'could not change dir'. Also, offer the user to 'Retry', 'Ignore' the
413 error or 'Abort' the directory change.
414
4b6e5406
RC
4152003-10-31 Frank Richter <frichter@gmx.li>
416
417 * propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
418 window gets minimized. Otherwise some glitches (e.g. wrong child
419 sizes) occur.
420 Added support for WM_GETMINMAXINFO. Prevents the property sheet from
421 getting smaller than the original size.
422
576a2b0b
RC
4232003-11-1 Robert Collins <rbtcollins@hotmail.com>
424
425 * ControlAdjuster.h (ControlDimension): Add.
426 (ControlAdjuster): Factor adjust functionality into ControlInfo.
427 * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
428 (ControlAdjuster::ControlInfo::adjust): Ditto.
429
a8d753b6
RC
4302003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
431
432 * ControlAdjuster.h (ControlPosition): New enum type.
433 (ControlInfo::horizontalPos, ControlInfo::verticalPos): New
434 instance variables.
435 (ControlInfo::anchorLeft, ControlInfo::anchorTop,
436 ControlInfo::anchorRight, ControlInfo::anchorBottom): Remove.
437 * ControlAdjuster.cc (ControlAdjuster::AdjustControls): Switch to
438 using position specifiers instead of anchors.
439 * choose.cc (ChooserControlsInfo): Ditto.
440 * proppage.cc (DefaultControlsInfo): Ditto.
441 * propsheet.cc (PropSheetControlsInfo): Ditto.
442 * site.cc (SiteControlsInfo): Position specifiers for site
443 selection dialog controls.
444 * threebar.cc (ThreeBarControlsInfo): Position specifiers for
445 progress dialog controls.
446
c9feb168
RC
4472003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
448
449 * main.cc (HelpOption): New instance.
450 (main): Added help command line option handling.
451 * localdir.cc (LocalDirOption): New instance.
452 (LocalDirSetting::load): allow setting localdir from command line.
453
ee91d9be
RC
4542003-10-16 Frank Richter <frichter@gmx.li>
455
456 * ControlAdjuster.cc: New file, helper to move elements of a dialog
457 along when the it's resized.
458 * ControlAdjuster.h: Ditto.
459 * Makefile.am: Add new source files.
460 * proppage.cc (PropertyPage::DialogProc): Adjust some common
461 controls (Cygwin icon top right, separator below) when a page is
462 resized.
463 (PropertyPage::PropertyPage): Dito.
464 * propsheet.cc (IsDialog): New. Test whether a window is a dialog.
465 Used internally by resize logic.
466 (EnumPages): New. Used internally by resize logic: resizes the
467 property sheet's individual pages.
468 (PropSheetWndProc): New. Hook for the propery sheet window proc.
469 (PropSheetProc): More style tweaks, add maximize box and thick border
470 as well. Hook into the property sheet's window proc.
471 (PropSheet::AdjustPageSize): New. Adjust the metrics of a single page
472 to fit nicely into the property sheet. Part of resize logic.
473 * res.rc (All dialogs): The top-right Cygwin icon and top separator
474 now have IDs distinct from IDC_STATIC, so their metrics can be
475 adjusted upon a resize. Also, all those Cygwin icons are at the exact
476 same spot now.
477 * choose.cc (ChooserPage::ChooserPage): Now the controls on the
478 chooser page move/size when the page size is changed.
479 * choose.h: Dito.
480
1622a084
RC
4812003-10-23 Jerry D. Hedden <jerry@hedden.us>
482
483 * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
484 (ConnectionSetting::save): Save proxy settings.
485
7f6de8c0
RC
4862003-10-07 Robert Collins <rbtcollins@hotmail.com>
487
488 * proppage.h (PropertyPage::wantsActivation): const correctness fix.
489
587a67fc
MB
4902003-08-19 Max Bowsher <maxb@ukf.net>
491
492 * win32.h: Define NOMINMAX only if not already defined - because
493 libstdc++-v3 3.3.1 defines NOMINMAX itself.
494
58b12a06
MB
4952003-08-03 Max Bowsher <maxb@ukf.net>
496
497 * ChangeLog: Fix broken line-wrapping throughout. Clarify that
498 "Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.
499
56a7c49e
MB
5002003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
501
502 * propsheet.cc (Copyright): Update copyright dates.
503 (PropSheet::PropSheet): Remove NumPropPages initialization.
504 (PropSheet::CreatePages): Use PropertyPages.size() instead of
505 NumPropPages.
506 (PropSheet::Create): Ditto.
507 (PropSheet::AddPage): Change to use new PropertyPages std::vector<>.
508 * propsheet.h (Copyright): Update copyright dates.
509 (File Scope): Include <vector>.
510 (PropSheet::PropertyPages): Change from array to vector<>.
511 (PropSheet::NumPropPages): Remove.
512
25130a4d
MB
5132003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
514
515 Changes modified by Max Bowsher <maxb@ukf.net>
516 * splash.cc (Copyright): Update copyright dates.
517 (SplashPage::OnInit): Remove call to SetDlgItemFont(). Now handled in
518 base class.
519 * proppage.h (PropertyPage::setTitleFont): Declare.
520 * proppage.cc (Copyright): Update copyright dates.
521 (PropertyPage::DialogProc WM_INITDIALOG): Move all font setting code,
522 including that from splash.cc into new function...
523 (PropertyPage::setTitleFont): Create, using moved code. Change font
524 "MS Sans Serif" to "MS Shell Dlg" in line with recent res.rc change.
525 Set font for IDC_STATIC_WELCOME_TITLE here, to allow easy re-use of
526 style for future "Finished" page.
527
62489576
MB
5282003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
529
530 * propsheet.cc: Include "resource.h".
531 (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
532
106d8160
MB
5332003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
534
535 * proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.
536
5296fc07
MB
5372003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
538
539 * proppage.h (Copyright): Update copyright dates.
540 (PropertyPage): Document OnNext and OnBack.
541
5039f845
MB
5422003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
543
544 * proppage.cc (PropertyPage::Create): Use more self-documenting
545 MAKEINTRESOURCE() instead of cast to LPCSTR.
546
672d28ad
RC
5472003-07-31 Robert Collins <rbtcollins@hotmail.com>
548
549 * README: Mark completed items complete.
550
c59b8da6
MB
5512003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
552
553 * main.cc (set_default_sec): Set token owner from token user.
554 Always try to set the token primary group to Users or Admins.
555
25e21380
IP
5562003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
557
558 * String++.h (String::replace): New instance functions.
559 * String++.cc (String::replace): Implement.
560 * filemanip.cc (backslash): Change to use String::replace.
561 * desktop.cc (make_cygwin_bat): Escape '%' in path.
562
346627e7
IP
5632003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
564
565 * String++.h (TOSTRING): New macro.
566 * UserSettings.cc (UserSettings::deRegisterSetting): Fix
567 erroneous __LINE__/__FILE__ usage.
568 * download.cc (validateCachedPackage, check_for_cached): Ditto.
569 * geturl.cc (getUrlToStream): Ditto.
570 * install.cc (md5_one): Ditto.
571
d9f4a2ba
MB
5722003-07-30 Max Bowsher <maxb@ukf.net>
573
574 * ini.cc (do_ini_thread): Return bool.
575 (do_ini_thread_reflector): Put returned bool in lParam.
576 * threebar.cc (WM_APP_SETUP_INI_DOWNLOAD_COMPLETE): Rework for new
577 meaning of lParam. Replace erroneous use of do_fromcwd with
578 SetActivePageByID (IDD_SOURCE).
579
39b42ff3
RC
5802003-07-30 Robert Collins <rbtcollins@hotmail.com>
581
582 * ConnectionSetting.cc: New file, persist connection type selection.
583 * ConnectionSetting.h: Ditto.
584 * net.cc: Hold a ConnectionSetting instance to trigger the logic.
585 (NetPage::OnInit): Don't force net_method to any value.
586 * Makefile.am: Add new source files.
587
6ff96351
RC
5882003-07-30 Robert Collins <rbtcollins@hotmail.com>
589
590 * SourceSetting.cc: New file, persist source selection.
591 * SourceSetting.h: Ditto.
592 * source.cc: Hold a Source setting instance to trigger the logic.
593 * Makefile.am: Add new source files.
594
f0fd8856
RC
5952003-07-30 Robert Collins <rbtcollins@hotmail.com>
596
597 * UserSettings.h (UserSettings::settingFileForLoad): Extracted method
598 from LocalDirSetting::load().
599 * UserSettings.cc (UserSettings::settingFileForLoad): Ditto.
600 * UserSettings.h (UserSettings::settingFileForSave): Extracted method
601 from LocalDirSetting::save().
602 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
603 * localdir.cc (LocalDirSetting::load): Extract location logic to
604 UserSettings.
605 (LocalDirSetting::save): Extract location logic to UserSettings.
606 * site.cc (SiteSetting::getSavedSites): Use
607 UserSettings::settingFileForLoad.
608 (SiteSetting::save): Use UserSettings::settingFileForSave.
609
bb8e2353
RC
6102003-07-30 Robert Collins <rbtcollins@hotmail.com>
611
612 * PickView.cc: Adjust ::GetClientRect(..) to the inherited one
613 throughout.
614
b28e9f01
MB
6152003-07-29 Max Bowsher <maxb@ukf.net>
616
617 Based on a patch by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
618 * AntiVirus.cc (AntiVirusPage::wantsActivation): Define.
619 * AntiVirus.h (AntiVirusPage::wantsActivation): Declare.
620 * localdir.cc (LocalDirPage::OnBack): Remove logic subsumed by
621 RootPage::wantsActivation.
622 * proppage.cc (PropertyPage::DialogProc): Call wantsActivation(),
623 and skip to next page in sequence if activation is refused.
624 * proppage.h (PropertyPage::wantsActivation): Default implementation.
625 * root.cc (RootPage::wantsActivation): Define.
626 * root.h (RootPage::wantsActivation): Declare.
627 * source.cc: Don't include "AntiVirus.h".
628 (SourcePage::OnNext): Remove logic subsumed by
629 RootPage::wantsActivation.
630 (SourcePage::OnBack): Remove logic subsumed by
631 AntiVirusPage::wantsActivation.
632 * splash.cc: Don't include "AntiVirus.h" or "dialog.h".
633 (SplashPage::OnNext): Remove - subsumed by
634 AntiVirusPage::wantsActivation.
635 * splash.h (SplashPage::OnNext): Remove declaration.
636
ec2dbbf0
RC
6372003-07-29 Robert Collins <rbtcollins@hotmail.com>
638
639 * PickView.h (PickView::refresh): New method.
640 * PickView.cc (PickView::refresh): Extracted from various
641 ChooserPage callers.
642 * choose.cc: Use PickView::refresh wherever possible.
643
bc16bb7d
RC
6442003-07-29 Robert Collins <rbtcollins@hotmail.com>
645
646 * choose.h (ChooserPage::createListView): Remove last parameter.
647 (ChooserPage::getDefaultListViewSize): Extracted method.
648 * choose.cc (ChooserPage::createListView): Remove last parameter.
649 (ChooserPage::getDefaultListViewSize): Extracted method.
650
952ea3fe
RC
6512003-07-29 Robert Collins <rbtcollins@hotmail.com>
652
653 * choose.cc (ChooserPage::createListView): Remove unneeded
654 parameter.
655 * choose.h: Ditto.
656
55c6e691
MB
6572003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
658
659 * dialog.h (do_fromcwd): Change function declaration.
660 * fromcwd.cc (do_fromcwd): Change return type to bool. Eliminate
661 use of next_dialog, return true or false instead.
662 * localdir.cc (LocalDirPage::OnNext): Use do_fromcwd()'s return
663 value instead of next_dialog.
664
2f18f94d
RC
6652003-07-29 Robert Collins <rbtcollins@hotmail.com>
666
667 * package_db.h (packagedb::fillMissingCategory): Move from ChooserPage.
668 * choose.h (ChooserPage::fillMissingCategory): Delete.
669 * package_db.cc (packagedb::fillMissingCategory): Move from ChooserPage.
670 * choose.cc (ChooserPage::fillMissingCategory): Delete and adjust
671 callers.
672
525531ca
RC
6732003-07-29 Robert Collins <rbtcollins@hotmail.com>
674
675 * PickView.h (CATEGORY_EXPANDED): Move from choose.h
676 (CATEGORY_COLLAPSED): Move from choose.cc.
677 (PickView::setViewMode): Move from ChooserPage.
678 * choose.h (CATEGORY_EXPANDED): Delete.
679 (CATEGORY_COLLAPSED): Delete.
680 (ChooserPage::setViewMode): Delete.
681 * PickView.cc (PickView::setViewMode): Move from ChooserPage.
682 * chooser.cc (ChooserPage::setViewMode): Delete, and adjust callers
683 throughout.
684
0f61a6a4
MB
6852003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
686
687 * AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
688 page to display next, since it follows in the default page ordering
689 anyway.
690
6d751ec8
MB
6912003-07-28 Max Bowsher <maxb@ukf.net>
692
693 * dialog.h: (NEXT): Remove obsolete macro.
694 * site.cc (save_dialog): Remove use of NEXT(), and non-functional
695 unnecessary error handler.
696
358712d8
RC
6972003-07-28 Robert Collins <rbtcollins@hotmail.com>
698
699 * package_meta.h (packagemeta::addToCategoryAll): Declare.
700 * package_meta.cc (packagemeta::addToCategoryAll): New method,
701 separated to allow clear iteration.
702 * choose.cc (ChooserPage::fillMissingCategory): BUGFIX: "all" is
703 meant to be added unconditionally.
704
31f0ccce
RC
7052003-07-27 Robert Collins <rbtcollins@hotmail.com>
706
707 * Generic.h: New file, home for generic programming tools.
708 (visit_if): Move here from package_meta.cc.
709 Adjust to be fully parameterised.
710 * package_meta.h (packagemeta::hasNoCategories): Query for generic
711 programming.
712 (packagemeta::setDefaultCategories): set categories for packages
713 with none.
714 * package_meta.cc: Move visit_if out. Adjust users for
715 full paramterised operation.
716 (packagemeta::hasNoCategories): Implement.
717 (packagemeta::setDefaultCategories): Implement.
718 * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to
719 reduce duplicate code.
720 (ChooserPage::setExistence): Delete.
721 * choose.h (ChooserPage::setExistence): Rename to
722 packagedb::setExistence.
723 * package_db.h (packagedb::setExistence): Declare.
724 * package_db.cc (packagedb::setExistence): Copy from choose.cc
725
dbdc1d9d
RC
7262003-07-27 Robert Collins <rbtcollins@hotmail.com>
727
728 * localdir.h (LocalDirPage::OnInit): Remove.
729 * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
730 ::load().
731 (LocalDirSetting::load): Copied from LocalDirPage::OnInit.
732 * site.h (SitePage::OnInit): Remove.
733 (SitePage::getSavedSites): New member, replaces get_saved_sites.
734 (SitePage::registerSavedSite): New member, replaces
735 register_saved_site.
736 * site.cc (SitePage::OnInit): Move to SiteSetting::load().
737 (SiteSetting::load): Copied from SitePage::OnInit.
738 (SitePage::getSavedSites): Renamed from get_saved_sites.
739 (SitePage::registerSavedSite): Renamed from register_saved_site.
740 (do_download_site_info_thread): Don't look at the list size for
741 determining if the download was successful.
742
22120c90
RC
7432003-07-27 Robert Collins <rbtcollins@hotmail.com>
744
745 * choose.h (ChooserPage::setViewMode): Remove HWND from
746 signature.
747 (ChooserPage::defaultTrust): Ditto.
748 Move to PickView.
749 (ChooserPage::ifChecked): Use Window helper function
750 IsButtonChecked.
751 * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
752 throughout.
753 Update all callers with new signature.
754 (ChooserPage::defaultTrust): Ditto.
755 Move to PickView.
756 * PickView.h (PickView::defaultTrust): Declare.
757 * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.
758
9c9cfce7
RC
7592003-07-27 Robert Collins <rbtcollins@hotmail.com>
760
761 * PickView.h (PickView::lv): Eliminate.
762 * PickView.cc (PickView::init): Replace use of lv with
763 GetHWND().
764 (PickView::list_click): Ditto.
765 * choose.h (ChooserPage::lv): Eliminate.
766 * choose.cc: Replace lv with chooser->GetHWND()
767 throughout.
768
d2be933d
RC
7692003-07-27 Robert Collins <rbtcollins@hotmail.com>
770
771 * PickView.h (PickView::chooser): Eliminate.
772 (PickView::list_vscroll): Make non-static.
773 (PickView::list_hscroll): Ditto.
774 (PickView::list_click): Ditto.
775 (PickView::paint): Ditto.
776 * PickView.cc (PickView::list_vscroll): Eliminate use
777 of PickView::chooser.
778 (PickView::list_hscroll): Ditto.
779 (PickView::list_click): Ditto.
780 (PickView::paint): Ditto.
781 * choose.cc (Chooser::createListView): Eliminate use
782 of PickView::chooser.
783
693916f8
RC
7842003-07-27 Robert Collins <rbtcollins@hotmail.com>
785
786 * PickView.h (PickView): Inherit from Window.
787 (PickView::RegisterWindows): Move from ChooserPage.
788 (PickView::listview_proc): Likewise.
789 (PickView::paint): Ditto.
790 (PickView::list_click): Ditto.
791 (PickView::list_hscroll): Ditto.
792 (PickView::list_vscroll): Ditto.
793 (PickView::lv): Ditto.
794 (PickView::chooser): Ditto.
795 (PickView::Create): Override Windows::Create as we migrate.
796 (PickView::registerWindowClass): Renamed RegisterWindows.
797 (PickView::WindowClassAtom): Prevent double registration.
798 (PickView::init): Declare.
799 * PickView.cc: Adjust for new inheritance.
800 (PickView::RegisterWindows): Move from ChooserPage.
801 (PickView::listview_proc): Likewise.
802 (PickView::paint): Ditto.
803 (PickView::list_click): Ditto.
804 (PickView::list_hscroll): Ditto.
805 (PickView::list_vscroll): Ditto.
806 (PickView::lv): Ditto.
807 (PickView::chooser): Ditto.
808 (PickView::Create): Introduce stub.
809 (PickView::RegisterWindows): Rename
810 (PickView::init): Extracted from constructor to allow
811 reordering.
812 * chooser.h (ChooserPage::registerWindows): Rename to
813 PickView::RegisterWindows.
814 (ChooserPage::listview_proc): Likewise.
815 (ChooserPage::paint): Ditto.
816 (ChooserPage::list_click): Ditto.
817 (ChooserPage::list_hscroll): Ditto.
818 (ChooserPage::list_vscroll): Ditto.
819 (ChooserPage::lv): Duplicate into PickView, observe
820 as non-static.
821 (ChooserPage::chooser): Ditto.
822 * chooser.cc (ChooserPage::registerWindows): Delete.
823 (ChooserPage::listview_proc): Ditto.
824 (ChooserPage::paint): Ditto.
825 (ChooserPage::list_click): Ditto.
826 (ChooserPage::list_hscroll): Ditto.
827 (ChooserPage::list_vscroll): Ditto.
828 (ChooserPage::createListView): Create() on PickView.
829 * window.h (Window::RegisterWindowClass): Make virtual
830 to allow Create to become a Template Method, and rename
831 to registerWindowClass as it's not static.
832 * window.cc (Window::registerWindowClass): Ditto.
833 (Window::FirstWindowProcReflector): BUGFIX: Set window
834 handle to prevent races with the window procedure.
835
724c2956
RC
8362003-07-27 Robert Collins <rbtcollins@hotmail.com>
837
838 * choose.cc (set_view_mode): Rename to ChooserPage::setViewMode.
839 (default_trust): Rename to ChooserPage::defaultTrust.
840 (fill_missing_category): Rename to ChooserPage::fillMissingCategory.
841 (set_existence): Rename to ChooserPage::setExistence.
842 (register_windows): Rename to ChooserPage::registerWindows.
843 (listview_proc): Rename to ChooserPage::listview_proc.
844 (paint): Rename to ChooserPage::paint.
845 (list_click): Rename to ChooserPage::list_click.
846 (list_hscroll): Rename to ChooserPage::list_hscroll.
847 (list_vscroll): Rename to ChooserPage::list_vscroll.
848 (lv): Rename to ChooserPage::lv.
849 (chooser): Rename to ChooserPage::chooser.
850 * choose.h (ChooserPage::setViewMode): Declare.
851 (ChooserPage::defaultTrust): Declare.
852 (ChooserPage::fillMissingCategory): Declare.
853 (ChooserPage::setExistence): Declare.
854 (ChooserPage::registerWindows): Declare.
855 (ChooserPage::listview_proc): Declare.
856 (ChooserPage::paint): Declare.
857 (ChooserPage::list_click): Declare.
858 (ChooserPage::list_hscroll): Declare.
859 (ChooserPage::list_vscroll): Declare.
860 (ChooserPage::lv): Declare.
861 (ChooserPage::chooser): Declare.
862
d05ae76a
RC
8632003-07-27 Robert Collins <rbtcollins@hotmail.com>
864
865 * choose.cc (create_listview): Use for_each instead of explicit
866 iteration.
867 (create_listview): Rename to ChooserPage::createListview.
868 * package_meta.h (packagemeta::set_requirements): Explicitly separate
869 the 1 and 2 parameter versions.
870
8712003-07-27 Robert Collins <rbtcollins@hotmail.com>
69711722
RC
872
873 * String++.h (String::operator !=): Declare for char * and String.
874 * String++.cc (String::operator !=): Implement.
875 * package_meta.cc(StringConcatenator): Move above all users.
876 (_visit_if): Predicate support for visitors.
877 (packagemeta::getReadableCategoryList): Refactor to use
878 StringConcatenator with a predicate.
879 * choose.h: Remove unneeded c++ guards.
880
cda26207
RC
8812003-07-26 Robert Collins <rbtcollins@hotmail.com>
882
58b12a06
MB
883 * choose.cc (scan_downloaded_files): Rename to
884 packagemeta::ScanDownloadedFiles.
cda26207
RC
885 (scanAVersion): Rename to packageversion::scan.
886 (GetParentRect): Rename to ChooserPage::getParentRect.
887 * choose.h (ChooserPage::getParentRect): Declare.
888 * package_meta.h (packagemeta::ScanDownloadedFiles): Declare.
889 * package_version.h (packageversion::scan): Declare.
890 * package_version.cc (packageversion::scan): Move from choose.cc
58b12a06
MB
891 * package_meta.cc (packagemeta::ScanDownloadedFiles): Move from
892 choose.cc
cda26207 893
edc3c6fc
RC
8942003-07-26 Robert Collins <rbtcollins@hotmail.com>
895
896 * choose.cc (ChooserPage::OnNext): log before starting activity threads.
897 (ChooserPage::OnInit): Remove temporary variable frame.
898 (ChooserPage::setPrompt): Extract method from OnInit.
899 (choose_inst_text): Remove unused variable.
900 * choose.h(ChooserPage::setPrompt): Declare
901 * res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present
902 caption.
903
d55e14fe
RC
9042003-07-26 Robert Collins <rbtcollins@hotmail.com>
905
906 Remove package specific code from choose.cc.
907 Update copyrights where appropriate.
908 * choose.cc(ChooserPage::OnNext): Extract logging to
909 packagemeta::logSelectionStatus.
910 * package_meta.cc(packagemeta::logSelectionStatus): Extract from
911 ChooserPage::OnNext.
912 (StringConcatenator): helper for logSelectionStatus.
913 (action_caption): Make const.
914 * package_meta.h(packagemeta): Declare logSelectionStatus.
915 (packagemeta::action_caption): Make const.
916 * package_version.cc(packageversion::sourcePackage): Make const.
917 * package_version.h(packageversion::sourcePackage): Make const.
918
12f8ac69
RC
9192003-07-26 Robert Collins <rbtcollins@hotmail.com>
920
921 * choose.cc: Update copyright.
922 (ChooserPage::keepClicked): Extracted from OnMessageCmd.
923 (ChooserPage::changeTrust): Ditto.
924 * choose.h (ChooserPage): Declare keepClicked and changeTrust.
925 (ChooserPage::ifChecked): Extracted from OnMessageCmd.
58b12a06
MB
926 * package_meta.h (SetRequirement): Adapter for visiting package
927 collections.
12f8ac69 928
93d7e783
MB
9292003-07-26 Max Bowsher <maxb@ukf.net>
930
931 * tests/.cvsignore: New file, listing Makefile.in.
932
dea6cc21
RC
9332003-07-26 Robert Collins <rbtcollins@hotmail.com>
934
935 Save used local cache dir from initial run of setup, so the user doesn't
936 need to retype it.
58b12a06
MB
937 * localdir.h (LocalDirSetting): UserSetting class for the local cache
938 dir.
939 * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and
940 update callers.
dea6cc21 941
0df9be37
RC
9422003-07-26 Robert Collins <rbtcollins@hotmail.com>
943
944 Save used site from initial run of setup, so the user doesn't need to
945 retype it.
946 * main.cc (main): Load and save all user settings.
947 * site.cc (SiteSetting::save): Migrate logic from save_site_url.
58b12a06
MB
948 (SitePage::OnNext): Use ChosenSites.save() to remove uneeded
949 save_site_url call.
0df9be37
RC
950 (save_site_url): Delete.
951 * site.h (save_site_url): Remove declaration.
952 * .cvsignore: Update autoconf generated files.
953
bf137801
RC
9542003-07-26 Robert Collins <rbtcollins@hotmail.com>
955
956 * tests/Makefile.am: Driver for test suite.
957 * tests/UserSettingTest.cc: Test UserSetting interface.
958 * tests/UserSettingsTest.cc: Test UserSettings interface.
959 * Makefile.am: Add the tests dir to recurse into.
960 * configure.in: Ditto.
58b12a06
MB
961 * UserSetting.h: Add load and save methods to allow global
962 serialisation.
bf137801
RC
963 Add explicit copy and assignment operators to prevent synthetics.
964 Make the constructor protected to prevent direct instantiation.
965 * UserSettings.h (UserSettings::loadAllSettings): New method.
966 (UserSettings::savedAllSettings): New method.
967 * UserSettings.cc: Implement new methods.
968 * site.cc: Implement stubs for new required UserSetting methods.
969 * site.h (ChosenSite): Ditto.
58b12a06
MB
970 * bz2lib/: Ran automake.
971 * zlib/: Ran automake.
bf137801 972
3d5a4f16
MB
9732003-07-23 Max Bowsher <maxb@ukf.net>
974
975 * desktop.cc (DesktopSetupPage::OnBack): Remove obsolete use of NEXT().
976 * root.cc (RootPage::OnNext): Ditto.
977 (RootPage::OnBack): Ditto.
978 * install.cc (do_install_thread): Remove obsolete use of next_dialog.
979 * main.cc (main): Ditto.
980 * postinstall.cc (do_postinstall_thread): Ditto.
981
7108d406
MB
9822003-07-23 Max Bowsher <maxb@ukf.net>
983
984 * dialog.h (do_choose, do_desktop, do_local_dir, do_net, do_other)
985 (do_root, do_site, do_source, do_splash): Remove declarations, since
986 these functions no longer exist.
987
b1c23913
MB
9882003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
989
990 * choose.cc (initialized): Remove obsolete file scope variable.
991
d52a6cc8
MB
9922003-07-18 Max Bowsher <maxb@ukf.net>
993
994 * res.rc: Make caption of every dialog page begin with "Cygwin Setup".
995 This aids recognition when minimized.
996 Prompted by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
997
9d53f045
MB
9982003-07-10 Jeremy White <jwhite@codeweavers.com>
999
1000 * mount.cc, root.cc, site.cc: Make StringOptions required,
1001 thereby making --longopt <parm> behave as a newbie would expect.
1002
12e726c4
MB
10032003-07-08 Max Bowsher <maxb@ukf.net>
1004
1005 * LogFile.h, cistring.h, dialog.h, diskfull.h, filemanip.h, geturl.h,
1006 hash.h, log.h, mkdir.h, mklink2.h, mount.h, msg.h, netio.h, nio-file.h,
1007 nio-ftp.h, nio-http.h, nio-ie5.h, port.h, simpsock.h, state.h,
1008 version.h: Add inclusion guard.
1009 * root.h: Standardize naming of inclusion guard.
1010
c93bc6d0
MB
10112003-06-23 Max Bowsher <maxb@ukf.net>
1012
1013 * AntiVirus.h, Exception.h, FilterVisitor.h, FindVisitor.h,
1014 IOStreamProvider.h, IniDBBuilder.h, IniDBBuilderPackage.h,
1015 IniParseFeedback.h, IniParseFindVisitor.h, LogSingleton.h, MD5++.h,
1016 PackageSpecification.h, PackageTrust.h, PickCategoryLine.h, PickLine.h,
1017 PickPackageLine.h, PickView.h, RECTWrapper.h, ScanFindVisitor.h,
1018 String++.h, UserSetting.h, UserSettings.h, archive.h, archive_tar.h,
1019 category.h, choose.h, compress.h, compress_bz.h, compress_gz.h,
1020 cygpackage.h, desktop.h, download.h, find.h, ini.h, io_stream.h,
1021 io_stream_cygfile.h, io_stream_file.h, io_stream_memory.h,
1022 io_stream_rsync.h, localdir.h, net.h, package_db.h, package_meta.h,
1023 package_source.h, package_version.h, proppage.h, propsheet.h, script.h,
1024 site.h, source.h, splash.h, threebar.h, win32.h, window.h:
1025 Standardize naming and placement of inclusion guards.
1026
4a2af5fb
MB
10272003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1028
1029 * res.rc (all dialogs): Change font from "MS Sans Serif" to
1030 "MS Shell Dlg".
1031
8b726ef6
MB
10322003-06-22 Max Bowsher <maxb@ukf.net>
1033
1034 * Makefile.am: Clarify comment.
1035 Derive AM_CFLAGS from AM_CXXFLAGS, rather than the other way around.
1036 (AM_CXXFLAGS): Remove -Wmissing-declarations - it is a C-only warning.
1037 (AM_CFLAGS): Add -Winline, and -Wmissing-declarations.
1038
1e9ebf8a
MB
10392003-06-22 Max Bowsher <maxb@ukf.net>
1040
1041 * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional.
1042
0a539fe4
MB
10432003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1044
1045 * window.h (SETUP_WINDOW_H): Rename multi-include guard.
1046 (Copyright): Update.
1047 (RECTWrapper): New forward declaration.
1048 (Window::Create): Move.
1049 (Window::MoveWindow): New overload declaration.
1050 * window.cc: (RECTWrapper.h) Include.
1051 (Copyright): Update.
1052 (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead
1053 of C-style casts.
1054 (Window::MoveWindow): New overload.
1055
3c0ca7aa
MB
10562003-05-31 Max Bowsher <maxb@ukf.net>
1057
1058 * res.rc: Resize title controls to fully fill available width.
1059
e0d021d0
MB
10602003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1061
1062 * RECTWrapper.h: New file.
1063
1e3b2ad4
RC
10642003-04-12 Robert Collins <rbtcollins@hotmail.com>
1065
1066 * script.cc (Script::extension): Extract method from Script::run.
1067 (Script::run): Extract extension generation to Script::extension.
1068 * script.h (Script::extension): Declare.
1069
2533f348
RC
10702003-04-12 Robert Collins <rbtcollins@hotmail.com>
1071
1072 * script.cc (run_script): Remove.
1073 (try_run_script): Inline method run_script.
1074 * script.h (run_script): Remove.
1075
34ea5b6d
RC
10762003-04-12 Robert Collins <rbtcollins@hotmail.com>
1077
1078 * postinstall.cc (RunScript::operator()): Use new run syntax.
1079 * script.h (Script::run): Eliminate to_log parameter.
1080 * script.cc (Script::run): Ditto.
1081 (run_script): Use new run syntax.
1082
9f27ab95
RC
10832003-04-12 Robert Collins <rbtcollins@hotmail.com>
1084
1085 * script.cc (Script::run): Eliminate temp variable 'f2'.
1086 Rename temp variable 'f2' to 'windowsName' for increased clarity.
1087
783ed9c5
RC
10882003-04-12 Robert Collins <rbtcollins@hotmail.com>
1089
1090 * script.cc (Script::run): Eliminate temp variable 'fname'.
1091
0900bd5b
RC
10922003-04-12 Robert Collins <rbtcollins@hotmail.com>
1093
1094 * script.cc (Script::run): Eliminate temp variable 'dir'.
1095
294e5067
RC
10962003-04-12 Robert Collins <rbtcollins@hotmail.com>
1097
1098 * script.cc (run_script): Always pass TRUE to Script::run.
1099 * script.h (run_script): Remove optional to_log parameter.
1100
a0e56f67
RC
11012003-04-12 Robert Collins <rbtcollins@hotmail.com>
1102
1103 * script.cc (run_script): Move functionality into Script.
1104 (Script::run): Absorb run_script.
1105
8c242540
RC
11062003-04-12 Robert Collins <rbtcollins@hotmail.com>
1107
1108 * PickCategoryLine.cc (PickCategoryLine::click): Tell packagemeta we
1109 are about to perform a visit.
1110 * PickPackageLine.cc (PickPackageLine::click): Tell packagemeta we
1111 are about to perform a visit.
1112 * package_db.cc (packagedb::markUnVisited): Convenience wrapper -
1113 mark all packages as unvisited.
1114 * package_db.h (packagedb::markUnVisited): Declare.
1115 * package_meta.cc (packagemeta::PrepareForVisit): New static method
1116 to prepare for a loop-free visit.
1117 (packagemeta::packagemeta): Adjust for new member.
1118 (packagemeta::set_requirements): Only visit a node once.
1119 (packagemeta::visited): Get and Set methods for new member visited_.
1120 * package_meta.h (packagemeta::PrepareForVisit): Declare.
1121 (packagemeta::visited): Declare.
1122 (packagemeta::visited_): Declare.
1123
5f4b0e57
MB
11242003-04-07 Max Bowsher <maxb@ukf.net>
1125
1126 * download.cc: Add command line option to suppress MD5 checks.
1127 (validateCachedPackage): Test option and possibly skip.
1128
e46e15bf
RC
11292003-04-02 Robert Collins <rbtcollins@hotmail.com>
1130
1131 Merge in setup-200303-troubleshooting fixes.
1132
11332003-04-02 Robert Collins <rbtcollins@hotmail.com>
1134
1135 * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code.
1136 (NTSecurity::setDefaultSecurity): Ditto.
1137
11382003-04-02 Robert Collins <rbtcollins@hotmail.com>
1139
1140 * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL
1141 buffer sizing.
1142
11432003-04-02 Robert Collins <rbtcollins@hotmail.com>
1144
1145 * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation.
1146
11472003-04-02 Robert Collins <rbtcollins@hotmail.com>
1148
58b12a06
MB
1149 * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for
1150 auto_ptr use.
e46e15bf
RC
1151
11522003-04-02 Robert Collins <rbtcollins@hotmail.com>
1153
1154 * main.cc (NTSecurity::NoteFailedAPI): Helper function.
1155 Use throughout NTSecurity routines.
1156 (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage.
1157
11582003-04-02 Robert Collins <rbtcollins@hotmail.com>
1159
58b12a06
MB
1160 * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining
1161 active code.
e46e15bf
RC
1162
11632003-04-02 Robert Collins <rbtcollins@hotmail.com>
1164
1165 * main.cc (NTSecurity::GroupInfo): Extract group query code.
1166 (NTSecurity::setDefaultDACL): Disable ~ 50% of code.
1167
11682003-04-02 Robert Collins <rbtcollins@hotmail.com>
1169
58b12a06
MB
1170 * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security
1171 code.
e46e15bf
RC
1172
11732003-04-01 Robert Collins <rbtcollins@hotmail.com>
1174
58b12a06
MB
1175 * main.cc (NTSecurity::setDefaultSecurity): Remove double declaration of
1176 sz. User TokenGroupCollection to abstract token searching logic,
1177 eliminate isadmin and isuser temporary variables.
e46e15bf
RC
1178 (TokenGroupCollection): New class for querying token group information.
1179
11802003-04-01 Robert Collins <rbtcollins@hotmail.com>
1181
1182 * main.cc (NTSecurity::setDefaultSecurity): Extract esid initialisation.
1183 Move local variables to just before first use.
1184 SetTokenInformationFailures where being handled inconsistently.
1185 Remove assignments from if statements.
1186 (NTSecurity::esid): Rename to everyOneSID.
1187 (NTSecurity::initialiseEveryOneSID): new method.
1188 (NTSecurity::setDefaultDACL): Extract method for default DACL logic.
1189
11902003-04-01 Robert Collins <rbtcollins@hotmail.com>
1191
1192 * main.cc (SIDWrapper): Manage SID memory.
1193 (HANDLEWrapper): Likewise for HANDLES.
1194 (NTSecurity): Worker class for set_default_sec().
1195 (set_default_sec): Move body into NTSecurity::setDefaultSecurity().
58b12a06
MB
1196 (NTSecurity::setDefaultSecurity): Eliminate goto out: via memory
1197 managing objects.
e46e15bf 1198
da0b54f3
MB
11992003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1200
1201 * cygwin.ico: Added two new resolutions, 64x64 and 72x72.
1202
3baca7c9
RC
12032003-03-29 Robert Collins <rbtcollins@hotmail.com>
1204
1205 * GUIDELINES: New file documenting code guidelines.
1206
11e37aca
MB
12072003-03-26 Max Bowsher <maxb@ukf.net>
1208
1209 * .cvsignore: Add cfgaux.
1210
18a3405d
RC
12112003-03-26 Robert Collins <rbtcollins@hotmail.com>
1212
11e37aca
MB
1213 * package_version.cc (_defaultversion::accessible): Override and make
1214 always false.
1215 (_packageversion::accessible): Fix a couple of logic bugs resulting in
1216 incorrect trues.
18a3405d
RC
1217 * package_version.h (_packageversion::accessible): Make virtual.
1218
39ba3555
MB
12192003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1220
1221 * threebar.h (WM_APP_START_POSTINSTALL): New message.
1222 (WM_APP_POSTINSTALL_THREAD_COMPLETE): New message.
1223 * threebar.cc (ThreeBarProgressPage::OnMessageApp):
1224 Add handling for WM_APP_START_POSTINSTALL and
1225 WM_APP_POSTINSTALL_THREAD_COMPLETE.
1226 * install.cc (do_install_thread): Set next_dialog to
1227 IDD_S_POSTINSTALL.
1228 * desktop.cc (DesktopSetupPage::OnFinish): Move the
1229 do_postinstall call to ThreeBarProgressPage::OnMessageApp.
1230 * script.h (Script::fullName): New member function.
1231 (Script::run): New member function.
1232 (Script::ETCPostinstall): New static member constant.
1233 * script.cc (Script::fullName): Implement.
1234 (Script::run): Implement.
1235 (Script::ETCPostinstall): Define.
1236 (Script::isAScript): Use ETCPostinstall instead of a
1237 hardcoded string constant.
1238 (run): Enable "#if 0"'d code.
1239 * postinstall.cc (Progress): New extern variable.
1240 (RunFindVisitor::visitFile): Add script to vector
1241 instead of running.
1242 (RunFindVisitor::_scripts): New member variable.
1243 (RunScript): New helper class for use in for_each.
1244 (do_postinstall_thread): Rename do_postinstall to. Add
1245 Progress bar and text setting. Add package count.
1246 (do_postinstall_reflector): New static function.
1247 (do_postinstall): Rename to do_postinstall_thread.
1248 Create a thread instead.
1249
1069407c
MB
12502003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1251
1252 * script.cc (run): Add file_out parameter.
1253 Redirect output of subprocess to file, creating the
1254 path if necessary. Minimize the script window.
1255 (run_script): Add optional to_log boolean parameter.
1256 If to_log, redirect output to temporary file and then
1257 import it into LOG_BABBLE.
1258 (OutputLog): New helper class.
1259 (operator<<): New operation on OutputLog.
1260 * script.h (run_script): Add optional to_log parameter.
1261 * postinstall.cc (RunFindVisitor::visitFile): Instruct
1262 run_script() to log script output.
1263 (do_postinstall): Ditto.
1264
84fd41a9
RC
12652003-03-20 Robert Collins <rbtcollins@hotmail.com>
1266
1267 * package_meta.cc (packagemeta::set_action): The logic
1268 test for the default action was reversed.
1269
864a5ec1
MB
12702003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1271
1272 * postinstall.cc (do_postinstall): Filter out '*.done'.
1273 * FilterVisitor.h: New header file. Declare the
1274 FilterVisitor, Filter, and ExcludeNameFilter classes.
1275 * FilterVisitor.cc: New file. Implement FilterVisitor,
1276 Filter, and ExcludeNameFilter.
1277 * String++.h (String::matches): New instance function.
1278 * String++.cc (String::matches): Implement.
1279 (strmatch) Import and adapt for <buf,len> strings.
1280 * Makefile.am (setup_SOURCES): Add FilterVisitor.cc and
1281 FilterVisitor.h to value.
1282
560ac5e2
MB
12832002-03-18 Max Bowsher <maxb@ukf.net>
1284
1285 * LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess().
1286 Use passed exit_code even if been_here.
1287 Remove incorrect _CYGWIN_ preprocessor conditional.
1288
ad646f43
RC
12892003-03-16 Robert Collins <rbtcollins@hotmail.com>
1290
e0312c44
RC
1291 * package_db.h (PackageDBConnectedIterator): Typedef
1292 for connected loop detection collection iterator.
1293 * package_db.cc (ConnectedLoopDetector): An
1294 implementation of R.E. Tarjans strongly connected
1295 set visitor algorithm.
1296 * postinstall.cc (do_postinstall): Use the new iterator
1297 for visiting postinstall scripts.
ad646f43
RC
1298
12992003-03-16 Robert Collins <rbtcollins@hotmail.com>
1300
1301 * install.cc: Introduce Installer class.
1302 (init_dialog): Rename to Installer::initDialog.
1303 (progress): Rename to Installer::progress.
1304 (standard_dirs): Rename to Installer::StandardDirs.
1305 (uninstall_one): Rename to Installer::uninstallOne.
1306 (replace_one): Rename to Installer::replaceOne.
e0312c44
RC
1307 (log_ror_failure): Rename to
1308 Installer::replaceOnRebootFailed.
1309 (log_ror_success): Rename to
1310 Installer::replaceOnRebootSucceeded.
ad646f43
RC
1311 (install_one_source): Rename to Installer::installOneSource.
1312 Note script files as they are installed.
1313 * package_version.cc (packageversion::addScript): Implement.
1314 (packageversion::scripts): Implement.
e0312c44
RC
1315 * package_version.h (packageversion::addScript): Record the
1316 presence of a script.
ad646f43 1317 * script.h (Script): New class to track scripts.
e0312c44
RC
1318 * postinstall.cc (do_postinstall): Iterate through the
1319 package listed scripts before searching for scripts.
1320 * String++.cc (String::substr): Second argument needed to
1321 be signed.
1322 * String++.h (String::substr): Second argument needed to
1323 be signed.
ad646f43 1324
c0a46d04
MB
13252003-03-16 Max Bowsher <maxb@ukf.net>
1326
1327 * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and
1328 autom4te.cache.
1329
3d7ae5a2
MB
13302003-03-16 Max Bowsher <maxb@ukf.net>
1331
1332 * UserSettings.cc (UserSettings::Instance): Remove premature return.
1333
92f9402a
RC
13342003-03-15 Robert Collins <rbtcollins@hotmail.com>
1335
1336 * script.cc (run): Rename variable b to createSucceeded.
1337
13382003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1339
1340 * script.cc (run): Close unneeded handles.
1341
b49f570f
RC
13422003-03-15 Robert Collins <rbtcollins@hotmail.com>
1343
1344 * configure: Remove.
1345 * aclocal.m4: Remove.
1346 * Makefile.in: Remove.
1347 * cfgaux: Remove.
1348 * cfgaux/compile: Remove.
1349 * cfgaux/config.guess: Remove.
1350 * cfgaux/config.sub: Remove.
1351 * cfgaux/depcomp: Remove.
1352 * cfgaux/install-sh: Remove.
1353 * cfgaux/ltmain.sh: Remove.
1354 * cfgaux/missing: Remove.
1355 * cfgaux/mkinstalldirs: Remove.
1356
b6001c0d
MB
13572003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1358
1359 * install.cc (replace_one): Clear Text3.
1360
46ccc05f
MB
13612003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1362
1363 * install.cc (install_one_source): Add logging for successful
1364 replace-on-reboot scheduling. Factor out duplicate code.
1365 Set rebootneeded on Win9x.
1366 (log_ror_failure): New static function.
1367 (log_ror_success): New static function.
1368
c27b09ba
RC
13692003-03-14 Robert Collins <rbtcollins@hotmail.com>
1370
1371 * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by
1372 Igor Pechtchanski <pechtcha@cs.nyu.edu>.
1373
a081d4ff
MB
13742003-03-13 Max Bowsher <maxb@ukf.net>
1375
1376 * Update included zlib to 1.1.4.
1377
f430003c
RC
13782003-03-13 Robert Collins <rbtcollins@hotmail.com>
1379
46ccc05f
MB
1380 * install.cc (do_install_thread): Use a query method rather than temp
1381 variable do_skip.
f430003c 1382
46ccc05f 13832003-03-09 Pavel Tsekov <ptsekov@gmx.net>
f430003c
RC
1384
1385 * install.cc (do_install_thread): Use IDS_SKIP_PACKAGE
1386 instead of IDS_CORRUPT_PACKAGE when asking the user to take
1387 action if the hash verification check fails for a source package.
1388 Do not increase the value of 'total_bytes' variable if the
1389 user chooses to skip over a package, which failed the hash
1390 verification.
1391
48c7d667
MB
13922003-03-10 Max Bowsher <maxb@ukf.net>
1393
1394 * Makefile.am: Add foreign to AUTOMAKE_OPTIONS.
1395
aaeee283
RC
13962003-03-10 Robert Collins <rbtcollins@hotmail.com>
1397
1398 * UserSettings.cc (UserSettings::init): Really initialize all members.
1399
ead15931
RC
14002003-03-10 Robert Collins <rbtcollins@hotmail.com>
1401
1402 * Exception.h: Add a logic error exception id.
1403 * Makefile.am: Add new sources.
1404 * UserSettings.cc: New file.
1405 * UserSettings.h: New file.
1406 * UserSetting.cc: New file.
1407 * UserSetting.h: New file.
1408 * site.h: Add a SiteSetting as example of a UserSetting.
46ccc05f
MB
1409 * site.cc (ChosenSites): Add a instance of SiteSetting to trigger
1410 registration.
ead15931 1411
c1754473
RC
14122003-03-10 Robert Collins <rbtcollins@hotmail.com>
1413
46ccc05f
MB
1414 * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of
1415 lasterr.
c1754473
RC
1416 (compress_bz::error): Return lasterr which will indicate any error.
1417
52620058
RC
14182003-03-10 Robert Collins <rbtcollins@hotmail.com>
1419
1420 * choose.h (ChooserPage): Override OnActivate.
46ccc05f
MB
1421 * choose.cc (ChooserPage::OnActivate): Refresh the current view when
1422 activating the dialog.
52620058 1423
6e754226
RC
14242003-03-09 Robert Collins <rbtcollins@hotmail.com>
1425
46ccc05f
MB
1426 * package_version.cc (_defaultversion::pick(bool)): Override this and
1427 do nothing.
1428 (packageversion::pick(bool): Use a mutator function rather than direct
1429 member access.
1430 * package_version.h (_packageversion::pick(bool)): Move method from
1431 _packageversion.
6e754226 1432
970149e8
RC
14332003-02-16 Pavel Tsekov <ptsekov@gmx.net>
1434
1435 * install.cc (install_one_source): Remove the MD5 verification
1436 code.
1437 Delay the creation of the package listing file.
1438 (do_install_thread): Check the hashes for packages which need
1439 to be installed before the uninstall step. Allow the user to
1440 skip over packages, which fail the hash verification.
1441 (md5_one): Define new function.
1442 * res.rc (IDS_SKIP_PACKAGE): New string resource.
1443 * resource.h (IDS_SKIP_PACKAGE): New macro definition.
1444
f37b36a3
RC
14452003-02-16 Pavel Tsekov <ptsekov@gmx.net>
1446
1447 * Exception.h: Declare new constructor.
1448 (Exception::_message): Change the type from 'const char *' to
1449 'class String'.
1450 (Exception::~Exception): Implement destructor (make gcc shut up).
1451 * Exception.cc: Implement new constructor.
1452 (Exception::what): Use String::cstr_oneuse ().
1453 * download.cc (validateCachedPackage): Use the constructor, which
1454 takes String& as its second argument, when throwing objects
1455 of type Exception.
1456 (check_for_cached): Ditto.
1457 * install.cc (install_one_source): Ditto.
1458
eef9ea26
RC
14592003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1460
1461 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
1462 log filename to %s.
1463 (IDS_MISSING_LOG): New string resource.
1464 * resource.h (IDS_MISSING_LOG): New resource.
1465 * LogFile.cc (LogFile::exit): Pass log filename for
1466 LOG_BABBLE to note().
1467 (LogFile::getFileName): New function.
1468 * LogFile.h (LogFile::getFileName): New function.
1469
514b100e
RC
14702003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1471
1472 * String++.cc: Don't include concat.h.
1473 * Makefile.am: Remove concat.cc and concat.h references.
1474 * concat.h: Remove.
1475 * concat.cc: Remove.
1476
56c60dcc
MB
14772003-03-09 Max Bowsher <maxb@ukf.net>
1478
1479 * bootstrap.sh: Add sanity check of current directory.
1480 Recurse into libgetopt++ if needed.
1481
4f4b9def
RC
14822003-03-09 Robert Collins <rbtcollins@hotmail.com>
1483
1484 * Update readme of bugs and wishes.
1485
ed6137e5
MB
14862003-03-05 Max Bowsher <maxb@ukf.net>
1487
1488 * netio.cc (save_dialog): Allocate an empty string if the password is
1489 null, so that an empty password is accepted elsewhere in setup.
1490 (check_if_enable_ok): An empty password is OK.
1491
e0aec95e
MB
14922003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
1493
ed6137e5 1494 * PickView.cc (PickView::views): Add two new views for Skipped
e0aec95e
MB
1495 packages and Installed Packages not requiring update.
1496 (PickView::set_headers () ): Ditto.
1497 (PickView::clear_view (void) ): Ditto.
1498 (PickView::views::caption () ): Add two new captions for the new
1499 views added for Skipped and Installed Packages.
1500 (PickView::scroll () ): Modify Scroll Bar property to Disable
ed6137e5 1501 instead of disappearing when there is nothing to Scroll.
e0aec95e
MB
1502 * PickView.h: Add two new views for Skipped packages and Installed
1503 packages to public class view.
1504 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
ed6137e5 1505 instead of disappearing when there is nothing to Scroll.
e0aec95e
MB
1506 (listview_proc () ): Ditto.
1507 (set_view_mode): Add two new views for Skipped Packages and Installed
1508 Packages not requiring update. Modify Scroll Bar property to Disable
1509 instead of disappearing when there is nothing to scroll.
1510 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
1511 Button and View Button Caption to make room for longer captions.
1512
c7fb2f36
MB
15132003-03-04 Max Bowsher <maxb@ukf.net>
1514
1515 * compress_gz.cc (compress_gz::construct):
1516 Fix broken checkin dated 2002-07-03.
1517
d5be1d23
MB
15182003-02-28 Max Bowsher <maxb@ukf.net>
1519
1520 * main.cc (set_default_sec): Add logging.
1521
adaa168a
MB
15222003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
1523
1524 * main.cc (set_default_dacl): Replace with set_default_sec.
1525 (set_default_sec): Attempt to change the default group to
1526 Users or Administrators if it is None, in addition to setting
1527 Everyone in the default DACL.
1528 (main): Call set_default_sec instead of set_default_dacl.
1529
3a8d1127
MB
15302003-01-31 Max Bowsher <maxb@ukf.net>
1531
1532 * install.cc (install_one_source): Fix spacing in log message.
1533
c7230a28
MB
15342003-01-19 Max Bowsher <maxb@ukf.net>
1535
1536 * resource.h (IDC_CHOOSE_KEEP): Define.
1537 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
1538 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
1539 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
1540
ac949c48
MB
15412003-01-15 Max Bowsher <maxb@ukf.net>
1542
1543 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
1544 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
1545 * proppage.h: Include "win32.h" instead of <windows.h>.
1546
4f618d88
MB
15472003-01-15 Max Bowsher <maxb@ukf.net>
1548
1549 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
1550
1606c4e9
MB
15512002-12-11 Abraham Backus <abraham@backus.com>
1552
1553 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
1554 unless non-default.
1555
c4e25cde
MB
15562002-12-11 Max Bowsher <maxb@ukf.net>
1557
1558 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
1559 * package_version.cc: Ditto.
1560
bfdf6ac2
MB
15612002-09-22 Max Bowsher <maxb@ukf.net>
1562
1563 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
1564 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
1565 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
1566 * PickPackageLine.cc (PickPackageLine::paint): Change to use
1567 getReadableCategoryList.
1568 Fix x2 argument to IntersectClipRect.
1569
63c82708
RC
15702002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1571
1572 * window.h (Window::GetWindowRect): New method declaration.
1573 (Window::GetClientRect): Ditto.
1574 (Window::MoveWindow): Ditto.
1575 (Window::ScreenToClient): Ditto.
1576 * window.cc (REFLECTION_INFO): Remove.
1577 (ReflectionInfo): Remove.
1578 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
1579 of the horrid REFLECTION_INFO hack to hook the Window instance to the
1580 HWND instance.
1581 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
1582 available.
1583 (Window::Create): Change to use new WM_NCCREATE reflection procedure
1584 above.
1585 (Window::GetWindowRect): New method.
1586 (Window::GetClientRect): New method.
1587 (Window::MoveWindow): New method.
1588 (Window::CenterWindow): Use new methods, also specify "::" for some non-
1589 member functions with the same names.
1590 (Window::ScreenToClient): New method.
1591
58983805
RC
15922002-11-26 Robert Collins <rbtcollins@hotmail.com>
1593
1594 * AntiVirus.cc: Change the short option again! It's now 'A'.
1595 * desktop.cc (etc_profile): Remove.
1596 (make_etc_profile): Remove.
1597 (uexists): Remove.
1598 (make_passwd_group): Remove.
1599 (do_desktop_setup): Don't call removed functions.
1600
b2028692
RC
16012002-11-26 Robert Collins <rbtcollins@hotmail.com>
1602
1603 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
1604 Marcel's patch.
1605
2d8e4784
RC
16062002-07-08 Marcel Telka <marcel@telka.sk>
1607
b2028692 1608 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
2d8e4784
RC
1609 reply (code 227) to the PASV command.
1610
3a87705e
RC
16112002-11-26 Robert Collins <rbtcollins@hotmail.com>
1612
1613 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
1614 Sort the packages db once all the new packages have been added.
1615 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
1616 Declare this.
1617
bd4e91a7
RC
16182002-11-26 Robert Collins <rbtcollins@hotmail.com>
1619
1620 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
1621 * package_version.cc (processOneDependency): Return once selecting
1622 a package (bugfix to prevous rework).
1623 Log if the default trust fails the package specification.
1624
f416a2b6
RC
16252002-11-26 Robert Collins <rbtcollins@hotmail.com>
1626
1627 * package_meta.h (packagemeta::logAllVersions): Declare.
1628 (packagemeta::trustLabel): Ditto.
1629 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
1630 versions.
1631 * package_meta.cc (packagemeta::logAllVersions): Implement.
1632 (packagemeta::trustLabel): Ditto.
1633
14485ab2
RC
16342002-11-25 Robert Collins <rbtcollins@hotmail.com>
1635
1636 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
1637
f9e903a3
RC
16382002-11-25 Robert Collins <rbtcollins@hotmail.com>
1639
1640 * AntiVirus.cc: New file.
1641 * AntiVirus.h: Ditto.
1642 * LogFile.cc: Include AntiVirus.h for class definition.
1643 (LogFile::exit): Trigger AntiVirus::AtExit().
1644 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
1645 * autoload.c: Declare Service Control Manager related API's.
1646 * main.cc: Include AntiVirus.h for class definition.
1647 (main): Add the AntiVirus page in.
1648 * res.rc: Define IDD_VIRUS.
1649 * resource.h: Define IDD_VIRUS related control ID's.
1650 * splash.h: Override OnNext.
1651 * splash.cc: Only show AntiVirus page when one has been detected.
1652 * source.cc: Ditto.
1653
05c5b8a6
RC
16542002-11-25 Robert Collins <rbtcollins@hotmail.com>
1655
1656 * package_version.cc (DependencyProcessor): Create convenience class.
1657 (select): Extract version selection method.
1658 (processOneDependency): Check for a satisfactory trusted version
1659 first.
1660
16612002-11-10 Robert Collins <rbtcollins@hotmail.com>
15004270
RC
1662
1663 * main.cc (main): Use the factory for LogFile.
1664 * String++.cc: Update to use sstream.
58b12a06 1665 (String::String): Use a ostringstream for libC++ 3.2.
15004270
RC
1666 * LogFile.h (LogFile): Make createLogFile static.
1667
05c5b8a6 16682002-11-10 Robert Collins <rbtcollins@hotmail.com>
51629951
RC
1669
1670 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
1671
666bf37d
RC
16722002-11-04 Max Bowsher <maxb@ukf.net>
1673
1674 * Exception.h (Exception::what): Add throw() specification,
1675 to agree with libstdc++-v3.
1676 * Exception.cc (Exception::what): Ditto.
1677 * IniDBBuilderPackage.h: Add 'std::' where needed.
1678 * PickCategoryLine.h: Ditto.
1679 * category.h: Ditto.
1680 * package_db.h: Ditto.
1681 * package_meta.h: Ditto.
1682 * package_source.h: Ditto.
1683 * package_version.h: Ditto.
1684 * site.h: Ditto.
1685 * win32.h: Define NOMINMAX before including <windows.h>.
1686 * package_meta.cc: Add 'using namespace std;'.
1687 (packagemeta::set_requirements): Remove default parameter values
1688 from definition (gcc3 likes them only in declaration).
1689 * package_version.cc: Add 'using namespace std;'.
1690 (packageversion::set_requirements): Remove default parameter
1691 values from definition (gcc3 likes them only in declaration).
1692
37decc22
RC
16932002-11-10 Robert Collins <rbtcollins@hotmail.com>
1694
1695 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
1696 header includes it.
1697
16982002-11-04 Max Bowsher <maxb@ukf.net>
1699
1700 * compress_bz.h: #undef small before including bzlib.h - if we are
1701 going to hide the fact that we are _WIN32 from bzlib, then we need
1702 to #undef small for it as well (bad windows.h clash).
1703
a55c8f45
RC
17042002-11-10 Robert Collins <rbtcollins@hotmail.com>
1705
1706 * localdir.cc: Update the extern LogFile to be a pointer.
1707 (save_local_dir): Change . to -> for the above.
1708 * main.cc (theFile): Change from an instance to a pointer.
1709 (main): Change . to -> for the above.
1710
c83c52d8
RC
17112002-11-10 Robert Collins <rbtcollins@hotmail.com>
1712
1713 * LogFile.cc: use 'std::' where needed throughout.
1714 (LogFile::createLogFile): Implement a factory for LogFile.
1715 (LogFile::LogFile): Update for use with the factory, and to
1716 handle the latest g++ library changes.
1717 (LogFile::operator()): Ditto.
1718 (LogFile::endEntry()): Ditto.
1719 * LogFile.h: Ditto.
1720 * LogSingleton.cc: Ditto.
1721 * LogSingleton.h: Ditto.
1722
318af134
RC
17232002-11-04 Max Bowsher <maxb@ukf.net>
1724
1725 * String++.h: Add 'std::' where needed.
1726
6625e635
RC
17272002-11-04 Max Bowsher <maxb@ukf.net>
1728
1729 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
1730 * IniParseFindVisitor.cc: Ditto.
1731 * LogFile.cc: Ditto.
1732 * LogSingleton.cc: Ditto.
1733 * PickView.cc: Ditto.
1734 * String++.cc: Ditto.
1735 * choose.cc: Ditto.
1736 * download.cc: Ditto.
1737 * find.cc: Ditto.
1738 * install.cc: Ditto.
1739 * io_stream.cc: Ditto.
1740 * io_stream_file.cc: Ditto.
1741 * package_db.cc: Ditto.
1742 * root.cc: Ditto.
1743 * site.cc: Ditto.
1744
955bf437
RC
17452002-11-04 Max Bowsher <maxb@ukf.net>
1746
1747 * LogSingleton.h: Add 'std::' where needed.
1748
b34fb59f
RC
17492002-11-04 Max Bowsher <maxb@ukf.net>
1750
1751 * archive_tar_file.cc: Include <algorithm>.
1752 Change min(a,b) to std::min(a,b)
1753 * compress_bz.cc: Ditto.
1754 * compress_gz.cc: Ditto.
1755
326fbcb8
RC
17562002-11-04 Max Bowsher <maxb@ukf.net>
1757
1758 * res.rc: Change a #-comment (invalid) to a //-comment.
1759
4361306f
RC
17602002-11-04 Max Bowsher <maxb@ukf.net>
1761
1762 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
58b12a06
MB
1763 (inilint_LDADD): Remove -lstd++.
1764 (setup_LDADD): Ditto.
4361306f 1765
05d7b7f2
RC
17662002-09-22 Max Bowsher <maxb@ukf.net>
1767
1768 * IniDBBuilderPackage.cc: Update DEBUG code to current class
1769 layout.
1770
f2ff9838
RC
17712002-09-21 Robert Collins <rbtcollins@hotmail.com>
1772
1773 * choose.h: Add OnUnattended method.
1774 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
1775 control via command line options.
1776 (DesktopSetupPage::OnUnattended): Implement.
1777 (DesktopSetupPage::OnMessageApp): Implement.
1778 * desktop.h (DesktopSetupPage::OnUnattended): declare.
1779 (DesktopSetupPage::OnMessageApp): Ditto.
1780 * download.cc (do_download_thread): Support unattended mode.
1781 * install.cc (do_install_thread): Ditto.
1782 * localdir.h: Ditto.
1783 * main.cc (main): Ditto.
1784 * net.cc (NetPage::OnUnattended): Ditto.
1785 * net.h (NetPage::OnUnattended): Declare.
1786 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
1787 * proppage.h (PropertyPage::OnUnattended): Declare.
1788 * root.cc (RootPage::OnInit): Support unattended mode.
1789 (RootPage::OnUnattended): Implement.
1790 * root.h (RootPage::OnUnattended): Declare.
1791 * site.cc (register_saved_site): Extract Method from get_saved_sites.
1792 (get_saved_sites): Remove common code for adding a site.
1793 (SitePage::OnInit): Support unattended mode.
1794 (SitePage::OnUnattended): Implement.
1795 * site.h (SitePage::OnUnattended): Declare.
1796 * source.cc (SourcePage::OnActivate): Support unattended mode.
1797 (SourcePage::OnUnattended): Implement.
1798 * source.h (SourcePage::OnUnattended): Declare.
1799 * splash.h (SplashPage::OnUnattended): Declare.
1800 * state.cc (unattended_mode): Declare.
1801 * state.h (unattended_mode): Declare.
1802 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
1803
707f3d66
RC
18042002-09-21 Robert Collins <rbtcollins@hotmail.com>
1805
1806 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
1807
ec13f13c
RC
18082002-07-15 Robert Collins <rbtcollins@hotmail.com>
1809
1810 * package_version.cc (packageversion::sources): Implement this.
1811 * download.cc (do_download_thread): Support multiple files per package.
1812
e5662e0a
RC
18132002-07-15 Robert Collins <rbtcollins@hotmail.com>
1814
1815 * package_version.h (packageversion::sources): Support multiple files in
1816 a single package version.
1817 * package_version.cc (_packageversion::accessible): Ditto.
1818 (packageversion::source): Ditto.
1819
60daae94
RC
18202002-07-15 Robert Collins <rbtcollins@hotmail.com>
1821
1822 * iniparse.y: Implement support for multiple source files for a source
1823 package.
1824 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
1825 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
1826 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
1827 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
1828 stub as preparation.
1829
4f591f9d
RC
18302002-07-13 Robert Collins <rbtcollins@hotmail.com>
1831
1832 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
1833 packages under all circumstances - slightly higher overheader, simpler
1834 code.
1835 * download.cc (do_download_thread): Correctly download source
1836 packages.
1837 * package_meta.cc (checkForInstalled): Remove.
1838 (checkForUpgradeable): Ditto.
1839 (checkForSatisfiable): Ditto.
1840 (processOneDependency): Ditto.
1841 (packagemeta::set_requirements): Move guts to packageversion.
1842 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
1843 (checkForUpgradeable): Ditto.
1844 (checkForSatisfiable): Ditto.
1845 (processOneDependency): Ditto.
1846 (packageversion::set_requirements): Ditto.
1847 * package_version.h (packageversion::set_requirements): Declare.
1848
b1ff53ed
RC
18492002-07-13 Robert Collins <rbtcollins@hotmail.com>
1850
1851 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
1852 (IniDBBuilder::buildBeginBinary): Implement.
1853 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
1854 (IniDBBuilder::buildBeginBinary): Ditto.
1855 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
1856 Implement.
1857 (IniDBBuilderPackage::buildBeginBinary): Ditto.
1858 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
1859 Declare.
1860 (IniDBBuilderPackage::buildBeginBinary): Ditto.
1861 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
1862 T_UNKNOWN.
1863 * iniparse.y: Full support for parsing a debian Sources file in-line in
1864 setup.ini.
1865 * package_version.cc (packageversion::binaries): Implement.
1866 * package_version.h (packageversion::binaries): Declare list of what
1867 packages are created from a given source package.
1868 (_packageversion::binaries): Ditto.
1869
233a3e17
RC
18702002-07-10 Robert Collins <rbtcollins@hotmail.com>
1871
1872 * iniparse.y: Add basis for support for parsing a debian Sources file.
1873 * inilex.l: Ditto.
1874
cfae3b8d
RC
18752002-07-09 Robert Collins <rbtcollins@hotmail.com>
1876
1877 Change custom container code for packagedb::packages to STL containers
1878 throughout.
1879 * IniDBBuilderPackage.cc: Ditto.
1880 * PickView.cc: Ditto.
1881 * choose.cc: Ditto.
1882 * desktop.cc: Ditto.
1883 * download.cc: Ditto.
1884 * install.cc: Ditto.
1885 * package_db.cc: Ditto.
1886 * package_db.h: Ditto.
1887 * Makefile.am: Remove list.h references.
1888 * list.h: Remove.
1889
09130e58
RC
18902002-07-08 Max Bowsher <maxb@ukf.net>
1891
1892 * PickView.cc (PickView::PickView): Set font of package list header to
1893 the same as used in the rest of the package list.
1894
a75ed5ce
RC
18952002-07-08 Robert Collins <rbtcollins@hotmail.com>
1896
1897 * install.cc (NoReplaceOnReboot): New command line option to prevent
1898 replacing in use files.
1899 (install_one_source): Check the option and use it.
1900 * README: Update TODO lists.
1901
0cf68afd
RC
19022002-07-08 Robert Collins <rbtcollins@hotmail.com>
1903
1904 * PickCategoryLine.cc: Change bucket to use STL container syntax
1905 throughout.
1906 (PickCategoryLine::paint): Use new Category type syntax.
1907 * PickCategoryLine.h: Use STL vectors rather than custom containers
1908 throughout.
1909 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
1910 Use new add_category syntax.
1911 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
1912 (PickView::insert_category): Ditto.
1913 (PickView::init_headers): Ditto.
1914 * category.cc: Trim obsolete code.
1915 * category.h: Replace interconnecting class with a typedef to
1916 facilitate leveraging STL maps.
1917 * choose.cc (fill_missing_category): Use updated pkg.add_category
1918 syntax.
1919 (default_trust): Use new Category type syntax.
1920 (set_view_mode): Ditto.
1921 (create_listview): Ditto.
1922 * package_db.cc (categories): Ditto.
1923 * package_db.h: Update headers list to include needed headers.
1924 (packagedb::categories): Replace custom list with STL map.
1925 * package_meta.cc: Use new Category type syntax throughout.
1926 (packagemeta::add_category): Implement new syntax.
1927 * package_meta.h: Remove commented out source.
1928 (packagemeta::add_category): Update syntax to decouple interface from
1929 packagedb.
1930
89374d4a
CF
19312002-07-06 Christopher Faylor <cgf@redhat.com>
1932
1933 * site.cc (do_download_site_info_thread): Correct spelling error.
1934
405d7186
RC
19352002-07-06 Robert Collins <rbtcollins@hotmail.com>
1936
1937 * PickCategoryLine.h: Include required header list.h.
1938 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
1939 containers for listing of packages per category and vice verca.
1940 * PickView.cc (PickView::insert_pkg): Ditto.
1941 (PickView::insert_category): Ditto.
1942 * String++.h (String::caseless): STL helper to allow trivial containers
1943 of Strings with case insensitive comparisons.
1944 * category.h: Adjust to use STL containers for listing of packages per
1945 category and vice verca.
1946 * choose.cc (fill_missing_category): Ditto.
1947 (default_trust): Ditto.
1948 (ChooserPage::OnNext): Ditto.
1949 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
1950 (packagemeta::packagemeta): Adjust for new category list name.
1951 (packagemeta::~packagemeta): Adjust to use STL containers for listing
1952 of packages per category and vice verca.
1953 (packagemeta::set_action): Ditto.
1954 * package_meta.h (CategoryPackage): Remove.
1955 (packagemeta): Adjust to use STL containers for listing of packages per
1956 category and vice verca.
1957
080bec6e
RC
19582002-07-05 Robert Collins <rbtcollins@hotmail.com>
1959
1960 * io_stream.cc: Use STL containers rather than custom ones.
1961 (io_stream::registerProvider): Ditto.
1962 (findProvider): Ditto.
1963
3f34f364
RC
19642002-07-05 Robert Collins <rbtcollins@hotmail.com>
1965
1966 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
1967 Use STL collections for download site collections.
1968 (IniDBBuilderPackage::add_correct_version): Ditto.
1969 (IniDBBuilderPackage::process_src): Ditto.
1970 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
1971 accessible() call to abstract package availability.
1972 * choose.cc (scanAVersion): Use STL collections for download site
1973 collections.
1974 * download.cc (check_for_cached): Ditto.
1975 (download_one): Ditto.
1976 * package_meta.cc (packagemeta::set_action): Use the packageversion
1977 accessible() call to abstract package availability.
1978 * package_source.h: Use STL containers rather than custom containers.
1979 (site): Create a == operator to allow STL container use.
1980 (packagesource::sites): Use STL containers rather than custom
1981 containers.
1982 * package_version.cc (_packageversion::accessible): Use STL containers
1983 for download site containers.
1984
e2cdf72c
RC
19852002-07-05 Robert Collins <rbtcollins@hotmail.com>
1986
1987 * LogFile.cc: Use STL containers rather than custom containers.
1988 (filedef): Create == and < operators for STL use.
1989 (files): Convert to an STL set.
1990 (LogFile::setFile): Use STL operations on files.
1991 (LogFile::exit): Ditto.
1992
3bac26a1
RC
19932002-07-05 Robert Collins <rbtcollins@hotmail.com>
1994
1995 * ini.cc (do_remote_ini): Use STL collection for site collection.
1996 * site.cc: Include site.h first to ensure it's parsable standalone.
1997 Use STL algorithms.
1998 (site_list): Convert to an STL container.
1999 (all_site_list): Ditto.
2000 (site_list_type::site_list_type): Implement copy constructor.
2001 (site_list_type::operator=): Implement assignment operator.
2002 (site_list_type::operator ==): Implement.
2003 (site_list_type::operator <): Ditto.
2004 (save_dialog): Use STL collection calls for site collection.
2005 (save_site_url): Ditto.
2006 (get_site_list): Ditto.
2007 (get_saved_sites): Ditto.
2008 (do_download_site_info_thread): Ditto.
2009 (SitePage::OnNext): Ditto.
2010 (SitePage::PopulateListBox): Ditto.
2011 (SitePage::OnMessageCmd): Ditto.
2012 * site.h: Use STL vectors instead of custom code.
2013 (site_list_type::site_list_type): Declare.
2014 (site_list_type::operator=): Ditto.
2015 (site_list_type::operator ==): Ditto.
2016 (site_list_type::operator !=): Ditto.
2017 (site_list_type::operator <): Ditto.
2018 (site_list_type::operator <=): Ditto.
2019 (site_list_type::operator >): Ditto.
2020 (site_list_type::operator >=): Ditto.
2021 (site_list): Convert to an STL container.
2022 (all_site_list): Ditto.
2023
528a8edb
RC
20242002-07-05 Robert Collins <rbtcollins@hotmail.com>
2025
2026 * choose.cc (default_trust): Check package accessibility before
2027 triggering an install. (Suggested by Pavel).
2028
20292002-07-03 Pavel Tsekov <ptsekov@gmx.net>
2030
2031 * compress_gz.cc (compress_gz::construct): Always initialize key members
2032 to ensure the destructor does the right thing.
2033
4e868a01
RC
20342002-07-03 Pavel Tsekov <ptsekov@gmx.net>
2035
2036 * filemanip.cc (parse_filename): Do not try to parse empty
2037 strings (filenames).
2038 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
2039 extracted good package name and filename.
2040
7f2b9277
RC
20412002-07-03 Robert Collins <rbtcollins@hotmail.com>
2042
2043 * package_meta.cc (packagemeta::set_requirements): Automatically select
2044 version of dependent packages that satisfies the requirements.
2045 Use processOneDependency to trigger the install of those packages.
2046 (checkForInstalled): Check that the package remains installed.
2047 (processOneDependency): Helper function for dependent packages.
2048 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
2049 debug information.
2050 Clear out all current state on new packages.
2051 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
2052 across.
2053
84c4f5d1
RC
20542002-07-02 Robert Collins <rbtcollins@hotmail.com>
2055
2056 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
2057 nb: inilint is still incomplete, as the packageversion code is not
2058 ready for database-less linking.
2059 * site.cc (get_site_list): When the same site is reentered by the user
2060 replace the old one. (Suggested by John Marshall).
2061
64cd7f94
RC
20622002-07-02 Robert Collins <rbtcollins@hotmail.com>
2063
2064 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
2065 Clear out package selections when generating implicit source packages.
2066 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
2067 (PackageSpecification::_operators::satisfies): Implement.
2068 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
2069 Worker function for testing versions.
2070
3c196821
RC
20712002-07-01 Robert Collins <rbtcollins@hotmail.com>
2072
2073 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
2074 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
2075 * IniDBBuilderPackage.cc: Use the STL algorithms.
2076 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
2077 functions for the same variable throughout.
2078 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
2079 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
2080 and set an empty source package.
2081 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
2082 to record an install package.
2083 (IniDBBuilderPackage::buildPackageSource): Move source package logic
2084 out from process_src, as it now occurs at separate times.
2085 (IniDBBuilderPackage::buildPackageRequirement): Remove.
2086 (IniDBBuilderPackage::buildSourceName): Use renamed package
2087 specifiation accessor for clarity.
2088 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
2089 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
2090 than custom code.
2091 Remove source package references.
2092 (IniDBBuilderPackage::process_src): Remove source package code as it's
2093 now handled separately.
2094 Set Path information before merging versions, to prevent dangling
2095 pointers.
2096 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
2097 Remove.
2098 (IniDBBuilderPackage::cpv): Remove.
2099 (IniDBBuilderPackage::cbpv): New generic binary working variable.
2100 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
2101 (IniDBBuilderPackage::csp): Source package variable for disjoint
2102 source packages.
2103 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
2104 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
2105 * PickPackageLine.cc: Adjust packageversion accessors to the new
2106 reference calls. (i.e. -> to .) throughout.
2107 (PickPackageLine::paint): Use accessible() for clarity.
2108 Use new split out source package logic.
2109 (PickPackageLine::click): Ditto.
2110 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
2111 to the new reference calls. (i.e. -> to .) throughout.
2112 Use new split out source package logic.
2113 * choose.cc: Don't depend on a specific package type.
2114 Adjust packageversion accessors to the new reference calls. (i.e. -> to
2115 .) throughout.
2116 (set_existence): Use accessible () for clarity.
2117 (default_trust): Simplify a little.
2118 (scanAVersion): Factored out code from scan_downloaded_files for
2119 clarity.
2120 (scan_downloaded_files): Factor out inner loop for clarity.
2121 (ChooserPage::OnNext): Don't dump the dependency list,
2122 it's parsing is robust now!.
2123 * cygpackage.cc (createInstance): Use a factory method to create new
2124 objects.
2125 (cygpackage::cygpackage): Make this private for use by the factory.
2126 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
2127 Remove key usage as it's obsolete.
2128 * cygpackage.h (cygpackage): Inherit from _packageversion, not
2129 packageversion.
2130 (cygpackage::createInstance): New factory.
2131 (cygpackage::cygpackage): Make private.
2132 * desktop.cc (make_passwd_group): Use new packageversion reference.
2133 * download.cc (do_download_thread): Use changeRequested() for clarity.
2134 Use new packageversion reference calls.
2135 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
2136 requires code.
2137 * install.cc: Adjust -> to ., and use the new accessor functions for
2138 packageversion throughout.
2139 * package_db.cc: Adjust -> to ., and use the new accessor functions for
2140 packageversion throughout.
2141 (packagedb::packagedb): Use the new cygpackage factory.
2142 (packagedb::flush): Leverage String to remove buffer overflow chance in
2143 sprintf.
2144 (packagedb::findBinary): Find a binary meta package that has a version
2145 matching a given specification.
2146 (packagedb::findSource): Ditto, but for source.
2147 * package_db.h (packagedb::findBinary): Declare.
2148 (packagedb::findSource): Ditto.
2149 * package_meta.cc: Adjust packageversion accessors to the new
2150 reference calls. (i.e. -> to .) throughout.
2151 Include the package_meta header first to ensure it parses standalone.
2152 Use the STL algorithms.
2153 (packagemeta::packagemeta): Create a copy constructor to allowing
2154 cloning binary package metadata to source package metadata.
2155 (packagemeta::~packagemeta): Use the STL coleltion code rather than
2156 custom collection code.
2157 (packagemeta::add_version): Ditto.
2158 (packagemeta::set_installed): Ditto.
2159 (packagemeta::SDesc): Ditto.
2160 (hasSDesc): Helper function for find_if.
2161 (checkForInstalled): Ditto.
2162 (checkForUpgradeable): Ditto.
2163 (checkForSatisfiable): Ditto.
2164 (packagemeta::action_caption): Update for split out source packages.
2165 (packagemeta::set_action): Ditto.
2166 (packagemeta::set_requirements): Support multi-valued dependency
2167 lists - a|b & c|d - with versioned package specifications.
2168 (packagemeta::accessible): Helper member to improve abstraction.
2169 (packagemeta::sourceAccessible): Ditto.
2170 * package_meta.h: Adjust packageversion accessors to the new
2171 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
58b12a06 2172 (packagemeta::packagemeta): Declare copy constructor.
3c196821
RC
2173 Remove self initialising members.
2174 (packagemeta::set_action): Update parameters for new packageversion.
2175 (packagemeta::trustp): Ditto.
2176 (packagemeta::versions): Becomes an STL set.
2177 * package_source.h (packagesource::Cached): Const correctness change.
2178 * package_version.cc: Rewrite the packageversion interface to remove
2179 the cygpackage nonvirtual members, and provide a copy by value,
2180 pointer semantics reference counting wrapper class to ease use and
2181 comparison of packageversions.
2182 Change existing packageversion class to _packageversion throughout.
2183 (_defaultversion): A trivial concrete class to prevent specialcasing
2184 the default constructor for packageversion;
2185 (packageversion::packageversion): Implement.
2186 (packageversion::~packageversion): Ditto.
2187 (packageversion::operator=): Ditto.
2188 (packageversion::operator !): Ditto.
2189 (packageversion::operator bool): Ditto.
2190 (packageversion::operator ==): Ditto.
2191 (packageversion::operator !=): Ditto.
2192 (packageversion::operator <): Ditto.
2193 (packageversion::Name): Ditto.
2194 (packageversion::Canonical_version): Ditto.
2195 (packageversion::setCanonicalVersion): Ditto.
2196 (packageversion::getfirstfile): Ditto.
2197 (packageversion::getnextfile): Ditto.
2198 (packageversion::SDesc): Ditto.
2199 (packageversion::set_sdesc): Ditto.
2200 (packageversion::LDesc): Ditto.
2201 (packageversion::set_ldesc): Ditto.
2202 (packageversion::sourcePackage): Ditto.
2203 (packageversion::sourcePackageSpecification): Ditto.
2204 (packageversion::setSourcePackageSpecification): Ditto.
2205 (packageversion::depends): Ditto.
2206 (packageversion::predepends): Ditto.
2207 (packageversion::recommends): Ditto.
2208 (packageversion::suggests): Ditto.
2209 (packageversion::replaces): Ditto.
2210 (packageversion::conflicts): Ditto.
2211 (packageversion::provides): Ditto.
2212 (packageversion::picked): Ditto.
2213 (packageversion::pick): Ditto.
2214 (packageversion::changeRequested): Ditto.
2215 (packageversion::uninstall): Ditto.
2216 (packageversion::source): Ditto.
2217 (packageversion::accessible): Ditto.
2218 (_packageversion::sourcePackage): Ditto.
2219 (_packageversion::accessible): Ditto.
2220 (_packageversion::changeRequested): Ditto.
2221 * package_version.h: Rewrite the packageversion interface to remove
2222 the cygpackage nonvirtual members, and provide a copy by value,
2223 pointer semantics reference counting wrapper class to ease use and
2224 comparison of packageversions.
2225 Change existing packageversion class to _packageversion throughout.
2226 (Dependency): Remove.
2227 (packageversion): New wrapper class.
2228 (_packageversion): Renamed from packageversion.
2229 (_packageversion::setCanonicalVersion): New method.
2230 (_packageversion::sourcePackage): Ditto.
2231 (_packageversion::sourcePackageSpecification): Ditto.
2232 (_packageversion::setSourcePackageSpecification): Ditto.
2233 (_packageversion::changeRequested): Ditto.
2234 (_packageversion::bin): Rename to source.
2235 (_packageversion::src): Remove.
2236 (_packageversion::accessible): New method.
2237 (_packageversion::references): Allow reference counting.
2238 (_packageversion::sourceVersion): Cached the best-match source
2239 package version.
2240
387cb501
RC
22412002-06-27 Robert Collins <rbtcollins@hotmail.com>
2242
2243 * compress_bz.h (compress_bz::position): Track how much has been read.
2244 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
2245 (compress_bz::read): Track amount read by the client.
2246 (compress_bz::tell): And report it when asked.
2247
7d702af3
RC
22482002-06-27 Robert Collins <rbtcollins@hotmail.com>
2249
2250 * Makefile.am (snapshot): Automate snapshot creation some more.
2251
08cd08c3
RC
22522002-06-27 Robert Collins <rbtcollins@hotmail.com>
2253
2254 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
2255 (mbox): Ditto.
2256 * ini.cc (fprintf): Ditto.
2257 * log.cc (log): Ditto.
2258 * package_db.cc (packagedb::sourcePackages): Split out source packages
2259 from binary packages.
2260 * package_db.h: Ditto.
2261
aa1e3b4d
RC
22622002-06-27 Robert Collins <rbtcollins@hotmail.com>
2263
2264 * PackageSpecification.h: New file. Abstracts the ability to refer
2265 to another package, by name, or name and version.
2266 * PackageSpecification.cc: Ditto.
2267 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
2268 (IniDBBuilder::buildPackageSource): Ditto.
2269 (IniDBBuilder::buildBeginDepends): New method for versioned
2270 dependencies.
2271 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
2272 satisfied before pre-install.
2273 (IniDBBuilder::buildPriority): New method, for getting the package
2274 Priority.
2275 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
2276 (IniDBBuilder::buildMaintainer): Who maintains the package?
2277 (IniDBBuilder::buildArchitecture): What platform is it for?
2278 (IniDBBuilder::buildInstallSize): How big is the binary download?
2279 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
2280 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
2281 (IniDBBuilder::buildBeginRecommends): What other packages are
2282 recommended with this one?
2283 (IniDBBuilder::buildBeginSuggests): And suggested?
2284 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
2285 (IniDBBuilder::buildBeginConflicts): And collide with?
2286 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
2287 package names) does this provide?
2288 (IniDBBuilder::buildDescription): Grab a multi line description one
2289 line at a time.
2290 (IniDBBuilder::buildSourceName): What source package should be used to
2291 install the source for this binary package?
2292 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
2293 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
2294 list of package specifications.
2295 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
2296 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
2297 to the current specification.
2298 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
2299 operator act on?
2300 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
2301 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
2302 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
2303 (IniDBBuilderPackage::process_src): Streamline and split out
2304 functionality.
2305 (IniDBBuilderPackage::setSourceSize): From process_src.
2306 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
2307 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
2308 (IniDBBuilderPackage::currentOrList): Track the current Or list.
2309 (IniDBBuilderPackage::currentAndList): Track the current And list.
2310 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
2311 progress on parsing.
2312 (IniParseFeedback::iniName): Tell what ini filename we are currently
2313 processing.
2314 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
2315 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
2316 Make the feedback object non-const to allow mutating methods which are
2317 needed when the object has state.
2318 (IniParseFindVisitor::visitFile): Tell the caller the name of each
2319 .ini found.
2320 Initialise the parser with the feedback object to allow it to tell of
2321 progress.
2322 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
2323 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
2324 (setup_SOURCES): Add the new PackageSpecification sources.
2325 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
2326 builder syntax to setup binary package details.
2327 * choose.cc: Use the LogSingleton calls throughout.
2328 * configure.in: Create the INILINT substitution correctly for recent
2329 autotool configurations.
2330 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
2331 rather than a string built from an int. Thanks to Pavel Tsekov for
2332 identifying the bug.
2333 (cygpackage::getnextfile): Ditto.
2334 * download.cc: Use LogSIngletion calls throughout.
58b12a06 2335 (validateCachedPackage): A refactoring of the
aa1e3b4d
RC
2336 check_for_cached code to eliminate duplciation.
2337 (check_for_cached): Use validateCachedPackage to check packages.
2338 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
2339 parsing progress.
2340 (do_remote_ini): Ditto.
2341 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
2342 progress reporting.
2343 * inilex.l: Identify new symbols - operators, and multi line plain text.
2344 Releases files.
2345 * inilintmain.cc (show_help): Provide basic infomation on inilint.
2346 * iniparse.y: Adjust for the new builder syntax, and process debian
2347 Release files.
2348 * io_stream_file.cc: Always include mkdir.h.
2349 * list.h: Factor index location into a private routine.
2350 (list::findindex): Implement this.
2351 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
2352 builds. NB: This breaks cygwin build functionality still.
2353 * package_meta.cc: Use the LogSingleton calls throughout.
2354 (packagemeta::set_requirements): Adjust for object changes in
2355 dependencies.
2356 * package_meta.h (packagemeta::packagemeta): Initialise new members.
2357 (packagemeta::architecture): What platform does this package run on?
2358 This may need to move in the future to a per packagefile object.
58b12a06 2359 (packagemeta::priority): What priority does this package have?
aa1e3b4d
RC
2360 * package_source.h (packagesource::packagesource): Initialise new
2361 members.
2362 (packagesource::installedSize): How much space does the package need?
2363 (packagesource::setInstalledSize): Tell the amount.
2364 (packagesource::_installedSize): And store it.
2365 * package_version.cc (packageversion::sourcePackage): return the
2366 source package.
2367 (packageversion::setSourcePackage): And set it.
2368 * package_version.h: Declare the package_version.cc changes.
2369 (packageversion::depends): New package specification AND list.
2370 (packageversion::predepends): Ditto.
2371 (packageversion::recommends): Ditto.
2372 (packageversion::suggests): Ditto.
2373 (packageversion::replaces): Ditto.
2374 (packageversion::conflicts): Ditto.
2375 (packageversion::provides): Ditto.
2376 (packageversion::sourcePackage): What source package is needed?
2377 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
2378 the bottom bar.
2379 * threebar.h: Declare the threebar.cc change.
2380
23812002-06-27 John Marshall <johnm@falch.net>
2382
2383 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
2384 * site.cc (SitePage::OnMessageCmd): Ditto
2385
2a994e0b
RC
23862002-06-15 Robert Collins <rbtcollins@hotmail.com>
2387
2388 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
2389
ceff7035
RC
23902002-06-15 Robert Collins <rbtcollins@hotmail.com>
2391
2392 * package_meta.cc (packagemeta::set_action): When installing packages
2393 with no binaries, choose the source package.
2394
9bd27040
RC
23952002-06-10 Robert Collins <rbtcollins@hotmail.com>
2396
2397 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
2398 Bowshers fix for the crash with a root level setup.ini.
2399 * README: Update todos.
2400
1dcff4a0
RC
24012002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
2402
2403 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
2404 GNU long name extension support.
2405
0773e4f2
RC
24062002-05-27 Robert Collins <rbtcollins@hotmail.com>
2407
2408 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
2409 unescape 0 length strings.
2410
a828d772
RC
24112002-05-20 Robert Collins <rbtcollins@hotmail.com>
2412
2413 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
2414 when local with no cached file, and install the default source if the
2415 default version has no binary.
2416
67829ce0
RC
24172002-05-19 Robert Collins <rbtcollins@hotmail.com>
2418
2419 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
2420 method.
2421 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
2422 setup version created the ini file.
2423 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
2424 method.
2425 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
2426 feedback strategy.
2427 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
2428 Require a feedback strategy.
2429 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
2430 * Makefile.in: Regenerate.
2431
4849e2fc
RC
24322002-05-19 Robert Collins <rbtcollins@hotmail.com>
2433
2434 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
2435 trick to delete read only files.
2436 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
2437 remove files.
2438 * Makefile.am (release): Tweak to be more helpful.
2439 * Makefile.in: Regenerate.
2440
7cb35117
RC
24412002-05-19 Robert Collins <rbtcollins@hotmail.com>
2442
2443 * Makefile.am (release): Tweak to be more helpful.
2444 * Makefile.in: Regenerate.
7cb35117 2445
5090e3ce
RC
24462002-05-19 Robert Collins <rbtcollins@hotmail.com>
2447
2448 * Makefile.am (release): Tweak to be more helpful.
2449 * Makefile.in: Regenerate.
2450
9e9b881a
RC
24512002-05-19 Robert Collins <rbtcollins@hotmail.com>
2452
2453 * choose.cc (scan_downloaded_files): When a non-installed version
2454 has neither bin nor src cached files for local installs,
2455 remove the version from availability.
2456
ea36e064
RC
24572002-05-19 Robert Collins <rbtcollins@hotmail.com>
2458
2459 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
2460
b401ef47
RC
24612002-05-19 Robert Collins <rbtcollins@hotmail.com>
2462
2463 * rsync: New support library, contains librsync. This is not (yet)
2464 rsync interoperable.
2465 * configure.in: --with-rsync to enable rsync support. (Not complete).
2466 * Makefile.am: Enable building with rsync.
2467 * Makefile.in: Regenerate.
2468 * configure: Ditto.
2469 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
2470 an array.
2471 (IniDBBuilder::buildPackageSource): Ditto.
2472 * IniDBBuilder.h: Ditto.
2473 * IniDBBuilderPackage.cc: Ditto.
2474 * IniDBBuilderPackage.h: Ditto.
2475 * FindVisitor.cc: New file.
2476 * FindVisitor.h: New file, interface for visiting a file system
2477 aggregate.
2478 * IniParseFindVisitor.cc: New file.
2479 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
2480 found setup.ini's.
2481 * README: Update TODO's.
2482 * String++.cc (String::String): New constructor for <string> inter-
2483 operability.
2484 (String::substr): New method.
2485 * String++.h: Ditto.
2486 * choose.cc (scan2): Remove.
2487 (scan_downloaded_files): Simplify.
2488 * dialog.h: Include parsing pre-requirements.
2489 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
2490 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
2491 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
2492 * find.h: Ditto.
2493 * fromcwd.cc: Remove unneeded includes.
2494 (is_test_version): Remove.
2495 (found_file): Remove.
2496 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
2497 (found_ini): Remove.
2498 (do_fromcwd): Remove commented code that has be replaced elsewhere.
2499 * ini.cc (local_ini): Remove.
2500 (findBuilder): Remove.
2501 (find_routine): Remove.
2502 (do_local_ini): Use new IniParseFindVisitor.
2503 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
2504 unsigned char.
2505 * postinstall.cc: Remove non-core includes.
2506 (run_script_in_postinstall): Remove.
2507 (RunFindVisitor): Trivial Visitor, runs each found script.
2508 (do_postinstall): Use new find syntax.
2509
0d4e0aad
CF
25102002-05-14 Christopher Faylor <cgf@redhat.com>
2511
2512 * ini.cc (find_routine): Don't clear buffer it it's NULL.
2513
25142002-05-14 Christopher Faylor <cgf@redhat.com>
2515
2516 * filemanip.h (trail): Declare.
2517 * filemanip.cc (trail): New function.
2518 (find_tar_ext): Use trail() instead of strstr().
2519 * fromcwd.cc (check_ini): Ditto.
2520 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
2521 should now be fully qualified. Set ini_filename. Reset error_buf and
2522 error_count for any subsequent ini file parsing.
2523 (ini_filename): New static variable for parse error reporting.
2524 (yyerror): Use full path of setup.ini in error message. Subtract one
2525 from line number if at bol.
2526 * find.cc (found_part): Eliminate.
2527 (find_sub): Call for_each with full path found rather than just file
2528 component.
2529 (find): Don't calculate found_part.
2530 * inilex.l (ini_init): Flush input buffer and reset line number.
2531 (yybol): New function. Exports YY_AT_BOL.
2532 * iniparse.y: Increase stack depth to allow more tokens to be processed.
2533 (yyparse): Remove newline from error condition to allow subsequent
2534 per-line error processing to proceed normally.
2535
25362002-05-14 Christopher Faylor <cgf@redhat.com>
2537
2538 * find.cc (find_sub): Be more defensive in preserving trailing parts of
2539 components when doing recursive directory searches or calling user
2540 supplied for_each().
2541 * ini.cc (find_routine): Don't assume that any path name with
2542 "setup.ini" in it is actually a setup.ini file. Only honor trailing
2543 components. Copy path argument to temporary storage when unescaping
2544 to prevent nuking of argument.
2545
874c569a
RC
25462002-05-12 Robert Collins <rbtcollins@hotmail.com>
2547
2548 * CONTRIBUTORS: New file.
2549
f6a81f69
RC
25502002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2551
2552 * choose.cc: Run indent.
2553 (nextbutton): Remove static variable.
2554 (default_trust): Remove use of nextbutton.
2555 (set_view_mode): Ditto.
2556 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
2557 rbset() sets the prev/next/curr radio buttons properly.
2558 (dialog_cmd): Delete function.
2559 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
2560 ChooserPage::OnInit.
2561 (do_choose): Delete function. Move pre-DialogBox() code to
2562 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
2563 (WM_APP_START_CHOOSE): Remove define.
2564 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
2565 (do_choose_thread): Delete function.
2566 (ChooserPage::OnActivate): Delete method.
2567 (ChooserPage::OnMessageApp): Delete method.
2568 (ChooserPage::OnInit): New method.
2569 (ChooserPage::OnNext): New method.
2570 (ChooserPage::OnBack): New method.
2571 (ChooserPage::OnMessageCmd): New method.
2572 * choose.h: Run indent.
2573 (ChooserPage::OnMessageApp): Delete declaration.
2574 (ChooserPage::OnActivate): Ditto.
2575 (ChooserPage::OnMessageCmd): New declaration.
2576 (ChooserPage::OnInit): Ditto.
2577 (ChooserPage::OnNext): Ditto.
2578 (ChooserPage::OnBack): Ditto.
2579 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
2580 with IDD_CHOOSE.
2581 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
2582 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
2583 * res.rc (IDD_CHOOSE): Remove dialog template.
2584 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
2585
74617327
RC
25862002-05-12 Robert Collins <rbtcollins@hotmail.com>
2587
2588 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
2589 corrupt log file entries.
2590 * geturl.cc: Convert to the new LogSingleton logging.
2591
3272d625
RC
25922002-05-12 Robert Collins <rbtcollins@hotmail.com>
2593
2594 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
2595 setup.ini.
2596
fc687221
RC
25972002-05-12 Robert Collins <rbtcollins@hotmail.com>
2598
2599 * geturl.h: Declare getUrlToStream.
2600 * geturl.cc (getUrlToStream): New function.
2601 (get_url_to_membuf): Refactor to use getUrlToStream.
2602
902c8a3f
RC
26032002-05-11 Robert Collins <rbtcollins@hotmail.com>
2604
2605 * Makefile.am: Add a release target to automate some of the routine
2606 work.
2607 * Makefile.in: Regenerate.
2608
2ab26cdb
RC
26092002-05-11 Robert Collins <rbtcollins@hotmail.com>
2610
2611 * choose.cc (scan_downloaded_files): On local installs remove all
2612 mirror sites if no cached copy of a package is found.
2613
94852d65
RC
26142002-05-10 Robert Collins <rbtcollins@hotmail.com>
2615
2616 * Makefile.in: Regenerate.
58b12a06 2617 * iniparse.y: Use left recursion, not right in the lines rule to
94852d65
RC
2618 avoid stack overflows.
2619 * README: Update TODO's.
2620 * io_stream_file.cc: Native builds need to include sys/stat.h
2621
3548fbc3
RC
26222002-05-06 John Marshall <jmarshall@acm.org>
2623
2624 * site.cc (SitePage::OnMessageCmd): recalculate navigation
2625 button activation when "Add" is pressed.
2626 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
2627
26282002-05-07 Robert Collins <rbtcollins@hotmail.com>
2b48ecd0
RC
2629
2630 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
2631 depending on platform.
2632 Add file:// support.
2633 * configure.in: Set conditional MINGWTARGET if compiling against mingw
2634 libraries.
2635 * Makefile.in: Regenerate.
2636 * configure: Ditto.
2637 * io_stream_file.cc: Only use win32 calls when building for mingw.
2638
19911586
RC
26392002-05-05 Robert Collins <rbtcollins@hotmail.com>
2640
2641 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
2642 * configure.in: Ditto.
2643 Fix incorrect header checking syntax.
2644 * aclocal.m4: Regenerate.
2645 * configure: Regenerate.
2646 * Makefile.in: Regenerate.
2647 * io_stream.cc: Remove platform specific and provider specific code.
2648 (io_stream::registerProvider): New method, registers a Url provider with
2649 the io_stream code.
2650 Make all methods consistently throw invalid_argument exceptions when
2651 a provider that is requested is not present.
2652 (findProvider): New private function, finds a provider.
2653 * io_stream.h: Declare io_stream::registerProvider.
2654 * io_stream_cygfile.cc: Create a Provider class to register with
2655 io_stream.cc.
2656 * io_stream_file.cc: Ditto.
2657 * archive.cc: Remove unneeded includes.
2658 * archive_tar.cc: Remove unneeded includes.
2659 * archive_tar.h: Add required include.
2660 * archive_tar_file.cc: Remove unneded includes.
2661 * choose.cc: Remove unneeded includes:
2662
bf4ffcd9
RC
26632002-05-04 Robert Collins <rbtcollins@hotmail.com>
2664
2665 * io_stream.cc: Use the new log interface thruout.
2666
9f4a0c62
RC
26672002-05-04 Robert Collins <rbtcollins@hotmail.com>
2668
2669 * log.cc (log): Reimplement via LogSingleton.
2670 (log_save): Remove.
2671 (exit_setup): Remove.
2672 * log.h (log_save): Remove.
2673 (exit_setup): Remove.
2674 * LogSingleton.cc: New file.
2675 * LogSingleton.h: New file.
2676 * LogFile.cc: New file.
2677 * LogFile.h: New file.
2678 * Makefile.am (inilint_SOURCES): Add the new log interface.
2679 (setup_SOURCES): Add the new log interface and the concrete File
2680 implementation.
2681 * Makefile.in: Regenerate.
2682 * archive.cc: Use the new log interface thruout.
2683 * archive_tar.cc: Ditto.
2684 * main.cc: Ditto.
2685 * dialog.cc (fatal): Use the new log interface.
2686 * ini.cc (do_ini_thread): Use the log interface to exit.
2687 * isntall.cc (do_install_thread): Ditto.
2688 * netio.cc (auth_cmd): Ditto.
2689 * msg.cc (fatal): Ditto.
2690 * localdir.cc (save_local_dir): Save to different files depending on
2691 the mode, and if a root dir exists.
2692
076654e7
RC
26932002-05-04 Robert Collins <rbtcollins@hotmail.com>
2694
2695 * IniDBBuilder.cc: New file.
2696 * IniDBBuilder.h: New file.
2697 * IniDBBuilderPackage.cc: New file.
2698 * IniDBBuilderPackage.h: New file.
2699 * PackageTrust.h: New file.
2700 * IniState.h: Remove, wasn't thought out well enough.
2701 * Makefile.am (inilint_SOURCES): Add more requirements.
2702 (setup_SOURCES): Add new Builder base and concrete classes.
2703 * Makefile.in: Regenerate.
2704 * String++.cc (String::String): Implement int contructor.
2705 * String++.h (String): Declare int constructor.
2706 * archive_tar.cc (archive_tar::next_file_name): Return String() when
2707 no filename exists.
2708 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
2709 it's not needed.
2710 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
2711 (find_routine): Use new IniDBBuilder to configure the parser.
2712 (do_local_ini): Ditto.
2713 (do_remote_ini): Ditto.
2714 * ini.h: Use IniDBBuilder to initialise parsing.
2715 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
2716 swapped.
2717 (ini_init): Use an IniDBBuilder rather than static variables.
2718 * iniparse.y: Hand off all the object creation to a builder, rather
2719 than hardcoding the behaviour. This allows run-time configured
2720 behaviour.
2721 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
2722 method, it's not needed.
2723 * io_stream_file.h (io_stream_file): Ditto.
2724 * mount.cc (cygpath): Return String() for missing mounts.
2725 * package_meta.cc (packagemeta::SDesc): Return String() for blank
2726 descriptions.
2727 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
2728 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
2729 usage.
2730 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
2731 String constructor usage.
2732 * site.h (site_list_type): Ditto.
2733
6391823e
RC
27342002-05-03 Robert Collins <rbtcollins@hotmail.com>
2735
2736 * String++.h: Declare a << operator that accepts String objects.
2737 * String++.cc: We need iostream for..
2738 (operator <<): this. Provide a << operator that accepts String objects.
2739 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
2740 Change from vargs to a String parameter.
2741 * inilintmail.cc: Remove the gui related headers.
2742 (yyerror): Implement this for parsing.
2743 * iniparse.y: Use the new yyerror syntax.
2744
b92028a4
RC
27452002-05-03 Robert Collins <rbtcollins@hotmail.com>
2746
2747 * Makefile.am: Add IniState.h.
2748 * Makefile.in: Regenerate.
2749 * IniState.h: New file.
2750 * choose.cc: Don't include ini.h - it's not needed.
2751 * configure: Regenerate.
2752 * desktop.cc: Don't include ini.h - it's not needed.
2753 * download.cc: Ditto.
2754 * fromcwd.cc: Ditto.
2755 * ini.cc: Use IniState.h to track each parsing calling.
2756 (find_routine): Ditto.
2757 (do_remote_ini): Ditto.
2758 (do_ini_thread): Ditto.
2759 * ini.h (ini_init): Adjust parameters to include state object.
2760 * inilex.l: Declare parser state variable.
2761 (ini_init): Adjust parameters to include state object.
2762 * iniparse.y: Remove obsolete setup_timestamp and setup_version
2763 declarations.
2764 (setup_header): Use new state variable to track time and version.
2765 (add_correct_version): Ditto.
2766 * install.cc: Don't include ini.h - it's not needed.
2767
e0a4db64
RC
27682002-05-03 Robert Collins <rbtcollins@hotmail.com>
2769
2770 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
2771 * io_stream_file.cc: Don't include filemanip.h.
2772 (io_stream_file::get_size): Implement here to remove filemanip
2773 dependency.
2774 * io_stream_cygfile.cc: Don't include filemanip.h.
2775 (io_stream_cygfile::get_size): Implement here to remove filemanip
2776 dependency.
2777 Implement a stat based version for when win32 is not available.
2778 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
2779 * filemanip.cc: Don't include win32.h - be platform independent.
2780 Include strings.h and io_stream.h as part of that.
2781 (get_file_size): Leverage io_streams and remove win32 implementation.
2782 * download.cc (check_for_cached): Use io_stream syntax for
2783 get_file_size.
2784 (download_one): Ditto.
2785
27862002-05-02 Robert Collins <rbtcollins@hotmail.com>
ac65f5c5
RC
2787
2788 * configure.in: Correct a typo in last change.
2789 * configure: Regenerate.
2790 * Makefile.in: Regenerate.
2791
e0a4db64 27922002-05-02 Robert Collins <rbtcollins@hotmail.com>
e06ded88
RC
2793
2794 * configure.in: Check for string.h and string.
2795 * configure: Regenerate.
2796 * Makefile.in: Regenerate.
2797
1fd0694a
RC
27982002-05-01 Robert Collins <rbtcollins@hotmail.com>
2799
2800 * res.rc (IDD_SPLASH): Remove white box.
2801
89ca06c0
RC
28022002-05-01 Robert Collins <rbtcollins@hotmail.com>
2803
2804 Oops! forgot to list these in the last checkin.
2805 * inilintmain.cc: New file.
2806 * md5.h: New file - imported md5 source, BSD style licence.
2807 * md5.cc: New file - imported md5 source, BSD style licence.
2808 * Exception.cc: New file.
2809 * Exception.h: New file.
2810 * MD5++.cc: New file.
2811 * MD5++.h: New file.
2812
58ee6135
RC
28132002-05-01 Robert Collins <rbtcollins@hotmail.com>
2814
2815 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
2816 Remove -fno-rtti, we need it for exceptions.
2817 (AM_CXXFLAGS): Ditto.
2818 (WARNONLY_CFLAGS): Ditto.
2819 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
2820 (setup_LDFLAGS): Add and set to -mwindows.
2821 (setup_SOURCES): Add new sources.
2822 * Makefile.in: Regenerate.
2823 * README: Update TODO.
2824 * choose.cc (scan_downloaded_files): Use ini information if it's
2825 available.
2826 * configure: Regenerate.
2827 * download.cc (check_for_cached): Make reusable from elsewhere.
2828 Throw exceptions on errors (as opposed to failures).
2829 Check MD5 sum when it's known.
2830 (download_one): Never force a download.
2831 Handle corrupt package exceptions.
2832 * ini.cc (find_routine): Reverse escape the URL to correctly identify
2833 the site URL.
2834 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
2835 * iniparse.y: Allow calculation of MD5 sums, and allow src only
2836 packages.
2837 (process_src): New helper function.
2838 * isntall.cc (install_one_source): Check MD5 sums when possible.
2839 Throw exceptions on errors.
2840 (do_install_thread): Handle exceptions for installation calls.
2841 * package_source.h: Store MD5 information.
2842 * propsheet.cc (PropSheet::Create): Add a useful comment.
2843 * res.rc (IDS_INSTALL_ERROR): Define.
2844 (IDS_CORRUPT_PACKAGE): Define.
2845 * resource.h (IDS_INSTALL_ERROR): Define.
2846 (IDS_CORRUPT_PACKAGE): Define.
2847 * rfc1738.cc (rfc1738_unescape_part): Implement.
2848 * rfc1738.h (rfc1738_unescape_part): Declare.
2849
45e01f23
RC
28502002-04-29 Robert Collins <rbtcollins@hotmail.com>
2851
2852 * Makefile.am: Remove dependecy rules that automake emits.
2853 Correct badly copied dependency info for manually compiled files.
58b12a06 2854 (setup_SOURCES): Add all used headers.
45e01f23
RC
2855 (EXTRA_DIST): Include non compilate but required sources.
2856 (setup_LDADD): Remove mingw32, it is autodetected.
2857 * Makefile.in: Regenerate.
2858 * String++.h: sys/types is a system header.
2859 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
2860 Use ExitThread.
2861 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
2862 portable).
2863 * configure: Regenerate.
2864 * configure.in: Check for mingw32/cygwin specific headers and libraries.
2865 * cygpackage.h: Include the win32.h header to get correct macro
2866 definitions in all situations.
2867 * download.cc (do_download_reflector): Make into a Win32 thread routine.
2868 Use ExitThread.
2869 (do_download): Use Win32 threads.
2870 * ini.cc: Ditto.
2871 * install.cc: Ditto.
2872 * (WinMain): Adjust to build valid command line using application
2873 under both mingw32 and cygwin.
2874 * mount.cc (set)cygdrive_flags): Create new system flags if the
2875 user requests system and the value does not exist.
2876 * nio-http.cc: Define a _strnicmp for cygwin.
2877 * package_db.cc: Include <errno.h> if it exists.
2878 * site.cc (do_download_site_info_thread): Make into a Win32 thread
2879 routine.
2880 Use ExitThread.
2881 (do_download_site-Info): Use Win32 threads.
2882 * state.cc: Explicity declare variables to avoid header conflicts
2883 caused by '#define extern" on cygwin.
2884 * win32.h: Include <alloca.h> if it exists.
2885 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
2886 (_access): Define as access if not defined by windows.h.
2887
8bb9dad9
RC
28882002-04-27 Robert Collins <rbtcollins@hotmail.com>
2889
2890 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
2891
6908b7d7
RC
28922002-04-27 Robert Collins <rbtcollins@hotmail.com>
2893
2894 * Makefile.am: Add libgetopt++ to the subdirs list.
2895 Search the libgetopt++ header directory.
2896 Link against libgetopt++.la.
2897 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
2898 (setup_LDADD): Explicitly include res.o.
2899 * Makefile.in: Regenerate.
2900 * aclocal.m4: Regenerate.
2901 * bootstrap.sh: Call libtoolize.
2902 * configure: Regenerate.
2903 * configure.in: Add libtool support and configure libgetopt++.
2904 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
2905 (DesktopSetupPage::OnInit): Use the simpler syntax.
2906 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
2907 declaration.
2908 * main.cc: Include getopt++/GetOption.h.
2909 (main): Use simpler syntax.
2910 * cdefs.h: Remove.
2911 * getopt.h: Remove.
2912 * getopt.c: Remove.
2913 * GetOption.h: Remove.
2914 * GetOption.cc: Remove.
2915 * Option.h: Remove.
2916 * Option.cc: Remove.
2917
9063358a
RC
29182002-04-26 Robert Collins <rbtcollins@hotmail.com>
2919
2920 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
2921
f6100b6f
RC
29222002-04-26 Robert Collins <rbtcollins@hotmail.com>
2923
2924 * aclocal.m4: New file, cached macros.
2925 * bootstrap.sh: New file, calls required autotools in appropriate
2926 order.
2927 * Makefile.am: New file, input Makefile for automake.
2928 * Makefile,in: Now a generated file - regenerate.
2929 * configure: Regenerate.
2930 * configure.in: Add automake support.
2931 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
2932 automake's VERSION define.
2933 * iniparse.y: Ditto.
2934
db04fc41
RC
29352002-04-26 Robert Collins <rbtcollins@hotmail.com>
2936
2937 * cdefs.h: New file, imported to allow getopt.c to build without
2938 cygwin headers.
2939 * getopt.h: New file, imported to allow building without cygwin headers.
2940 * getopt.c: Ditto.
2941 * bz2lib: New directory, contains copy of bz2lib.
2942 * cfgaux: New directory, contains autotool helper scripts.
2943 * Makefile,in: Adjust library and target definitions for building
2944 outside the sourceware tree.
2945 * compress_bz.h: Use new bz2lib header location.
2946 * mount.cc: Import key defines and enums to be independent of cygwin
2947 headers.
2948 * configure.in: Update to autoconf 2.53, and to be sourceware
2949 independent.
2950 * configure: Regenerate.
2951
931f2755
RC
29522002-04-12 Robert Collins <rbtcollins@hotmail.com>
2953
2954 * mklink2.cc (make_link_2): Tweak to work with current w32api
2955 headers.
2956
29572002-04-10 Pavel Tsekov <ptsekov@gmx.net>
2958
2959 * version.cc (canonicalize_version): Fix a call delete[]
2960 to delete the allocated address.
2961
29622002-03-29 Robert Collins <rbtcollins@hotmail.com>
2963
2964 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
2965 to Ton van Overbeek for locating the bug area.
2966
49cf3899
RC
29672003-03-27 Robert Collins <rbtcollins@hotmail.com>
2968
2969 * PickView.cc (PickView::insert_pkg): Be more generic with
2970 object use.
2971 (PickView::insert_category): Ditto.
2972 (PickView::~PickView): Create.
2973 * PickView.h (PickView::~PickView): Declare.
2974
1be8f8fd
RC
29752003-03-27 Robert Collins <rbtcollins@hotmail.com>
2976
2977 * Makefile.in (OBJS): Add new commandline objects.
2978 * desktop.cc (NoShortCutsOption): New option code.
2979 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
2980 * desktop.h (NoShortCutsOption): New concrete command line option class.
2981 * main.cc (WinMain): Process command line options.
2982 * GetOption.h: New file, singleton command line class.
2983 * GetOption.cc: New file, implementation of the above.
2984 * Option.h : New file, abstract option for GetOption.
2985 * Option.cc: New file, implement constructor and destructor.
2986
f2e49cf8
RC
29872002-03-26 Pavel Tsekov <ptsekov@gmx.net>
2988
58b12a06 2989 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
f2e49cf8
RC
2990
29912002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
2992
58b12a06
MB
2993 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
2994 to textheight, so large fonts work.
f2e49cf8
RC
2995
29962003-03-26 Robert Collins <rbtcollins@hotmail.com>
2997
58b12a06
MB
2998 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
2999 symlinks.
f2e49cf8
RC
3000
30012003-03-26 Robert Collins <rbtcollins@hotmail.com>
3002
58b12a06
MB
3003 * io_stream_cygfile.cc (cwd): New static for cwd storage.
3004 (io_stream_cygfile::normalise): New method.
3005 (io_stream_cygfile::io_stream_cygfile): Use it.
3006 (io_stream_cygfile::exists): Ditto.
3007 (io_stream_cygfile::remove): Ditto.
3008 (io_stream_cygfile::mklink): And again.
3009 (cygmkdir_p): Yes, again.
3010 (io_stream_cygfile::move): And once more.
3011 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
3012 (io_stream_cygfile::cwd): Ditto.
f2e49cf8 3013
51ebb760
RC
30142003-03-26 Robert Collins <rbtcollins@hotmail.com>
3015
3016 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
3017 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
3018 Overbeek for the report).
3019 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
3020 Make g++ compatible.
3021 * mklink2.c: Remove.
3022 * site.cc (site_list_type::init): Delete the correct memory addres.
3023 Thanks to Pavel Tsekov for tracking this down.
3024
e7d67c03
RC
30252002-03-20 Robert Collins <rbtcollins@hotmail.com>
3026
3027 * win32.h: Only define alloca if it's not already.
3028
2fa7c5a4
RC
30292002-03-20 Robert Collins <rbtcollins@hotmail.com>
3030
58b12a06
MB
3031 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave
3032 installed packages alone.
2fa7c5a4
RC
3033 * README: Update with latest requests.
3034 * Various: MTC fixes from setup200202 branch.
3035
7bf13fc9
CF
30362002-03-19 Christopher Faylor <cgf@redhat.com>
3037
3038 * Makefile.in (setup_version.c): Add back magic which allows detection
3039 of setup.exe version number.
3040
2fa7c5a4
RC
30412002-03-17 Robert Collins <rbtcollins@hotmail.com>
3042
58b12a06 3043 * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
2fa7c5a4
RC
3044 calculation on win9x systems.
3045
30462002-03-16 Robert Collins <rbtcollins@hotmail.com>
3047
58b12a06
MB
3048 * install.cc (install_one_source): Write the correct length of a string
3049 to the lst file (Thanks to Pavel Tsekov for reporting the bug).
2fa7c5a4
RC
3050
30512002-03-15 Robert Collins <rbtcollins@hotmail.com>
3052
3053 * choose.cc (list_click): Always refresh the entire chooser, as our
58b12a06
MB
3054 package state change mechanism is broken with the new improved list
3055 classes.
2fa7c5a4
RC
3056
30572002-03-15 Robert Collins <rbtcollins@hotmail.com>
3058
58b12a06
MB
3059 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd
3060 and /etc/group.
2fa7c5a4
RC
3061
30622002-03-15 Robert Collins <rbtcollins@hotmail.com>
3063
58b12a06
MB
3064 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored
3065 out from paint().
3066 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and
3067 the new bin tickbox.
2fa7c5a4
RC
3068 (PickPackageLine::click): Handle the new bin tickbox.
3069 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
3070 * PickView.cc (pkg_headers): Add a Bin? column.
3071 (cat_headers): Ditto.
3072 (PickView::set_headers): Ditto.
3073 (PickView::init_headers): Ditto.
3074 * PickView.h (PickView): Ditto.
58b12a06
MB
3075 * choose.cc (list_click): Use the new name for src_col to set the clip
3076 rectangle.
2fa7c5a4
RC
3077
30782002-02-24 Michael A Chase <mchase@ix.netcom.com>
3079
3080 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
3081 fixup.
3082
30832002-02-24 Michael A Chase <mchase@ix.netcom.com>
3084
3085 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
3086 call.
3087 (make_passwd_group): Ditto.
3088 * localdir.cc (save_local_dir): Ditto.
3089 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
3090 Add "cygfile://" prefix to io_stream::open() calls.
3091
204315f9
RC
30922002-02-24 Robert Collins <rbtcollins@hotmail.com>
3093
3094 * log.cc (log_save): Fix creating /var/log.
3095 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
3096
58db1046
RC
30972002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3098
3099 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
3100 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
3101 * resource.h: Add IDS_CYGWIN_SETUP and
3102 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
3103
3104 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
3105 operator (::SetWindowText()).
3106
3107 * threebar.cc: Run indent.
3108 (cistring.h): Add include.
3109 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
3110 global scope operator.
3111 (SetBar2): Add logic for writing percent complete into window title.
3112
3113 * window.h: Run indent.
3114 (SetWindowText): New function.
3115 (String): Add forward declaration.
3116 * window.cc: Run indent.
3117 (String++.h): Add include.
3118 (SetWindowText): New function.
3119
490717ef
RC
31202002-02-24 Robert Collins <rbtcollins@hotmail.com>
3121
3122 * README: Update TODO list.
3123 * install.cc (install_one): Fix src package location.
3124 (do_install_thread): Fix creating directories.
3125
7c6ef2c3
RC
31262002-02-19 Robert Collins <rbtcollins@hotmail.com>
3127
3128 * choose.cc: Include cygpackage.h for scan2 use.
3129 (set_existence): Ignore setup.ini mirrors when installing from cwd.
3130 (scan2): Process any valid file.
58b12a06
MB
3131 Add cache entries when a file matching a setup.ini listed version is
3132 found.
7c6ef2c3
RC
3133 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
3134 * filemanip.h (filemanip::pkgtar): Remove.
3135 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
3136 (packagemeta::~packagemeta): Move from package_meta.h
3137 Remove and delete all version and category information.
3138 * package_meta.h (CategoryPackage): Create a destructor.
3139 (packagemeta::~packagemeta): Move to .cc file.
3140
31412002-02-19 Robert Collins <rbtcollins@hotmail.com>
3142
3143 * install.cc (install_one_source): Make NULL cached package names cause
3144 errors.
3145
bb087dce
RC
31462002-02-18 Michael A Chase <mchase@ix.netcom.com>
3147
3148 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
3149 unnecessarily.
3150
31512002-02-18 Michael A Chase <mchase@ix.netcom.com>
3152
3153 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
3154
c90bc3df
RC
31552002-02-19 Robert Collins <rbtcollins@hotmail.com>
3156
3157 * mount.cc (create_mount): Avoid a const char*->char* warning.
3158 (read_mounts): Ditto.
3159
3bab9a49
RC
31602002-02-05 Jason Tishler <jason@tishler.net>
3161
58b12a06 3162 * download.cc (do_download_thread): Fix off-by-one error.
3bab9a49 3163
1ac649ed
RC
31642002-02-19 Robert Collins <rbtcollins@hotmail.com>
3165
3166 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
3167 * configure (CXXFLAGS): Regenerate.
3168 * Makefile.in (iniparse.o): Build via default rules - no errors now.
3169 * README: TODO list updates.
3170
31712002-02-19 Michael A Chase <mchase@ix.netcom.com>
3172
3173 * String++.cc (String::concat):: Remove.
3174 (String::vconcat):: Ditto.
3175 * String++.h (String::concat):: Remove.
3176 (String::vconcat):: Ditto.
3177 * archive_tar.cc: Don't include concat.h.
3178 * archive_tar_file.cc: Don't include concat.h.
3179 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
3180 (compress_bz::seek): Ditto.
3181 (compress_bz::~compress_bz): Ditto.
3182 * compress_gz.cc (compress_gz::peek): Ditto.
3183 (compress_gz::error): Ditto.
3184 (compress_gz::~compress_gz): Ditto.
3185 * concat.cc (vconcat): Remove.
3186 (concat): Ditto.
3187 * concat.h (vconcat): Remove.
3188 (concat): Ditto.
3189 * desktop.cc (desktop_icon): Use new cygpath.
3190 (make_etc_profile): Ditto.
3191 (uexists): Ditto.
3192 (make_passwd_group): Ditto.
3193 (save_icon): Ditto.
3194 (check_desktop): Remove concat use.
3195 (check_start_menu): Ditto.
3196 * download.cc (download_one): Use new mkpath_p correctly.
3197 Use LOG_PLAIN.
3198 * fromcwd.cc: Don't include concat.h.
3199 * geturl.cc (get_url_to_membuf): Use String log() call.
3200 (get_url_to_file): Ditto.
3201 * install.cc: Don't include concat.h.
3202 (uninstall_one): Use LOG_PLAIN.
3203 (replace_one): Ditto.
3204 (install_one_source): Ditto.
3205 (install_one): More char to String conversion.
3206 (do_install_thread): Use new cygpath.
3207 Use new create_mount.
3208 * io_stream.cc (io_stream::move): Use new log().
58b12a06
MB
3209 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new
3210 cygpath.
1ac649ed
RC
3211 (io_stream_cygfile::exists): Ditto.
3212 (io_stream_cygfile::remove): Ditto.
3213 (io_stream_cygfile::mklink): Ditto.
3214 (io_stream_cygfile::write): Ditto.
3215 (cygmkdir_p): Ditto.
3216 (io_stream_cygfile::move): Ditto.
3217 * io_stream_file.cc: Don't include log.h.
3218 (io_stream_file::write): Don't log unneeded messages.
3219 * localdir.cc: Don't include concat.h.
3220 (LocalDirPage::OnNext): Use LOG_PLAIN.
3221 * log.cc: Don't include log.h.
3222 (exit_setup): Use new cygpath.
3223 * log.h (log_level): Add new level LOG_PLAIN.
3224 * main.cc (WinMain): Use new log().
3225 * mount.cc (SLASH_P): New macro from concat.h.
3226 (cygpath): Make String version globally visible.
3227 Remove varargs version.
3228 * mount,h: Ditto.
3229 * msg.cc (mbox): Use LOG_PLAIN.
3230 * net.cc (NetPage::OnNext): Ditto.
3231 * nio-ftp.cc (ftp_line): Use new log().
3232 * nio-http.cc: Don't include log.h.
3233 (retry_get): Use alternative url variable.
3234 * package_db.cc: Don't include concat.h.
3235 (packagedb::flush): Don't use concat.
3236 * package_meta.cc: Don't include concat.h.
3237 (packagemeta::uninstall): Use new cygpath.
3238 * postinstall.cc (do_postinstall): Ditto.
3239 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
3240 * script.cc: Don't include concat.h.
3241 (init_run_script): Use new cygpath.
3242 (run_script): More char * to String conversion.
3243 (try_run_script): Ditto.
3244 * site.cc: Don't include concat.h.
3245 (SitePage::OnNext): Use LOG_PLAIN.
3246 (SitePage::OnMessageCmd): Use new log().
3247 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
3248
3c054baf
RC
32492002-02-19 Robert Collins <rbtcollins@hotmail.com>
3250
3251 * Makefile.in (OBJS): Add new object.
58b12a06
MB
3252 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the
3253 name.
3c054baf
RC
3254 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
3255 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
3256 (PickLine::Pickline): Accept a String for the key.
58b12a06
MB
3257 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to
3258 Strings.
3259 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is
3260 automatically initialised now.
3c054baf 3261 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
58b12a06
MB
3262 (PickView::init_header): Move category length checking out of the inner
3263 loop for efficiency.
3c054baf
RC
3264 Convert all char use to Strings.
3265 * PickView.h: Include the String++ header.
3266 (PickView::note_width): Update the prototype.
3267 * String++.cc: New file, implements a reference counting string class.
3268 * String++.h: New file, declares a reference counting string class.
3269 * archive.cc: Include String++ instead of concat.
3270 (archive::extract_file): Convert char * usage to Strings.
3271 * archive.h: Inlude the String++ header.
3272 (archive::extract_file): Update prototype.
3273 (archive::next_file_name): Convert to a String.
3274 (archive::linktarget): Ditto.
3275 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
3276 (archive_tar::linktarget): Ditto.
3277 * arhive_tar.h: Update the copyright.
3278 Explicitly include the relevant headers.
3279 (tar_map_result_type): Convert to String usage.
3280 (archive_tar::next_file_name): Update prototype.
3281 (archive_tar::linktarget): Ditto.
3282 * category.cc (Category::Category): Update initialisers.
3283 Convert to String usage.
3284 (Categorycmp): Update to String usage.
3285 * category.h: Include the String++ header.
3286 (Category::Category): Update to String usage.
3287 (Category::name): Ditto.
3288 (Category::key): Ditto.
3289 * choose.cc: Remove concat.h, it's not needed.
3290 (scan2): Update to String usage.
3291 (do_choose): Ditto.
3292 * cygpackage.cc: Update includes for use of String class.
3293 (cygpackage::cygpackage): Update for String usage.
3294 (cygpackage::set_canonical_version): Ditto.
3295 (cygpackage::destroy): Ditto.
3296 (cygpackage::getfirstfile): Ditto.
3297 (cygpackage::getnextfile): Ditto.
3298 (cygpackage::Name): Ditto.
3299 (cygpackage::Vendor_version): Ditto.
3300 (cygpackage::Package_version): Ditto.
3301 (cygpackage::Canonical_version): Ditto.
3302 (cygpackage::set_sdesc): Ditto.
3303 (cygpackage::set_ldesc): Ditto.
3304 * cygpackage.h: Include String++.h for parsing this file.
3305 (cygpackage::cygpackage): Update for String usage.
3306 (cygpackage::set_canonical_version): Ditto.
3307 (cygpackage::destroy): Ditto.
3308 (cygpackage::getfirstfile): Ditto.
3309 (cygpackage::getnextfile): Ditto.
3310 (cygpackage::Name): Ditto.
3311 (cygpackage::Vendor_version): Ditto.
3312 (cygpackage::Package_version): Ditto.
3313 (cygpackage::Canonical_version): Ditto.
3314 (cygpackage::set_sdesc): Ditto.
3315 (cygpackage::set_ldesc): Ditto.
3316 (cygpackage::name): Ditto.
3317 (cygpackage::vendor): Ditto.
3318 (cygpackage::packagev): Ditto.
3319 (cygpackage::canonical): Ditto.
3320 (cygpackage::fn): Ditto.
3321 (cygpackage::sdesc): Ditto.
3322 (cygpackage::ldesc): Ditto.
3323 * desktop.cc: Update includes for use of String class.
3324 (batname): Update for String usage.
3325 (iconname): Ditto.
3326 (make_link): Ditto.
3327 (start)menu): Ditto.
3328 (desktop_icon): Ditto.
3329 (make_cygwin_bat): Ditto.
3330 (make_etc_profile): Ditto.
3331 (uexists): Ditto.
3332 (make_passwd_group): Ditto.
3333 (save_icon): Ditto.
3334 (check_desktop): Ditto.
3335 (check_startmenu): Ditto.
3336 * dialog.cc (eget): Update for String usage.
3337 (egetString): New function.
3338 (eset): New variant for Strings.
3339 * dialog.h: Include String++.h for parsing this file.
3340 (egetString): New function.
3341 (eset): New variant for Strings.
3342 * diskfull.cc (diskfull): Update for String usage.
3343 * diskfull.h: Include String++.h for parsing this file.
3344 (diskfull): Update for String usage.
3345 * download.cc: Update includes for use of String class.
3346 (check_for_cached): Update for String usage.
3347 (download_one): Ditto.
3348 * filemanip.cc (get_file_size): Ditto.
3349 (base): Ditto.
3350 (parse_filename): Ditto.
3351 (backslash): Ditto.
3352 * filemanip.h: Include String++.h for parsing this file.
3353 (fileparse): Update for String usage.
3354 (base): Ditto.
3355 (parse_filename): Ditto.
3356 Don't consider '_' to be a separator.
3357 (backslash): Ditto.
3358 * find.cc: Update includes for use of String class.
3359 (find_sub): Make more flexible.
3360 (find): Update for String usage.
3361 * find.h (find): Use Strings.
3362 * fromcwd.cc (found_file): Update for String usage.
3363 * geturl.cc: Ditto.
3364 (init_dialog): Ditto.
3365 (get_url_to_membuf): Ditto.
3366 (get_url_to_string): Ditto.
3367 (get_url_to_file): Ditto.
3368 * geturl.h: Ditto.
3369 (get_url_to_membuf): Ditto.
3370 (get_url_to_string): Ditto.
3371 (get_url_to_file): Ditto.
3372 * hash.h: Ditto.
3373 (add_subdirs): Ditto.
3374 * ini.cc: Update includes for String usage.
3375 (find_routine): Update for String usage.
3376 (do_remote_ini): Ditto.
3377 (do_ini_thread): Ditto.
3378 * ini.h (ini_init): Ditto.
3379 * inilex.l: Update includes for String usage.
3380 (ini_init): Update for String usage.
3381 * iniparse.y: Ditto.
3382 (add_correct_version): Ditto.
3383 * install.cc: Update includes for String usage.
3384 (install_one_source): Update for String usage.
3385 (uninstall_one): Ditto.
3386 (replace_one): Ditto.
3387 (install_one_source): Ditto.
3388 (do_install_thread): Ditto.
3389 * io_stream.cc: Update includes for String usage.
3390 (io_stream::open): Update for String usage.
3391 (io_stream::mkpath_p): Ditto.
3392 (io_stream::remove): Ditto.
3393 (io_stream::mklink): Ditto.
3394 (io_stream::move_copy): Ditto.
3395 (io_stream::move): Ditto.
3396 (io_stream::exists): Ditto.
3397 * io_stream.h: Update includes to allow correct parsing.
3398 (io_stream::open): Update for String usage.
3399 (io_stream::mkpath_p): Ditto.
3400 (io_stream::remove): Ditto.
3401 (io_stream::mklink): Ditto.
3402 (io_stream::move_copy): Ditto.
3403 (io_stream::move): Ditto.
3404 (io_stream::exists): Ditto.
3405 * io_stream_cygfile.cc: Update includes for String usage.
3406 (get_root_dir_now): Update for String usage.
3407 (io_stream_cygfile::io_stream_cygfile): Ditto.
3408 (io_stream_cygfile::~io_stream_cygfile): Ditto.
3409 (io_stream_cygfile::exists): Ditto.
3410 (io_stream_cygfile::remove): Ditto.
3411 (io_stream_cygfile::mklink): Ditto.
3412 (cygmkdir_p): Ditto.
3413 (io_stream_cygfile::set_mtime): Ditto.
3414 (io_stream_cygfile::move): Ditto.
3415 (io_stream_cygfile::get_size): Ditto.
3416 * io_stream_cygfile.h: Update includes for String usage.
3417 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
3418 (io_stream_cygfile::~io_stream_cygfile): Ditto.
3419 (io_stream_cygfile::exists): Ditto.
3420 (io_stream_cygfile::remove): Ditto.
3421 (io_stream_cygfile::mklink): Ditto.
3422 (cygmkdir_p): Ditto.
3423 (io_stream_cygfile::set_mtime): Ditto.
3424 (io_stream_cygfile::move): Ditto.
3425 (io_stream_cygfile::get_size): Ditto.
3426 (io_stream_cygfile::fname): Ditto.
3427 (io_stream_cygfile::lmode): Ditto.
3428 * io_stream_file.cc: Update includes for String usage.
3429 (io_stream_file::io_stream_file): Update for String usage.
3430 (io_stream_file::~io_stream_file): Ditto.
3431 (io_stream_file::exists): Ditto.
3432 (io_stream_file::remove): Ditto.
3433 (io_stream_file::mklink): Ditto.
3434 (io_stream_file::set_mtime): Ditto.
3435 (io_stream_file::move): Ditto.
3436 (io_stream_file::get_size): Ditto.
3437 * io_stream_file.h: Update includes for String usage.
3438 * io_stream_file.cc: Update includes for String usage.
3439 (io_stream_file::io_stream_file): Update for String usage.
3440 (io_stream_file::~io_stream_file): Ditto.
3441 (io_stream_file::exists): Ditto.
3442 (io_stream_file::remove): Ditto.
3443 (io_stream_file::mklink): Ditto.
3444 (io_stream_file::set_mtime): Ditto.
3445 (io_stream_file::move): Ditto.
3446 (io_stream_file::get_size): Ditto.
3447 (io_stream_file::fname): Ditto.
3448 (io_stream_file::lmode): Ditto.
3449 * localdir.cc: Update includes for String usage.
3450 (save_local_dir): Update for String usage.
3451 (check_if_enable_next): Ditto.
3452 (load_dialog): Ditto.
3453 (browse_cb): Ditto.
3454 (LocalDirPage::OnInit): Ditto.
3455 (LocalDirPage::OnNext): Ditto.
3456 * log.cc: Update includes for String usage.
3457 (struct LogEnt): Update for String usage.
3458 (log): Ditto.
3459 (log_save): Ditto.
3460 (exit_setup): Ditto.
3461 * log.h: Update includes for String usage.
3462 (log_level): Update for String usage.
3463 (log): Ditto.
3464 (log_save): Ditto.
3465 * main.cc (WinMain): Update for String usage.
3466 * mklink2.c (make_link_2): Update for String usage.
3467 * mklink2.h (make_link_2): Update for String usage.
3468 * mount.cc: Update includes for String usage.
3469 (mount_table): Update for String usage.
3470 (find2): Ditto.
3471 (create_mount): Ditto.
3472 (remove1): Ditto.
3473 (remove_mount): Ditto.
3474 (read_mounts): Ditto.
3475 (set_root_dir): Ditto.
3476 (get_root_dir): Ditto.
3477 (path_prefix_p): Ditto.
3478 (cygpath): Ditto.
3479 * mount.h: Update includes for String usage.
3480 (create_mount): Update for String usage.
3481 (remove_mount): Ditto.
3482 (cygpath): Ditto.
3483 (set_root_dir): Ditto.
3484 (get_root_dir): Ditto.
3485 * msg.cc (mbox): Ditto.
3486 * net.cc (NetPage::OnNext): Ditto.
3487 * package_db.cc (packagedb::flush): Ditto.
3488 (packagedb::packages): Ditto.
3489 (packagedb::categories): Ditto.
3490 * package_db.h: Update includes for String usage.
3491 (packagedb::packages): Update for String usage.
3492 (packagedb::categories): Ditto.
3493 * package_meta.cc: Update includes for String usage.
3494 (hash::add_subdirs): Update for String usage.
3495 (packagemeta::uninstall): Ditto.
3496 (packagemeta::SDesc): Ditto.
3497 (packagemeta::action_caption): Ditto.
3498 * package_meta.h: Update includes for String usage.
3499 (packagemeta::packagemeta): Update for String usage.
3500 (packagemeta::~packagemeta): Ditto.
3501 (packagemeta::uninstall): Ditto.
3502 (packagemeta::SDesc): Ditto.
3503 (packagemeta::action_caption): Ditto.
3504 (package_source.cc site::site): Ditto.
3505 (packagesource::set_canonical): Ditto.
3506 (packagesource::set_cached): Ditto.
3507 * package_source.h: Update includes for String usage.
3508 (site::site): Update for String usage.
3509 (packagesource::set_canonical): Ditto.
3510 (packagesource::set_cached): Ditto.
3511 (packagesource::packagesource): Ditto.
3512 (packagesource::sites): Ditto.
3513 (packagesource::cached): Ditto.
3514 * package_version.h: Update includes for String usage.
3515 (Dependency): Update for String usage.
3516 (packageversion): Ditto.
3517 * postinstall.cc: Update includes for String usage.
3518 (do_postinstall): Update for String usage.
3519 * res.rc (IDD_LOCAL_DIR): Fix typo again!
3520 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
3521 * rfc1738.h: Update includes for String usage.
3522 (rfc1738_escape_part): Update for String usage.
3523 * root.cc: Update includes for String usage.
3524 (check_if_enable_next): Update for String usage.
3525 (save_dialog): Ditto.
3526 (browse_cb): Ditto.
3527 (directory_is_absolute): Ditto.
3528 (directory_is_rootdir): Ditto.
3529 (directory_has_spaces): Ditto.
3530 (RootPage::OnInit): Ditto.
3531 (RootPage::OnNext): Ditto.
3532 * script.cc: Update includes for String usage.
3533 (init_run_script): Update for String usage.
3534 (run): Ditto.
3535 (run_script): Ditto.
3536 (try_run_script): Ditto.
3537 * script.h: Update includes for String usage.
3538 (run_script): Update for String usage.
3539 (try_run_script): Ditto.
3540 * site.cc site_list): Ditto.
3541 (all_site_list): Ditto.
3542 (other_url): Eliminate.
3543 (site_list_type::init): Update for String usage.
3544 (site_list_type::site_list_type): Ditto.
3545 (get_site_list): Ditto.
3546 (get_saved_sites): Ditto.
3547 (do_download_site_info_thread): Ditto.
3548 (SitePage::OnNext): Ditto.
3549 (SitePage::OnActivate): Ditto.
3550 (SitePage::PopulateListBox): Ditto.
3551 (SitePage::OnMessageCmd): Handle empty url's.
3552 * site.h: Update includes for String usage.
3553 (site_list_type::site_list_type): Update for String usage.
3554 (site_list_type::init): Ditto.
3555 (site_list_type::~site_list_type): Ditto.
3556 (site_list_type::url): Ditto.
3557 (site_list_type::displayed_url): Ditto.
3558 (site_list_type::key): Ditto.
3559 * source.cc (SourcePage::OnDeactivate): Ditto.
3560 * state.h: Update includes for String usage.
3561 (local_dir): Update for String usage.
3562 (trust_level): Remove.
3563 * version.cc: Update includes for String usage.
3564 (canonicalize_version): Update for String usage.
3565 * version.h: Update includes for String usage.
3566 (canonicalize_version): Update for String usage.
3567
08233ec7
CF
35682002-02-15 Christopher Faylor <cgf@redhat.com>
3569
3570 * filemanip.c (parse_filename): Revert previous change.
3571
94dffbdd
CF
35722002-02-14 Christopher Faylor <cgf@redhat.com>
3573
3574 * filemanip.c (parse_filename): Don't treat '_' as a version number
3575 introducer.
3576
cef493d7
CF
35772002-01-29 Christopher Faylor <cgf@redhat.com>
3578
3579 * configure: Regenerate.
3580
57219197
RC
35812002-01-27 Robert Collins <rbtcollins@hotmail.com>
3582
94dffbdd
CF
3583 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
3584 <Hoeck@extern.lrz-muenchen.de>
57219197 3585
cc7493c3
RC
35862002-01-27 Robert Collins <rbtcollins@hotmail.com>
3587
3588 * README: Update Todo's.
3589 * list.h: Run indent.
3590 (list): New methods checksize and insert to reduce code duplication.
3591 (list::registerbykey): Use them.
3592 (list::registerbyobject): Ditto.
94dffbdd
CF
3593 (list::removebyindex): Copy each object individually - safe for non
3594 trivial objects.
cc7493c3
RC
3595 (list::checksize): Implement.
3596 (list::insert): Implement.
3597
a900d1fa
RC
35982002-01-27 Robert Collins <rbtcollins@hotmail.com>
3599
3600 * Makefile.in: Remove the dlmalloc object by default.
94dffbdd
CF
3601 * install.cc (do_install_thread): Remove the mallinfo call for 'working
3602 around' the crashing issue.
a900d1fa 3603 * package_db.h: Include <string.h> - it's needed to parse this.
94dffbdd 3604 * package_source.cc (site::site): Move here from the header file.
a900d1fa
RC
3605 * package_source.h (site): Stop the constructor being inlinable.
3606
9835fb4a
RC
36072002-01-26 Robert Collins <rbtcollins@hotmail.com>
3608
3609 * filemanip.cc (find_tar_ext): Add a descriptive comment.
3610
36112002-01-25 Michael A Chase <mchase@ix.netcom.com>
3612
3613 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
3614 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
94dffbdd
CF
3615 * install.cc (install_one_source): Add space between words in log()
3616 call.
cef493d7 3617
77ba23d8
RC
36182002-01-22 Robert Collins <rbtcollins@hotmail.com>
3619
94dffbdd
CF
3620 * log.cc (exit_setup): When saving to the download dir, explicity
3621 specify the path.
77ba23d8 3622
6dc75764
RC
36232002-01-22 Robert Collins <rbtcollins@hotmail.com>
3624
94dffbdd
CF
3625 * archive.cc (extract_file): Separate out the prefix and the URL
3626 scheme.
6dc75764 3627 * archive.h (archive::extract_file): Ditto.
94dffbdd
CF
3628 * install.cc (install_one_source): Ditto. Use the new
3629 archive::extract_file syntax.
6dc75764
RC
3630 (replace_one): Use the new syntax.
3631 (io_stream.cc): Add some log info for links.
3632
7e8fc33c
RC
36332002-01-22 Robert Collins <rbtcollins@hotmail.com>
3634
3635 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
3636 (PickCategoryLine::paint): Use the new action method.
3637 (PickCategoryLine::click): Set the action for all children.
3638 (PickCategoryLine::set_action): New method.
3639 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
3640 (PickCategoryLine::current_default): Use packagemeta _actions class.
94dffbdd
CF
3641 * PickLine.h (PickLine::set_action): New abstract method that requires
3642 including package_meta.h.
7e8fc33c
RC
3643 * PickPackageLine.cc (PickPackageLine::set_action): New method.
3644 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
3645 * list.h (getbykey): A const correctness fix.
3646 * package_meta.cc: Run indent.
3647 (packagemeta::Default_action): New const.
3648 (packagemeta::Install_action): Ditto.
3649 (packagemeta::Reinstall_action): Ditto.
3650 (packagemeta::Uninstall_action): Ditto.
3651 (packagemeta::_actions::caption): New method.
3652 (packagemeta::_actions::operator++): Ditto.
3653 (packagemeta::set_action): New overload.
3654 * package_meta.h (packagemeta::_actions): New class.
3655 (packagemeta::set_action): Declare this.
3656
2c9254b6
RC
36572002-01-22 Robert Collins <rbtcollins@hotmail.com>
3658
3659 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
3660 * choose.cc: Don't define alloca anymore, it's done in win32.h
3661
97647369
RC
36622002-01-22 Robert Collins <rbtcollins@hotmail.com>
3663
3664 * PickPackageLine.cc: New file.
3665 * PickPackageLine.h: New file.
3666 * PickLine.cc: New file.
3667 * PickLine.h: New file.
3668 * PickCategoryLine.cc: New file.
3669 * PickCategoryLine.h: New file.
3670 * PickView.cc: New file.
3671 * PickView.h: New file.
3672 * Makefile.in: Add new objects to setup.exe.
3673 Backout -fno-exceptions option.
3674 * choose.cc: Include PickView.h.
3675 Remove view related defines and static variables.
3676 (_pkg_headers): Moved to PickView.cc.
3677 (_cat_headers): Ditto.
3678 (view::views::Unknown): Ditto.
3679 (view::views::PackageFull):
3680 (view::views::Package):
3681 (view::views::Category):
3682 (pkgtrustp): Moved to package_meta.cc.
3683 (add_required): Moved to package_meta.cc.
3684 (pick_category_line::empty): Moved to PickCategoryLine.cc
3685 (paint): Adjust for moved static variables.
3686 (view::scroll): Moved to PickView.cc.
3687 (list_vscroll): Adjust for moved static variables.
3688 (list_hscroll): Ditto.
3689 (list_click): Ditto.
3690 (note_width): Moved to PickView.cc.
3691 (view::view): Ditto.
3692 (view::set_view_mode): Ditto.
3693 (view::mode_caption): Ditto.
3694 (view::views::caption): Ditto.
3695 (view::set_headers): Ditto.
3696 (DoInsertItem): Ditto.
3697 (view::init_headers): Ditto.
3698 (view::insert_pkg): Ditto.
3699 (view::insert_category): Ditto.
3700 (view::clear_view): Ditto.
3701 (view::views::operator++): Ditto.
3702 (view::click): Ditto.
3703 (default_trust): Adjust for moved statics.
3704 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
3705 (pick_pkg_line::click): Ditto.
3706 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
3707 (pick_category_line::paint): Ditto.
3708 (pick_category_line::click): Ditto.
3709 (set_view_mode): Adjust for moved statics.
3710 (create_listview): Ditto.
58b12a06
MB
3711 * choose.h: Remove Category and packagemeta forward defines -
3712 not needed.
97647369
RC
3713 Don't include unneeded headers list and package_meta.
3714 (_header): Move to PickView.h.
3715 (pick_line): Move to PickLine.h.
3716 (pick_pkg_line): Move to PickPackageLine.h.
3717 (pick_category_line): Move to PickCategoryLine.h.
3718 (view): Move to PickView.h.
3719 * ini.h (trusts): Move to package_meta.h.
3720 * package_meta.h (trusts): New enum.
3721 (packagemeta::set_requirements): New helper method.
3722 (packagemeta::trustp): Ditto.
3723
b566778e
CF
37242002-01-21 Christopher Faylor <cgf@redhat.com>
3725
3726 * choose.h (view): Move forward declaration of views into public area
3727 or g++ v3 will complain.
3728
f71e9756
CF
37292002-01-21 Christopher Faylor <cgf@redhat.com>
3730
3731 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
3732 * win32.h (alloca): Define as __builtin_alloca.
3733 * io_stream_memory.cc: Add include file.
3734
e9440f0f
RC
37352002-01-21 Robert Collins <rbtcollins@hotmail.com>
3736
58b12a06
MB
3737 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as
3738 destroyed.
e9440f0f
RC
3739 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
3740 * compress.cc (compress::~compress): Be less verbose.
3741 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
3742 Mark the stream as destroyed.
58b12a06
MB
3743 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as
3744 destroyed.
3745 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not
3746 marked as destroyed.
cef493d7 3747 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
e9440f0f
RC
3748 stream as destroyed.
3749 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
3750 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
cef493d7 3751
5e0464a1
RC
37522002-01-21 Robert Collins <rbtcollins@hotmail.com>
3753
3754 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
3755 (OBJS): Link in malloc objects.
3756 * category.cc (category): Use new char, not strdup.
3757 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
3758 (do_choose): Use new char, not malloc.
3759 * concat.cc (vconcat): Ditto.
3760 * cygpackage.cc (cygpackage): Use new char, not strdup.
3761 (set_canonical_version): Ditto.
3762 (cygpackage::destroy): Use delete[], not free.
3763 * desktop.cc (uexists): Ditto.
3764 * dialog.cc (egest): Use new char, not strdup.
3765 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
3766 * hash.cc (hash::hash): Use delete instead of free.
3767 (hash::add): Use new char, not strdup.
3768 * ini.cc (do_remote_ini): Use delete[] not free.
3769 * inilex.l: Use new char, not strdup.
3770 (ini_init): Ditto.
3771 * iniparse.y: Ditto.
3772 Use a local package_db rather than a static one.
3773 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
3774 (do_install_thread): Call mallinfo to force a consistency check. Appears
3775 to fix a 'inuse' error in -DDEBUG builds.
3776 Use delete[] for strings.
58b12a06
MB
3777 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new
3778 char, not strdup.
5e0464a1
RC
3779 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
3780 (io_stream_cygfile::remove): Use new char, not strdup.
58b12a06
MB
3781 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not
3782 strdup.
5e0464a1
RC
3783 (io_stream_file::io_stream_file): Use delete[], not free.
3784 (io_stream_file::remove): Use new char, not strdup.
3785 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
3786 * io_stream_memory.h (memblock): Use new char, not malloc.
3787 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
3788 * main.cc (WinMain): Use new char, not strdup.
3789 * mount.cc (find2): Use new char, not malloc.
3790 (read_mounts): Ditto.
3791 (cygpath): Use new char, not strdup.
3792 * netio.cc (NetIO::~NetIO): Use delete[], not free.
3793 (NetIO::set_url): Use new char, not strdup.
3794 (NetIO::get_ftp_auth): Use delete[], not free.
3795 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
3796 Use new char instead of strdup.
3797 * nio-http.cc (base64_encode): Use new char, not malloc.
3798 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
3799 * package_source.h (~ packagesource): Use delete[] instead of delete.
3800 * port.h (strdup): Deprecate the use of strdup.
3801 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
3802 * script.cc (init_run_script): Us delete[], not free.
3803 (run_script): Ditto.
3804 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
3805 (SimpleSocket::invalidate): Use delete[], not free.
3806 * site.cc (site_list_type::init): Use new char instead of strdup.
3807 * site.h (~site_list_type): Use delete[], not free.
3808
ad3c7385
RC
38092002-01-20 Robert Collins <rbtcollins@hotmail.com>
3810
3811 * Makefile.in (OBJS): Add win32.o - win32 support functions.
3812 * README: Update todos.
58b12a06
MB
3813 * archive.cc (extract_file): Support a suffix for appending to extracted
3814 files.
ad3c7385
RC
3815 * archive.h: Ditto.
3816 * choose.cc (set_view_mode): Use the new view::views class.
3817 (view::views::Unknown): New static for defaulting view::views variables.
3818 (view::views::PackageFull): New static for the current view.
3819 (view::views::Package): Ditto.
3820 (view::views::Category): Ditto.
3821 (topbucket::paint): Remove.
3822 (topbucket::empty): Rename to pick_category_line::empty.
3823 (topbucket::~topbucket): Remove.
3824 (paint): Use the new view::views class.
3825 Don't paint 'all' as a category when showing package categoies.
3826 (pick_category_line::actiontext): New method.
58b12a06
MB
3827 (pick_category_line::paint): Make showing the category optional, and
3828 show the 'category action'.
ad3c7385 3829 (pick_category_line::click): Make showing the category optional, and
58b12a06
MB
3830 differentiate between the name being clicked, and the action
3831 description.
ad3c7385
RC
3832 (view::view): Use the new view::views class.
3833 (view::set_view_mode): Ditto.
3834 (view::mode_caption): Ditto.
3835 (view::views::caption): New method.
3836 (view::set_headers): Use the new view::views class.
3837 (view::clear_view): Ditto.
cef493d7 3838 (viewsplusplus): Replaced by
ad3c7385
RC
3839 (view::views::operator++): New operator.
3840 (set_view_mode): Use the new view::views class.
3841 (create_listview): Ditto.
3842 (dialog_cmd): Ditto.
3843 * choose.h (actions): Remove.
3844 (views): Remove.
3845 (pick_line): Add a new convenience constructor.
3846 (top_bucket): Remove.
3847 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
3848 (view::views): New class.
3849 * ini.h: Don't include choose.h
3850 (is_download_action): Remove.
3851 (is_upgrade_action): Remove.
3852 (is_uninstall_action): Remove.
3853 (is_full_action): Remove.
3854 * install.cc (num_replacements): New static.
3855 (rebootneeded): Ditto.
3856 (replace_one): Handle upgrades separate from removal or new installs.
3857 (install_one_source): Handle in use files.
3858 (install_one): Don't repeat upgrades.
3859 (do_install_thread): Initialize new statics.
3860 Order actions as uninstall, replace, install.
3861 Warn about rebooting if needed.
3862 * res.rc (IDS_REBOOT_REQUIRED): New string.
3863 * resource.h (IDS_REBOOT_REQUIRED): Give value.
3864 * win32.h: Declare class Win32, and update copyright and intent message.
3865 * win32.cc: New file.
3866
edef4f57
CV
38672002-01-15 Corinna Vinschen <corinna@vinschen.de>
3868
3869 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
3870 * package_meta.cc (packagemeta::uninstall): Check for additional
3871 Windows shortcut. Unset R/O file attribute before trying to delete
3872 file.
3873
21f325d7
RC
38742002-01-09 Robert Collins <rbtcollins@hotmail.com>
3875
58b12a06
MB
3876 * choose.cc (pkgtrustp): Fall back to installed if a package is not
3877 present in the current trust level. For prev, fall back via curr.
21f325d7
RC
3878 (set_existence): Allow sources with no sites, but cached files to be
3879 kept.
3880 (pick_category_line::paint): Start drawing clickable categories.
3881 * fromcwd.cc (found_file): Reinstate local file scanning.
3882
858f100d
RC
38832002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3884
cef493d7 3885 * fromcwd.cc: Run indent.
858f100d
RC
3886 (do_fromcwd): Reverse sense of comment. Set next_dialog
3887 to IDD_CHOOSER instead of IDD_CHOOSE.
3888 * ini.cc (find_routine): Remove "/" from "/setup.ini".
cef493d7 3889
d343da15
RC
38902001-01-07 Robert Collins <rbtcollins@hotmail.com>
3891
3892 * category.cc (Categorycmp): Add a const safe version.
3893 * category.h (Categorycmp): Add a const safe version.
3894 (Category): Add operator ==.
3895 * choose.cc (fill_missing_category): Add every package to "All".
58b12a06
MB
3896 (pick_category_line::paint): Add support for hidden labels, and a tree
3897 depth.
d343da15
RC
3898 (pick_category_line::click): Ditto.
3899 (view::view): Pass in a top level category to use.
3900 (view::insert_pkg): Special case - skip category "All".
3901 (view::insert_category): Ditto.
3902 (view::clear_view): Set the contents label state.
3903 (create_listview): Pass in a top level category to view().
3904 * choose.h (topbucket): Make bucket available to derived classes.
3905 (pick_category_line): Add support for hidden labels, and a tree depth.
3906 Remove our second copy of bucket.
3907 (view): Pass in a top level category to the constructor.
3908 Use pick_category_line to allow three level display.
3909
bcf20115
RC
39102001-01-06 Robert Collins <rbtcollins@hotmail.com>
3911
3912 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
3913 * iniparse.y (add_correct_version): Copy descriptions across.
58b12a06
MB
3914 * package_meta.cc (SDesc): Iterate through versions, return the first
3915 with a description.
bcf20115
RC
3916 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
3917
bc78a6d5
RC
39182001-01-04 Robert Collins <rbtcollins@hotmail.com>
3919
3920 * script.cc (run_script): Change cygpath:// to cygfile://.
3921 * install.cc (do_install_thread): Fix off-by-one errors.
3922
4f4e55c2
RC
39232001-01-04 Robert Collins <rbtcollins@hotmail.com>
3924
3925 * package_db.cc (packagedb::flush): Fix an off-by-one error.
3926
8e9aa511
RC
39272002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
3928
3929 * Makefile.in (realclean): more clean.
3930 (OBJS): Add script.o.
3931 * postinstall.cc (run_script_in_etc_postinstall): New function.
3932 (do_postinstall): Split off new funtion init_run_script ().
3933 (init_run_script):
3934 (run):
3935 (run_script): Move to script.cc. Replace some deprecated remove
3936 and move calls.
3937 * script.h:
3938 * script.cc: New file.
3939 * Forward port cygwin-20010707.jcn3.patch.
3940 * package_meta.cc (uninstall): Run pre- and postremove scripts.
3941 * install.cc: Typo fix.
3942 (do_install): Run script initialisation.
cef493d7 3943
b7301c43
RC
39442001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3945
3946 * cistring.cc: Run d2u.
3947 * cistring.h: Run d2u.
3948
3949 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
3950 from the generated /etc/profile. Bash will source this file
3951 automatically, and having this here merely results in .bashrc being
3952 executed twice. Run d2u.
3953 * desktop.h: Run d2u.
3954
3955 * propsheet.cc: Run d2u.
3956 (PropSheetProc): New function. Add minimize box here instead of in
3957 PropertyPage::DialogProc.
3958 (PropSheet::Create): Change to use creation callback PropSheetProc.
3959 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
3960
3961 * propsheet.h: Run indent, d2u.
3962 * proppage.h: Run indent, d2u.
3963
3964 * proppage.cc: Run d2u.
3965 (PropertyPage::DialogProc): Remove minimize-box-adding
3966 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
3967 Add support for calling virtual OnMessageCmd. Add setting of fonts in
3968 WM_INITDIALOG handler.
3969 (resource.h): New include for resource IDs.
3970
3971 * res.rc: Resize and rearrange property page dialog templates
3972 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
3973 specification. Run d2u.
3974 (IDD_SITE): Add an edit control and an "Add" button in order to
3975 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
3976 (IDD_OTHER_URL): Remove dialog template.
3977 (IDD_DLSTATUS): Remove dialog template.
3978
3979 * site.cc: Run d2u.
3980 (SitePage::OnBack): Remove NEXT() macro invocation.
3981 (SitePage::OnActivate): New member function.
3982 (load_dialog): Remove. Functionality subsumed into
3983 SitePage::OnActivate.
3984 (save_dialog): Change to support both list and user URLs. Remove
3985 OTHER_IDX and mirror_idx logic.
3986 (SitePage::PopulateListBox): New member function.
3987 (SitePage::CheckControlsAndDisableAccordingly): New member function.
3988 (SitePage::OnMessageCmd): New override.
3989 (check_if_enable_next): Remove.
3990 (dialog_cmd): Remove.
3991 (do_download_site_info_thread): Remove calls to NEXT() macro.
3992 (SitePage::Create): Call the single-param PropertyPage::Create
3993 overload.
3994 (other_url): New static taken from other.cc.
3995 (SitePage::OnNext): Remove mirror_idx logic.
3996 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
3997 list box populating code, now handled in SitePage::PopulateListBox.
3998 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
3999 (save_site_url): Fix potential buffer overflow problem. Switched to
4000 TCHAR in grossly premature preparation for multilingual support.
4001 * site.h: Run d2u.
4002 (SitePage::OnActivate): New member function.
4003 (SitePage::CheckControlsAndDisableAccordingly) New member.
4004 (SitePage::OnMessageCmd): New override.
4005 (do_download_site_info_thread): Add MessageBox call on failure to
4006 download site list.
4007
4008 * splash.cc: Run d2u.
4009 (SplashPage::OnInit): Set the font for the title.
4010 * splash.h: Run d2u.
4011
4012 * threebar.cc: Run d2u.
4013 * threebar.h: Run d2u.
4014
4015 * window.h: Run d2u.
4016 (Window::IsButtonChecked): New member function declaration.
4017 (Window::OnMessageCmd): New member function.
4018 (Window::SetDlgItemFont): New member function declaration.
4019 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
4020 members.
4021 * window.cc: Run d2u.
4022 (Window::IsButtonChecked): New member function definition.
4023 (Window::SetDlgItemFont): New member function definition.
4024 (Window::Window): Add initialization for FontCounter.
4025 (Window::~Window): Delete any fonts we created.
4026
4027 * geturl.cc: Run d2u.
4028 (progress): Remove the "3" field width from the "%3d"
4029 percent-complete format indicator. Causes line to not start at
4030 beginning of text box, and does little to help with "jumping", since
4031 the "bytes downloaded so far" field is variable-width anyway. Change
4032 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
4033 painfully slow connections, or temporary slowdowns in faster
4034 connections should such more-instantaneous functionality become
4035 available.
4036
4037 * net.h: Run d2u.
4038 (NetPage::OnMessageCmd): New member function declaration.
4039 (NetPage::CheckIfEnableNext): New member function declaration.
4040 * net.cc: Run d2u.
4041 (NetPage::OnMessageCmd): New member function definition.
4042 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
4043 (check_if_enable_next): Remove.
4044 (NetPage::CheckIfEnableNext): New member function, subsumes
4045 check_if_enable_next.
4046 (propsheet.h): Add include.
4047 (NetPage::Init): Add call to CheckIfEnableNext.
4048 (load_dialog): Remove call to check_if_enable_next.
4049 (NetPage::Create): Call single-template-ID-parameter overload of
4050 PropertyPage::Create instead of three-parameter one.
4051
4052 * Makefile.in (OBJS): Remove other.o.
4053 * other.cc: Remove file.
4054
df62e023
RC
40552002-01-01 Robert Collins <rbtcollins@hotmail.com>
4056
4057 * README: Update TODO's.
4058 * choose.cc (set_existence): Delete non installed packages with no
4059 mirrors.
4060 (fill_missing_category): Fix an off-by-one error.
cef493d7 4061 (default_trust): Ditto. Also delete any unused categories.
df62e023
RC
4062 (view::init_headers): Fix an off-by-one error.
4063 (set_view_mode): Ditto.
4064 (set_view_mode): Ditto.
4065 (create_listview): Ditto.
4066 (dialog_cmd): Ditto.
4067 (do_choose): Ditto.
4068 * io_stream.cc: Indent.
4069 * io_stream.h: Ditto.
4070 * package_db.cc: Ditto.
4071 * package_meta.h: Const correctness for SDesc ();
4072 * proppage.cc: Run d2u and indent.
4073 * propsheet.cc: Run d2u and indent.
4074 * window.cc: Run d2u and indent.
4075 * window.h: Run d2u and indent.
4076
cec57ee1
CF
40772001-12-28 Christopher Faylor <cgf@redhat.com>
4078
e98c531e 4079 * Makefile.in (iniparse.o): Accommodate newer bisons.
cec57ee1 4080
ab57ceaa
RC
40812001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4082
4083 * window.h (Window): New file, new class.
4084 * window.cc (Window): New file, new class.
4085
4086 * threebar.h (ThreeBarProgressPage): New file, new class.
4087 * threebar.cc (ThreeBarProgressPage): New file, new class.
4088
4089 * splash.h (SplashPage): New file, new class.
4090 * splash.cc (SplashPage): Replace file with implementation of new
4091 class.
4092
4093 * source.h (SourcePage): New file, new class.
4094 * source.cc: Run indent.
4095 (SourcePage): Add class implementation to this file.
4096 (do_source): Remove, functionality subsumed by SourcePage::Create()
4097 and SourcePage::OnDeactivate().
cef493d7 4098 (dialog_proc): Remove, functionality subsumed by
ab57ceaa
RC
4099 SourcePage::OnActivate().
4100
4101 * site.h: Run indent.
4102 (SitePage): Add class declaration.
4103 * site.cc: Run indent.
4104 (SitePage): Add class implementation.
4105 (do_download_site_info_thread): New function.
4106 (context): New var. Context info for do_download_site_info_thread().
4107 (do_download_site_info): New function.
4108 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
4109 (SitePage::OnBack): SitePage class implementation..
4110 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
4111 by SitePage members.
4112 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
4113 functionality.
4114 (do_site): Remove, now handled by do_download_site_info_thread() and
4115 SitePage::OnNext functionality.
4116 (get_site_list): Remove dismiss_url_status_dialog() call.
4117
4118 * root.h (RootPage): New file, new class.
4119 * root.cc: Run indent.
4120 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
4121 (dialog_proc): Remove.
4122 (do_root): Remove
4123 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
4124 (RootPage::OnInit): New member function. Move get_root_dir() logic to
4125 here from do_root().
4126 (RootPage::Create): New member function.
cef493d7 4127 (RootPage::OnNext): New member function. Move IDOK logic from
ab57ceaa
RC
4128 dialog_cmd() to here.
4129 (RootPage::OnBack): New member function.
4130
4131 * propsheet.h (PropSheet): New file, new class.
4132 * propsheet.cc (PropSheet): New file, new class.
4133
4134 * proppage.h (PropertyPage): New file, new class.
4135 * proppage.cc (PropertyPage): New file, new class.
4136
4137 * postinstall.cc (do_postinstall): Add owner parameter.
4138
4139 * other.cc (do_other): Add owner parameter.
4140
4141 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
cef493d7 4142 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
ab57ceaa 4143 get_ftp_auth().
cef493d7 4144 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
ab57ceaa
RC
4145 get_proxy_auth(),
4146 and get_ftp_auth().
cef493d7 4147 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
ab57ceaa
RC
4148 get_auth(), get_proxy_auth().
4149
4150 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
cef493d7 4151 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
ab57ceaa
RC
4152 NetIO::get_ftp_auth)
4153 (auth_common): Add owner param. Pass owner param to DialogBox.
cef493d7 4154 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
ab57ceaa
RC
4155 owner param to auth_common().
4156
4157 * net.h (NetPage): New file, new class.
4158 * net.cc: Run indent.
4159 (net.h, threebar.h): Add includes.
4160 (Progress): Add extern.
4161 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
4162 property sheet logic. Saved temporarily for reference.
cef493d7 4163 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
ab57ceaa
RC
4164 NetPage::OnNext, NetPage::OnBack):
4165 New implementation of NetPage class members.
4166 (do_net): Remove.
4167 (dialog_proc): Remove.
4168
4169 * msg.h (fatal, note, yesno): Add owner param.
4170 * msg.c (fatal, note, yesno, mbox): Add owner param.
4171 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
4172 now that we have a parent.
4173
4174 * main.cc: Run indent.
cef493d7 4175 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
ab57ceaa
RC
4176 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
4177 headers.
4178 (root_dialog_proc): extern into this file.
4179 (Progress): Progress dialog defined here, used in several other files.
4180 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
4181 Site, Chooser, Desktop pages and MainWindow sheet. Call
4182 InitCommonControls() to make sure Windows is set up for our use of
4183 property sheets. Add pages to sheet.
4184 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
4185 now handled by the PropSheet class.
4186 (root.h): Add include.
4187
4188 * log.cc (log_save): Pass NULL parent to fatal().
4189 (exit_setup): Pass NULL parent to note().
4190
4191 * localdir.h (LocalDirPage): New file, new class.
4192 * localdir.cc: Run indent.
4193 (localdir.h): New include.
4194 (threebar.h): New include.
4195 (Progress): extern into this file.
4196 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
cef493d7 4197 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
ab57ceaa
RC
4198 LocalDirPage.
4199 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
4200 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
4201 (do_local_dir): Remove.
4202 (dialog_proc): Remove.
4203 (cwd): Remove, not used by anything.
4204
4205 * install.cc: Run indent.
4206 (process.h, threebar.h): New includes.
4207 (Progress): extern into this file.
4208 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
4209 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
4210 ThreeBarProgressPage.
cef493d7 4211 (dialog_cmd, dialog_proc, dialog): Removed, handled in
ab57ceaa 4212 ThreeBarProgressPage.
cef493d7
CF
4213 (init_dialog): Remove all mention of the above ins_* handles. Now
4214 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
ab57ceaa
RC
4215 ThreeBarProgressPage instance Progress directly.
4216 (progress): Alter bar update logic to call ThreeBarProgressPage
4217 instance Progress directly.
4218 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
4219 instance Progress directly.
cef493d7 4220 (install_one_source): Alter SetWindowText()s to call
ab57ceaa
RC
4221 ThreeBarProgressPage
4222 instance Progress directly. Pass NULL parent to note().
cef493d7 4223 (do_install_thread): Rename from do_install(), added owner param.
ab57ceaa
RC
4224 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
4225 directly.
4226 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
cef493d7 4227 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
ab57ceaa
RC
4228 fatal().
4229 (do_install_reflector): New function.
4230 (do_install): New function.
4231
4232 * ini.cc (process.h, threebar.h): New includes.
4233 (Progress): externed into this file.
4234 (find_routine): Pass NULL parent to note().
4235 (do_local_ini): Add owner param.
cef493d7 4236 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
ab57ceaa
RC
4237 and note(). Remove call to dismiss_url_status_dialog().
4238 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
cef493d7 4239 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
ab57ceaa
RC
4240 to IDD_CHOOSER on exit.
4241 (do_ini_thread_reflector): New function.
4242 (context): New var. Context for do_ini_thread.
4243 (do_ini): New function.
4244
4245 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
4246 owner param.
cef493d7 4247 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
ab57ceaa 4248 gw_iprogress)
cef493d7 4249 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
ab57ceaa
RC
4250 Removed.
4251 (threebar.h): New include.
4252 (Progress): externed into this file.
cef493d7 4253 (dialog_cmd, dialog_proc, dialog): Removed, handled by
ab57ceaa 4254 ThreeBarProgressPage now.
cef493d7 4255 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
ab57ceaa 4256 SetWindowText()s
cef493d7 4257 and bar setting SendMessage()s to call ThreeBarProgressPage instance
ab57ceaa
RC
4258 Progress directly. Remove "one bar only" logic, this is now handled
4259 explicitly in the ThreeBarProgressPage class.
cef493d7 4260 (progress): Altered bar and text update logic to call
ab57ceaa
RC
4261 ThreeBarProgressPage instance Progress directly. Changed kbps
4262 calculation to floating point and now print out a single decimal
4263 place.
4264 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
4265 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
cef493d7 4266 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
ab57ceaa
RC
4267 update logic to call ThreeBarProgressPage instance Progress directly.
4268 (dismiss_url_status_dialog): Remove.
4269
4270 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
4271 false, was true.
4272
4273 * download.cc: Run indent.
4274 (process.h, threebar.h): New includes.
4275 (Progress): externed into this file.
4276 (download_one): Add owner param. Pass it to get_url_to_file().
4277 (do_download_thread): Renamed from do_download. Add owner param. When
4278 calculating total_download_bytes, take binpicked and srcpicked into
4279 account. Remove call to dismiss_url_status_dialog(), no longer needed.
4280 Pass owner handle to download_one() and yesno().
4281 (do_download_reflector, do_download): New functions.
4282 (context): New var. Context for do_download_thread().
4283
4284 * dialog.h (D(x)): Add owner param.
4285
4286 * desktop.h (DesktopSetupPage): New file, new class.
4287 * desktop.cc: Run indent.
4288 (desktop.h): Add include.
cef493d7 4289 (dialog_proc, do_desktop): Remove, now handled in
ab57ceaa
RC
4290 DesktopSetupPage::OnInit().
4291 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
4292 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
4293 resp.
4294 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
4295 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
4296 of DesktopSetupPage.
4297
4298 * cistring.h: New file, new class.
4299 * cistring.cc: New file, new class.
4300
4301 * choose.h: Run indent.
4302 (Chooser): New class declaration.
4303 * choose.cc: Run indent.
cef493d7 4304 (do_choose): Add owner param. Pass it to DialogBox() and
ab57ceaa
RC
4305 fatal().
4306 (Chooser): New class implementation.
4307
4308 * res.rc (IDS_VERSION_INFO): New string.
4309 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
4310 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
4311 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
4312 throughout.
4313 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
4314 TAB control navigation etc. Give the controls a reasonable tab order.
4315 Grouped radio buttons. Something's still not right, can't tab away
4316 from back/next/cancel group reliably.
4317 * resource.h (IDD_CHOOSER): New dialog ID.
4318
4319 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
4320 threebar.o, and window.o.
4321
cc41a057
RC
43222001-12-21 Robert Collins <rbtcollins@hotmail.com>
4323
58b12a06
MB
4324 * choose.cc (listview_proc): Update the scrollbar when the headers are
4325 dragged.
cc41a057
RC
4326 (pick_pkg_line::paint): Clip columns to prevent overlap.
4327
cbfc4215
RC
43282001-12-20 Robert Collins <rbtcollins@hotmail.com>
4329
4330 * Makefile.in: Add libcomctl32.a for setup.exe.
4331 * archive.h (archive): Prevent non-child direct creation of the class.
58b12a06
MB
4332 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and
4333 assignment.
cbfc4215
RC
4334 * choose.cc: Include commctrl for the choose header.
4335 (NEW_COL_SIZE_SLOP): Define without magic numbers.
4336 (pkgtrustp): Convert to function.
4337 (set_action): Remove.
cef493d7 4338 (add_required, fill_missing_category,default_trust): Use list syntax for
cbfc4215
RC
4339 package list.
4340 Use new set_action.
4341 (choose_caption): Remove.
4342 (topbucket::paint): New method.
4343 (topbucket::empty): Ditto.
4344 (topbucket::click): Ditto.
4345 (topbucket::~topbucket): Ditto.
4346 (paint): Remove i,ii and p as they are obsolete.
4347 Remove header drawing code.
4348 Use new chooser method to paint the chooser.
4349 Use new chooser itemcount method.
4350 (scroll_common): Rename to view::scroll.
4351 Scroll the header window separately.
58b12a06
MB
4352 (list_vscroll, list_hscroll, list_click): Update for new chooser
4353 methods.
cbfc4215
RC
4354 (listview_proc): Look for header messages.
4355 (note_width): Accept stringless calls.
4356 (pick_line::set_line): Remove.
4357 (pick_line::paint): Remove.
58b12a06
MB
4358 (pick_pkg_line::paint): Paint this one line, using the header column
4359 widths.
4360 (pick_category_line::paint): Paint this category, and anything in the
4361 bucket.
cbfc4215
RC
4362 (pick_line::click): Remove.
4363 (pick_pkg_line::click): Handle a click.
4364 (pick_category_line::click): Handle a click.
4365 (_view): Rename all to view.
4366 (view::view): Initialise the control contents.
4367 (view::set_headers): Work with the header control.
4368 (view::init_headers): Use list syntax for package list.
4369 Rearrange the width logic a little.
4370 (view::insert_pkg): Update to use the hierarchy.
4371 (view::insert_category): Ditto.
4372 (view::insert_at, view::insert_under): Remove.
4373 (view::clear_view): Update to use the hierarchy.
4374 (view::click): Update to use the hierarchy.
4375 (set_view_mode): Use list syntax for package list.
4376 Update for new chooser methods.
4377 (DoInsertItem): New helper function. (Needs a home somewhere).
58b12a06
MB
4378 (create_listview): Remove choose control code and use the constructor
4379 instead.
cbfc4215
RC
4380 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
4381 * choose.h: Include newly required headers list and package_meta.
4382 (_voew): Rename to view.
4383 (pick_line): Convert to an ABC.
4384 (pick_pkg_line): New class.
4385 (pick_catgory_line): New class.
4386 (topbucket): New class.
4387 (view::scroll): New method created from listview_scroll function.
4388 * desktop.cc (make_passwd_group): Use list syntax for package list.
4389 * download.cc (do_download): Use list syntax for package list.
4390 * fromcwd.cc (found_file): Use list syntax for package list.
4391 * iniparse.y (pacakges): Use list syntax for package list.
4392 * install.cc (uninstall_one): Use list syntax for package list.
4393 (do_install): Use list syntax for package list.
58b12a06
MB
4394 * io_stream.h (io_stream): Prevent non-child direct creation of the
4395 class.
cbfc4215
RC
4396 Prevent inaccurate synthetic copy and assignment.
4397 * list.h: Include required header stdlib.
4398 Work on const correctness.
4399 * package_db.cc (packagedb::getpackagebyname): Remove.
4400 (packagedb::packagedb): Remove custom list code, and make db a local.
4401 (packagedb::getfirstpackage): Remove.
4402 (packagedb::getnextpackage): Remove.
4403 (packagedb::addpackage): Remove.
4404 (flush): Remove custom list code.
4405 (packagedb::registerpackage): Remove.
4406 (packagedb::packages): New static member.
4407 (packagedb::task): New static member.
4408 * package_db.h (PackageDBActions): New enum.
4409 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
4410 addpackage, registerpackage, packages, packagecount, curr_package, db.
4411 Add packages, task.
4412 * pacakge_meta.cc: Include package_db.h.
4413 (packagemeta::action_caption): New method.
4414 (packagemeta::set_action): New method.
4415 * package_meta.h (CategoryPackage): Initialise key.
4416 (packagemeta): Initialise key.
4417 Add set_action and action_caption methods.
4418 Prevent inaccurate synthetic copy and assignment.
4419 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
4420 * source.cc: Include package_db for db manipulation.
4421 (save_dialog): Set the db task.
58b12a06
MB
4422 * win32.h: Tell the w32 include headers what IE version to
4423 expect/require.
cbfc4215 4424
cd8e5750
RC
44252001-12-06 Robert Collins <rbtcollins@hotmail.com>
4426
4427 * README: Wishlist updates.
4428
5519d243
RC
44292001-12-04 Robert Collins <rbtcollins@hotmail.com>
4430
4431 * package_db.cc (getnextpackage): Don't overrun the array.
4432
de6a1a64
RC
44332001-12-04 Robert Collins <rbtcollins@hotmail.com>
4434
4435 * Makefile.in (OBJS): Add setup_version.o.
4436 (version.c): Rename to setup_version.
4437 * choose.cc (set_action): Prevent NULL pointer dereference.
4438 (package_sort): Remove.
4439 * fromcwd.cc (canonicalize_version): Moved to version.cc.
58b12a06
MB
4440 (check_ini): New function for use with find to see if there is a cached
4441 setup.ini.
de6a1a64
RC
4442 (do_fromcwd): Check for a cached setup.ini from any mirror site.
4443 * ini.cc (find_routine): New function, for finding cached setup.ini's.
4444 (do_local_ini): New function, drives parsing of local ini's.
58b12a06
MB
4445 (do_remote_ini): New function, drives parsing and caching of remote
4446 ini's.
de6a1a64
RC
4447 (do_ini): Move guts to do_remote_ini and do_local_ini.
4448 * list.h (removebyindex): New method.
4449 * other.cc (save_dialog): Use new site_list and all_site_list to add the
4450 new site to the site picklist.
4451 (dialog_cmd): Only save the dialog when exiting the dialog.
4452 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
4453 * site.cc (site_list_type): Move to site.h
4454 (site_list): New global, sites chosen by the user.
4455 (all_site_list): New global, all potential sites.
58b12a06
MB
4456 (site_list_type::init): New method, parses a mirror.lst URL string into
4457 a site_list_type object.
de6a1a64
RC
4458 (site_list_type::site_list_type): New method.
4459 (check_if_enable_next): Examine the control, not a local variable.
4460 (load_dialog): Select all the user chosen sites by default.
cef493d7 4461 (save_dialog): Adjust for multiple selection semantics.
de6a1a64 4462 (save_site_url): Save all user chosen sites.
58b12a06
MB
4463 (dialog_cmd): Don't save the dialog when the listbox recieves a message
4464 - thats not needed.
de6a1a64
RC
4465 Remove obsolete other_url reference.
4466 (dialog_proc): Use all_site_list instead of site_list.
4467 (site_sort): Remove.
4468 (get_site_list): Remove malloc use - use list template instead.
4469 Move site_list_type initialisation to site_list_type::init().
4470 (get_initial_list_idx): Renamed to ...
4471 (get_saved_sites): this. Also read in multiple sites to the site_list.
4472 (do_site): Use all_site_list not site_list.
4473 Log all chosen sites.
4474 * site.h: New file, defines site related class, functions and variables.
4475 * state.h: Add comment about use of state.h
4476 (mirror_site): Remove.
4477 (other_url): Remove.
4478 (MIRROR_SITE): Remove.
4479 * version.cc: New file, for version-handling and related functions.
4480
341988b9
RC
44812001-12-02 Robert Collins <rbtcollins@hotmail.com>
4482
4483 * Makefile.in: Add filemanip.o to setup.
4484 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
4485 * archive_tar.h (archive_tar_file): Implement get_size virtual.
4486 (archive_tar): Ditto.
58b12a06
MB
4487 * choose.cc (set_action): Use [] operator instead of getnth - its more
4488 readable.
341988b9
RC
4489 (paint): Ditto.
4490 (_view::init_headers): Ditto.
4491 (_view::insert_pkg): Ditto.
4492 (set_view_mode): Ditto.
4493 (scan2): Ditto.
4494 (do_choose): Ditto.
4495 (base): Moved to filemanip.cc.
4496 (find_tar_ext): Ditto.
4497 (parse_filename): Ditto.
4498 (_Info::_Info): Remove.
4499 * compress_bz.h (compress_bz): Implement get_size virtual.
4500 * compress_gz.h (compress_gz): Implement get_size virtual.
58b12a06
MB
4501 * cygpackage.cc (cygpackage::destroy): Use array delete for char *
4502 objects.
341988b9 4503 * download.cc (get_file_size): Move to filemanip.cc.
58b12a06
MB
4504 (check_for_cached): Use [] operator instead of getnth - its more
4505 readable.
341988b9
RC
4506 (download_one): Ditto.
4507 * filemanip.cc: New file.
58b12a06
MB
4508 * geturl.cc (init_dialog): Make url a pointer to const as it is not
4509 modified.
4510 (get_url_to_membuf): New function - contains get_url_to_string worker
4511 code.
341988b9
RC
4512 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
4513 * geturl.h: Declare new prototype.
4514 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
4515 Tidy up the error code a little.
4516 * ini.h: Remove __cplusplus protection for ini_init.
4517 (_Info): Remove.
4518 * inilex.l: Remove old globals.
4519 (ini_init): Use an io_stream for getting the characters.
4520 (ini_getchar): Ditto.
4521 * iniparse.y: Declare yylex as a C++ function.
58b12a06
MB
4522 (add_correct_version): Use [] operator instead of getnth - its more
4523 readable.
341988b9
RC
4524 * io_stream.cc (io_stream::move_copy): Use the copy method.
4525 (io_stream::copy): New method to simply copy from one stream to another.
58b12a06
MB
4526 * io_stream.h (io_stream): New static method copy, and virtual method
4527 get_size.
341988b9
RC
4528 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
4529 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
4530 * io_stream_file.cc (io_stream_file::get_size): Implement this.
4531 * io_stream_file.h (io_stream_file::get_size): Declare this.
4532 * io_stream_memory.h: Include errno as it's neded to parse the header.
4533 (io_stream_memory::get_size): Implement this.
4534 (io_stream_memory::st_size): Delete this.
4535 * list.h: Change getnth into the [] operator.
58b12a06
MB
4536 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being
4537 modified.
341988b9
RC
4538 (NetIO::set_url): Ditto.
4539 (NetIO::open): Ditto.
4540 * netio.h: As for netio.cc.
58b12a06
MB
4541 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect
4542 Purl not being modified.
341988b9
RC
4543 * nio-file.h: Ditto.
4544 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
4545 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
4546 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
4547 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
4548 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
4549 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
4550 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
4551 * package_source.cc (packagesource::set_canonical): Ditto.
4552 (packagesource::set_cached): Ditto.
4553 * package_source.h (site::~site): Ditto.
58b12a06
MB
4554 * site.cc: Change site_list_type to a class, and search and replace
4555 sort_key to key globally.
341988b9 4556
071c1c54
RC
45572001-12-01 Robert Collins <rbtcollins@hotmail.com>
4558
58b12a06
MB
4559 * package_source.cc (packagesource::set_canonical): Filename was out by
4560 one.
071c1c54 4561
4fe323f9
RC
45622001-11-30 Robert Collins <rbtcollins@hotmail.com>
4563
4564 * Makefile.in (OBJS): Remove category_list - it's not needed.
4565 * README: More wishlist updates.
4566 * category.cc (Category::Category): Initialise new members.
4567 (Categorycmp): New function.
4568 * category.h (Category): New member key for template use.
4569 * category_list.cc: Remove.
4570 * category_list.h: Remove.
4571 (Categorycmp): New function prototype.
4572 * choose.cc: Remove category_list - not needed.
cef493d7 4573 (set_action): Only show the 'source' option when the source is actually
4fe323f9
RC
4574 available.
4575 (add_required): Fix recursion limiter to 5.
4576 (fill_missing_category): Use list access.
4577 (default_trust): Ditto.
4578 (pick_line::paint): Ditto.
4579 (_view::init_headers): Ditto.
4580 (_view::insert_pkg): Ditto.
4581 (_view::insert_category): Ditto.
4582 (_view::click): Ditto.
4583 (set_view_mode): Ditto.
4584 (do_choose): Ditto.
4585 * cygpackage.h: Remove category_list - not needed.
4586 * geturl.cc (get_url_to_string): Fix null byte insertion.
4587 * inipatse.y: Remove category_list - not needed.
4588 (categories): Use list access.
4589 * package_db.cc: Ditto.
4590 * package_db.h: Remove category_list - not needed.
4591 (packagedb): Use the list template for categories.
4592 * package_meta.cc (add_category): Ditto.
4593 * package_meta.h (CategoryPackage): Link to the category as well.
cef493d7 4594 (packagemeta): Use a list of CategoryPackages instead of Categories
4fe323f9
RC
4595 for more memory efficient cross-referencing.
4596
7d66d192
RC
45972001-11-30 Robert Collins <rbtcollins@hotmail.com>
4598
58b12a06
MB
4599 * package_db.cc (packagedb::flush): Write a canonical version for all
4600 packages irrespective of the media they were installed from.
7d66d192 4601
bb849dbd
RC
46022001-11-29 Robert Collins <rbtcollins@hotmail.com>
4603
4604 * Makefile.in (OBJS): Add package_source and rfc1738.
4605 * README: Wishlist update.
4606 * category_list.cc (register_category): Use references.
4607 * category_list.h (CategoryList): Ditto.
4608 * choose.cc (isinstalled): Remove.
4609 (pkgtrustp): New macro.
4610 (set_action): Use packagemeta.
4611 (add_required): Ditto.
58b12a06
MB
4612 (choose_caption): Example package to choose caption, rather than state
4613 flags.
bb849dbd
RC
4614 (check_existence): Remove.
4615 (set_existence): Remove old code.
4616 (fill_missing_category): Use packagemeta.
4617 (keep_or_skip): Remove.
4618 (default_trust): Use packagemeta and set trust values directly.
4619 (pick_line::set_line): Use packagemeta.
4620 (_view::insert_pkg): Ditto.
4621 (_view::insert_category): Ditto.
4622 (_view::click): Ditto.
4623 (set_view_mode): Ditto. Also remove "exclude" code.
4624 (create_listview): Use packagemeta.
4625 (dialog_cmd): Ditto.
4626 (getpkgbyname): Remove
4627 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
4628 (read_installed_db): Remove.
4629 (package_sort): Use packagemeta.
58b12a06
MB
4630 (do_choose): Use packagemeta. Don't sort the packages - the db does
4631 that.
bb849dbd
RC
4632 * choose.h: Use packagemeta.
4633 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
4634 (cygpackage::cygpackage): Ditto.
4635 (cygpackage::set_canonical_version): Copy the passed string.
4636 (cygpackage::~cygpackage): Move cleanup code to destroy().
4637 (cygpackage::destroy): New function.
4638 (cygpackage::getfirstfile): Use a separate buffer.
4639 (cygpackage::getnextfile): Ditto.
4640 (cygpackage::Canonical_version): New function.
4641 (cygpackage::set_sdesc): Ditto.
4642 (cygpackage::set_ldesc): Ditto.
4643 * cygpackage.h (cygpackage::Canonical_version): New method.
4644 (cygpackage::set_sdesc): New method.
4645 (cygpackage::set_ldesc): New method.
4646 (cygpackage::SDesc): New method.
4647 (cygpackage::LDesc): New method.
4648 (cygpackage::set_canonical_version): New method.
4649 * desktop.cc: Include packagedb headers.
4650 (make_password_group): Use packagemeta.
4651 * download.cc: Include packagedb headers.
58b12a06
MB
4652 (check_for_cached): New method to find any cached file and fill out the
4653 database info.
bb849dbd
RC
4654 (download_one): Take a packagesource, support multiple mirrors.
4655 (do_download): Use packagemeta.
4656 * from cwd.cc: Include packagedb headers.
4657 (found_file): Use packagemeta.
4658 * ini.cc (do_ini): Beginning of multiple-mirror support.
4659 * ini.h (CategoryPackage): Remove.
4660 (Dependency): Remove.
4661 (Package): Remove.
58b12a06
MB
4662 (new_package,getpkgbyname,getpackagecategorybyname,add_category):
4663 Remove.
bb849dbd
RC
4664 * inilex.l: Support multiple mirrors.
4665 * iniparse.y: Include packagedb headers.
4666 (parser): Use packagemeta.
4667 (new_package): Remove.
4668 (add_correct_version): New function.
4669 (new_requirement): Remove.
4670 (add_category): Remove.
4671 * install.cc (uninstall_one): Use packagemeta.
4672 (install_one_source): New function.
4673 (install_one): Use packagemeta.
4674 (do_install): Use packagemeta.
4675 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
58b12a06
MB
4676 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the
4677 file after setting the mtime, it makes no sense, and results in 0 length
4678 files.
bb849dbd
RC
4679 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
4680 * list.h: New file, template class for a form of list.
4681 * package_db.cc (packagedb::registerpackage): New function.
4682 * package_db.h (packagedb::npackages ()): New method.
4683 * package_meta.cc (packagemeta::add_version): Use list template.
4684 (packagemeta::set_installed): Ditto.
4685 (packagemeta::add_category): New method.
4686 * package_meta.h: Include necessary headers to parse the class.
4687 (CategoryPackage): New class.
4688 (packagemeta): Initialise all members.
4689 (packagemeta::SDesc): New method.
4690 (packagemeta::Categories): New method.
4691 (packagemeta::add_category): Ditto.
4692 (packagemeta::versions): Change to be a list instance.
4693 * package_source.cc (packagesource::set_canonical): New method.
4694 (packagesource::set_cached): New method.
4695 * package_source.h: Include necessary headers to parse the class.
4696 (site): New class.
4697 (packagesource::packagesource): Initialize all members.
4698 (packagesource): Make this class non-abstract.
4699 * package_version.cc (packageversion::packageversion): New method.
4700 * package_version.h (Dependency): New class.
4701 (packageversion::Canonical_vesion): New method.
4702 (packageversion::SDesc): New method.
4703 (packageversion::LDesc): New method.
4704 (packageversion::new_requirement): Ditto.
4705 (packageversion::srcpicked, binpicked): What to install.
4706 (packageversion::src, bin): Installation source data.
4707 * rfc1738.cc: New file. Escapes special characters in URL's.
4708 * rfc1738.h: Ditto.
4709
90d14922
RC
47102001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4711
4712 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
4713 SimpleSocket::gets() returns a zero-length string, so that we
4714 don't end up eating the entire stream thinking it's all header info.
4715
7c7034e8
RC
47162001-11-23 Robert Collins <rbtcollins@hotmail.com>
4717
4718 * install.cc (badrename): Remove.
58b12a06
MB
4719 (do_install): Use packagedb flush method to write
4720 /etc/setup/installed.db.
7c7034e8
RC
4721 * io_stream.cc (io_stream::move_copy): New method.
4722 (io_stream::move): New method.
4723 * io_stream.h (io_stream): New methods move and move_copy.
4724 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
4725 * io_stream_cygfile.h (io_stream_cygfile): New method move.
4726 * io_stream_file.cc (io_stream_file::move): New method.
4727 * io_stream_file.h (io_stream_file): New method move.
4728 * package_db.cc (packagedb::flush): New method.
4729 * package_db.h (packagedb): New method flush.
4730
fa0c0d10
RC
47312001-11-23 Robert Collins <rbtcollins@hotmail.com>
4732
4733 * Makefile.in (OBJS): Add package_version.
4734 * ategory.cc (Category::Category): Update constructors.
4735 * category_list.cc (CategoryList::register_category): Insert correctly.
4736 * choose.cc: Include package_version.h, not package.h.
4737 * cygpackage.cc: Ditto.
4738 (cygpackage::uninstall): New method.
4739 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
4740 New method uninstall.
4741 * hash.cc (add, has, enumerate): Change prototype to be accurate.
4742 * hash.h (hash): Change prototypes to be accurate.
4743 * ini.h (_Info): New parameterless constructor.
4744 (CategoryPackage): New constructor.
4745 (Package): Ditto.
4746 * install.cc: Don't include unneeded headers.
4747 Include package database headers.
4748 (hash::add_subdirs): Remove.
58b12a06
MB
4749 (uninstall_one): Use packagemeta->uninstall to perform the
4750 uninstallation. Don't uninstall source packages.
4751 (do_install): Just can uninstall_one once as we ignore source packages
4752 now. Don't copy the installed.old database accross, instead iterate
4753 through the packagedb packages list and write the installed packages
4754 out.
fa0c0d10
RC
4755 * package_db.cc: Include package_version.h, not package.h.
4756 (packagedb::packagedb): Never let db be undefined.
4757 Record the installation filename, so we can reconstruct installed.db.
4758 (packagedb::addpackage): Insert packages in alpha sorted order.
4759 (packagedb::categories): Initialise correctly.
4760 * package_meta.cc: Include win32 and mount headers as a workaround to
4761 current io_stream limitations. Include a TODO about that.
4762 (standard_dirs): New, from install.cc.
4763 (hash::add_subdirs): New, from install.cc.
4764 (packagemeta::set_installed): Rename genericpackage to packageversion.
4765 (packagemeta::uninstall): New method.
4766 * package_meta.h: Rename genericpackage to packageversion.
4767 (packagemeta): Update constructor.
4768 (add_version, set_installed): Rename genericpackage to packageversion.
4769 (uninstall): New method.
4770 (installed_from): New member.
4771 * package_source.cc: New file.
4772 * package_source.h: New file.
4773 * package_version.cc: New file.
4774 * package_version.h: New file.
4775 * package.cc: Removed.
4776 * package.h: Removed.
cef493d7 4777
7b606ae5
RC
47782001-11-21 Robert Collins <rbtcollins@hotmail.com>
4779
4780 * Makefile.in (OBJS): Add category.o and category_list.o.
4781 * category.h: New file.
4782 * category.cc: New file.
4783 * category_list.h: New file.
4784 * category_list.cc: New file.
4785 * choose.cc: Include category headers.
4786 (fill_missing_category): Use package_db to access global categories.
4787 (_view::insert_pkg): Ditto.
4788 (_view::insert_category): Ditto.
4789 (set_view_mode): Ditto.
4790 (getcategorybyname): Remove.
4791 * cygpackage.h: Include category_list.h to parse this correctly.
4792 (cygpackage): New virtual &Categories.
4793 * ini.h (_CategoryPackage): More C to C++ conversion.
4794 (Category): Remove.
4795 (getcategorybyname): Remove.
4796 (register_category): Remove.
4797 * iniparse.y: Include package db and category headers.
4798 (categories): Use package_db to access global categories.
4799 (category): Remove.
4800 (ncategories): Remove.
4801 (register_category): Remove.
4802 * package.h: New virtual &Categories.
58b12a06
MB
4803 * package_db.cc (packagedb::packagedb): Don't read the installed db
4804 twice.
7b606ae5 4805 (packagedb::categories): Declare.
58b12a06
MB
4806 * package_db.h (packagedb): New member categories for global categories
4807 list.
7b606ae5 4808
d0fa1c4e
RC
48092001-11-21 Robert Collins <rbtcollins@hotmail.com>
4810
4811 * choose.h: Don't include ini.h
4812 * ini.h: Allow pure c++ in the header file.
4813
24cbae7f
RC
48142001-11-21 Robert Collins <rbtcollins@hotmail.com>
4815
4816 * install.cc (do_install): Write a version 2 installed.db file.
58b12a06
MB
4817 * package_db.cc (packagedb::packagedb): Read version 1 and 2
4818 installed.db files.
24cbae7f 4819
7939f6d1
RC
48202001-11-21 Robert Collins <rbtcollins@hotmail.com>
4821
4822 * Makefile.in (OBJS): Add package abstraction objects.
4823 * choose.cc: Include package abstraction headers.
4824 (read_installed_db): Use packagedb class and ignore installed sources.
4825 * cygpackage.cc: New file.
4826 * cygpackage.h: New file.
4827 * filemanip.h (get_file_size): Use unixy types.
4828 * package.h: New file.
4829 * package.cc: New file.
4830 * package_db.cc: New file.
4831 * package_db.h: New file.
4832 * package_meta.cc: New file.
4833 * package_meta.h: New file.
4834
33bc0053
RC
48352001-11-21 Robert Collins <rbtcollins@hotmail.com>
4836
4837 * REAME: Updates to wishlist.
4838
12ccadc0
RC
48392001-11-16 Robert Collins <rbtcollins@hotmail.com>
4840
4841 * README: Updated and added my list of wishlist and todo items.
4842
ca9506cc
RC
48432001-11-14 Robert Collins <rbtcollins@hotmail.com>
4844
4845 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
4846 * archive_tar.cc (archive_tar::write): New prototype.
4847 (archive_tar::seek): New method.
4848 * archive.h (archive_tar_file): Update write() and add seek().
4849 (archive_tar): Ditto.
4850 * archive_tar_file.cc (archive_tar_file::write): New prototype.
4851 (archive_tar_file::seek): New method.
4852 * compress_bz.cc (compress_bz::write): New prototype.
4853 (compress_bz::seek): New function.
4854 * compress_bz.h (compress_bz): Update write() and add seek().
4855 * compress_gz.cc (compress_gz::write): New prototype.
4856 (compress_gz::seek): New function.
4857 * compress_gz.h (compress_gz): Update write() and add seek().
4858 * geturl.cc: Include io_stream headers.
4859 (GUBuf): Remove.
4860 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
4861 * io_stream.h (io_stream_seek_t): New enum.
4862 (io_stream): Update write() and add seek().
4863 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
4864 (io_stream_cygfile::seek): New function.
58b12a06
MB
4865 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add
4866 seek().
ca9506cc
RC
4867 * io_stream_file.cc (io_stream_file::write): New prototype.
4868 (io_stream_file::seek): New function.
4869 * io_stream_file.h (io_stream_file): Update write() and add seek().
4870
2db33f10
RC
48712001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
4872
4873 * localdir.cc: Add headers unistd.h and port.h.
cef493d7 4874 (save_local_dir): Expand search logic to include local directory for
2db33f10
RC
4875 location of file last-cache.
4876 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
cef493d7 4877 (do_local_dir): Expand search logic to include local directory for file
2db33f10
RC
4878 last-cache.
4879 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
cef493d7 4880 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2db33f10 4881 Internet.
cef493d7 4882 (do_source): Default to Install from Internet on first entry or
2db33f10
RC
4883 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
4884
03a6c5b1
RC
48852001-11-13 Robert Collins <rbtcollins@hotmail.com>
4886
4887 * choose.cc (find_tar_ext): Only match at the end of the string.
4888 (getpkgbyname): Prevent NULL pointer dereference.
4889
b24c88b3
RC
48902001-11-13 Robert Collins <rbtcollins@hotmail.com>
4891
4892 * Makefile.in (CFLAGS): Add warnings and -Werr.
58b12a06
MB
4893 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter
4894 what.
b24c88b3
RC
4895 (OBJS): Add io_stream class' objects.
4896 (autoload.o): Use WARNONLY_FLAGS.
4897 (inilex.o): Ditto.
4898 (iniparse.o): Ditto.
4899 * archive.cc: New file.
4900 * archive.h: New file.
4901 * archive_tar.cc: New file.
4902 * archive_tar.h: New file.
4903 * archive_tar_file.cc: New file.
4904 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
4905 * choose.cc: Use io_stream.h, not mount.h.
4906 Run indent.
58b12a06
MB
4907 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an
4908 extension.
b24c88b3
RC
4909 (read_installed_db): Use io_streams.
4910 * choose.h: Run indent.
4911 * compress.cc: New file.
4912 * compress.h: New file.
4913 * compress_bz.cc: New file.
4914 * compress_bz.h: New file.
4915 * compress_gz.cc: New file.
4916 * compress_gz.h: New file.
4917 * concat.cc: Run indent.
4918 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4919 * concat.h: Run indent.
4920 * desktop.cc: Run indent.
4921 Include mklink2.h rather than redefining by hand.
4922 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4923 (etc_profile): Fix compiler warning (deprecated conversion).
4924 (make_link): Fix compiler warning (deprecated conversion).
4925 Tidy up use of args variable - consolidate into argbuf.
4926 (start_menu): Fix compiler warning (deprecated conversion).
4927 (desktop_icon): Fix compiler warning (deprecated conversion).
4928 (make_etc_profile): Fix compiler warning (deprecated conversion).
4929 (uexists): Fix compiler warning (deprecated conversion).
4930 (check_desktop): Fix compiler warning (deprecated conversion).
4931 (check_startmenu): Fix compiler warning (deprecated conversion).
4932 * dialog.cc: Run indent.
4933 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4934 (fatal): Fix compiler warning (deprecated conversion).
4935 * dialog.h: Run indent.
4936 * diskfull.cc: Run indent.
4937 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4938 * download.cc: Run indent.
4939 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4940 (download_one): Fix compiler warning (signed vs unsigned comparison).
4941 * filemanip.h: Run indent.
4942 * find.cc: Run indent.
4943 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4944 (find): Fix compiler warning (deprecated conversion).
4945 * find.h: Run indent.
4946 * fromcwd.cc: Run indent.
4947 * geturl.cc: Run indent.
4948 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4949 (dialog_cmd): Return a value.
4950 (dialog_proc): Remove unused variables.
4951 Return a value.
4952 (get_url_to_file): Fix compiler warning (deprecated conversion).
4953 * geturl.h: Run indent.
4954 * hash.cc: Run indent.
4955 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4956 * hash.h: Run indent.
4957 * ini.cc: Run indent.
4958 Use io_streams.
4959 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4960 (do_ini): Use io_streams for local io.
4961 * ini.h: Run indent.
4962 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
4963 Fix compiler warning (brackets for truth assignment).
4964 * install.cc: Run indent.
4965 Fix compiler warning (/* in comment).
4966 Use io_streams.
4967 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4968 (dialog_cmd): Return a value.
4969 (dialog_proc): Return a value.
4970 (start_tics): Deleted - was unused.
4971 (badrename): Fix compiler warnings (unused, deprecated conversion).
4972 (standard_dirs): Fix compiler warning (deprecated conversion).
4973 (exists): Remove.
4974 (uninstall_one): Convert to io_streams.
4975 (install_one): Convert to io_streams.
4976 (do_install): Convert to io_streans.
4977 Fix compiler warning (deprecated conversion).
4978 * io_stream.cc: New file.
4979 * io_stream.h: New file.
4980 * io_stream_cygfile.cc: New file.
4981 * io_stream_cygfile.h: New file.
4982 * io_stream_file.cc: New file.
4983 * io_stream_file.h: New file.
4984 * localdir.cc: Run indent.
4985 Use io_streams.
4986 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4987 (get_root_dir_now): Remove.
4988 (save_local_dir): Convert to io_streams.
4989 (dialog_cmd): Return a value.
4990 (do_local_dir): Convert to io_streams.
4991 (log.cc): Run indent.
4992 (cvsid): Fix compiler warnings (unused, deprecated conversion).
4993 (log): Fix compiler warning (deprecated conversion).
4994 (log_save): Fix compiler warning (deprecated conversion).
4995 * log.h: Run indent.
4996 (log): Fix compiler warning (deprecated conversion).
4997 (log_save): Fix compiler warning (deprecated conversion).
4998 * main.cc: Run indent.
4999 Don't include "netio.h".
5000 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5001 (netio_test): Remove.
5002 (sid_auth): Fix compiler warning (partially bracketed initialiser).
5003 (WinMain): Return a value.
5004 * mkdir.cc: Run indent.
5005 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5006 * mklink2.c: Run indent.
5007 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5008 (mkcygsymlink): New function.
5009 * mklink2.h: New file.
5010 * mount.cc: Run indent.
5011 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5012 (create_mount): Remove unused variables.
5013 (cygpath): Fix compiler warning (signed vs unsigned comparison).
5014 * mount.h: Run indent.
5015 * msg.cc: Run indent.
5016 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5017 (msg): Fix compiler warning (deprecated conversion).
5018 (mbox): Fix compiler warning (deprecated conversion).
5019 * msg.h: Run indent.
5020 (msg): Fix compiler warning (deprecated conversion).
5021 * net.cc: Run indent.
5022 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5023 (dialog_cmd): Return a value.
5024 * netio.cc: Run indent.
5025 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5026 (auth_cmd): Return a value.
5027 * netio.h: Run indent.
5028 * nio-file.cc: Run indent.
5029 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5030 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
5031 * nio-file.h: Run indent.
5032 * nio-ftp.cc: Run indent.
5033 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5034 * nio-ftp.h: Run indent.
5035 * nio-http.cc: Run indent.
5036 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5037 * nio-http.h: Run indent.
5038 * nio-ie5.cc: Run indent.
5039 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5040 * nio-ie5.h: Run indent.
5041 * other.cc: Run indent.
5042 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5043 (dialog_cmd): Return a value.
5044 * port.h: Run indent.
5045 * postinstall.cc: Run indent.
5046 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5047 (cmd): Fix compiler warning (deprecated conversion).
5048 (eun): Fix compiler warning (deprecated conversion).
5049 * root.cc: Run indent.
5050 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5051 * simpsock.cc: Run indent.
5052 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5053 * simpsock.h: Run indent.
5054 * site.cc: Run indent.
5055 Use io_streams.
5056 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5057 (get_root_dir_now): Remove.
5058 (save_site_url): Convert to io_streams.
5059 (dialog_cmd): Return 0.
5060 (get_initial_list_idx): Convert to io_streans.
5061 * source.cc: Run indent.
5062 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5063 (check_if_enable_next): Remove.
5064 (load_dialog): Remove unused variables.
5065 (save_dialog): Ditto.
5066 (dialog_cmd): Return a value.
5067 * splash.cc: Return a value.
5068 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5069 (dialog_cmd): Return a value.
5070 * state.cc: Run indent.
5071 (cvsid): Fix compiler warnings (unused, deprecated conversion).
5072 * state.h: Run indent.
5073 * tar.h: Remove.
5074 * tar.cc: Remove.
5075
398dd7b2
CF
50762001-11-12 Christopher Faylor <cgf@redhat.com>
5077
5078 * desktop.cc (start_menu): Change start menu name to "Cygwin".
5079 (check_startmenu): Ditto.
5080
c29ee141
CF
50812001-11-11 Christopher Faylor <cgf@redhat.com>
5082
5083 * choose.cc (parse_filename): Finish reorganization by correctly
5084 decrementing p in memmove.
5085
3a8276de
CF
50862001-11-11 Christopher Faylor <cgf@redhat.com>
5087
5088 * choose.cc (parse_filename): Reorganize code to work around gcc
5089 optimization problem.
5090
6eea52fb
RC
50912001-11-09 Gareth Pearce <tilps@hotmail.com>
5092
5093 * choose.cc (set_action): Allow skip as an option for installed
5094 packages that have version number not listed in setup.ini.
5095
cf99b153
RC
50962001-11-10 Robert Collins <rbtcollins@hotmail.com>
5097
5098 * choose.cc (set_cation): Backout last change.
5099 (choose_caption): Ditto.
5100
55e204f6
RC
51012001-11-10 Robert Collins <rbtcollins@hotmail.com>
5102
5103 * ini.h (actions): Remove - transferred to choose.h.
5104 (views): Ditto.
5105 * choose.h: Protect class's from "C" compilers.
5106 (actions): New enum, from ini.h. This may not be the 'right' place
5107 but that place doesn't exist yet.
5108 (_views): New enum, from ini.h.
58b12a06
MB
5109 * choose.cc (set_action): Handle installed packages with a version not
5110 in setup.ini.
55e204f6
RC
5111 (choose_caption): Ditto.
5112 * iniparse.y: Rearrange header order to handle new ini.h.
5113
51142001-11-10 Robert Collins <rbtcollins@hotmail.com>
5115
5116 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
5117 (registry_category): Fix compiler warning (deprecated conversion).
5118 * iniparse.y (registry_category): Ditto.
58b12a06
MB
5119 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated
5120 conversion).
55e204f6
RC
5121 (add_requried): Remove unused variable.
5122 (choose_caption): Handle all enumeration values via a default.
5123 (paint): Fix compiler warnings (unused, deprecated conversion).
58b12a06
MB
5124 (scroll_common): Fix compiler warnings (unused, signed vs unsigned
5125 comparison).
55e204f6
RC
5126 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
5127 (note_width): Fix compiler warnings (deprecated conversion).
5128 (keep_or_skip): Fix compiler warnings (unused).
5129 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
5130 (set_view_mode): Fix compiler warnings (unused).
58b12a06
MB
5131 (create_listview): Fix compiler warnings (unused, incorrect format,
5132 reaches end of function).
55e204f6 5133 (dialog_proc): Fix compiler warnings (unused).
58b12a06
MB
5134 (read_installed_db): Fix compiler warnings (unused, deprecated
5135 conversion).
55e204f6
RC
5136 * choose.h (_header): Fix compiler warnings (deprecated conversion).
5137 (_view): Ditto.
5138
67a55ad9 51392001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
cef493d7 5140
67a55ad9
RC
5141 * simpsock.h (SimpleSocket::invalidate): Declare new method.
5142 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
5143 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
5144 memory for buf in the constructor.
5145 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
5146 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
5147 (SimpleSocket::write): Check object consistency - return -1 on error.
5148 invalidate() the object on socket write error.
5149 (SimpleSocket::fill): Check object consistency - return -1 on error.
5150 invalidate() the object if socket read error is encountered and there
5151 is no more data available in the internal read buffer.
5152 Allocate memory for the internal read buffer.
5153 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
5154 during fill() and no more data is available in the internal read buffer.
5155 (SimpleSocket::read): Check object consistency - return -1 on error.
5156 invalidate() the object if socket read error is encountered.
5157 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
5158 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
5159 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
5160 (NetIO_FTP::read): Use NetIO_FTP::ok().
5161 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
5162 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
5163
5898e300
RC
51642001-11-09 Robert Collins <rbtcollins@hotmail.com>
5165
58b12a06
MB
5166 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated
5167 conversion).
5168 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated
5169 conversion).
5898e300
RC
5170 (SimpleSocket::printf): Ditto.
5171 (SimpleSocket::write): Ditto.
5172 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
5173 printf and write.
58b12a06
MB
5174 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated
5175 conversion).
5898e300 5176 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
58b12a06
MB
5177 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated
5178 conversion).
5898e300 5179
8e58f8fd
RC
51802001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
5181
5182 * geturl.cc (get_url_to_string): clean up memory leak
5183 (get_url_to_file): ditto
cef493d7 5184
4b4002ab
RC
51852001-11-06 Robert Collins <rbtcollins@hotmail.com>
5186
5187 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
5188 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
5189
94525fd9
RC
51902001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
5191
5192 * fromcwd.cc (found_file): Free() memory containing the version and
58b12a06
MB
5193 filepath information for a given package, before replacing the pointers
5194 which reference this memory.
94525fd9
RC
5195
51962001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
5197
5198 * fromcwd: Fix compiler warnings for cvsid.
5199 (canonicalize_version): Fix compilter warnings.
5200 (do_fromcwd): Ditto.
5201 * version.h: Fix compiler warnings for canonicalize_version.
5202
ce1f9ec2
RC
52032001-11-03 Robert Collins <rbtcollins@hotmail.com>
5204
5205 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
5206
89d82ec7
RC
52072001-11-02 Robert Collins <rbtcollins@hotmail.com>
5208
5209 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
5210
c8fea72a
RC
52112001-11-02 Robert Collins <rbtcollins@hotmail.com>
5212
58b12a06
MB
5213 * choose.cc (set_action): Correctly allow skip for any uninstalled
5214 package.
8114d309
RC
5215
52162001-11-02 Robert Collins <rbtcollins@hotmail.com>
5217
58b12a06
MB
5218 * choose.cc (default_trust): Change the "Required" forced install
5219 category to "Base".
c8fea72a 5220
f557695e
RC
52212001-11-02 Robert Collins <rbtcollins@hotmail.com>
5222
5223 * choose.cc: Ran indent.
58b12a06
MB
5224 (set_action): When the requested trust level is missing and the level
5225 was not user requested, set the action to ACTION_SAME_CURR.
f557695e 5226
9a60dafc
CF
52272001-11-01 Christopher Faylor <cgf@redhat.com>
5228
cef493d7 5229 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
f557695e
RC
5230
52312001-11-02 Robert Collins <rbtcollins@hotmail.com>
5232
5233 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 5234
878faffd
RC
52352001-11-02 Robert Collins <rbtcollins@hotmail.com>
5236
58b12a06
MB
5237 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently
5238 installed packages.
878faffd 5239
05bfdf26
RC
52402001-11-02 Robert Collins <rbtcollins@hotmail.com>
5241
58b12a06
MB
5242 * choose.cc (default_trust): Autoset currently installed packages per
5243 the user's selection of prev/curr/exp.
05bfdf26 5244
0b9af00c
RC
52452001-11-02 Robert Collins <rbtcollins@hotmail.com>
5246
5247 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
5248
7cefe128
RC
52492001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
5250
5251 * geturl.cc (is_showing): Remove.
5252 (is_local_install): New static variable. Controls whether the
5253 progress dialog and the supporting thread will be created.
58b12a06
MB
5254 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32
5255 API.
7cefe128 5256 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
cef493d7 5257 This prevents the progress dialog to gain control over the
7cefe128
RC
5258 application and fixes the "setup.exe going to background" problem.
5259 (progress): Use is_local_install.
5260 (get_url_to_string): Set is_local_install.
5261 (dismiss_url_status_dialog): Use is_local_install.
5262 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
5263 (init_dialog): Remove usage of SetForegroundWindow.
cef493d7 5264 This prevents the progress dialog to gain control over the
7cefe128
RC
5265 application and fixes the "setup.exe going to background" problem.
5266
42a99ed1
RC
52672001-11-02 Robert Collins <rbtcollins@hotmail.com>
5268
5269 * choose.cc (list_click): Change r to row for clarity.
5270 When we shrink the list below 1 page, scroll to the top of the list.
5271 (_view::click): Return the actual change for contractions.
58b12a06
MB
5272 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32
5273 API.
42a99ed1 5274
45c2d7d3
RC
52752001-11-02 Robert Collins <rbtcollins@hotmail.com>
5276
58b12a06
MB
5277 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir
5278 selection order.
45c2d7d3
RC
5279 * localdir.cc: Ran indent.
5280 (get_root_dir_now): New function.
5281 (save_local_dir): New function.
58b12a06
MB
5282 (dialog_cmd): Use it and swap cygwin root selection and local dir
5283 selection order.
45c2d7d3 5284 (do_local_dir): If there is a saved local dir, read it in.
58b12a06
MB
5285 * net.cc (dialog_cmd): Swap cygwin root selection and local dir
5286 selection order.
45c2d7d3
RC
5287 * root.cc (dialog_cmd): Ditto.
5288 * source.cc (dialog_cmd): Ditto.
5289
2399c54d
RC
52902001-11-01 Robert Collins <rbtcollins@hotmail.com>
5291
5292 * choose.cc(list_vscroll): Return 0 as required by win32.
5293 (list_hscroll): Ditto.
5294 (list_click): Ditto.
5295
8e4402a9
RC
52962001-11-01 Robert Collins <rbtcollins@hotmail.com>
5297
5298 * argv.cc: Remove.
5299 * argv.h: Remove.
5300 * main.cc(WinMain): Use __argv to retrieve command line parameters.
5301 * Makefile,in: Remove argv.o.
5302
c168185f
RC
53032001-11-01 Matt Hargett <matt@use.net>
5304
cef493d7
CF
5305 * geturl.cc (progress): Change int to unsigned int to eliminate
5306 lint warnings.
5307 * (get_url_to_string): Check for NULL pointer.
5308 * mount.cc (find2): Use free instead of delete for malloc'd
5309 memory.
5310 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
c168185f 5311
f97a1ece
RC
53122001-10-31 Robert Collins <rbtcollins@hotmail.com>
5313
58b12a06
MB
5314 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen]
5315 with neither a package nor a category. The lines[linen] bug was reported
5316 by Matt (matt@usa.net).
5317 (read_installed_db): Bugfix for testing whether a package has a source
5318 tarball. Reported by Matt (matt@usa.net).
5319 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid
5320 programmer confusion and lint errors. Reported by Matt (matt@usa.net).
f97a1ece 5321
d52ed64b
RC
53222001-10-31 Robert Collins <rbtcollins@hotmail.com>
5323
58b12a06
MB
5324 * argv.cc: New file, converts arguments for -mwindows
5325 programs. (Simplified derivation from dcrt0.cc.)
d52ed64b
RC
5326 * argv.h: New file.
5327 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
5328 Add mingw_getopt.o build rule.
5329 * main.cc(WinMain): Initialise argv and argc for use by getopt.
5330
392ba1ba
CF
53312001-10-27 Christopher Faylor <cgf@redhat.com>
5332
5333 * res.rc: Rearrange info on top line slightly.
5334
31324d15
CF
53352001-10-27 Christopher Faylor <cgf@redhat.com>
5336
5337 * desktop.cc (make_passwd_group): Move file creation earlier in the
5338 process to ensure that passwd-grp.bat reflects desired operation.
5339
53402001-27-10 Trevor Forbes <t4bs@hotmail.com>
5341
5342 * postinstall.cc (each): Remove "*.done" file else rename will fail.
5343
ee411d77
CF
53442001-10-16 Christopher Faylor <cgf@redhat.com>
5345
5346 * res.rc: Oops. Take 640x480 screen size into account.
5347
e74944da
CF
53482001-10-16 Christopher Faylor <cgf@redhat.com>
5349
5350 * res.rc: Enlarge chooser screen.
5351
e368cfb9
CF
53522001-10-12 Christopher Faylor <cgf@redhat.com>
5353
5354 * Makefile.in: Accomodate changes to w32api_include macro.
5355
a6ba3670
CF
53562001-10-12 Christopher Faylor <cgf@redhat.com>
5357
5358 * Makefile.in: Use correct flags for windres.
5359
683e96f6
CF
53602001-10-12 Christopher Faylor <cgf@redhat.com>
5361
5362 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
5363
2c18c00b
CF
53642001-10-12 Christopher Faylor <cgf@redhat.com>
5365
5366 * choose.cc (pick_line::paint): Reorganize after botched patch.
5367
0f61a05a
CF
53682001-10-12 Christopher Faylor <cgf@redhat.com>
5369
5370 * choose.cc (pick_line::paint): Add missing declaration.
5371
308d6f3e
CF
53722001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
5373
5374 * choose.cc (pick_line::paint): Add package name to sdesc for display.
5375
3bcf85be
RC
5376Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
5377
5378 * choose.cc (_view::insert_pkg): Correctly exit loop.
5379 * iniparse.y (register_category): Always insert new categories.
5380
fb2cd8f6
CF
5381Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
5382
5383 * inilex.l (yylex): For comments, eat all characters up to, but not
5384 including newline.
5385
127b32e1
CF
5386Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
5387
5388 * fromcwd.cc (found_file): Use correct package name when adding an
5389 unknown package rather than random stack garbage.
5390
2cd555aa
CF
5391Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
5392
5393 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
5394
4254cc64
CF
5395Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
5396
5397 * desktop.cc (etc_profile): Leave environment variables untouched.
5398
acbae401
CV
53992001-08-07 Corinna Vinschen <corinna@vinschen.de>
5400
5401 * autoload.c: Add dynamic load statements for NT/W2K
5402 advapi32 functions not available in 9x/ME.
5403 * main.cc (set_default_dacl): New function.
5404 (WinMain): Call `set_default_dacl' if running on NT/W2K.
5405
969a294c
CF
5406Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
5407
5408 * ini.h (_CategoryPackage): Change pkg field to pkgname for
5409 consistency.
5410 * choose.cc: Use pkgname field when referencing _CategoryPackage
5411 throughout.
5412 (fill_missing_category): Don't add excluded packages.
5413 (default_trust): Ditto.
5414 (_view::insert_pkg): Ditto.
5415 * iniparse.y (register_category): Use consistent variable name.
5416
9eeb0e83
ED
54172001-07-09 Egor Duda <deo@logos-m.ru>
5418
5419 * choose.cc: Use system foreground color for text output.
5420
06560feb
CF
5421Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
5422
5423 * choose.cc (set_action): Use default trust for determining reinstall
5424 and source only.
5425 (default_trust): Set default trust.
5426 (pick_line::paint): Allow source selection when reinstalling or
5427 retrieving.
5428
1fb09149
CF
5429Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
5430
5431 * choose.cc (isinstalled): Modify to properly accomodate special case
5432 of "download only".
5433 (set_action): Check downloaded components, not installed components if
5434 "download only".
5435 (set_existence): Always include full list of files when "download
5436 only".
5437
14cfffa5
CF
5438Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
5439
5440 * choose.cc (pick_line::paint): Properly display "na" field when no
5441 source exists.
5442
f54385f6
CF
5443Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
5444
5445 * choose.cc (scan2): Ensure that older versions do not show up in
5446 "Test" slot.
5447
85b1fb54
CF
5448Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
5449
5450 * choose.cc (set_action): Allow "Skip" action if trust != installed.
5451 * res.rc: Fix copyright.
5452
2dada532
CF
5453Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
5454
5455 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
5456 boxes.
06c6d195 5457 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
5458
5459 * choose.cc: Restore some more changes from 2001-06-25, throughout.
5460 (paint): Wrap some excessively long lines.
5461 (pick_line::paint): Ditto. Move the arrow in the "Current" column
5462 right to where it belongs. Move the source checkbox slightly to the
5463 right.
5464 (do_choose): List categories and required packages in setup.log.full.
5465
5466Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
5467
58b12a06
MB
5468 * choose.cc (scan2): Restore source scanning eliminated by previous
5469 checkin.
2dada532 5470
1b13eeec
CF
5471Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
5472
5473 * ini.h (struct _Info): Add "derived" element.
5474 * choose.cc (scan2): Try to place unknown tar files into proper slot
5475 when package exists in setup.ini but tar file does not.
5476
9307254d
RC
5477Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
5478
5479 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
5480 (do_choose): Log the first category name.
5481
3467d79f
CF
5482Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
5483
5484 *ini.h: Reapply 2001-06-25 changes.
5485 * choose.cc (add_required): Ditto. Default to "Keep" state if
5486 UNINSTALL and product is installed. Default to curr state if SKIP,
5487 etc.
5488 (keep_or_skip): New function. Returns skip or keep state depending on
5489 installed state of package.
5490 (default_trust): Use keep_or_skip to set state.
5491 (_view::insert_pkg): Use calloc to allocate lines.
5492 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
5493
8f53e82a
RC
5494Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
5495
1fb09149 5496 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
5497 nindexes.
5498 Add globals cat_headers, pkg_headers and chooser.
5499 (add_required): New function.
5500 (paint): Use the chooser for header details.
5501 Call into the chooser to paint each line.
1fb09149 5502 (list_click): Use new global variables.
8f53e82a
RC
5503 Call into the chooser to handle the click.
5504 Repaint the entire view if packages have been added or removed.
5505 (note_width): Get passed a headers struct rather than using a global
5506 variable.
5507 (fill_missing_category): New function.
5508 (default_trust): Skip non-"Required" or "Misc" packages.
5509 (pick_line::set_line (Package *)): New function.
5510 (pick_line::set_line (Category *)): New function.
5511 (pick_line::paint): New function.
5512 (pick_line::click): New function.
5513 (_view::_view): New function.
5514 (_view::set_view_mode): New function.
5515 (_view::mode_caption): New function.
5516 (_view::set_headers): New function.
5517 (_view::init_header): New function.
5518 (_view::insert_pkg): New function.
5519 (_view::insert_category): New function.
5520 (_view::insert_at): New function.
5521 (_view::insert_under): New function.
5522 (_view::clear_view): New function.
5523 (viewsplusplus): New function.
5524 (_view::client): New function.
5525 (set_view_mode): Use new chooser functionality.
5526 (set_full_list): Use new global variables.
5527 (create_listview): Instantiate chooser.
5528 Remove all hardcoded headers[] code.
5529 (dialog_cmd): On trust changes, check dependencies.
5530 (getcategorybyname): New function.
5531 (getpackagecategorybyname): New function.
5532 (scan2): Use case-insensitive package comparison.
5533 (do_choose): Use fill_missing_category ().
5534 Show some category data.
5535 * ini.h: Protect against multiple inclusion.
5536 (views) New enum.
5537 (_CategoryPackage): New struct.
5538 (_Category): New struct.
5539 (_Package): Change category to Category * from char *.
5540 (extern Category category): New global variable.
5541 (extern in ncategories): Ditto.
5542 (getcategorybyname): New prototype.
5543 (catpackagecategorybyname): New prototype.
5544 (register_category): New prototype.
5545 (add_category): New prototype.
5546 * iniparse.y: Parse multiple categories per package.
2dada532
CF
5547 (category): New global variable.
5548 (ncategories): New global variable.
8f53e82a
RC
5549 (new_package): Compare package against NULL, not 0.
5550 (new_requirement): Source formatting fix.
5551 (register_category): New function.
5552 (add_category): New function.
5553 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
5554 IDC_CHOOSE_VIEWCAPTION: New control.
5555 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
5556 IDC_CHOOSE_VIEWCAPTION: New control.
5557 Increment _APS_NEXT_CONTROL_VALUE.
5558
26a27c14
CF
5559Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
5560
e19ad6a3 5561 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
5562 (list_click): Ditto.
5563 (create_listview): Ditto.
5564 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
5565 setup.log.full. Allow "Yes" for source exists in setup.log.full when
5566 installing from local directories.
5567
97312777
CF
5568Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
5569
5f9f0d8d
CF
5570 * choose.cc (set_action): Only clear srcpicked when moving to next
5571 state. Allow source installation if it exists in the current "trust"
5572 state. Don't move to skip state when package is installed.
97312777
CF
5573 (list_click): Don't allow source clicking when no source is available.
5574 (set_full_list): Display package when not is_full_action.
5575 * ini.h (is_full_action): Define.
5576
72fd1d1e
CF
5577Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
5578
5579 * install.cc (check_for_old_cygwin): New function. First stab at
5580 checking for old cygwin versions.
5581 (do_install): Call check_for_old_cygwin if there were no errors during
5582 the install.
5583
41ac91b5 5584Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
5585
5586 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
5587 than zeroed "source" element.
5588
80429b97
CF
5589Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
5590
5591 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
5592 the highest available "hole" in the trust array.
5593
654ea642
CF
5594Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
5595
5596 * choose.cc (set_existence): Use pointer method for indexing in trust
5597 array.
5598 (create_listview): Ditto.
5599 (scan2): Ditto. Also, use consistent variable name for indexing into
5600 trust array.
5601 * ini.h (Package): Reorganize info array for easier scanning.
5602
e98d90bd
CF
5603Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
5604
5605 * choose.cc (isinstalled): Eliminate special download only test.
5606 (set_action): Don't move to next state if in ACTION_SAME range and not
5607 incrementing.
5608 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
5609 downloading.
5610 (do_choose): Sort packages after all packages have been read.
5611 Accomodate the fact that first element in trust array is empty so that
5612 log files don't report the wrong trust value.
5613 * iniparse.y (new_package): Malloc space for package name or suffer
5614 memory corruption.
5615
38c97581
CF
5616Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
5617
5618 * ini.h (Dependency): New structure. Declare new function.
58b12a06
MB
5619 * inilex.l (yylex): Detect new setup.ini options - category and
5620 requires.
38c97581
CF
5621 * iniparse.y: Declare new setup.ini token values.
5622 (yyparse): Parse new token values.
5623 (new_requirement): New function.
5624
5625Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
5626
5627 * choose.cc (read_installed_db): Eliminate obsolete code.
5628
3ae6c15c
CF
5629Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
5630
5631 * choose.cc (set_action): Set trust on "redo".
5632 (_Info::_Info): New constructor.
5633 (read_installed_db): Use new constructor. Use trusts type for
5634 iterator.
5635 * ini.h (struct _Info): Label struct, add constructor.
5636 (Package): Make installed_ix a type 'trusts.'
5637 * install.cc (uninstall_one): Unset any installed info for current
5638 package.
5639 (install_one): Allocate new Info struct for installed reflecting new
5640 installed info.
5641 (do_install): Don't output line to installed.db if package is being
5642 uninstalled.
5643
9c0a9876
CF
5644Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
5645
5646 * choose.cc (getpkgbyname): Use consistent method for scanning package
5647 array.
5648
68b27c12
CF
5649Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
5650
5651 * choose.cc: Add some comments.
5652 (getpkgbyname): Use strcasecmp for comparisons.
5653
07108cc2
CF
5654Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
5655
f0984dcb 5656 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
5657 package wasn't currently retrieved.
5658
c46a33a9
CF
5659Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
5660
5661 * choose.cc: Eliminate extra array throughout. Use element in package
5662 structure instead. Use pointers rather than array indexes where
5663 appropriate.
5664 (set_action): New function to set next action based on current.
5665 (choose_caption): New function. Returns display caption.
5666 (check_existence): Change arguments. Use pointer to 'info' structure.
5667 (set_existence): Use pointer rather than array index.
5668 (default_trust): Use trusts enum for second argument.
5669 (set_full_list): Honor exclude element in package structure.
5670 (build_labels): Eliminate.
5671 (base): Make global. Use const char * argument.
5672 (get_package_version): Eliminate.
5673 (getpkgbyname): New function.
5674 (read_installed_db): Use parse_filename to get version info.
5675 * desktop.cc (make_passwd_group): Use getpkgbyname function.
5676 * download.cc (get_file_size): const argument.
5677 (do_download): Use is_download_action to determine when something
5678 should be downloaded.
5679 * filemanip.h: Add some functions.
5680 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
5681 * ini.h: Use enums for actions and trusts.
5682 (is_download_action): New macro.
5683 (is_upgrade_action): Ditto.
5684 (is_uninstall_action): Ditto.
5685 (struct Package): Add new fields.
5686 * inilex.l (yylex): Detect new setup.ini options.
5687 * iniparse.y: Declare new tokens.
5688 (yyparse): Detect exclude keyword. Fill out version field even if
5689 version == 0.
5690 (new_package): Use greater granularity when allocating package array to
5691 avoid repeated calls to realloc.
5692 * install.cc (exists): const argument.
5693 (uninstall_one): Take pkg argument.
5694 (install_one): Ditto. Eliminate unneeded arguments which can be
5695 derived from package info.
5696 (do_install): Iterate over package array using a pointer. Use
5697 is_download_action to control when package should be downloaded.
5698 * tar.cc (tar_open): const argument.
5699 * tar.h: Refloect const argument.
5700
7cc06fd3
CF
57012001-05-31 Michael Chase mchase@ix.netcom.com
5702
5703 * main.cc (WinMain): Add setup version to starting setup.log entry
5704
9522028b
CF
5705Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
5706
5707 * inilex.l: Add + to list of valid string characters.
5708
e9b1aaa7
CF
5709Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
5710
5711 * Makefile.in: Remove more stuff in the clean target.
5712
8e1299fa
CF
5713Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
5714
5715 * Makefile.in: Correctly generate iniparse.h.
5716
85553593
CV
5717Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
5718
5719 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
5720 * geturl.h: Change declaration of `get_url_to_file' accordingly.
5721 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
5722 Set member `ftp_auth'.
5723 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
5724 to constructors of derived classes.
5725 (NetIO::get_ftp_auth): New method.
5726 * netio.h: Change class definition accordingly.
5727 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
5728 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
5729 Add code for ftp authentication retry.
5730 * nio-ftp.h: Change class definition accordingly.
5731 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
5732 Add code for ftp authentication retry in case of proxy connection.
5733 * nio-http.h: Change class definition accordingly.
5734 * res.rc: Add FTP authentication dialog.
5735 * resource.h: Add new constants used in res.rc.
5736 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
5737
c4174b9c
CF
5738Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
5739
5740 * res.rc (IDD_SPLASH): Add a copyright year.
5741
0af2d779
CF
5742Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
5743
5744 * Makefile.in: Make iniparse.y produce a c++ file.
5745 * choose.cc (set_existence): Revert 2001-05-27 change.
5746 * ini.cc: Remove "C" from declaration of yyparse.
5747 * iniparse.y (yyparse): Fill out version field by default when a binary
5748 install is detected and no version has been set yet.
5749 * install.cc (do_install): Mount things earlier so that we can use
5750 proper mount table settings. Don't remove mounts since they are now
5751 honored.
5752 * mount.cc (create_mount): Reread the mount table after establishing a
5753 new mount.
5754 (read_mounts): Explicitly clear root_here to allow multiple uses of
5755 this function. Ensure that there is no garbage in the table when we've
5756 exhausted all of the mounts in the registry.
5757 (cygpath): Accomodate ./ in path.
5758
85b43844
CF
5759Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
5760
0af2d779
CF
5761 Use parse_filename method to parse filenames throughout. Use
5762 get_root_dir to retrieve the current root directory throughout. Set
5763 const in argument list, where appropriate, throughout.
5764 * choose.cc (set_existence): Detect case of uninstalled package with no
5765 version.
85b43844
CF
5766 (parse_filename): New function.
5767 * filemanip.h (fileparse): New structure.
5768 * mount.cc (read_mounts): Remember where we found the root mount.
5769 (set_root_dir): New function.
5770 (get_root_dir): Ditto.
5771 * mount.h: Declare new functions.
5772 * site.cc (get_root_dir_now): Renamed from get_root_dir.
5773 (save_site_url): Use new function name.
5774 (get_initial_list_idx): Ditto.
5775
08f8c762
CF
5776Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
5777
5778 * choose.cc: Use a constant throughout to deal with chooser icon
5779 length.
5780 * res.rc (IDD_CHOOSE): Increase size of chooser box.
5781
47f8d8b3
CF
57822001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
5783
5784 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
5785 use when Redownload or Sources Only selected.
5786
6a748750
CF
5787Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
5788
5789 Reformat file after botched patch formatting.
5790 * choose.cc (which_trust): Eliminate variable.
5791 (default_trust): Don't set which_trust.
5792 (do_choose): Use selected trust when reinstalling or installing source.
5793
a351e48c
CF
5794Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
5795
5796 Change concat to cygpath throughout.
5797 Change map_filename to cygpath throughout.
5798 * concat.cc (vconcat): New function.
5799 (concat): Use vconcat.
5800 * concat.h: Reflect above.
5801 * install.cc (map_filename): Eliminate.
5802 (install_one): Free dest_file.
5803 * mount.cc (find2): Expect input key to be pointing to mount record.
5804 (in_table): New function.
5805 (is_admin): Move from root.cc.
5806 (read_mounts): New function.
5807 (path_prefix_p): New function.
5808 (cygpath): New function.
5809 * mount.h: Define new functions and structure.
5810 * root.cc (in_table): Move to mount.cc.
5811 (do_root): Call read_mounts to initialize root stuff and mount table.
5812 * site.cc (get_root_dir): Ditto.
5813
e227ee24
CF
58142001-05-09 Matt Hargett <matt@use.net>
5815
5816 * Makefile.in: Remove *.rc from clean.
5817
25fd2965
CF
5818Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
5819
5820 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
5821 TRUST_PREV which produced "0" versions.
5822
42bf5b92
CF
58232001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
5824
5825 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
5826 _APS_NEXT_CONTROL_VALUE to account for addition of
5827 IDC_CHOOSE_INST_TEXT.
5828 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
5829 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
5830 hot keys to select Prev, Curr, Exp.
5831 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
5832 define for LOOP_PACKAGES to include new actions ACTION_REDO and
5833 ACTION_SRC_ONLY.
5834 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
5835 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
5836 source Checkbox to use.
5837 (build_labels): Add logic to allow for selection of Source only
5838 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
5839 current version binary.
5840 (dialog_proc): Add conditional display for file selection prompt based
5841 on download vs install using IDC_CHOOSE_INST_TEXT.
5842 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
5843 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
5844 handle the instance where Source Download/Install was selected. Modify
5845 log file to store appropriate information regarding Action selected and
5846 the new actions that were added (I.E.: ACTION_REDO and
5847 ACTION_SRC_ONLY).
5848 * download.cc: Add include for <unistd.h> and "port.h".
5849 (download_one): Modify parameter list to include the selected action
5850 for the file to be downloaded. Modify size check against expected size
5851 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
5852 .tmp file to also remove the destination file if exists due to ability
5853 to redownload source and binary now.
5854 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
5855 calculation of Download Bytes. Modify to also use ACTION_REDO and
5856 ACTION_SRC_ONLY in determining files selected for download.
5857 * install.cc (uninstall_one): Add check to treat a Reinstall like an
5858 upgrade so current version will be uninstalled prior to reinstall.
5859 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
5860 uninstalling and installing binary and source packages.
5861 * desktop.cc (make_passwd_group): Modify logic to account for a Source
5862 only cygwin install when checking for cygwin to determine need for
5863 mkpasswd and mkgroup.
5864
5865Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
5866
5867 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
5868 Removed WS_DISABLED from "OK" buttons to accomodate default focus
5869 changes in net.cc and source.cc.
5870 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
5871 a default is selected.
5872 * winsup/cinstall/source.cc (dialog_proc): Ditto.
5873 (check_if_enable_next): Removed. No longer needed since a radio button
5874 will always be selected.
5875 (load_dialog): Removed call to check_if_enable_next.
5876 (dialog_cmd): Ditto. Also added default to switch.
5877
87bdba0c
CF
5878Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
5879
5880 * res.rc: Resize affected text.
5881
8293fc16
CF
5882Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
5883
5884 * net.cc (do_net): Default to direct download.
87bdba0c 5885 * res.rc: Move default selections to the top.
8293fc16 5886
ed96c6da
EB
58872001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
5888
5889 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
5890 Must now include <windows.h> and not the pieces.
5891 * choose.cc (create_listview): Clean up type mismatch problems.
5892 * dialog.h (NEXT(id)): Ditto.
5893 * geturl.cc (dialog): Ditto.
5894 * install.cc (dialog): Ditto.
5895 * splash.cc (load_dialog): Ditto.
5896
fe94cc29
CF
5897Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
5898
5899 * tar.cc (class gzbz): Define dummy virtual functions.
5900
fb087b80
CF
5901Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
5902
5903 * Makefile.in: Add bz2 include/library support.
5904 * filemanip.h: New file.
fe94cc29
CF
5905 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
5906 .tar.bz2 found.
fb087b80
CF
5907 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
5908 (read_installed_db): Ditto.
5909 (do_choose): Ditto.
5910 * fromcwd.cc (found_file): Ditto.
5911 (do_fromcwd): Ditto.
5912 * tar.cc (class gzbz): New super class for uncompression support.
5913 (gz): New class for gzip support.
5914 (bz): New class for bzip2 support.
5915 (tar_open): Use gzbz class to control file opening.
5916 (tar_ftell): Ditto for returning position in file.
5917 (skip_file): Ditto for reading file.
5918 (tar_next_file): Ditto.
5919 (tar_read_file): Ditto.
5920 (tar_close): Ditto for close.
5921
5922 * zlib/configure.in: Force NM substitution.
5923
5924 * source.cc (do_source): Default to "Install from Internet".
5925
88bcaf07
CF
59262001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
5927
5928 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
5929 `stat'.
5930 * choose.cc (list_click): Correct inability to select source code for
5931 download.
5932 (scan2): Modify to skip source tarballs when scanning disk for
5933 installable packages.
5934
ef45c299
CV
59352001-03-10 Chris Abbey <chris_abbey@yahoo.com>
5936
5937 * install.cc: install sources into /usr/src instead
5938 of /, also include the sizes of source tarballs
5939 in total_bytes.
5940 * download.cc: include sizes of source tarballs in
5941 total_download_bytes.
5942
9fe1181b
CV
5943Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
5944
5945 * download.cc (get_file_size): Remove `static'.
5946
2bfdb848
CV
5947Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
5948
5949 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
5950
60c632b3
CV
59512001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
5952
5953 * choose.cc (paint): Modify message for nothing to download vs
5954 nothing to install/update based on installation method.
5955 (list_click): Modify to skip versions in selection process if
88bcaf07 5956 installing from local directory and installation file does not exist.
60c632b3
CV
5957 Also leaves Source Action set to N/A if the source file does not exist
5958 and installing from local directory.
5959 (check_existence): New method to check current existence of installation
5960 files based on selected installation method.
5961 (set_existence): New method to set the current existence of installation
5962 files based on selected installation method.
5963 (best_trust): Modify decision process for best trust to base decision on
5964 current trust selected (IE: Prev, Curr, or Test), existence of file and
5965 installation method selected.
5966 (default_trust): Add logic to capture the current trust level and the
5967 trust selected for the given package.
88bcaf07 5968 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
5969 the selection list to include file existence/non-existence and selected
5970 installation method.
5971 (build_labels): Modify criteria for label addition to include
5972 installation method and file existence/non-existence.
88bcaf07 5973 (create_listview): Modify to establish package trust level for each
60c632b3
CV
5974 package before setting up the display list. Also modification to set
5975 current trust button as the default.
88bcaf07 5976 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
5977 a reset of the selection list in addition to setting the default trust.
5978 (get_package_version): New method to provide reusable code for
5979 determining the package version from the file name for a specified
5980 trust.
5981 (scan2): Modify to use new method get_package_version and
5982 also enhance handling of the build for the structures package and
5983 extra.
5984 (read_installed_db): Modify to use the new method
5985 get_package_version and also enhance handling of the build for the
5986 structures package and extra.
88bcaf07 5987 (do_choose): Add additional initialization of package and extra
60c632b3
CV
5988 structures. Modify to use read_installed_db all the time despite
5989 install method. Modify output to setup.log.full log file to increase
5990 readability by adding additional spacing, expanded code and available
5991 versions.
5992 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 5993 partial_list_display to the structure definition for package.
60c632b3
CV
5994 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
5995 pushbuttons by replacing with Radio Buttons thus allowing the
5996 operator to better determine which is selected.
5997
2f9645a1
CV
59982001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
5999
88bcaf07 6000 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
6001 total_download_bytes_sofar for download progress meter. Add loop
6002 to accumulate the total bytes to download from the selected packages.
6003 * geturl.cc: Add state.h and diskfull.h to include list. Add new
6004 variables gw_iprogress, gw_pprogress, gw_progress_text,
6005 gw_pprogress_text, and gw_iprogress_text to allow for addition of
6006 total packages download progress meter and disk full percent
6007 progress meter. Add variables total_download_bytes and
6008 total_download_bytes_sofar for use by progress meters.
88bcaf07
CF
6009 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
6010 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
6011 allow for addition of total packages download progress meter and disk
6012 full percent progress meter.
2f9645a1
CV
6013 (init_dialog): Ditto.
6014 (progress): Ditto.
6015 (get_url_to_file): Ditto.
6016 * geturl.h: Add external definition for total_download_bytes and
6017 total_download_bytes_sofar.
88bcaf07 6018 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
6019 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
6020 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
6021 download meters.
88bcaf07 6022 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
6023 _APS_NEXT_CONTROL_VALUE.
6024
b41962a3
CV
6025Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
6026
6027 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
6028 for NULL.
6029
6030Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
6031
6032 * download.cc (download_one): Add missing parenthesis.
6033
88a77116
CV
6034Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
6035
6036 * download.cc (get_file_size): New function. Eliminates the need
6037 to call `stat'.
6038 (download_one): Call `get_file_size' instead of `stat'. This
6039 workarounds a problem with mingw's `stat' call.
6040
577f35ed
EB
60412001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
6042
6043 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
6044 This is to allow cinstall to build with 2.95.2-7 and to make the
6045 use of headers consistent.
6046
38f5563e
DD
60472000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
6048
6049 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
6050
c0a7e0f2
DD
6051Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
6052
6053 * winsup/cinstall/res.rc: Added accelerators and improved focus
6054 order.
6055
72826a5b
CF
60562000-12-10 Egor Duda <deo@logos-m.ru>
6057
6058 * choose.cc (paint): Use system background color for text output.
6059
6060Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
6061
6062 * Makefile.in: Use CXX for linking and for compiling .cc files.
6063 * configure.in: Find correct c++ compiler.
6064 * configure: Regenerate.
6065
67bebcb5
DD
60662000-11-17 DJ Delorie <dj@redhat.com>
6067
6068 * splash.cc (load_dialog): Make message more obvious.
6069 * res.rc: Ditto.
6070
25fb9139
CF
6071Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
6072
6073 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
6074 necessary for newer compilers.
6075
ef2007fd
CV
6076Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
6077
6078 * desktop.cc: Include "ini.h" and "version.h".
6079 (make_passwd_group): Skip the function on 9x/ME boxes when an
6080 older version of Cygwin has been installed which doesn't
6081 support mkpasswd/mkgroup on 9x/ME.
6082 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
6083 * ini.h: ...here.
6084
277b4d56
CV
6085Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
6086
6087 * desktop.cc (make_passwd_group): Don't exit when started
6088 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
6089
f8a6415f
DD
6090Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
6091
6092 * install.cc (do_install): Add call to set_cygdrive_flags to sync
6093 the mount modes.
6094 * mount.cc (set_cygdrive_flags): New function.
6095 (get_cygdrive_flags): Ditto.
6096 (default_cygdrive): Ditto.
6097 (set_cygdrive_flags): Ditto.
6098 * mount.h: Add prototype for set_cygdrive_flags.
6099
3b9077d4
DD
61002000-10-23 DJ Delorie <dj@redhat.com>
6101
6102 * ini.h: add source actions
6103 * fromcwd.cc: check for available sources
6104 * res.rc: add checkbox bitmaps
6105 * resource.h: ditto
6106 * check-*.bmp: new
6107 * choose.cc: add source column
6108 * download.cc: download sources if called for
6109 * install.cc: [un]install sources too
6110
1b1b33ac
DD
61112000-10-22 DJ Delorie <dj@redhat.com>
6112
6113 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
6114 ignore it wrt full_list if there's already a version installed.
6115 (do_choose): Sort the list.
6116 (package_sort): New.
6117
2a1a01e0
DD
61182000-10-12 DJ Delorie <dj@redhat.com>
6119
6120 * res.rc: Add more error strings.
6121 * resource.h: Ditto.
6122 * iniparse.y (new_package): re-initialize if needed.
6123 * download.cc (do_download): Keep track of errors; notify and
6124 allow retry.
6125 * install.cc (do_install): Ditto.
6126
1a9886fe
DD
61272000-10-05 DJ Delorie <dj@redhat.com>
6128
6129 * Makefile.in: fix %.cc rule
6130
40aef45e
DD
61312000-10-04 DJ Delorie <dj@redhat.com>
6132
6133 * desktop.cc: quote HOME and USER, don't . ./.profile
6134
6135 * choose.cc (build_labels): don't include in partial list just
6136 because there's a *previous* version available.
6137
6138 * install.cc (do_install): if installing from local directory with
6139 setup.ini and the file isn't found, look in "." also. Note errors.
6140
dd3f7f9b
DD
61412000-10-02 DJ Delorie <dj@redhat.com>
6142
6143 * ini.cc (do_ini): save setup.ini locally
6144
61452000-10-02 Chris Abbey <cabbey@bresnanlink.net>
6146
6147 * desktop.cc: quote escapes in prompt
6148
fee2a8d0
DD
61492000-10-02 Jason Tishler <jt@dothill.com>
6150
6151 * root.cc (is_admin): New function.
6152 (read_mount_table): Check for administrative priviledges and set
6153 installation scope as appropriate.
6154
a03db251
DD
61552000-09-28 DJ Delorie <dj@redhat.com>
6156
6157 * nio-ftp.cc (ftp_line): handle continuations more robustly
6158
b151e01e 61592000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
6160
6161 * res.rc: increased the size of the site dialog (IDD_SITE) & the
6162 corresponding list box to provide for more URL's to be listed.
6163 Modified the position of the Back, Next and Cancel buttons to
6164 correspond to the new size of the dialog.
6165
d07591a3
DD
61662000-09-13 DJ Delorie <dj@redhat.com>
6167
6168 * install.cc (do_install): update disk fullness once per package
6169 to improve performance
6170
6171 * choose.cc (create_listview): call ReleaseDC
6172
89725f30
DD
6173Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
6174
6175 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
6176 returned, as it seems Samba 2.0.6+ returns this instead of
6177 ERROR_PATH_NOT_FOUND
88bcaf07 6178
6fbc690d
CF
6179Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
6180
6181 * site.cc (get_initial_list_idx): Don't default to saved URL if it
6182 refers to sources.
6183
13d27274
DD
61842000-09-07 DJ Delorie <dj@redhat.com>
6185
6186 * splash.cc: use version.h, not local decl
6187 * res.rc: add "old version" message
6188 * resource.h: ditto
6189 * version.h: new
6190 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
6191 * iniparse.y: add setup-version support, fix bug in blank line
6192 handling
6193
13d27274
DD
6194 * inilex.l: add [exp] as alias for [test], add setup-version
6195 * Makefile.in (version.c): add setup-version tag
6196
6197 * desktop.cc (do_desktop): remove 1.1 version number
6198 (do_desktop_setup): ditto
6199
6200 * ini.cc (do_ini): zero out package list just in case we redo it.
6201
8cfbc487
DD
62022000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
6203
6204 * choose.cc (list_click): Check for nindexes==0; if so, return.
6205
c92e1307
DD
62062000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
6207
6208 * localdir.cc: new, local package directory selection dialog; cd
6209 into selected directory
6210 * Makefile.in (OBJS): add localdir.o
6211 * dialog.h: add prototype for do_local_dir
6212 * main.cc (WinMain): initialize local_dir to cwd; add call to
6213 do_local_dir
6214 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
6215 * source.cc (dialog_cmd): ditto
6216 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
6217 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
6218 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
6219 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
6220 * state.h: add local_dir variable
6221
62222000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
6223
6224 * desktop.cc: added logic to handle to the new dialog and to
6225 default the setting for the new checkboxes based on whether the
6226 desktop icon or start menu link already exist.
6227 (desktop_icon): correction to desktop directories for desktop icon
6228 creation. Additional logic added for Win95 which does not appear
6229 to have Common Directories so if Common selected and null uses
6230 normal directory.
6231 (start_menu): Additional logic added for Win95 which does not
6232 appear to have Common Directories so if Common selected and null
6233 uses normal directory.
6234 (do_desktop_setup): moved the saving of the icon, creation of the
6235 bat file, profile, passwd, Start Menu link and desktop shortcut to
6236 this method from do_desktop. Made the creation of the desktop
6237 icon and start menu link conditional on settings of new dialog
6238 created for desktop.
6239 * install.cc (do_install): changed next from IDD_S_DESKTOP to
6240 IDD_DESKTOP.
6241 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
6242 * res.rc: added new resource to create a desktop dialog with 2
6243 checkboxes for creating the desktop icon and start menu link.
6244 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
6245 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
6246 * state.h: added root_menu and root_desktop for use in dialog.
6247
4a83b7b0
DD
62482000-08-29 DJ Delorie <dj@redhat.com>
6249
6250 * choose.cc (scan_downloaded_files): scan for existing files, so
6251 that the user only sees new downloads.
6252
6253 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
6254 * site.cc (do_site): if we can't download the mirror list, go back
6255 to the net setup box to choose another transport.
6256 * autoload.c: add more functions
6257 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
6258 * resource.h: add WININET message
6259
6260 * net.cc (do_net): no longer default to IE5
6261 * simpsock.h (class SimpleSocket): new, simplify socket operations
6262 * simpsock.cc: ditto
6263 * nio-http.h: new, for direct http protocol
6264 * nio-http.cc: ditto
6265 * nio-ftp.h: new, for direct http protocol
6266 * nio-ftp.cc: ditto
6267 * netio.cc (set_url): move initialization here to handle redirections
6268 (open): add direct http/ftp
6269 * netio.h (NetIO::set_url): new
6270
6271 * log.cc (log_save): create directory for log if needed
6272
6273 * hash.cc, hash.h: new
6274 * Makefile: add hash.o
6275 * choose.cc: enable "uninstall" option
6276 * download.cc: invert action test to accomodate uninstalling
6277 * ini.h: add ACTION_UNINSTALL
6278 * install.cc: add uninstall functionality
6279 * res.rc: make install tag changeable
6280 * resource.h: add uninstall resources
6281
6282 * res.rc: update mirror list URL
88bcaf07 6283
50f64a4b
DD
62842000-08-24 DJ Delorie <dj@redhat.com>
6285
89b1a15b
DD
6286 * log.cc, log.h: new files
6287 * Makefile.in (OBJS): add log.o
6288 * tar.cc: use exit_setup instead of exit
6289 * dialog.cc (fatal): use exit_setup instead of ExitProcess
6290 * msg.cc (fatal): ditto
6291 * install.cc (dialog_cmd): ditto
6292 * ini.cc (do_ini): ditto
6293 * main.cc (main): add logging
6294 * source.cc (do_source): ditto
6295 * root.cc (do_source): ditto
6296 * site.cc (do_site): ditto
6297 * other.cc (do_other): ditto
6298 * net.cc (do_net): ditto
6299 * choose.cc (do_choose): ditto
6300 * download.cc (do_download): ditto
6301 * install.cc (do_install): ditto
6302 * msg.cc (fatal): ditto
6303
6304 * res.rc: mark password boxes as *being* password boxes.
6305
58b12a06
MB
6306 * fromcwd.cc (canonicalize_version): use multiple buffers so that
6307 multiple calls won't use the same buffer.
50f64a4b
DD
6308 * choose.cc (create_listview): don't default to full list if no changes
6309 (base): return computed value, not temporary :-(
6310 (do_choose): don't use installed.db if we're only downloading.
6311
348860fa
DD
63122000-08-23 DJ Delorie <dj@redhat.com>
6313
6314 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
6315 * nio-ie5.h (flush_io): new
6316 * netio.cc (load_dialog): note when we're initializing the dialog
6317 box, and ignore changes to the edit fields then.
6318
5f48f258
DD
63192000-08-21 DJ Delorie <dj@redhat.com>
6320
6321 * README: Update
6322
6323 * fromcwd.cc (found_file): don't remember the canonicalized version
6324
6325 * choose.cc (paint): print "nothing to do" message when list is empty.
6326 (build_labels): Use version "0.0" if no version is available.
6327 (create_listview): default to full list if nothing to install/update.
6328 (base): new, returns basename of file
6329 (read_installed_db): compare base names, not full paths
6330
713bbe5f
DD
63312000-08-11 DJ Delorie <dj@redhat.com>
6332
6333 * choose.cc: add new chooser dialog
6334 * fromcwd.cc: use IDD_CHOOSE
6335 * ini.cc: use IDD_CHOOSE
6336 * main.cc: use IDD_CHOOSE
6337 * ini.h: cosmetic changes
6338 * res.rc: add choose dialog, bitmaps
6339 * choose-spin.bmp: new
6340 * choose-rtarrow.bmp: new
6341 * resource.h: add choose dialog controls
6342
6343 * mount.cc: remove debug statement
88bcaf07 6344
2e9cbac5
DD
63452000-08-08 DJ Delorie <dj@redhat.com>
6346
6347 * Makefile.in (version.c): make version checking more robust
6348 * splash.cc (load_dialog): handle case where there's no version
6349
8507f105
DD
63502000-08-07 DJ Delorie <dj@redhat.com>
6351
6352 * (all): add cvsid tags
6353 * Makefile.in: generate version.c from ChangeLog, add splash.o
6354 * splash.o: new
6355 * res.rc: add splash screen
88bcaf07 6356
f5d0464b
DD
63572000-08-02 DJ Delorie <dj@redhat.com>
6358
4e8ff53f
DD
6359 * net.cc: remove proxy password code
6360 * res.rc: remove proxy user/pass from net, add auth dialogs
6361 * netio.cc,h: add sys/proxy auth methods
6362 * nio-ie5: use them, check for http status codes
6363 * state.h: add system authorization
6364
f5d0464b
DD
6365 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
6366 meaning an url)
6367
76cbfa85
DD
63682000-08-02 Norman Vine <nhv@yahoo,com>
6369
6370 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
6371
e92c4436
DD
63722000-08-01 DJ Delorie <dj@redhat.com>
6373
bf74c544
DD
6374 * postinstall.cc (each): don't rename files we ignore
6375 (do_postinstall): set CYGWINROOT to root_dir, chdir there
6376
e92c4436
DD
6377 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
6378
a6100861
DD
63792000-07-31 DJ Delorie <dj@redhat.com>
6380
6381 * desktop.cc: reverse PATH so /usr/bin precedes /bin
6382
b11b49f3
DD
63832000-07-18 DJ Delorie <dj@redhat.com>
6384
a99bdfd8
DD
6385 * autoload.c: new, autoload dlls that might not be available.
6386 * Makefile.in (OBJS): add autoload.o
6387
6388 * res.rc: rewrite root options (text/binary, system/user) to be
6389 more obvious.
6390
b5b282c4
DD
6391 * site.cc (get_site_list): trim displayed URL, sort by domain
6392
6393 * net.cc (do_net): make IE5 default to checked, for now
6394
b11b49f3
DD
6395 * choose.cc (do_choose): sort packages correctly
6396 * ini.cc (do_ini): handle parse errors more gracefully
6397 (yyerror): ditto
6398 (fprintf): line buffer output
b5b282c4 6399 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
6400 * ini.h: add "unknown" trust level
6401 * inilex.l: absorb unknown trust levels and key/value pairs,
6402 add line number logic
6403 * iniparse.y: handle parse errors more gracefully.
6404 * install.cc: skip packages with no valid install entry
6405
1fd6d0a2
DD
64062000-07-17 DJ Delorie <dj@cygnus.com>
6407
6408 * coding standards fixups, many files
6409 * mkdir.cc: warn about deletions *before* deleting them
6410
ed3e8b9b
DD
64112000-07-17 Jeff Juliano <juliano@cs.unc.edu>
6412
6413 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
6414
6415 * other.cc (dialog_cmd): save download site URL
6416 * site.cc (get_root_dir): new
6417 (save_mirror_site): new
6418 (dialog_cmd): save download site URL
6419 (get_site_list): make list big enough to add prev site
6420 (get_initial_list_idx): new, read last-used URL from file and
6421 append it to site_list
6422 (do_site): call get_initial_list_idx
6423
6424 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 6425
f57c332f
DD
64262000-07-13 DJ Delorie <dj@cygnus.com>
6427
6428 * postinstall.cc: new
6429 * Makefile.in: add postinstall.o
6430 * concat.h: add backslash ()
6431 * concat.cc: ditto
6432 * desktop.cc (etc_profile): don't do postinstall
6433 (backslash): moved to concat.cc
6434 (uexists): new
6435 (make_postinstall_script): run directly
6436 (do_desktop): chain to do_postinstall
6437 * dialog.h: add exit_msg, do_postinstall
6438 * download.cc: use exit_msg
6439 * install.cc: ditto
6440 * main.cc: add postinstall, exit_msg
6441 * resource.h: add postinstall
d6cda811 6442 * README: add more to-do items
f57c332f 6443
3a8e3956
DD
64442000-07-12 DJ Delorie <dj@cygnus.com>
6445
6446 * desktop.cc: add /etc/postinstall/ support
1a18aed7 6447 * install.cc: add more "standard" directories
3a8e3956 6448
e0c3d906
DD
64492000-07-11 DJ Delorie <dj@cygnus.com>
6450
6451 * desktop.cc: create /etc/profile
ad09bcd9
DD
6452 * desktop.cc: fix include syntax
6453 * Makefile.in: add auto-dependencies
24e259bb
DD
6454 * root.cc: support system vs user
6455 * desktop.cc: ditto
6456 * mount.h: ditto
6457 * mount.cc: ditto
6458 * install.cc: ditto
6459 * res.rc: ditto
6460 * resource.h: ditto
6461 * state.h: ditto
84d58d4c 6462 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
6463 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
6464 * geturl.cc: change math for percentage to avoid overflow
6465 * install.cc: ditto
6466 * download.cc: post "download complete" message.
6467 * root.cc: pre-fill in defaults if needed, don't start
6468 browse at root_dir unless it's set.
a3f48e18 6469 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 6470
904d24fe
DD
64712000-07-10 DJ Delorie <dj@cygnus.com>
6472
6473 * Makefile.in: add desktop.o and mklink2.o
6474 * dialog.h: add do_desktop
6475 * install.cc: create standard directories, call do_desktop
6476 * res.rc: add cygwin.ico as a file also
6477 * desktop.cc: new, do shortcuts, batch files, and icons
6478 * mklink2.c: new, for COM
1ab805b8 6479 * README: update to-do list
904d24fe 6480
04d6e06b
DD
64812000-07-10 DJ Delorie <dj@cygnus.com>
6482
6483 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 6484 actually installing.
04d6e06b 6485
5601a13d
DD
64862000-07-09 DJ Delorie <dj@cygnus.com>
6487
6488 * Makefile.in: add -I$(srcdir) for ini.h
6489
23c9e63c
DD
64902000-07-06 DJ Delorie <dj@cygnus.com>
6491
6492 * Replace everything with a new GUI version
6493 * zlib/gzio.c: add gzctell() for progress displays
6494
64952000-06-22 DJ Delorie <dj@cygnus.com>
6496
6497 * setup.c (tarx): re-add call to write_pkg()
6498
aa32874b
DD
64992000-06-07 DJ Delorie <dj@cygnus.com>
6500
6501 * cygcalls.c: new, call cygwin1.dll functions directly
6502 * cygcalls.h: header for same
6503 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
6504 exes, fix cinstall.rc dependencies.
6505 * path.c: remove unneeded code
6506 * setup.c: use cygcalls instead of xcreate_process.
6507 uncompress embedded files with zlib
6508 add "-d" for "download only"
6509 add "-h" for help
6510 postpone mount changes until very end
6511 add download progress indicators
6512 pack multi-column listings more
6513 auto-delete temp files
6514 customize banner message according to options
6515 prompt user for text/binary mounts
6516 add warnings about empty setup directory, root installs, etc
6517
99d1bf2d
DD
65182000-05-24 DJ Delorie <dj@cygnus.com>
6519
6520 * tar.c: New file; built-in tar using zlib.
6521 * tar.h: New file; header for same.
6522 * ctar.c: New file; test program for same.
6523 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
58b12a06
MB
6524 * path.c (pathcat): convert slashes and canonicalize, instead of
6525 aborting
99d1bf2d
DD
6526 * setup.c (tarx): add support for built-in tar
6527 (main): accept unix-style slashes, check root dir for drive letters,
58b12a06
MB
6528 warn about installing in /, make sure cwd is empty for internet
6529 installs, defer mounts to end of install, support built-in tar.
99d1bf2d 6530
55650749
CF
6531Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
6532
6533 Fix compiler warnings throughout.
6534 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
6535 get_pkg_stuff.
6536 * setup.c: Make 'root' global.
6537 (istargz): Return pointer to "stem" of matched .tar.gz file.
6538 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
6539 bogus check_for_installed check.
6540 (recurse_dirs): Add preliminary support for .bat file execution.
6541 (create_uninstall): Eliminate unneeded parameter.
6542 (do_start_menu): Ditto.
6543 (mkmount): Ditto.
6544 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
6545 scanning for the version number. Eliminate unneeded argument to
6546 create_uninstall.
6547 (getdownloadsource): Add 'name' to list of names rather than url.
6548 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
6549 unneeded argument in mkmount and do_start_menu.
6550
f4dda8f0
DD
65512000-05-18 DJ Delorie <dj@cygnus.com>
6552
6553 * setup.c (optionprompt): allow multi-column, clean up message
6554 about more options, be more robust about user input.
6555 (getdownloadsource): make the mirror URL a macro.
6556 (main): do mounts after done prompting user.
6557
62844d84
CF
6558Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
6559
6560 * setup.c (cleanup): Inverse order of deletion stands a better chance
6561 of deleting cygpath.exe. Still seems to suffer from occasional races,
6562 though.
6563 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
6564 w2k.
6565 (output_file): Defend against an unlikely handle leak.
6566 (main): Don't set up signal handling until we have something special to
6567 do.
6568
ad6749c8
CF
6569Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
6570
6571 * path.c (kill_cygpath): Delete function.
6572 (exit_cygpath): Make more defensive so that it can be called at any
6573 time.
6574 (cygpath_pipe): Don't set up signal here. Do it in main().
6575 * setup.c (istargz): New function.
6576 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
6577 inexplicably fails on samba mounted partitions. Use istargz to match
6578 tar.gz tail.
6579 (processdirlisting) Use istargz to match tar.gz tail.
6580 (cleanup): Renamed from filedel.
6581 (cleanup_on_signal): New function. Called on CTRL-C.
6582 (main): Record handle of main thread so that it can be suspended when
6583 CTRL-C occurs. Set up cleanup_on_signal signal handler.
6584
460cf7b6
CF
6585Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
6586
6587 * setup.c (do_start_menu): Don't concatenate paths to already built
6588 paths.
6589
9e76799c
CF
6590Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
6591
6592 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
6593 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
6594 that.
6595 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
6596 root"-specific.
6597 * setup.c (filedel): Call exit_cygpath here so that we can be assured
6598 that cygpath subprocess has died. This allows us to delete cygpath.exe
6599 and cygwin1.dll.
6600 (optionprompt): Initialize response to -1 so that second screen of
6601 mirrors will appear.
6602 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
6603 * setup.h: Reflect init_pkgs prototype change.
6604
2cf65e6e
CF
6605Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
6606
6607 * pkg.c (init_pkgs): Accept an argument to control what root registry
6608 key should be used.
6609 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
6610 * setup.h: Reflect init_pkgs prototype change.
6611
6612Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
6613
6614 * error.c (winerror): Respond to gcc warning.
6615 * path.c (cygpath_pipe): Ditto.
6616 * setup.c (filedel): Call sa_cleanup on deleteme.
6617 (create_shortcut): Coerce argument to eliminate compiler warning.
6618 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
6619 (refmatches): New function. Tests if ref is contained in a list of
6620 packages to install.
6621 (filematches): New function. Tests if filename matches one of a list
6622 of packages to install.
6623 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
6624 test to accomodate _tar.gz.
6625 (prompt): Ensure that stdout is flushed prior to asking for input.
6626 (findhref): Initialize variables to quiet a compiler warning.
6627 (processdirlisting): Accept list of packages to install. Special case
6628 cygwin tar file version number.
6629 (downloaddir): Accept list of packages to install.
6630 (downloadfrom): Ditto.
6631 (create_uninstall): Eliminate unneeded variables. Quote arguments to
6632 regtool.
6633 (do_start_menu): Don't create uninstall bat file if updating or user
6634 specified a list of packages.
6635 (mkmount): Eliminate unneeded variables.
6636 (get_pkg_stuff): New function. Checks for previous unversioned
6637 installation.
6638 (main): Accept -u and -f options and package names on the command line.
6639 Use get_pkg_stuff to initialize package information. Umount /etc.
6640 Call recurse_dirs and downloadfrom with list of package to install.
6641 Ensure that all /usr/local directories are created. Output
6642 installation time to setup.log.
6643 * setup.h: Add some prototypes.
6644 * xsystem.c (xcreate_process): Eliminate unneeded variable.
6645
4cf88dd9
CF
6646Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
6647
6648 * setup.c (optionprompt): Don't overlap display of already seen options
6649 on next page.
6650 (geturl): Print name of site which we're connecting to rather than "ftp
6651 site".
6652 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
6653 test too simplistic?
6654 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
6655 problems when user chooses x:\ as their root.
6656 (main): For now, default to "non-update" mode. Allow -u option to
6657 signify an update.
6658
36591a07
CF
6659Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
6660
6661 * pkg.c: New file.
6662 * setup.c (tarx): Skip already installed or older packages. Report
6663 when a package has been updated.
6664 (processdirlisting): Skip already installed or older packages.
6665 (main): Detect -f option for forced installation. Initialize pkg stuff
6666 if appropriate.
6667 * setup.h: Add pkg definitions.
6668
c298ea4a
CF
6669Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
6670
6671 * setup.c (findhref): Return NULL on empty string. Eat any trailing
6672 ";something".
6673 (processdirlisting): Attempt to limit recursively processing the same
6674 directory.
6675
f4cafa7e
CF
6676Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
6677
6678 * setup.c (filedel): New function.
6679 (output_file): Keep track of files extracted from setup.exe for
6680 subsequent deletion.
6681 (tarx): Close process handle of child tar process or suffer handle
6682 leak.
6683 (getdownloadsource): Close mirror file so that it can be unlinked.
6684 (processdirlisting): Return total number of files extracted.
6685 (main): Initialize array of files to delete. Ensure that files are
6686 closed on exit. Make the directory that setup.exe is started from ==
6687 the directory where temporary files are placed. Issue an error if no
6688 files were found to download.
6689 * xsystem.c (xcreate_process): Close the thread handle. Close the
6690 process handle if we waited for it to exit.
6691
cd475210
CF
6692Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
6693
6694 * setup.c (main): Change version number output.
6695
7dff5e71
CF
6696Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
6697
6698 * setup.c (tarx): Use full path name to tar executable.
6699 (main): Build full pathname to tar executable. Create /usr/local/etc
6700 by default.
6701
99437fdb
CF
6702Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
6703
6704 * setup.c (findhref): Change method for scanning for href= to choose
6705 the last one on the line. This is still not foolproof and probably
6706 will need to be changed eventually. Don't abort if no "size" field is
6707 evident.
6708 (processdirlisting): Fix boolean algebra.
6709
0f562d55
CF
6710Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
6711
6712 * main.c (tarx): Add some code for future task of unmounting
6713 directories encountered in tar file.
6714
4356382d
CF
6715Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
6716
6717 * setup.c (findhref): Decode file size, when appropriate.
6718 (needfile): New function. Returns 1 when file should be
6719 downloaded.
6720 (processdirlisting): Always download if file size does not
6721 match. Prompt when download fails for some reason.
6722 (getdownloadsource): Accomodate findhref argument changes.
6723
6ab1ce6c
CF
6724Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
6725
6726 Throughout, use global session handle rather than reinitializing for
6727 each connect. Don't pass session as an argument to setup.c functions.
6728 * setup.c (geturl): Only issue "Connecting to.." message when using
6729 http or first time for ftp since subsequent connections will be fast.
6730 (processdirlisting): Allocate space for "N" when user has specified
6731 "N"ever option so that it can be subsequently freed.
6732 (main): Abort if we can't get the list of mirrors.
6733
37ee316b
CF
6734Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
6735
6736 * setup.c (main): Umount /bin and /lib.
6737
a59fb4fa
CF
6738Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
6739
6740 * setup.c (main): Create an empty /var/run/utmp.
6741
75f4b861
CF
6742Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
6743
6744 * Makefile.in: Add umount to list of files to include in setup.exe.
6745 * setup.c (xumount): New function for unmounting directories.
6746 (main): Unmount /usr.
6747 (mkmount): Unmount "unix directory" before trying to figure out where
6748 to create the directory.
6749
d4a66789
CF
6750Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
6751
6752 * setup.c (mkmount): Use xcreate_process to start mount process,
6753 avoiding the shell.
6754 (main): Don't do buffering on stdout or prompts won't be displayed
6755 correctly if running in a cygwin shell with CYGWIN=tty.
6756
a6c3982d
CF
6757Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
6758
6759 * setup.c (main): Remove the CYGWIN environment variable before
6760 starting any cygwin programs.
6761
0ffd5e3b
CF
6762Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
6763
6764 * setup.c (geturl): Use alternative method for finding filename part of
6765 a URL.
6766 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
6767 (downloaddir): Unlink file containing dir listing.
6768 (downloadfrom): Ditto.
6769
3e54bcf9
CF
6770Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
6771
6772 * setup.c (main): Disallow running setup.exe from the "root".
6773
005b73c4
CF
6774Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
6775
2cf65e6e 6776 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
6777 * setup.c (warning): New function -- outputs warning to console and log
6778 file.
6779 (tarx): Fix index used to reset file protection.
6780 (main): Open the log file earlier so that more stuff can be sent to it.
6781
36dc5fc8
CF
6782Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
6783
6784 * setup.c (processdirlisting): Make "N" option a little less aggressive.
6785
c73320de
CF
6786Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
6787
6788 * setup.c (tarx): Wait to after tar has completed to reset protections
6789 or suffer races with tar process.
6790
68cdfc92
CF
6791Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
6792
6793 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
6794 * setup.c (create_uninstall): Create the uninstall .bat file in the
6795 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
6796 list of files to be deleted. Fix directory detection for determining
6797 when to use 'rmdir'.
6798 (do_start_menu): Add /usr/local/bin to the path.
6799 (main): Add slop to files.array allocation so that we don't have to
6800 worry about reallocating the array when it grows too large when doing
6801 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
6802 files.
6803
35d18861
CF
6804Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
6805
6806 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
6807 download.
6808
20904de1
CF
6809Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
6810
6811 * path.c (kill_cygpath): New cleanup function.
6812 (exit_cygpath): New cleanup function.
6813 (cygpath_pipe): New function. Sets up cygpath in the background for
6814 translating filenames.
6815 (pathcvt): Use background cygpath for file translation.
6816 * setup.c (tarx): New function. Called to extract tar files, capture
6817 logging output, and translate it to Windows format.
6818 (recurse_dirs): Use 'tarx' function to extract files.
6819 (create_uninstall): Use file list built up by tarx rather than reading
6820 the log file.
6821 (mkmount): Add ability to mount root.
6822 (main): Track elapsed install time. Mount root.
6823 * starry.h: Add index field to strarry for tracking of tarx's usage of
6824 this structure.
6825 * xsystem.c (xcreate_process): Return proces handle when not waiting.
6826
c1246750
CF
6827Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
6828
6829 * path.c: New file.
6830 (pathfp): New function. Preliminary work for new -f cygpath
6831 functionality.
6832 * Makefile.in: Add new file.
6833 (pathcvt): Move to new file.
6834 (dtoupath): Ditto.
6835 (utodpath): Ditto.
6836 (pathcat): Ditto.
6837 * setup.c (processdirlisting): Always open file in text mode.
6838 (create_uninstall): Ditto.
6839 (getdownloadsource): Ditto.
6840 (main): Ditto.
6841
4b40edd0
CF
6842Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
6843
6844 * xsystem.c: New file.
6845 * Makefile.in: Accomodate new file.
6846 * setup.c (xsystem): Move to new file.
6847 (recurse_dirs): Accept handle to output log file. Don't use ">"
6848 redirection to trap tar output. Use supplied handle instead.
6849 (create_uninstall): Accept FILE pointer to opened log file. Don't
6850 unlink log file here.
6851 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
6852 (main): Open log file here and pass it to various functions. Unlink
6853 when done.
6854
6f8e3b45
CF
6855Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
6856
6857 Change occurrences of .usr.bin to .bin throughout.
6858 * setup.c (geturl): Increase number of retries to 20. Let user know
6859 what's going on during long connects.
6860 (processdirlisting): Accept "A"lways and "N"ever as update options.
6861 (create_uninstall): Load cygwin1.dll from the current directory rather
6862 than \bin.
6863 (main): Add some expository text.
6864
2a907b70
CF
6865Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
6866
6867 * Makefile.in: Change method for compressing cygwin1.dll to avoid
6868 creating a cygwin1.dll in the current directory. Ensure the addition
6869 of -nostdinc to MINGW_CFLAGS.
6870
c4285a3c
CF
6871Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
6872
6873 * Makefile.in: Augment clean target.
6874
ea615d51
RP
6875Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
6876
6877 * README: Added info about non-working mingw implementation
c1246750 6878 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 6879 tools.
c1246750 6880 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 6881 tools.
c1246750 6882 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
6883 * cygpath.exe.gz: ditto
6884 * cygwin1.dll.gz: ditto
c1246750
CF
6885 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
6886 for Win9x. Display only a screenfull of options at a time. Call all
6887 tools with an absolute path.
6888 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
6889 them.
ea615d51
RP
6890 * setup.dsw: ditto
6891 * zlib.dsw: ditto
6892
51954e74
CF
6893Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
6894
c1246750
CF
6895 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
6896 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
6897 * gzip.exe.gz: Update.
6898 * tar.exe.gz: Update.
6899
7b777418
CF
6900Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
6901
6902 * Makefile.in: Use ZLIB variable as a target.
6903
4306b490
CF
6904Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
6905
5e7eb909
CF
6906 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
6907 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
6908 sources.
4306b490
CF
6909 * configure.in: Locate correct objcopy.
6910 * configure: Regenerate.
6911
739457f4
CF
6912Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
6913
6914 * Makefile.in: New file.
6915 * configure.in: New file.
6916 * configure: New file.
6917 * zlib/Makefile.am: New file.
6918 * zlib/configure.in: New file.
6919 * zlib/aclocal.m4: New file.
6920 * zlib/acinclude.m4: New file.
6921 * zlib/configure: Regenerate from configure.in.
6922 * zlib/Makefile.in: Regenerate from Makefile.am
8507f105
DD
6923
6924%%% $Id$
6925$Revision$
This page took 0.85375 seconds and 5 git commands to generate.