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