]> cygwin.com Git - cygwin-apps/setup.git/blob - ChangeLog
5fbaf043b136b900e8f62ff79df36e52f8abb1e8
[cygwin-apps/setup.git] / ChangeLog
1 2010-08-07 Andy Koppe <andy.koppe@gmail.com>
2
3 * prereq.cc (PrereqChecker::isMet): Find unmet indirect
4 dependencies too.
5
6 2010-08-06 Andy Koppe <andy.koppe@gmail.com>
7
8 * res.rc (IDS_VIEWBUTTON_TOOLTIP): Rename "Partial" view
9 to "Pending" (again).
10
11 2010-08-05 Andy Koppe <andy.koppe@gmail.com>
12
13 * res.rc (IDD_PREREQ DIALOG): Tweak wording on dependency page.
14
15 2010-07-31 Dave Korn <dave.korn.cygwin@gmail.com>
16
17 * install.cc (Installer::installOne): Also record zero-sized
18 tarballs as successfully installed.
19
20 2010-07-30 Jon TURNEY <jon.turney@dronecode.org.uk>
21
22 * postinstall.cc (do_postinstall_reflector): Fix typo.
23
24 2010-07-30 Christopher Faylor <me+cygwin@cgf.cx>
25
26 * inilex.ll: Allow "~" in a string.
27
28 2010-07-29 Jon TURNEY <jon.turney@dronecode.org.uk>
29
30 * resource.h (IDD_POSTINSTALL, IDC_POSTINSTALL_EDIT): Add resource
31 identifiers for postinstall results page.
32 * res.rc (IDD_POSTINSTALL): Add dialog resource for postinstall results
33 page.
34 * postinstallresults.h: New file.
35 * postinstallresults.cc: New file.
36 * main.cc (main_display): Add a PostInstallResultsPage to the wizard.
37 * Makefile.am (setup_SOURCES): Add new files.
38 * threebar.cc (OnMessageApp): Allow WM_APP_POSTINSTALL_THREAD_COMPLETE
39 to select the next page shown.
40 * postinstall.cc (do_postinstall_thread)
41 (do_postinstall_reflector): Collect results of running scripts and
42 compose a reporting message which we pass to the postinstall results
43 page. Select postinstall results page next if there are results to
44 show, otherwise desktop setup page as before.
45 * script.cc (run): Don't rename as .done scripts which didn't run
46 successfully.
47
48 2010-07-26 Andy Koppe <andy.koppe@gmail.com>
49
50 * PickView.cc (PickView::views::caption): Rename "Partial" view
51 to "Pending".
52 * res.rc (IDS_VIEWBUTTON_TOOLTIP): Ditto.
53
54 2010-07-22 Andy Koppe <andy.koppe@gmail.com>
55
56 * PickPackageLine.cc (PickPackageLine::{click,set_action}):
57 Don't trigger automatic package selection when clicking on
58 packages or categories on chooser screen.
59 * PickCategoryLine.cc (PickCategoryLine::click): No more need to
60 prepare for automatic package selection with markUnVisited().
61 * res.rc: Drop "Warning!" from caption of Resolve Dependencies
62 screen.
63
64 2010-04-17 Dave Korn <dave.korn.cygwin@gmail.com>
65
66 * root.cc (RootPage::OnNext): Don't construct a packagedb here nor
67 do deferred initialisation of static packagedb::task.
68 * source.cc (save_dialog): Don't construct a packagedb here, and
69 set static packagedb::task directly instead of chosen_db_task.
70 * package_meta.cc (packagemeta::action_caption): Don't bother to
71 construct a packagedb here, just access packagedb::task directly.
72 * package_db.cc: Move 'static members' comment near static members.
73 (chosen_db_task): Delete.
74 * package_db.h (chosen_db_task): Don't declare extern.
75 (packagedb): Extend comments on class.
76
77 2010-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
78
79 * PickView.cc (PickView::WindowProc): Delete inadvertently-committed
80 debug logging.
81
82 2010-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
83
84 * PickView.h (PickView::set_vscroll_info): Add prototype.
85 (PickView::hasClientRect): Rename from this ...
86 (PickView::hasWindowRect): ... to this ...
87 (PickView::lastClientRect): ... and from this ...
88 (PickView::lastWindowRect): ... to this.
89 * PickView.cc (PickView::PickView): Adjust member init to match.
90 (PickView::set_vscroll_info): Abstract code to set vertical scroll
91 bar proportions from ...
92 (PickView::list_click): ... here. Call it. Fix comment typo.
93 (PickView::WindowProc): Update all renamed variables in WM_SIZE
94 case, and check also for a y delta, calling set_vscroll_info if so.
95
96 2010-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
97
98 * window.cc (Window::Window): Initialise BusyCount and BusyCursor.
99 (Window::SetBusy): Set hourglass cursor, counting nested activations.
100 (Window::ClearBusy): Cancel one call to SetBusy and restore original
101 cursor if no longer busy.
102 * window.h (Window::BusyCount): New data member.
103 (Window::OldCursor): Likewise.
104 (Window::BusyCursor): Likewise.
105 (Window::SetBusy): Prototype.
106 (Window::ClearBusy): Likewise.
107 * choose.cc (ChooserPage::createListview): Invoke busy cursor
108 around long-running operation.
109 (ChooserPage::OnInit): Likewise.
110 (ChooserPage::changeTrust): Likewise.
111 * PickCategoryLine.cc (PickCategoryLine::set_action): Likewise.
112
113 2010-04-08 Christopher Faylor <me+cygwin@cgf.cx>
114
115 * bootstrap.sh: Always reconfigure in libgetopt++.
116
117 * Makefile.am: Remove old code for direct copying to sourceware. Add
118 -src to source tarball.
119
120 2010-04-07 Matthias Andree <matthias.andree@gmx.de>
121
122 * README (HOW TO BUILD): Mention mingw-lib{gcrypt,lzma}-devel.
123
124 * res.rc (IDD_DESKTOP): Move Installation Status line,
125 IDC_STATUS_HEADER and IDC_STATUS up 20 units, make IDC_STATUS text
126 20 units taller and 40 units wider so that IDS_REBOOT_REQUIRED
127 message fits the screen.
128 * res.rc (IDD_SPLASH): Bump copyright years in IDC_SLASH_COPYR to
129 "2000-2010".
130
131 2010-04-07 Corinna Vinschen <corinna@vinschen.de>
132
133 * install.cc (create_allow_protected_renames): New function to
134 create AllowProtectedRenames registry entry.
135 (Installer::installOne): Call create_allow_protected_renames if former
136 call to MoveFileEx was successful.
137
138 2010-03-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
139
140 Use external crypto libraries
141 * Makefile.am: Remove local libgcrypt and libgpg-error
142 source directories from AM_CPPFLAGS.
143 * configure.ac: Remove libgcrypt and libgpg-error subdirs
144 from AC_CONFIG_SUBDIRS. Remove now-unnecessary cruft.
145 * doconfigure: Specify gcc-3 and g++-3. Set PATH when $build
146 is cygwin, so that correct (mingw) libgcrypt and libgpg-error
147 config scripts can be used.
148
149 Remove libgpg-error.
150 * libgpg-error/tests/Makefile.am, libgpg-error/tests/Makefile.in,
151 libgpg-error/tests/t-strerror.c, libgpg-error/tests/t-syserror.c,
152 libgpg-error/po/ChangeLog, libgpg-error/po/LINGUAS,
153 libgpg-error/po/Makefile.in.in, libgpg-error/po/Makevars,
154 libgpg-error/po/POTFILES.in, libgpg-error/po/Rules-quot,
155 libgpg-error/po/boldquot.sed, libgpg-error/po/de.gmo,
156 libgpg-error/po/de.po, libgpg-error/po/en@boldquot.header,
157 libgpg-error/po/en@quot.header, libgpg-error/po/fr.gmo,
158 libgpg-error/po/fr.po libgpg-error/po/insert-header.sin,
159 libgpg-error/po/libgpg-error.pot, libgpg-error/po/pl.gmo,
160 libgpg-error/po/pl.po, libgpg-error/po/quot.sed,
161 libgpg-error/po/remove-potcdate.sin, libgpg-error/po/ro.gmo,
162 libgpg-error/po/ro.po libgpg-error/po/stamp-po,
163 libgpg-error/po/sv.po, libgpg-error/po/vi.gmo,
164 libgpg-error/po/vi.po, libgpg-error/po/sv.gmo,
165 libgpg-error/m4/ChangeLog, libgpg-error/m4/Makefile.am,
166 libgpg-error/m4/ac_prog_cc_for_build.m4, libgpg-error/m4/autobuild.m4,
167 libgpg-error/m4/codeset.m4, libgpg-error/m4/gettext.m4,
168 libgpg-error/m4/glibc2.m4, libgpg-error/m4/glibc21.m4,
169 libgpg-error/m4/iconv.m4, libgpg-error/m4/intdiv0.m4,
170 libgpg-error/m4/intmax.m4, libgpg-error/m4/inttypes-h.m4,
171 libgpg-error/m4/inttypes-pri.m4, libgpg-error/m4/inttypes.m4,
172 libgpg-error/m4/inttypes_h.m4, libgpg-error/m4/isc-posix.m4,
173 libgpg-error/m4/lcmessage.m4, libgpg-error/m4/lib-ld.m4,
174 libgpg-error/m4/lib-link.m4, libgpg-error/m4/lib-prefix.m4,
175 libgpg-error/m4/libtool.m4, libgpg-error/m4/lock.m4,
176 libgpg-error/m4/longdouble.m4, libgpg-error/m4/longlong.m4,
177 libgpg-error/m4/nls.m4, libgpg-error/m4/po.m4,
178 libgpg-error/m4/printf-posix.m4, libgpg-error/m4/progtest.m4,
179 libgpg-error/m4/signed.m4, libgpg-error/m4/size_max.m4,
180 libgpg-error/m4/stdint_h.m4, libgpg-error/m4/uintmax_t.m4,
181 libgpg-error/m4/ulonglong.m4, libgpg-error/m4/visibility.m4,
182 libgpg-error/m4/wchar_t.m4, libgpg-error/m4/wint_t.m4,
183 libgpg-error/m4/xsize.m4, libgpg-error/m4/Makefile.in,
184 libgpg-error/lang/Makefile.am, libgpg-error/lang/README,
185 libgpg-error/lang/Makefile.in, libgpg-error/lang/cl/Makefile.am,
186 libgpg-error/lang/cl/README, libgpg-error/lang/cl/gpg-error-package.lisp,
187 libgpg-error/lang/cl/gpg-error.asd, libgpg-error/lang/cl/gpg-error.asd.in,
188 libgpg-error/lang/cl/gpg-error.lisp, libgpg-error/lang/cl/mkerrcodes.awk,
189 libgpg-error/lang/cl/Makefile.in, libgpg-error/src/Makefile.am,
190 libgpg-error/src/README, libgpg-error/src/code-from-errno.c,
191 libgpg-error/src/code-to-errno.c, libgpg-error/src/err-codes.h,
192 libgpg-error/src/err-codes.h.in, libgpg-error/src/err-sources.h,
193 libgpg-error/src/err-sources.h.in, libgpg-error/src/errnos.in,
194 libgpg-error/src/gettext.h, libgpg-error/src/gpg-error-config.in,
195 libgpg-error/src/gpg-error.c, libgpg-error/src/gpg-error.def,
196 libgpg-error/src/gpg-error.h, libgpg-error/src/gpg-error.h.in,
197 libgpg-error/src/gpg-error.m4, libgpg-error/src/init.c,
198 libgpg-error/src/mkerrcodes.awk, libgpg-error/src/mkerrcodes.c,
199 libgpg-error/src/mkerrcodes1.awk, libgpg-error/src/mkerrcodes2.awk,
200 libgpg-error/src/mkerrnos.awk, libgpg-error/src/mkheader.awk,
201 libgpg-error/src/mkstrtable.awk, libgpg-error/src/strerror-sym.c,
202 libgpg-error/src/strerror.c, libgpg-error/src/strsource-sym.c,
203 libgpg-error/src/strsource.c, libgpg-error/src/versioninfo.rc.in,
204 libgpg-error/src/w32-gettext.c, libgpg-error/src/w32-gettext.h,
205 libgpg-error/src/Makefile.in, libgpg-error/ABOUT-NLS,
206 libgpg-error/AUTHORS, libgpg-error/COPYING, libgpg-error/COPYING.LIB,
207 libgpg-error/ChangeLog, libgpg-error/INSTALL, libgpg-error/Makefile.am,
208 libgpg-error/NEWS, libgpg-error/README, libgpg-error/THANKS,
209 libgpg-error/VERSION, libgpg-error/autogen.sh, libgpg-error/compile,
210 libgpg-error/config.guess, libgpg-error/config.rpath,
211 libgpg-error/config.sub, libgpg-error/configure.ac, libgpg-error/depcomp,
212 libgpg-error/install-sh, libgpg-error/libgpg-error.spec,
213 libgpg-error/libgpg-error.spec.in, libgpg-error/ltmain.sh,
214 libgpg-error/missing, libgpg-error/mkinstalldirs,
215 libgpg-error/aclocal.m4, libgpg-error/configure,
216 libgpg-error/config.h.in, libgpg-error/Makefile.in: Remove.
217
218 Remove libgcrypt.
219 * libgcrypt/tests/ChangeLog, libgcrypt/tests/Makefile.am,
220 libgcrypt/tests/ac-data.c, libgcrypt/tests/ac-schemes.c,
221 libgcrypt/tests/ac.c, libgcrypt/tests/basic.c,
222 libgcrypt/tests/benchmark.c, libgcrypt/tests/hmac.c,
223 libgcrypt/tests/keygen.c, libgcrypt/tests/keygrip.c,
224 libgcrypt/tests/mpitests.c, libgcrypt/tests/pkbench.c,
225 libgcrypt/tests/prime.c, libgcrypt/tests/pubkey.c,
226 libgcrypt/tests/random.c, libgcrypt/tests/register.c,
227 libgcrypt/tests/t-mpi-bit.c, libgcrypt/tests/testapi.c,
228 libgcrypt/tests/tsexp.c, libgcrypt/tests/version.c,
229 libgcrypt/tests/Makefile.in, libgcrypt/src/ChangeLog
230 libgcrypt/src/Makefile.am, libgcrypt/src/Manifest, libgcrypt/src/ath.c,
231 libgcrypt/src/ath.h, libgcrypt/src/cipher.h, libgcrypt/src/dumpsexp.c,
232 libgcrypt/src/g10lib.h, libgcrypt/src/gcrypt-module.h,
233 libgcrypt/src/gcrypt.h, libgcrypt/src/gcrypt.h.in,
234 libgcrypt/src/gcryptrnd.c, libgcrypt/src/getrandom.c,
235 libgcrypt/src/global.c, libgcrypt/src/hwfeatures.c,
236 libgcrypt/src/libgcrypt-config.in, libgcrypt/src/libgcrypt.def,
237 libgcrypt/src/libgcrypt.m4, libgcrypt/src/libgcrypt.vers,
238 libgcrypt/src/misc.c, libgcrypt/src/missing-string.c,
239 libgcrypt/src/module.c, libgcrypt/src/mpi.h, libgcrypt/src/secmem.h,
240 libgcrypt/src/sexp.c, libgcrypt/src/stdmem.c, libgcrypt/src/stdmem.h,
241 libgcrypt/src/types.h, libgcrypt/src/versioninfo.rc.in,
242 libgcrypt/src/visibility.c, libgcrypt/src/visibility.h,
243 libgcrypt/src/Makefile.in, libgcrypt/src/secmem.c,
244 libgcrypt/m4/ChangeLog, libgcrypt/m4/Makefile.am,
245 libgcrypt/m4/libtool.m4, libgcrypt/m4/noexecstack.m4,
246 libgcrypt/m4/onceonly.m4, libgcrypt/m4/socklen.m4,
247 libgcrypt/m4/sys_socket_h.m4, libgcrypt/m4/Makefile.in,
248 libgcrypt/doc/ChangeLog, libgcrypt/doc/HACKING,
249 libgcrypt/doc/Makefile.am, libgcrypt/doc/README.apichanges,
250 libgcrypt/doc/gcrypt.texi, libgcrypt/doc/gpl.texi,
251 libgcrypt/doc/lgpl.texi, libgcrypt/doc/mdate-sh,
252 libgcrypt/doc/texinfo.tex, libgcrypt/doc/stamp-vti,
253 libgcrypt/doc/version.texi, libgcrypt/doc/gcrypt.info,
254 libgcrypt/doc/Makefile.in, libgcrypt/cipher/ChangeLog,
255 libgcrypt/cipher/Makefile.am, libgcrypt/cipher/Manifest,
256 libgcrypt/cipher/ac.c, libgcrypt/cipher/arcfour.c,
257 libgcrypt/cipher/bithelp.h, libgcrypt/cipher/blowfish.c,
258 libgcrypt/cipher/camellia-glue.c, libgcrypt/cipher/camellia.c,
259 libgcrypt/cipher/camellia.h, libgcrypt/cipher/cast5.c,
260 libgcrypt/cipher/cipher.c, libgcrypt/cipher/crc.c,
261 libgcrypt/cipher/des.c, libgcrypt/cipher/dsa.c, libgcrypt/cipher/ecc.c,
262 libgcrypt/cipher/elgamal.c, libgcrypt/cipher/md.c,
263 libgcrypt/cipher/md4.c, libgcrypt/cipher/md5.c,
264 libgcrypt/cipher/primegen.c, libgcrypt/cipher/pubkey.c,
265 libgcrypt/cipher/rand-internal.h, libgcrypt/cipher/random-daemon.c,
266 libgcrypt/cipher/random.c, libgcrypt/cipher/random.h,
267 libgcrypt/cipher/rfc2268.c, libgcrypt/cipher/rijndael-tables.h,
268 libgcrypt/cipher/rijndael.c, libgcrypt/cipher/rmd.h,
269 libgcrypt/cipher/rmd160.c, libgcrypt/cipher/rndegd.c,
270 libgcrypt/cipher/rndhw.c, libgcrypt/cipher/rndlinux.c,
271 libgcrypt/cipher/rndunix.c, libgcrypt/cipher/rndw32.c,
272 libgcrypt/cipher/rsa.c, libgcrypt/cipher/seed.c,
273 libgcrypt/cipher/serpent.c, libgcrypt/cipher/sha1.c,
274 libgcrypt/cipher/sha256.c, libgcrypt/cipher/sha512.c,
275 libgcrypt/cipher/tiger.c, libgcrypt/cipher/twofish.c,
276 libgcrypt/cipher/whirlpool.c, libgcrypt/cipher/Makefile.in,
277 libgcrypt/AUTHORS, libgcrypt/BUGS, libgcrypt/COPYING,
278 libgcrypt/COPYING.LIB, libgcrypt/ChangeLog, libgcrypt/INSTALL,
279 libgcrypt/Makefile.am, libgcrypt/NEWS, libgcrypt/README,
280 libgcrypt/README.SVN, libgcrypt/THANKS, libgcrypt/TODO, libgcrypt/VERSION,
281 libgcrypt/acinclude.m4, libgcrypt/autogen.sh, libgcrypt/compile,
282 libgcrypt/config.guess, libgcrypt/config.sub, libgcrypt/configure.ac,
283 libgcrypt/depcomp, libgcrypt/install-sh, libgcrypt/ltmain.sh,
284 libgcrypt/missing, libgcrypt/mkinstalldirs, , libgcrypt/aclocal.m4,
285 libgcrypt/configure, libgcrypt/config.h.in, libgcrypt/Makefile.in,
286 libgcrypt/mpi/ChangeLog, libgcrypt/mpi/Makefile.am,
287 libgcrypt/mpi/Manifest, libgcrypt/mpi/config.links, libgcrypt/mpi/ec.c,
288 libgcrypt/mpi/longlong.h, libgcrypt/mpi/mpi-add.c,
289 libgcrypt/mpi/mpi-bit.c, libgcrypt/mpi/mpi-cmp.c,
290 libgcrypt/mpi/mpi-div.c, libgcrypt/mpi/mpi-gcd.c,
291 libgcrypt/mpi/mpi-inline.c, libgcrypt/mpi/mpi-inline.h,
292 libgcrypt/mpi/mpi-internal.h, libgcrypt/mpi/mpi-inv.c,
293 libgcrypt/mpi/mpi-mod.c, libgcrypt/mpi/mpi-mpow.c,
294 libgcrypt/mpi/mpi-mul.c, libgcrypt/mpi/mpi-pow.c,
295 libgcrypt/mpi/mpi-scan.c, libgcrypt/mpi/mpicoder.c,
296 libgcrypt/mpi/mpih-div.c, libgcrypt/mpi/mpih-mul.c,
297 libgcrypt/mpi/mpiutil.c, libgcrypt/mpi/Makefile.in,
298 libgcrypt/mpi/alpha/README, libgcrypt/mpi/alpha/distfiles,
299 libgcrypt/mpi/alpha/mpih-add1.S, libgcrypt/mpi/alpha/mpih-lshift.S,
300 libgcrypt/mpi/alpha/mpih-mul1.S, libgcrypt/mpi/alpha/mpih-mul2.S,
301 libgcrypt/mpi/alpha/mpih-mul3.S, libgcrypt/mpi/alpha/mpih-rshift.S,
302 libgcrypt/mpi/alpha/mpih-sub1.S, libgcrypt/mpi/alpha/udiv-qrnnd.S,
303 libgcrypt/mpi/amd64/distfiles, libgcrypt/mpi/amd64/mpih-add1.S,
304 libgcrypt/mpi/amd64/mpih-lshift.S, libgcrypt/mpi/amd64/mpih-mul1.S,
305 libgcrypt/mpi/amd64/mpih-mul2.S, libgcrypt/mpi/amd64/mpih-mul3.S,
306 libgcrypt/mpi/amd64/mpih-rshift.S, libgcrypt/mpi/amd64/mpih-sub1.S,
307 libgcrypt/mpi/generic/Manifest, libgcrypt/mpi/generic/distfiles,
308 libgcrypt/mpi/generic/mpi-asm-defs.h, libgcrypt/mpi/generic/mpih-add1.c,
309 libgcrypt/mpi/generic/mpih-lshift.c, libgcrypt/mpi/generic/mpih-mul1.c,
310 libgcrypt/mpi/generic/mpih-mul2.c, libgcrypt/mpi/generic/mpih-mul3.c,
311 libgcrypt/mpi/generic/mpih-rshift.c, libgcrypt/mpi/generic/mpih-sub1.c,
312 libgcrypt/mpi/generic/udiv-w-sdiv.c, libgcrypt/mpi/hppa/README,
313 libgcrypt/mpi/hppa/distfiles, libgcrypt/mpi/hppa/mpih-add1.S,
314 libgcrypt/mpi/hppa/mpih-lshift.S, libgcrypt/mpi/hppa/mpih-rshift.S,
315 libgcrypt/mpi/hppa/mpih-sub1.S, libgcrypt/mpi/hppa/udiv-qrnnd.S,
316 libgcrypt/mpi/hppa1.1/distfiles, libgcrypt/mpi/hppa1.1/mpih-mul1.S,
317 libgcrypt/mpi/hppa1.1/mpih-mul2.S, libgcrypt/mpi/hppa1.1/mpih-mul3.S,
318 libgcrypt/mpi/hppa1.1/udiv-qrnnd.S, libgcrypt/mpi/i386/Manifest,
319 libgcrypt/mpi/i386/distfiles, libgcrypt/mpi/i386/mpih-add1.S,
320 libgcrypt/mpi/i386/mpih-lshift.S, libgcrypt/mpi/i386/mpih-mul1.S,
321 libgcrypt/mpi/i386/mpih-mul2.S, libgcrypt/mpi/i386/mpih-mul3.S,
322 libgcrypt/mpi/i386/mpih-rshift.S, libgcrypt/mpi/i386/mpih-sub1.S,
323 libgcrypt/mpi/i386/syntax.h, libgcrypt/mpi/i586/Manifest,
324 libgcrypt/mpi/i586/README, libgcrypt/mpi/i586/distfiles,
325 libgcrypt/mpi/i586/mpih-add1.S, libgcrypt/mpi/i586/mpih-lshift.S,
326 libgcrypt/mpi/i586/mpih-mul1.S, libgcrypt/mpi/i586/mpih-mul2.S,
327 libgcrypt/mpi/i586/mpih-mul3.S, libgcrypt/mpi/i586/mpih-rshift.S,
328 libgcrypt/mpi/i586/mpih-sub1.S, libgcrypt/mpi/m68k/Manifest,
329 libgcrypt/mpi/m68k/distfiles, libgcrypt/mpi/m68k/mpih-add1.S,
330 libgcrypt/mpi/m68k/mpih-lshift.S, libgcrypt/mpi/m68k/mpih-rshift.S,
331 libgcrypt/mpi/m68k/mpih-sub1.S, libgcrypt/mpi/m68k/syntax.h,
332 libgcrypt/mpi/mips3/Manifest, libgcrypt/mpi/mips3/README,
333 libgcrypt/mpi/mips3/distfiles, libgcrypt/mpi/mips3/mpi-asm-defs.h,
334 libgcrypt/mpi/mips3/mpih-add1.S, libgcrypt/mpi/mips3/mpih-lshift.S,
335 libgcrypt/mpi/mips3/mpih-mul1.S, libgcrypt/mpi/mips3/mpih-mul2.S,
336 libgcrypt/mpi/mips3/mpih-mul3.S, libgcrypt/mpi/mips3/mpih-rshift.S,
337 libgcrypt/mpi/mips3/mpih-sub1.S, libgcrypt/mpi/pa7100/Manifest,
338 libgcrypt/mpi/pa7100/distfiles, libgcrypt/mpi/pa7100/mpih-lshift.S,
339 libgcrypt/mpi/pa7100/mpih-rshift.S, libgcrypt/mpi/pentium4/README,
340 libgcrypt/mpi/pentium4/distfiles, libgcrypt/mpi/power/Manifest,
341 libgcrypt/mpi/power/distfiles, libgcrypt/mpi/power/mpih-add1.S,
342 libgcrypt/mpi/power/mpih-lshift.S, libgcrypt/mpi/power/mpih-mul1.S,
343 libgcrypt/mpi/power/mpih-mul2.S, libgcrypt/mpi/power/mpih-mul3.S,
344 libgcrypt/mpi/power/mpih-rshift.S, libgcrypt/mpi/power/mpih-sub1.S,
345 libgcrypt/mpi/powerpc32/Manifest, libgcrypt/mpi/powerpc32/distfiles,
346 libgcrypt/mpi/powerpc32/mpih-add1.S,
347 libgcrypt/mpi/powerpc32/mpih-lshift.S,
348 libgcrypt/mpi/powerpc32/mpih-mul1.S,
349 libgcrypt/mpi/powerpc32/mpih-mul2.S,
350 libgcrypt/mpi/powerpc32/mpih-mul3.S,
351 libgcrypt/mpi/powerpc32/mpih-rshift.S,
352 libgcrypt/mpi/powerpc32/mpih-sub1.S, libgcrypt/mpi/powerpc32/syntax.h,
353 libgcrypt/mpi/powerpc64/distfiles, libgcrypt/mpi/sparc32/Manifest,
354 libgcrypt/mpi/sparc32/distfiles, libgcrypt/mpi/sparc32/mpih-add1.S,
355 libgcrypt/mpi/sparc32/mpih-lshift.S,
356 libgcrypt/mpi/sparc32/mpih-rshift.S, libgcrypt/mpi/sparc32/udiv.S,
357 libgcrypt/mpi/sparc32v8/Manifest, libgcrypt/mpi/sparc32v8/distfiles,
358 libgcrypt/mpi/sparc32v8/mpih-mul1.S,
359 libgcrypt/mpi/sparc32v8/mpih-mul2.S,
360 libgcrypt/mpi/sparc32v8/mpih-mul3.S, libgcrypt/mpi/supersparc/Manifest,
361 libgcrypt/mpi/supersparc/distfiles,
362 libgcrypt/mpi/supersparc/udiv.S, libgcrypt/mpi/m68k/mc68020/distfiles
363 libgcrypt/mpi/m68k/mc68020/Manifest,
364 libgcrypt/mpi/m68k/mc68020/mpih-mul1.S,
365 libgcrypt/mpi/m68k/mc68020/mpih-mul2.S,
366 libgcrypt/mpi/m68k/mc68020/mpih-mul3.S,
367 libgcrypt/mpi/pentium4/mmx/distfiles,
368 libgcrypt/mpi/pentium4/mmx/mpih-lshift.S,
369 libgcrypt/mpi/pentium4/mmx/mpih-rshift.S,
370 libgcrypt/mpi/pentium4/sse2/distfiles,
371 libgcrypt/mpi/pentium4/sse2/mpih-add1.S,
372 libgcrypt/mpi/pentium4/sse2/mpih-mul1.S,
373 libgcrypt/mpi/pentium4/sse2/mpih-mul2.S,
374 libgcrypt/mpi/pentium4/sse2/mpih-mul3.S,
375 libgcrypt/mpi/pentium4/sse2/mpih-sub1.S: Remove.
376
377 2010-03-17 Corinna Vinschen <corinna@vinschen.de>
378
379 * autoload.cc (Auto): Create autoload code in an executable section
380 called .autoload_text to avoid problems with DEP.
381
382 2010-03-14 Christopher Faylor <me+cygwin@cgf.cx>
383
384 * Makefile.am: Add a setup-src target.
385
386 2010-03-14 Charles Wilson <cygwin@cwilson.fastmail.fm>
387
388 Support xz and lzma decompression via liblzma
389 * Makefile.am: Add -DLZMA_API_STATIC to AM_CPPFLAGS,
390 -lzma to setup_LDADD, and -static-libtool-libs to
391 setup_LDFLAGS. Update setup_SOURCES.
392 * compress.cc: Update includes.
393 (compress::decompress): Use compress_xz rather than
394 compress_lzma; compress_xz supports both xz and lzma
395 decompression.
396 * compress_xz.h: New.
397 * compress_xz.cc: New.
398 * compress_lzma.h: Removed.
399 * compress_lzma.cc: Removed.
400 * lzma-sdk/LzmaDec.c: Removed.
401 * lzma-sdk/LzmaDec.h: Removed.
402 * lzma-sdk/Types.h: Removed.
403
404 2010-03-13 DJ Delorie <dj@redhat.com>
405
406 * nio-ftp.c (read): Read RETR status code on EOF to avoid
407 deadlock with PASV.
408
409 2010-03-01 Corinna Vinschen <corinna@vinschen.de>
410
411 * filemanip.cc (mklongpath): Skip "." and ".." path components to
412 avoid error messages.
413
414 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
415
416 * filemanip.cc (mklongpath): Simplify backslash folding.
417
418 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
419
420 * filemanip.cc (transform_chars): Drop function.
421 (mklongpath): Call mbrtowc in a loop rather than just mbstowcs.
422 Transform characters on the fly. Fold multiple backslashes into one.
423 Drop trailing backslash.
424
425 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
426
427 * choose.cc (ChooserPage::PlaceDialog): Only skip resizing window
428 in fully-unattended mode, not chooser-only mode.
429 (ChooserPage::OnUnattended): Return appropriate status to run page
430 or not according to kind of unattended mode.
431 * choose.h (ChooserPage::OnUnattended): Remove inline implementation
432 and retain prototype only.
433 * main.cc (PackageManagerOption): New boolean option.
434 (main): Take it into account when setting unattended_mode.
435 * proppage.cc (PropertyPage::DialogProc): Use new enum type when
436 setting unattended_mode.
437 * state.cc (unattended_mode): Change from bool to enum attend_mode.
438 * state.h (enum attend_mode): Declare new enum type.
439 (unattended_mode): Update extern declaration to use it.
440
441 2010-02-04 Corinna Vinschen <corinna@vinschen.de>
442
443 * win32.cc (NTSecurity::GetPosixPerms): Return NULL security descriptor
444 if is_legacy is set.
445 (NTSecurity::SetPosixPerms): Remove.
446 * win32.h (NTSecurity::GetPosixPerms): Remove declaration.
447
448 2010-02-02 Corinna Vinschen <corinna@vinschen.de>
449
450 * desktop.cc (make_link): Use 0 default permissions when creating files
451 and directories.
452 * download.cc (download_one): Ditto.
453 * ini.cc (do_remote_ini): Ditto.
454 * localdir.cc (offer_to_create): Ditto.
455 * filemanip.cc (nt_wfopen): Use Windows default permissions if perms
456 is set to 0.
457 * mkdir.cc (mkdir_p): Ditto if mode is set to 0.
458
459 2010-01-29 Christopher Faylor <me+cygwin@cgf.cx>
460
461 * mount.cc (read_mounts_9x): Preserve old way of doing things when
462 is_legacy.
463
464 2010-01-28 Christopher Faylor <me+cygwin@cgf.cx>
465
466 * desktop.cc (make_link): Preserve old way of doing things when
467 is_legacy.
468 (make_cygwin_bat): Ditto.
469 (save_icon): Ditto.
470 * mount.cc (read_mounts): Ditto.
471 (set_root_dir): Ditto.
472 * root.cc (load_dialog): Ditto.
473 (save_dialog): Ditto.
474 * install.cc (Installer::installOne): Don't install anything if there
475 is no canonical file associated with source.
476 (do_install_thread): Set up old-style registry entries if is_legacy
477 rather than just keying on whether this is Windows NT.
478 * io_stream_file.cc (io_stream_file::exists): Redefine "exists" to mean
479 "it's a file".
480
481 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
482
483 * archive_tar.c (archive_tar_file::read): Always set read_something
484 even for zero-length files.
485
486 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
487
488 * archive_tar.h (archive_tar_file::read_something): New member.
489 * archive_tar_file.cc (archive_tar_file::archive_tar_file): Don't reset
490 state unless we've actually read something.
491 (archive_tar_file::read): Set read_something variable here to indicate
492 that we've read something from the tar file.
493
494 2010-01-13 Christopher Faylor <me+cygwin@cgf.cx>
495
496 * localdir.cc (LocalDirPage::OnNext): Strip trailing slashes.
497
498 2009-12-27 Christopher Faylor <me+cygwin@cgf.cx>
499
500 * main.cc (dyn_AttachConsole): Make static.
501 (dyn_GetLongPathName): New variable.
502 (set_dynaddr): New function.
503 (set_cout): Don't set dyn_AttachConsole here.
504 (set_legacy): Don't attempt to call function which does not exist in
505 older versions of NT.
506 (main): Call set_dynaddr to set dynamic load addresses.
507
508 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
509
510 * ini.h: Use is_legacy to control setup.ini names.
511 * main.cc (set_legacy): New function.
512 (main): Call set_legacy with program name to determine if this is
513 supposed to be an installation of the legacy version of cygwin. Issue
514 a warning on attempt to install legacy on Windows NT class system.
515
516 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
517
518 * package_message (packagemessage::display): Avoid displaying a message
519 when in unattended mode.
520
521 2009-12-22 Corinna Vinschen <corinna@vinschen.de>
522
523 * win32.h (isdirsep): Define to replace local isslash definitions.
524 * UserSettings.cc (UserSettings::open_settings): Remove isslash.
525 Use isdirsep instead of isslash.
526 * filemanip.cc (mklongpath): Ditto.
527 * root.cc (directory_is_rootdir): Ditto.
528 * localdir.cc (LocalDirSetting::save): Avoid consecutive backslashes
529 in setup log file paths.
530 * main.cc (main): Ditto.
531
532 2009-12-21 Christopher Faylor <me+cygwin@cgf.cx>
533
534 * choose.cc (ChooserPage::PlaceDialog): Put *correct* size in
535 WINDOWPLACEMENT length field.
536
537 2009-12-18 Corinna Vinschen <corinna@vinschen.de>
538
539 Throughout, revert prototypes and methods set_mtime_and_mode to
540 set_mtime and only care for the file timestamp.
541
542 Throughout, accommodate additional mode_t parameter in call to
543 io_stream::open.
544
545 * IOStreamProvider.h (IOStreamProvider::open): Add mode_t parameter.
546 * archive.cc (archive::extract_file): Reorder creation of in and tmp
547 to get the file mode from the tar archive earlier. Call io_stream::open
548 with additional mode from tar archive. Accommodate reversion to
549 set_mtime.
550 * filemanip.cc (nt_wfopen): Remove retry loop. Instead initialize
551 OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
552 perms to create correct ACL on file creation. Remove subsequent call
553 to nt_sec.SetPosixPerms.
554 * io_stream.cc (io_stream::open): Take additional mode_t parameter
555 and connect through to IOStreamProvider's open.
556 * io_stream.h (io_stream::open): Add mode_t parameter.
557 * io_stream_cygfile.cc (CygFileProvider::open): Ditto.
558 (io_stream_cygfile::io_stream_cygfile): Ditto. Call nt_wfopen with
559 incoming mode_t parameter. Make sure .exe and .dll files always
560 have execute permissions set.
561 (io_stream_cygfile::set_mtime): Remove retry loop and open file with
562 just GENERIC_WRITE access.
563 * io_stream_cygfile.h (io_stream_cygfile::io_stream_cygfile): Add mode_t
564 parameter.
565 * io_stream_file.cc (FileProvider::open): Ditto.
566 (io_stream_file::io_stream_file): Ditto. Call nt_wfopen with incoming
567 mode_t parameter.
568 * io_stream_file.h (io_stream_file::io_stream_file): Add mode_t
569 parameter.
570 * io_stream_memory.h (class io_stream_memory): Remove mode member.
571 Just return 0 from get_mode.
572 * mkdir.cc (mkdir_p): Remove retry loop. Instead initialize
573 OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
574 perms to create correct ACL on file creation. Remove subsequent call
575 to nt_sec.SetPosixPerms.
576 * mklink2.cc (mkcygsymlink_nt): Remove retry loop. Instead initialize
577 SECURITY_ATTRIBUTES with matching POSIX perms to create correct ACL on
578 file creation.
579 * win32.cc (NTSecurity::GetPosixPerms): New function to generate
580 POSIX ACL. Default to current owner and current primary group for
581 owner/group permissions.
582 (NTSecurity::SetPosixPerms): Let GetPosixPerms create the DACL.
583 (NTSecurity::setAdminGroup): Set groupSID to admins SID if successful.
584 (NTSecurity::setDefaultSecurity): Store user SID in ownerSID member.
585 Default groupSID to original primary group.
586 * win32.h (struct acl_t): Define here.
587 (class NTSecurity): Rename ownerSID and groupSID to cr_ownerSID and
588 cr_groupSID. Change throughout. Add members ownerSID and groupSID.
589 Declare new method GetPosixPerms.
590
591 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
592
593 * filemanip.cc (nt_wfopen): Only call nt_sec.SetPosixPerms if we have
594 WRITE_DAC access.
595 * mkdir.cc (mkdir_p): Ditto.
596
597 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
598
599 * filemanip.cc (nt_wfopen): Fix requested access rights. Retry
600 without WRITE_DAC access on access denied. Add comment.
601 * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode): Ditto.
602 * mkdir.cc (mkdir_p): Ditto.
603 * mklink2.cc (mkcygsymlink_nt): Ditto.
604
605 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
606
607 * localdir.cc (LocalDirSetting::save): Call mkdir_p with isadir set
608 since /var/log is a dir.
609
610 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
611
612 * UserSettings.cc (UserSettings::open_settings): Never add more than
613 one slash.
614 * filemanip.cc (tfx_chars): Align to Cygwin's transformation table.
615 * localdir.cc (LocalDirSetting::save): Call mkdir_p with DOS path.
616
617 2009-12-16 Christopher Faylor <me+cygwin@cgf.cx>
618
619 * package_message.h: New file.
620
621 2009-12-13 Christopher Faylor <me+cygwin@cgf.cx>
622
623 * IniDBBuilder.h (buildMessage): Define for base class.
624 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildMessage): Define.
625 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildMessage): Declare.
626 * PickPackageLine.cc: Pass pointer to package to "pick" throughout,
627 where appropriate.
628 * PickView.cc: Ditto.
629 * install.cc: Ditto.
630 * package_meta.cc: Ditto.
631 * prereq.cc: Ditto.
632 * package_version.cc: Ditto.
633 (packageversion::pick): Add pkg pointer as second argument. Display
634 message where appropriate.
635 * package_version.h (packageversion::pick): Add pkg pointer as second
636 argument.
637 * package_meta.h (packagemeta::mesage): Define.
638 (packagemeta::set_message): Define.
639 * inilex.ll: Properly return MESSAGE token.
640 * iniparse.yy: Handle message: keyword.
641
642 2009-12-08 Dave Korn <dave.korn.cygwin@gmail.com>
643
644 * localdir.cc (offer_to_create): New function.
645 (browse_cb): Handle selection changed and validate failed
646 callbacks, and call offer_to_create where appropriate.
647 (browse): Set new dialog style flags in browser info.
648 (LocalDirPage::OnNext): Replace call to mkdir_p with offer to
649 create or error message dialog display, allow proceeding to
650 chooser even if local dir does not exist in unattend mode or
651 if user insists, and fix small memory leak.
652
653 * res.rc (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define new
654 string resources.
655 * resource.h (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define
656 corresponding resource ID numbers.
657
658 2009-12-03 Corinna Vinschen <corinna@vinschen.de>
659
660 * main.cc (WinMain): Disable running on Windows 9x. Show message box
661 instead and exit.
662
663 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
664
665 (ChooserPage::createListview): When nothing is found in the "All"
666 category, pass an empty static dummy category object to the PickView
667 constructor, instead of trying to dereference not-found iterator.
668
669 2009-11-23 Corinna Vinschen <corinna@vinschen.de>
670
671 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Don't try to
672 close invalid handle.
673 * io_stream_file.cc (io_stream_file::get_size): Ditto
674
675 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
676
677 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Don't loop forever
678 retrying ini file download/parse if it errors in unattended mode.
679
680 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
681
682 * package_meta.cc (CategoryOption): New StringOption for '-C'.
683 (parseNames): New helper subroutine abstracts string parsing from ...
684 (packagemeta::isManuallyWanted): Use it, and check for category names
685 from CategoryOption as well as individual package names.
686 * package_db.cc (packagedb::fillMissingCategory): Don't check for
687 manually-wanted packages until after initialising all the categories.
688
689 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
690
691 * localdir.cc (LocalDirSetting::LocalDirSetting): Restore -l option.
692
693 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
694
695 * site.cc: Add #include of BoolOption header from libgetopt.
696 (OnlySiteOption): New BoolOption for command-line -O option.
697 (get_site_list): Respect BoolOption by not downloading mirror
698 list, nor using nor updating cached mirrors.
699
700 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
701
702 * download.cc (do_download_thread): Only retry an incomplete download
703 a limited number of times in unattended mode.
704
705 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
706
707 * main.cc (main_display): Use apartment-, not multi- threading model
708 when initialiseing COM.
709
710 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
711
712 * localdir.cc (browse): Make title text depend on what we do.
713 (LocalDirPage::OnNext): If we plan to download, try to create directory
714 before cd'ing into it.
715
716 2009-11-03 Corinna Vinschen <corinna@vinschen.de>
717
718 * mkdir.cc: Include sys/stat.h unconditionally.
719 (mkdir_p): Add S_IFDIR flag in call to nt_sec.SetPosixPerms.
720 * win32.cc: Include sys/stat.h.
721 (NTSecurity::SetPosixPerms): Add CREATOR OWNER, CREATOR GROUP, and
722 Everyone inheritance-only entries when setting a directory DACL.
723 (NTSecurity::initialiseWellKnownSIDs): Create SIDs for CREATOR OWNER and
724 CREATOR GROUP.
725 * win32.h (class NTSecurity): Add members ownerSID and groupSID.
726
727 2009-10-03 Andy Koppe <andy.koppe@gmail.com>
728
729 * main.cc (main): Make sure C runtime uses same codepage as GUI.
730
731 2009-09-20 Christopher Faylor <me+cygwin@cgf.cx>
732
733 * main (set_cout): Really do attach to a console if stdout is "bad".
734
735 2009-09-18 Andy Koppe <andy.koppe@gmail.com>
736
737 * root.cc (string orig_root_dir): New variable.
738 (check_if_enable_next): Show warning against installing Cygwin into
739 disk root only if the root directory has actually been changed.
740 * res.rc: Make the root dir warning a bit more meaningful, and refrain
741 from using uppercase.
742
743 2009-09-18 Christopher Faylor <me+cygwin@cgf.cx>
744
745 * choose.cc (ChooserPage::OnBack): Revert to non-maximized when
746 returning to mirror from package selection.
747
748 2009-09-18 Dave Korn <dave.korn.cygwin@gmail.com>
749
750 * site.cc (get_site_list): Use empty string if user settings
751 return NULL pointer for cached mirrors list.
752 (SiteSetting::getSavedSites): Do nothing if user settings return
753 NULL pointer for last mirror URL.
754
755 2009-08-21 Christopher Faylor <me+cygwin@cgf.cx>
756
757 * site.cc (SiteSetting::registerSavedSite): Fix comment.
758
759 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
760
761 * main.cc (set_cout): Don't reset stdout if we already have a stdout.
762
763 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
764
765 * choose.cc (ChooserPage::ChooserPage): Use more specific name for
766 saving window settings.
767 (ChooserPage::~ChooserPage): Ditto.
768
769 2009-07-01 Dave Korn <dave.korn.cygwin@gmail.com>
770
771 * PickView.h (PickView::total_delta_x): New int member.
772 (PickView::set_header_column_order): Add prototype.
773 * PickView.cc (PickView::set_header_column_order): New function,
774 broken out from ...
775 (PickView::set_headers): ... here. Call it.
776 (PickView::init_headers): Apply total_delta_x to last_col width.
777 (PickView::PickView): Initialise new total_delta_x member to zero.
778 (PickView::WindowProc): Use set_header_column_order to find and
779 adjust final column for both sets of headers.
780
781 2009-06-29 Christopher Faylor <me+cygwin@cgf.cx>
782
783 * SourceSetting.cc (SourceSetting::SourceSetting): Restore proper
784 remembrane of last source setting.
785 * choose.cc (ChooserPage::ChooserPage): Potentially retrieve dialog
786 placement info.
787 (ChooserPage::~ChooserPage): Save geometry settings if the user moved
788 or resized the page.
789 (ChooserPage::PlaceDialog): Rename from MaximizeDialog. Accommodate
790 changed user placement settings.
791 (ChooserPage::OnActivate): MaximizeDialog -> PlaceDialog.
792 (ChooserPage::OnNext): Ditto.
793 * choose.h (ChooserPage::~ChooserPage): Define.
794 (ChooserPage::cmd_show): Delete.
795 (ChooserPage::saved_geom): New field.
796 (ChooserPage::window_placement): Ditto.
797 (ChooserPage::pre_chooser_placement): Ditto.
798 (ChooserPage::PlaceDialog): Rename from MaximizeDialog.
799
800 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
801
802 * ConnectionSetting.cc (ConnectionSetting::ConnectionSetting): Remove
803 old code which no longer makes sense when run from a constructor.
804 * SourceSetting.cc (SourceSetting::SourceSetting): Ditto.
805 * localdir.cc (LocalDirSetting::LocalDirSetting): Ditto. Fix typo
806 which caused saved settings to be ignored.
807
808 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
809
810 * UserSettings.cc (UserSettings::UserSettings): settings.rc -> setup.rc.
811
812 2009-06-28 Corinna Vinschen <corinna@vinschen.de>
813
814 * desktop.cc (DesktopSetupPage::OnInit): Drop CoInitialize call here.
815 * main.cc (main_display): Use InitCommonControlsEx rather than
816 InitCommonControls per MSDN. Call CoInitializeEx and create IShellLink
817 instance here to workaround a problem on Windows 7. Release IShellLink
818 instance and call CoUninitialize on exit.
819 * mklink.cc (sl): Change to global variable. Drop call to
820 CoCreateInstance here. Check if sl is valid before using it.
821
822 2009-06-27 Christopher Faylor <me+cygwin@cgf.cx>
823
824 Preliminary option handling revamp.
825 Throughout, change load/save methods to constructors/destructors which
826 use new UserSettings methods. Do not inherit from UserSetting class.
827 * KeysSetting.cc (ExtraKeysSetting *ExtraKeysSetting::global): Define.
828 (ExtraKeysSetting::ExtraKeysSetting): Initialize some class members use
829 new UserSettings methods.
830 (ExtraKeysSetting::~ExtraKeysSetting): Use new UserSettings method.
831 * Makefile.am (setup_SOURCES): Eliminate UserSetting.h and
832 UserSetting.cc.
833 * UserSettings.cc: Complete rewrite. Implements new UserSettings
834 class methods.
835 * UserSettings.h: Complete rewrite. Defines new UserSettings class
836 methods.
837 * crypto.cc (ExtraKeys): Delete.
838 (add_key_from_sexpr): Use ExtraKeysSetting::instance rather than
839 ExtraKeys.
840 (verify_ini_file_sig): Ditto.
841 * io_stream.h (io_stream): Define virtual << operators.
842 * localdir.cc (localDir): Delete.
843 * main.cc: Include headers which declar new dynamically invoked
844 classes.
845 (main_display): New function. Controls order of option setting and
846 property page setup. Add new class invocations to force option setting
847 initializtion.
848 (main): Invoke new UserSettings class constructor to populate new
849 settings class. Call main_display() to do most of the setup work.
850 Call Settings.save () to save all settings.
851 * net.cc (theSetting): Delete.
852 * site.cc (SiteSetting::save): Record whether we've saved the
853 information already.
854 (get_site_list): Just use value returned from new UserSettings method
855 rather than parsing a file.
856 (SiteSetting::getSavedSites): Ditto.
857 (write_cache_list): Use UserSettings operator to store mirror cache.
858 (save_cache_file): Ditto.
859 * source.cc (theSetting): Delete.
860
861 * win32.h: gcc-4 accommodation.
862
863 2009-06-26 Dave Korn <dave.korn.cygwin@gmail.com>
864
865 * res.rc (SETUP_STANDARD_DIALOG_W, SETUP_STANDARD_DIALOG_H,
866 SETUP_SMALL_DIALOG_W, SETUP_SMALL_DIALOG_H): Add constant defines
867 for dialog sizes.
868 (SETUP_STANDARD_DIALOG_DIMS, SETUP_SMALL_DIALOG_DIMS): Add helper
869 macros for (W,H) pairs of dimensions.
870 (SETUP_HEADICON_X): New global constant define.
871 (IDD_SOURCE, IDD_VIRUS, IDD_LOCAL, IDD_ROOT, IDD_SITE, IDD_NET,
872 IDD_INSTATUS, IDD_PROXY_AUTH, IDD_NET_AUTH, IDD_DESKTOP,
873 IDD_FTP_AUTH DIALOG, IDD_DROPPED): Use the above for dialog sizes,
874 horizontal rules and icon positioning.
875 (SETUP_KPCE_W): New define for radio-button size.
876 (SETUP_VIEWCAP_W, SETUP_VIEWCAP_X, SETUP_VIEW_W, SETUP_VIEW_X,
877 SETUP_EXP_X, SETUP_CURR_X, SETUP_PREV_X, SETUP_KEEP_X): Add defines
878 for right-aligned controls.
879 (SETUP_SEARCH_X, SETUP_SEARCH_W, SETUP_SEARCHTEXT_X,
880 SETUP_SEARCHTEXT_W, SETUP_CLEAR_X, SETUP_CLEAR_W): Likewise defines
881 for left-aligned controls.
882 (IDD_CHOOSE): Use all the above, and reformat with whitespace
883 between args for clarity.
884
885 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
886
887 * Makefile.am (setup_LDADD): Add -lshlwapi.
888 * PickView.cc: Include shlwapi.h.
889 (PickView::setViewMode): Compare package name with search string
890 case-insensitive.
891 (PickView::insert_category): Ditto.
892
893 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
894
895 * script.cc (init_run_script): Don't set $HOME to /tmp. It breaks
896 mkpasswd -c.
897
898 2009-06-25 Corinna Vinschen <corinna@vinschen.de>
899
900 * script.cc (init_run_script): Reinstantiate accidentally removed
901 setting of sh.
902
903 2009-06-22 Christopher Faylor <me+cygwin@cgf.cx>
904
905 * script.cc (init_run_script): Revert to initializing cmd based on OS
906 type.
907
908 2009-06-22 Corinna Vinschen <corinna@vinschen.de>
909
910 * script.cc (Script::run): Start bash without -c option.
911
912 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
913
914 * threebar.cc (ThreeBarProgressPage::ins_dialog): Move variable to more
915 appropriate class.
916 (ThreeBarProgressPage::MaximizeDialog): Move function to more
917 appropriate class.
918 (ThreeBarProgressPage::OnMessageApp): Remove MaximizeDialog calls.
919 * threebar.h: Remove maximize handling.
920 * choose.cc (ChooserPage::ins_dialog): New variable.
921 (ChooserPage::MaximizeDialog): New function.
922 (ChooserPage::ChooserPage): Remove unneeded handling of nCmdShow.
923 (ChooserPage::OnActivate): Maximize chooser page via MaximizeDialog.
924 (ChooserPage::OnNext): Revert chooser page to normal before returning.
925 * main.cc (main): Don't pass cmd_show to ChooserPage.
926 * propsheet.cc (PropSheetProc): Accommodate change in class for
927 SetHwndDialog.
928
929 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
930
931 * script.cc (shells): Delete.
932 (cmd): Just assign to "cmd.exe" since we're always running on NT now.
933 (sanitize_PATH ): New function.
934 (init_run_script): Ensure that we're only called once. Strip
935 environment of non-pertinent stuff. Call sanitize_PATH to remove
936 non-standard stuff from the PATH. Set up a few standard environment
937 variables.
938
939 2009-06-16 Corinna Vinschen <corinna@vinschen.de>
940
941 * mount.cc (create_install_root): Don't load mount table again.
942 (read_mounts_nt): Don't break loop, rather continue when not being
943 able to open "Cygwin" registry key.
944
945 2009-06-03 Ralph Hempel <rhempel@bmts.com>
946
947 * source.cc: Add support for both -D and -L on the command line.
948
949 2009-06-03 Corinna Vinschen <corinna@vinschen.de>
950
951 * filemanip.cc (unlink): Rename from DeleteFileW. Take additional
952 parameter to indicate file type to unlink. Use in flags given to
953 NtCreateFile.
954 (DeleteFileW): Just call unlink from here with FILE_NON_DIRECTORY_FILE
955 flag.
956 (RemoveDirectoryW): Ditto with FILE_DIRECTORY_FILE flag.
957
958 2009-05-30 Charles Wilson <cygwin@cwilson.fastmail.fm>
959
960 * script.cc (Script::run): Really start bash with --norc
961 --noprofile options.
962
963 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
964
965 * script.cc (Script::run): Start bash with --norc --noprofile options.
966
967 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
968
969 * filemanip.cc (struct _FILE_RENAME_INFORMATION): Remove definition.
970 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Set
971 default permission for .exe files to 0755.
972 (io_stream_cygfile::mklink): Try to create real hardlink first. Add
973 comment.
974 * mklink2.cc (mkcyghardlink): New function to create real hardlink.
975 * mklink2.h (mkcyghardlink): Declare.
976 * mount.cc (from_fstab_line): Set got_usr_bin and got_usr_lib flags
977 if /usr/bin and /usr/lib mount points exist in /etc/fstab.
978 (add_usr_mnts): Only create mounts if corresponding got_usr_bin and
979 got_usr_lib flags are not set.
980 (read_mounts_nt): Initialize got_usr_bin and got_usr_lib to false.
981 Always call add_usr_mnts, even if from_fstab succeeded.
982 * ntdll.h: Include ddk/ntifs.h.
983
984 2009-05-12 Corinna Vinschen <corinna@vinschen.de>
985
986 * filemanip.cc (GetFileAttributesW): Add accidentally omited
987 OBJ_CASE_INSENSITIVE when creating OBJECT_ATTRIBUTES.
988 (SetFileAttributesW): Ditto.
989 (MoveFileW): Ditto.
990 (DeleteFileW): Ditto.
991 (RemoveDirectoryW): Ditto.
992 (nt_wfopen): Ditto.
993
994 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
995
996 * localdir.cc (load_dialog): Choose description string based on install
997 type.
998 * res.rc (IDD_LOCAL_DIR): Replace static description text with
999 IDC_LOCAL_DIR_DESC.
1000 * resource.h (IDS_LOCAL_DIR_DOWNLOAD): New string resource id.
1001 (IDS_LOCAL_DIR_INSTALL): Likewise.
1002 (IDC_LOCAL_DIR_DESC): New text control resource id.
1003
1004 2009-05-11 Christopher Faylor <me+cygwin@cgf.cx>
1005
1006 * main.cc (set_cout): Simplify code a little.
1007
1008 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
1009
1010 * choose.cc (ChooserPage::OnMessageCmd): Clear search filter when
1011 clear button clicked.
1012 * res.rc (IDD_CHOOSE_DIALOG): Add IDC_CHOOSE_CLEAR_SEARCH button.
1013 * resource.h (IDC_CHOOSE_CLEAR_SEARCH): New button resource ID.
1014
1015 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
1016
1017 * UserSettings.cc (UserSettings::settingFileForLoad): Fix local load
1018 path strings.
1019 (UserSettings::settingFileForSave): Never store in cwd.
1020 * autoload.c (ntdll): Autoload ntdll.dll functions here.
1021 * desktop.cc (make_cygwin_bat): Use GetFileAttributesW rather than
1022 _waccess. Use nt_wfopen instead of _wfopen.
1023 (save_icon): Ditto.
1024 * filemanip.cc (get_file_size): Call io_stream::open with empty mode
1025 string to avoid opening file twice.
1026 (GetFileAttributesW): New function to replace Win32 function with
1027 equivalent function opening files with backup intent.
1028 (SetFileAttributesW): Ditto.
1029 (MoveFileW): Ditto.
1030 (DeleteFileW): Ditto.
1031 (RemoveDirectoryW): Ditto.
1032 (nt_wfopen): New function to replace _wfopen with equivalent function
1033 opening files with backup intent.
1034 * filemanip.h (nt_wfopen): Declare.
1035 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Initalize
1036 lasterr to 0. Allow empty mode and don't open file, if so. Call
1037 nt_wfopen rather than _wfopen.
1038 (io_stream_cygfile::exists): Use GetFileAttributesW rather than
1039 _waccess.
1040 (io_stream_cygfile::get_size): Use CreateFileW/GetFileSize to get
1041 file size on NT.
1042 * io_stream_file.cc (io_stream_file::io_stream_file): Initalize lasterr
1043 to 0. Allow empty mode and don't open file, if so. Call nt_wfopen
1044 rather than _wfopen.
1045 (io_stream_file::exists): Use GetFileAttributesW rather than _waccess.
1046 (io_stream_file::remove): Don't try to remove non-existant file.
1047 (io_stream_file::get_size): Use CreateFileW/GetFileSize to get
1048 file size on NT. Add comment to keep track of 2GB border.
1049 * mkdir.cc: Remove function pointers for ntdll functions.
1050 (init_ntfuncs): Remove function.
1051 (mkdir_p): Drop call to init_ntfuncs. Call ntdll functions directly
1052 rather than over local function pointers.
1053 * ntdll.h: New file.
1054 * postinstall.cc (do_postinstall_reflector): Switch to admins group
1055 as primary group after postinstall scripts have been written.
1056 Explain why.
1057 (do_postinstall): Add comment.
1058 * res.rc: Bump copyright date.
1059 * win32.h (class TokenGroupCollection): Remove.
1060 * win32.cc (TokenGroupCollection::populate): Remove.
1061 (TokenGroupCollection::find): Remove.
1062 (NTSecurity::setDefaultSecurity): Drop reading token groups. Just
1063 try to switch to admins group as primary group.
1064
1065 2009-05-07 Corinna Vinschen <corinna@vinschen.de>
1066
1067 * package_db.cc (ConnectedLoopFinder::doIt): Revert patch from
1068 2008-08-29. Add dumb hardcoded algorithm to make sure base-cygwin
1069 and base-passwd are always the first packages in the postinstall
1070 executable order.
1071
1072 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
1073
1074 * install.cc (Installer::StandardDirs): Add /home with 1777 perms.
1075 * main.cc (main): Drop setting $CYGWIN to nontsec.
1076
1077 2009-04-24 Andrew Punch <andrew@magneticbooks.com.au>
1078
1079 * PickView.h: Add #include <string>.
1080 (PickView::SetPackageFilter): Add new function.
1081 (PickView::packageFilterString): Add new string data member.
1082 * PickView.cc (PickView::setViewMode): Use it to filter names.
1083 (PickView::insert_category): Likewise.
1084 (PickView::PickView): Initialise packageFilterString to blank.
1085 * res.rc (IDD_CHOOSE): Add IDC_CHOOSE_SEARCH_EDIT and
1086 IDC_CHOOSE_SEARCH_LABEL controls.
1087 (IDS_SEARCH_TOOLTIP): Add new string resource.
1088 * resource.h (IDS_SEARCH_TOOLTIP): New string resource ID.
1089 (IDC_CHOOSE_SEARCH_EDIT): New edit control ID.
1090 (IDC_CHOOSE_SEARCH_LABEL): Mew static text control ID.
1091 * choose.cc (ChooserControlsInfo[]): Add IDC_CHOOSE_SEARCH_LABEL
1092 and IDC_CHOOSE_SEARCH_EDIT controls to auto-resize list.
1093 (ChooserPage::OnInit): Add tooltip to search edit box.
1094 (ChooserPage::OnMessageCmd): Handle EN_CHANGE event from
1095 IDC_CHOOSE_SEARCH_EDIT.
1096
1097 2009-04-24 Dave Korn <dave.korn.cygwin@gmail.com>
1098
1099 * propsheet.cc (PropSheetWndProc): Re-enable hasMinRect.
1100
1101 2009-04-23 Corinna Vinschen <corinna@vinschen.de>
1102
1103 * win32.h (NTSecurity::primaryGroupSID): Convert to a structure for
1104 direct usage in GetTokenInformation.
1105 (NTSecurity::osid): Remove.
1106 (NTSecurity::setAdminGroup): Declare.
1107 * win32.cc (NTSecurity::resetPrimaryGroup): Accommodate change to
1108 primaryGroupSID. Add log output.
1109 (NTSecurity::setAdminGroup): New method.
1110 (NTSecurity::setDefaultSecurity): Use local structures for getting
1111 TOKEN_USER and setting TOKEN_OWNER information. Accommodate change to
1112 primaryGroupSID. Slightly enhance log output.
1113 Only set primary group to Administrators group when installing for
1114 all users. Call setAdminGroup to do it.
1115
1116 2009-04-22 Corinna Vinschen <corinna@vinschen.de>
1117
1118 * mklink2.cc (mkcygsymlink_nt): Allow 4K chars in symlink. Use strncat
1119 rather than strcat.
1120 * postinstall.cc (do_postinstall): Reset user token to original
1121 primary group.
1122 * win32.cc (NTSecurity::resetPrimaryGroup): New method.
1123 (NTSecurity::setDefaultSecurity): Store original primary group in
1124 new NTSecurity member primaryGroupSID. Set primary group in user token
1125 to Administrators group for admin users. Align comment.
1126 * win32.h (class NTSecurity): Add member primaryGroupSID.
1127 (NTSecurity::resetPrimaryGroup): Declare.
1128
1129 2009-04-09 Christopher Faylor <me+cygwin@cgf.cx>
1130
1131 * main.cc (set_cout): Load AttachConsole dynamically to avoid using it
1132 on older Windows which don't support it.
1133
1134 2009-03-21 Christopher Faylor <me+cygwin@cgf.cx>
1135
1136 * LogFile.cc (LogFile::endEntry): Output messages to stdout.
1137 * main.cc (set_cout): New function. Sets stdout to console if one
1138 exists.
1139 (main): Redirect stdout to console if unattended_mode or help option is
1140 specified and no stdout is available.
1141
1142 2009-03-21 Terry Fleming <terrynfleming@gmail.com>
1143 Christopher Faylor <me+cygwin@cgf.cx>
1144
1145 * propsheet.cc (PropSheetWndProc): Detect a Window closing event and
1146 issue an "Are you sure" message.
1147
1148 2008-08-29 Corinna Vinschen <corinna@vinschen.de>
1149
1150 * package_db.cc (ConnectedLoopFinder::doIt): Add code to get a basic
1151 order into the dependency list. Add comment to explain why.
1152
1153 2008-08-22 Brian Dessent <brian@dessent.net>
1154
1155 * KeysSetting.cc: Include string.h for memcpy et al.
1156 * filemanip.cc: Include stdlib.h for for mbstowcs.
1157 * io_stream_cygfile.h: Update cygmkdir_p prototype for mode_t.
1158 * mount.cc (conv_fstab_spaces): Silence gcc 4.3 warning ("parentheses
1159 around assignment used as truth value").
1160
1161 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
1162
1163 * install.cc (Installer::StandardDirs): Additionally create /var/log
1164 dir. Set mode of /var/log and /var/run to 01777.
1165 * localdir.cc (LocalDirSetting::save): Create /var/log with 01777
1166 permissions before creating setup.log files.
1167
1168 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
1169
1170 * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode):
1171 Accommodate SetPosixPerms being method of nt_sec.
1172 * mkdir.cc (mkdir_p): Ditto.
1173 * mklink2.cc (mkcygsymlink_nt): Ditto.
1174 * win32.cc: Slightly rearrange.
1175 (NTSecurity::SetPosixPerms): Make SetPosixPerms method of NTSecurity
1176 rather than stand-alone function. Remove dynamic allocation for
1177 security descriptors in favor of static allocation. Drop out
1178 preliminary if well-known SIDs are not initialized. Slightly change
1179 and rearrange comments. Add creating NULL SID ACE for special
1180 permissions.
1181 (NTSecurity::initialiseWellKnownSIDs): New function, replacing
1182 NTSecurity::initialiseEveryOneSID. Initialize all well-known SIDs
1183 here. Set wellKnownSIDsinitialized to true on success.
1184 (NTSecurity::setDefaultDACL): Don't call initialiseEveryOneSID. Change
1185 comment. Drop setting failed. Don't open process token here.
1186 (NTSecurity::setBackupPrivileges): New function.
1187 (NTSecurity::setDefaultSecurity): Call initialiseWellKnownSIDs.
1188 Open process token here. Disable setting primary group. Add comment
1189 to explain why.
1190 * win32.h (SetPosixPerms): Move to NTSecurity.
1191 (class NTSecurity): Add SetPosixPerms method. Make all SIDs private
1192 again. Make NoteFailedAPI private. Add setBackupPrivileges method.
1193 Rename usid to UsersSID. Remove failed method and _failed member.
1194 Add wellKnownSIDsinitialized accessors and _wellKnownSIDsinitialized
1195 member.
1196
1197 2008-08-19 Corinna Vinschen <corinna@vinschen.de>
1198
1199 * install.cc (struct std_dirs_t): New type.
1200 (class Installer): Change type of StandardDirs to std_dirs_t.
1201 (Installer::StandardDirs): Store filename and mode.
1202 (do_install_thread): Call io_stream::mkpath_p with name and mode from
1203 Installer::StandardDirs.
1204 * main.cc (main): Call setDefaultSecurity on global nt_sec.
1205 * IOStreamProvider.h (IOStreamProvider::mkdir_p): Add mode parameter.
1206 * LogFile.cc (LogFile::log_save): Call io_stream::mkpath_p with 0755
1207 mode.
1208 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
1209 * desktop.cc (make_link): Ditto.
1210 * download.cc (download_one): Ditto.
1211 * ini.cc (do_remote_ini): Ditto.
1212 (do_ini_thread): Ditto.
1213 * package_db.cc (packagedb::flush): Ditto.
1214 * archive.cc (archive::extract_file): Ditto. Call set_mtime_and_mode
1215 with mode from archive. Add code to handle directory permissions as
1216 well.
1217 * archive_tar.cc (archive_tar::get_mtime): Return time_t. Reformat.
1218 (archive_tar::get_mode): New method.
1219 * archive_tar.h (class archive_tar_file): Fix prototypes. Replace
1220 prototype for set_mtime with prototype for set_mtime_and_mode.
1221 (class archive_tar): Ditto.
1222 * archive_tar_file.cc (archive_tar_file::get_mtime): Return time_t.
1223 (archive_tar_file::get_mode): New method returning mode from tar header.
1224 * compress_bz.cc (compress_bz::set_mtime_and_mode): Replace set_mtime.
1225 (compress_bz::get_mtime): Return time_t.
1226 (compress_bz::get_mode): New function.
1227 * compress_gz.cc: Ditto.
1228 * compress_lzma.cc: Ditto.
1229 * io_stream.cc (io_stream::mkpath_p): Take additional file mode.
1230 Call mkdir_p with additional file mode.
1231 * io_stream_cygfile.cc (CygFileProvider::mkdir_p): Take additional file
1232 mode.
1233 (cygmkdir_p): Ditto. Call mkdir_p with additional file mode.
1234 (io_stream_cygfile::set_mtime_and_mode): Replace set_mtime. Call
1235 SetPosixPerms.
1236 * io_stream_file.cc (FileProvider::mkdir_p): Take additional file mode.
1237 (io_stream_file::set_mtime_and_mode): Replace set_mtime.
1238 * mkdir.cc (init_ntfuncs): New function to initialize function pointers
1239 from ntdll.dll.
1240 (mkdir_p): Take additional file mode. On NT, use NT functions to create
1241 directory. Call SetPosixPerms.
1242 * compress_bz.h: Change prototypes accordingly.
1243 * compress_gz.h: Ditto.
1244 * compress_lzma.h: Ditto.
1245 * io_stream.h: Ditto.
1246 * io_stream_cygfile.h: Ditto.
1247 * io_stream_file.h: Ditto.
1248 * io_stream_memory.h: Ditto.
1249 * mkdir.h: Ditto.
1250 * mklink2.cc (mkcygsymlink_nt): Open file with STANDARD_RIGHTS_ALL
1251 access and FILE_FLAG_BACKUP_SEMANTICS flag. Call SetPosixPerms.
1252 * mount.cc (from_fstab): Open file with FILE_FLAG_BACKUP_SEMANTICS.
1253 * script.cc (OutputLog::OutputLog): Call io_stream::mkpath_p with 0755
1254 mode. Open file with FILE_FLAG_BACKUP_SEMANTICS.
1255 * win32.cc (SetPosixPerms): New function to set POSIX-like permissions.
1256 (nt_sec): New global NTSecurity variable.
1257 (NTSecurity::setDefaultDACL): Open token with TOKEN_ADJUST_PRIVILEGES.
1258 (NTSecurity::setDefaultSecurity): Enable SE_BACKUP_NAME and
1259 SE_RESTORE_NAME privileges if available.
1260 * win32.h (SetPosixPerms): Add prototype.
1261 (class NTSecurity): Make everyOneSID and administratorsSID public.
1262 (nt_sec): Declare.
1263
1264 2008-08-14 Corinna Vinschen <corinna@vinschen.de>
1265
1266 * mount.cc (unconvert_slashes): New inline function.
1267 (skip_ws): New inline function.
1268 (find_ws): New inline function.
1269 (conv_fstab_spaces): New inline function.
1270 (from_fstab_line): New function to read single line from fstab file.
1271 (from_fstab): New function to read /etc/fstab file and fill mount
1272 table.
1273 (read_mounts_nt): Call from_fstab after getting setup/rootdir from
1274 registry. Only call add_usr_mnts if no fstab file found.
1275
1276 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1277
1278 * install.cc (Installer::installOne): Skip 46 bytes type tar package
1279 silently.
1280
1281 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1282
1283 * install.cc (Installer::installOne): Use MoveFileExW on NT. Special
1284 case for bug in Windows 2000.
1285 * package_meta.cc (packagemeta::uninstall): Use wide char file functions
1286 on NT.
1287 * win32.h (VersionInfo::major): New method.
1288 (VersionInfo::minor): New method.
1289 (OSMajorVersion): Define.
1290 (OSMinorVersion): Define.
1291
1292 2008-08-12 Corinna Vinschen <corinna@vinschen.de>
1293
1294 Revamp for Cygwin 1.7.
1295 * desktop.cc (make_cygwin_bat): Use wide char file functions on NT.
1296 (save_icon): Ditto.
1297 * filemanip.cc (tfx_chars): New char table for wide char transformation
1298 of reserved FS chars to UNICODE private use area.
1299 (transform_chars): New static function.
1300 (mklongpath): New function to convert multibyte path to wide char
1301 path with long path prefix.
1302 * filemanip.h (mklongpath): Declare.
1303 * ini.h (SETUP_INI_FILENAME): Use setup.ini filenames as defined in
1304 real life (setup-2.ini/setup.ini).
1305 (SETUP_BZ2_FILENAME): Ditto.
1306 * install.cc (do_install_thread): Don't create registry mount points
1307 on NT, rather create setup/rootdir entry.
1308 * io_stream_cygfile.cc: Throughout use wide char file functions on NT.
1309 (io_stream_cygfile::w_str): New method to create wide char path.
1310 * io_stream_cygfile.h (class io_stream_cygfile): Remove lmode member.
1311 Add wname member and w_str method.
1312 * io_stream_file.cc: Throughout use wide char file functions on NT.
1313 (io_stream_file::w_str): New method to create wide char path.
1314 * io_stream_file.h (class io_stream_file): Remove lmode member.
1315 Add wname member and w_str method.
1316 * mkdir.cc (mkdir_p): Use wide char file functions on NT.
1317 * mklink2.cc (mkcygsymlink_9x): Rename from mkcygsymlink. Make static.
1318 (mkcygsymlink_nt): New static function.
1319 (mkcygsymlink): Just call mkcygsymlink_9x or mkcygsymlink_nt dependent
1320 on OS.
1321 * mount.cc (CYGWIN_INFO_CYGWIN_SETUP_REGISTRY_NAME): Define.
1322 (remove1): Move to earlier point in file to avoid declaration.
1323 (remove_mount): Ditto. Make static.
1324 (create_install_root): New function to create setup/rootdir registry
1325 value on NT.
1326 (read_mounts_9x): Rename from read_mounts. Make static. Conditionalize
1327 for OS.
1328 (add_usr_mnts): New static function.
1329 (read_mounts_nt): Ditto, to read mounts on NT.
1330 (read_mounts): Just call read_mounts_nt or read_mounts_9x dependent on
1331 OS.
1332 (set_root_dir): On NT, call read_mounts.
1333 (cygpath): Only add slash for non-root mount to avoid multiple slashes
1334 in resulting path (invalid in long path names).
1335 * mount.h (find_mount): Drop declaration.
1336 (remove_mount): Ditto.
1337 (create_install_root): Add declaration.
1338 (read_mounts): Accommodate new parameter.
1339 * package_db.cc (chosen_db_task): New global variable.
1340 * package_db.h (chosen_db_task): Declare.
1341 * root.cc (check_if_enable_next): Don't use get_root_dir here to
1342 avoid having to call save_dialog in RootPage::OnMessageCmd.
1343 (GetDlgItemRect): New static inline function.
1344 (SetDlgItemRect): Ditto.
1345 (load_dialog): On NT, stretch "Install For" block to full dialog width
1346 and hide "Default Text File Type" block.
1347 (save_dialog): On NT set root_text always to IDC_ROOT_BINARY.
1348 (RootPage::OnMessageCmd): Remove call to save_dialog.
1349 (RootPage::OnNext): Initialize packagedb here the first time, to
1350 avoid fetching wrong data from different previous installation.
1351 * source.cc (save_dialog): Don't initialize packagedb here, rather
1352 just memorize setting in chosen_db_task for the deferred initialization
1353 in RootPage::OnNext.
1354
1355 2008-08-07 Dave Korn <dave.korn.cygwin@gmail.com>
1356
1357 Implement command-line selection of packages to install and make
1358 unattended mode deal with any dialogs that might arise. A joint
1359 effort synthesized from contributions by:
1360
1361 Dr. Frank Lee <rl201@cam.ac.uk>
1362 Bryan Thrall <bryan.thrall@flightsafety.com>
1363 Kohsuke Kawaguchi <kk@kohsuke.org>
1364 Dave Korn <dave.korn.cygwin@gmail.com>
1365
1366 * install.cc (rebootneeded): Don't define statically here.
1367 (do_install_thread): Let exit_msg reflect rebootneeded.
1368 * main.cc (main): If rebootneeded, log it when exiting.
1369 * msg.cc (mbox): In unattended_mode, choose and log default answer.
1370 * package_db.cc (packagedb::fillMissingCategory): Iterate over all
1371 packages adding those selected by packagemeta::isManuallyWanted to
1372 base category so that command-line selections are installed.
1373 * package_meta.cc (PackageOption): Add new StringOption to allow
1374 command-line selection of packages to add to base install.
1375 (packagemeta::isManuallyWanted): New function tests if package was
1376 selected on command-line.
1377 (packagemeta::addToCategoryBase): New function adds package to
1378 "base" category.
1379 * state.cc (rebootneeded): Define here non-static.
1380 * state.h (rebootneeded): Declare here with extern linkage.
1381 * threebar.cc (ThreeBarProgressPage::MaximizeDialog): Don't change
1382 size when running in unattended mode.
1383
1384 2008-08-05 Christopher Faylor <me+cygwin@cgf.cx>
1385
1386 * UserSettings.cc (UserSettings::settingFileForLoad): Look locally for
1387 settings before looking outside of current directory.
1388 * choose.cc (ChooserPage::ChooserPage): Record the property sheet's
1389 current show state via new passed in parameter.
1390 * choose.h (ChooserPage::ChooserPage): Reflect change in argument list.
1391 (ChooserPage::nCmdShow): Define new element.
1392 * main.cc (main): Send current show state to Chooser.
1393 * package_version.cc (packageversion::set_requirements): Increase
1394 recursion check from 5 to 30.
1395 * propsheet.cc (PropSheetWndProc): Register hwndDlg with
1396 ThreeBarProgressPage.
1397 * threebar.cc (ControlAdjuster::ControlInfo): Initialize cmd_show_set.
1398 (ThreeBarProgressPage::MaximizeDialog): New function.
1399 (ThreeBarProgressPage::OnMessageApp): Call MaximizeDialog to maximize
1400 package selection screen and restore when done.
1401 * threebar.h (ThreeBarProgressPage::MaximizeDialog): Declare function.
1402 (ThreeBarProgressPage::cmd_show_set): Declare variable.
1403 (ThreeBarProgressPage::cmd_show): Declare variable.
1404 (ThreeBarProgressPage::ins_dialog): Declare variable.
1405 (ThreeBarProgressPage::SetHwndDialog): Define function.
1406
1407 2008-07-22 Charles Wilson <cygwin@cwilson.fastmail.fm>
1408
1409 Add support for .tar.lzma files (decompress only).
1410
1411 * Makefile.am: Add new files.
1412 * compress.cc (compress::decompress): add support
1413 for compress_lzma.
1414 * compress_lzma.h: new file.
1415 * compress_lzma.cc: new file.
1416 * filemanip.cc (find_tar_ext): add support for
1417 .tar.lzma files.
1418 * install.cc (Installer::installOne): update comments.
1419 * lzma-sdk/LzmaDec.h: new file.
1420 * lzma-sdk/LzmaDec.c: new file.
1421 * lzma-sdk/Types.h: new file.
1422
1423 2008-07-08 Charles Wilson <cygwin@cwilson.fastmail.fm>
1424
1425 * compress.cc (compress::decompress): clean up concrete
1426 decompressor objects on failure -- but in that case, do
1427 NOT destroy original io_stream.
1428 * compress_bz.h (compress_bz::release_original): new method.
1429 (owns_original): new member variable.
1430 * compress_bz.cc (compress_bz::release_original): new method.
1431 (compress_bz::compress_bz): take ownership of parent by default.
1432 (compress_bz::~compress_bz): only delete original if
1433 owns_original is true.
1434 * compress_gz.h (compress_gz::release_original): new method.
1435 (owns_original): new member variable.
1436 * compress_gz.cc (compress_gz::release_original): new method.
1437 (compress_gz::construct): take ownership of parent by default.
1438 (compress_gz::~compress_gz): only delete original if
1439 owns_original is true.
1440
1441 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1442
1443 * configure.in, gpg-error-config-fake: Revert previous removal.
1444
1445 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1446
1447 * net.cc: Correct stray CRLF.
1448
1449 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1450
1451 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Remove nasty hack.
1452 * gpg-error-config-fake: Delete file obsoleted by de-hackification.
1453
1454 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
1455
1456 * configure.in: Disable shared library builds.
1457
1458 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
1459
1460 * Makefile.am: Make and install libraries into common location and use
1461 them from there.
1462 * configure.in: Find gpg-error-config in the libgpg-error/src
1463 subdirectory rather than using the host system's version. Set the
1464 prefix and exec_prefix to a common location for the subdirs so that
1465 useful files will be installed in a common location.
1466
1467 2008-06-22 Dave Korn <dave.korn.cygwin@gmail.com>
1468
1469 Merged across diffs between setup_crypto_branch_branchpoint and
1470 setup_crypto_branch_mergepoint2 from setup_crypto_branch.
1471
1472 * crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
1473 KeysSetting.h, gpg-error-config-fake, cygwin.pub, cyg-pubkey.h,
1474 gpg-key-to-s-expr.sh: New files.
1475 * ini.cc, ini.h, resource.h, res.rc, netio.cc, Makefile.am,
1476 configure.ac, libgetopt++/src/OptionSet.cc: Modified files.
1477
1478 2008-06-21 Dave Korn <dave.korn.cygwin@gmail.com>
1479
1480 * ini.cc (do_remote_ini): Revert misbegotten removal of
1481 not-always-superfluous-after-all added slash in URLs.
1482
1483 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1484
1485 * gpg-packet.h (GPG_KEY_SEXPR_BUF_SIZE): Move from here ...
1486 * crypto.h (GPG_KEY_SEXPR_BUF_SIZE): ... to here.
1487 (GPG_KEY_MAX_COEFF_SIZE): Add related definition.
1488
1489 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1490
1491 * gpg-packet.cc (walk_packets_1): Check packet length field is
1492 valid sane and possible to avoid malicious manipulation.
1493 * ChangeLog: Corrected date on previous commit.
1494
1495 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1496
1497 * crypto.cc (add_key_from_sexpr): Use real buffer size, not debug
1498 constant size.
1499
1500 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1501
1502 * crypto.cc (verify_ini_file_sig): Actually set init-once flag!
1503
1504 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1505
1506 * crypto.cc (KeepUntrustedKeysOption): Fix helpstring punctuation.
1507
1508 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1509
1510 * crypto.cc (verify_ini_file_sig): Fix two minor logic errors.
1511
1512 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1513
1514 * ini.h (current_ini_sig_name): Declare extern.
1515 * ini.cc (current_ini_sig_name): New variable.
1516 (NoVerifyOption): New boolean option.
1517 (do_remote_ini): If sig verification not disabled, attempt to
1518 download the matching sig file for any setup.bz2 or setup.ini
1519 and use it to verify or discard the download.
1520
1521 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1522
1523 * resource.h (IDS_SIG_INVALID, IDS_CRYPTO_ERROR): Reserve IDs for
1524 two new message strings.
1525 * res.rc (IDS_SIG_INVALID, IDS_CRYPTO_ERROR): Define the text.
1526
1527 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1528
1529 * Makefile.am (setup_SOURCES): Add new files crypto.cc, crypto.h,
1530 cyg-pubkey.h, gpg-packet.cc, gpg-packet.h. KeysSetting.cc and
1531 KeysSetting.h to the build.
1532 * crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
1533 KeysSetting.h: New files. Adds gpg sig verification support.
1534
1535 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1536
1537 * Makefile.am (DIST_SUBDIRS, SUBDIRS): Add libgpg-error and
1538 libgcrypt subdirs.
1539 (AM_CPPFLAGS): Add -I paths to generated headers in both and to
1540 shipped headers in libgcrypt.
1541 (setup_LDADD): Add libgpg-error.a and libgcrypt.a to final link.
1542
1543 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Preload into cache
1544 to fake out libgcrypt configure process.
1545 (AC_CONFIG_SUBDIRS): Add libgpg-error/ and libgcrypt/
1546
1547 * gpg-error-config-fake: New shell script to redirect libgcrypt
1548 sub-configure into looking for newly-built libgpg-error.
1549
1550 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1551
1552 * setup/libgpg-error/: Fresh import of upstream sources of
1553 libgpg-error-1.6.tar.bz2 from http://www.gnupg.org/
1554 * setup/libgcrypt/: Fresh import of upstream sources of
1555 libgcrypt-1.4.1.tar.bz2 from http://www.gnupg.org/
1556
1557 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1558
1559 * netio.cc (NetIO::set_url): Avoid double-free bug on delete
1560 by setting path to a strdup of url rather than using the same
1561 pointer value twice.
1562
1563 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1564
1565 * cygwin.pub: Add reference copy of Cygwin setup signing key.
1566 * gpg-key-to-s-expr.sh: New bash script. Outputs textual
1567 representation of public key in s-expr format.
1568 * cyg-pubkey.h: New header generated by the above from Cygwin
1569 setup signing key. Currently needs manual regeneration if key
1570 ever updated.
1571
1572 2008-04-16 Brian Dessent <brian@dessent.net>
1573
1574 * mount.cc: Include malloc.h.
1575 (is_admin): Use alloca instead of a VLA in case
1576 GetTokenInformation is sensitive to alignment.
1577
1578 2008-04-15 Brian Dessent <brian@dessent.net>
1579
1580 * mount.cc (is_admin): Get explicit size of required buffer by
1581 calling GetTokenInformation first with NULL.
1582
1583 2008-04-10 Brian Dessent <brian@dessent.net>
1584
1585 * Makefile.am (setup_LDFLAGS): Make sure static libbz2 and zlib
1586 are used.
1587
1588 2008-04-09 Brian Dessent <brian@dessent.net>
1589
1590 * README: flex and bison are required when building from CVS.
1591
1592 2008-04-08 Brian Dessent <brian@dessent.net>
1593
1594 * Makefile.am (snapshot): Provide default value of ${cygwinsite}
1595 if not set.
1596
1597 2008-04-08 Brian Dessent <brian@dessent.net>
1598
1599 * Makefile.am (release): Use -f so that "make release" works
1600 when existing binaries of the same name exist.
1601
1602 2008-04-08 Brian Dessent <brian@dessent.net>
1603
1604 * res.rc (IDD_SPLASH): Update copyright years on splash page.
1605
1606 2008-04-08 Brian Dessent <brian@dessent.net>
1607
1608 * CHANGES: Update.
1609 * install.cc (Installer::installOne): Cope with compressed
1610 0-byte dummy packages. Fix progress bar update bug introduced
1611 in earlier refactoring.
1612
1613 2008-04-08 Brian Dessent <brian@dessent.net>
1614
1615 * CHANGES: Update.
1616
1617 2008-04-08 Brian Dessent <brian@dessent.net>
1618
1619 Various warning/header cleanups necessary for clean gcc 4.3 build.
1620 * ConnectionSetting.cc: Include stdlib.h.
1621 * LogFile.cc: Ditto.
1622 * Makefile.am: Don't hardcode paths to MinGW libz and libbz2.
1623 * PickView.cc: Include limits.h.
1624 * String++.cc: Include string.h.
1625 * archive_tar.cc (archive_tar::next_file_name): Silence nested-if
1626 warning.
1627 * autoload.c: Switch back to .text section before emiting
1628 autoload_common.
1629 * choose.cc: Include stdlib.h and algorithm.
1630 * compress_gz.cc: Include memory.h and malloc.h.
1631 * filemanip.cc: Include string.h.
1632 (parse_filename): Silence nested-if warning.
1633 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Silence warning.
1634 * package_db.cc: Include algorithm.
1635 * site.cc (get_site_list): Silence warning.
1636 * win32.cc: Include memory.
1637 * csu_util/MD5Sum.cc: Include string.h.
1638
1639 2008-03-02 Dave Korn <dave.korn@artimi.com>
1640
1641 * install.cc (Installer::installOne): Accept new HWND argument
1642 from caller and pass it to MessageBox calls so that MB_TASKMODAL
1643 can work.
1644 (check_for_old_cygwin): Likewise.
1645 (do_install_thread): Pass owner's HWND (from thread context) when
1646 calling them.
1647
1648 2008-02-23 Dave Korn <dave.korn@artimi.com>
1649
1650 * cygpackage.cc (cygpackage::getfirstfile): Guard against trying to
1651 construct std::string from NULL returned by io_stream::gets when the
1652 stream decompressor fails on a corrupt *.lst.gz file.
1653
1654 2008-02-21 Dave Korn <dave.korn@artimi.com>
1655
1656 * geturl.cc (progress): Correct SI unit notation.
1657
1658 2008-02-01 Vincent Privat <vincent.privat@gmail.com>
1659
1660 * net.cc (OnInit): New StringOption (ProxyOption)
1661 This new option (-p) allows to call setup.exe with a proxy
1662 in its command-line arguments.
1663
1664 2007-07-31 Brian Dessent <brian@dessent.net>
1665
1666 * ini.cc (do_remote_ini): Fix crash due to double free of ini_file.
1667
1668 2007-07-30 Brian Dessent <brian@dessent.net>
1669
1670 * CHANGES: Update.
1671 * configure.in (AM_INIT_AUTOMAKE): Enable more automake warnings.
1672 * Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
1673 (CLEANFILES): Add. Minor portability tweaks.
1674 * tests/Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
1675 * archive.cc (archive::extract): Try to be more compatible when
1676 opening tar files.
1677 * compress_bz.cc: Fix whitespace throughout.
1678 (compress_bz::~compress_bz): Ensure that underlying io_stream's dtor is
1679 also run.
1680 * install.cc (Installer::installOne): Refactor.
1681 * package_db.cc (ConnectedLoopFinder::doIt): Move some log spewage into
1682 setup.log.full from setup.log.
1683 (packagedb::connectedBegin): Ditto. Consolidate log output to one line.
1684
1685 2007-07-02 Brian Dessent <brian@dessent.net>
1686
1687 * CHANGES: Update.
1688
1689 2007-06-26 Brian Dessent <brian@dessent.net>
1690
1691 * Makefile.am (release): Drop inconsistent use of $(EXEEXT). Leave an
1692 untouched copy of setup.exe so that later make invocations don't
1693 unnecessarily rebuild it.
1694 (snapshot): Fix typo.
1695 * install.cc (md5_one): Don't try to check packages whose
1696 pkgsource.Cached () is NULL, as with those whose download failed.
1697
1698 2007-06-26 Brian Dessent <brian@dessent.net>
1699
1700 * CHANGES: Update to reflect release branch.
1701
1702 2007-06-26 Brian Dessent <brian@dessent.net>
1703
1704 * CHANGES: Make current.
1705
1706 2007-05-30 Brian Dessent <brian@dessent.net>
1707
1708 * find.h (class Find): Make _start_dir non-const.
1709 * find.cc (Find::Find): Append a trailing slash to _start_dir only if
1710 it does not already contain one.
1711 (Find::accept): Use the previously stored value of _start_dir rather
1712 than unconditionally appending a slash.
1713
1714 2007-05-29 Brian Dessent <brian@dessent.net>
1715
1716 * Makefile.am: No need to specify the default value of --preprocessor
1717 to windres. Rework the automatic version extraction rules so that the
1718 source tarball is generated with the proper name and directory instead
1719 of setup-0. Update snapshot rule to also upload a copy of the binary
1720 with debugging symbols still present.
1721
1722 2007-05-29 Brian Dessent <brian@dessent.net>
1723
1724 This is a general tidying up/modernization of the build infrastructure.
1725 Renaming the lexer and parser to .ll and .yy allows using automake's
1726 builtin support for flex and bison with C++ sources, and libinilex is a
1727 slightly cleaner way of omitting -Werror.
1728
1729 * Makefile.am (AUTOMAKE_OPTIONS): Move to AM_INIT_AUTOMAKE.
1730 (AM_YFLAGS): Define.
1731 (AM_LFLAGS): Define.
1732 (INCLUDES): Remove redundant mingw directory.
1733 (EXTRA_DIST): Adjust for newly named lexer/parser.
1734 (BUILT_SOURCES): Ditto.
1735 (inilint_LDADD): Ditto.
1736 (inilint_SOURCES): Ditto.
1737 (setup_LDADD): Ditto.
1738 (setup_SOURCES): Ditto.
1739 (iniparse.cc): Remove custom rules.
1740 (inilex.cc): Ditto.
1741 * configure.in: Update quoting and use modern form of AC_INIT and
1742 AM_INIT_AUTOMAKE.
1743 * inilex.l: Rename from this ...
1744 * inilex.ll: ... to this.
1745 * iniparse.y: Rename from this ...
1746 * iniparse.yy: ... to this.
1747
1748 2007-05-29 Brian Dessent <brian@dessent.net>
1749
1750 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
1751 Remove error_buf and error_count initializers.
1752 (IniParseFindVisitor::visitFile): Store filename in current_ini_name.
1753 Use yyerror_count and yyerror_messages in place of removed error_count
1754 and error_buf members.
1755 * IniParseFindVisitor.h (class IniParseFindVisitor): Remove error_buf
1756 and error_count members.
1757 * ini.cc: Include io_stream_memory.h. Remove file static variables
1758 error_buf, error_count, and ini_filename.
1759 (GuiParseFeedback::progress): Remove some verbose log spam.
1760 (do_remote_ini): Recode .ini-fetching logic to properly display parse
1761 errors, and to account for corrupt bzip2 files.
1762 (yyerror): Moved elsewhere.
1763 (fprintf): Delete unused function.
1764 * ini.h: Remove useless __cplusplus guard. Declare extern variables
1765 current_ini_name, yyerror_messages, and yyerror_count.
1766 * inilex.l: Add current_ini_name, yyerror_messages, and
1767 yyerror_count.
1768 (ini_init): Initialize new variables.
1769 (yybol): Delete.
1770 (yyerror): Reimplement using std::string and relocate from ini.cc.
1771 * io_stream.cc (io_stream::copy): Add clarifying comment.
1772
1773 2007-05-04 Igor Peshansky <pechtcha@cs.nyu.edu>
1774
1775 * resource.h (IDC_STATIC_HEADER): New control id.
1776 * res.rc (IDD_SPLASH): Adjust the copyright.
1777 (IDD_DESKTOP): Make header text accessible as a separate control.
1778 * desktop.cc (set_status): Use eset() instead of SetWindowText().
1779 (load_dialog): Disable checkboxes and change dialog text in
1780 download-only mode.
1781 (DesktopSetupPage::OnInit): Disable checkboxes in download-only
1782 mode.
1783 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Deprecate the
1784 default fallthrough.
1785 * download.cc (do_download_thread): Explicitly return the next
1786 dialog.
1787
1788 2007-04-19 Max Bowsher <maxb1@ukf.net>
1789
1790 * configure.in: Turn inilint default build off again, since I cannot
1791 get it to work.
1792
1793 2007-04-19 Max Bowsher <maxb1@ukf.net>
1794
1795 * configure.in: Make inilint built by default.
1796
1797 2007-04-19 Max Bowsher <maxb1@ukf.net>
1798
1799 * inilintmain.cc: Fix multiple compile errors.
1800
1801 2007-04-19 Max Bowsher <maxb1@ukf.net>
1802
1803 * Makefile.am: Make inilint use same warnonly-inilex workaround that
1804 setup already does.
1805
1806 2007-03-29 Igor Peshansky <pechtcha@cs.nyu.edu>
1807
1808 * LogFile.cc (LogFile::exit): Write exit_msg directly to log, without
1809 the message box.
1810 * resource.h (IDC_DESKTOP_SEPARATOR,IDC_STATUS_HEADER,IDC_STATUS): New
1811 control ids.
1812 * res.rc (IDD_DESKTOP): Change the caption. Add status information.
1813 * desktop.h (DesktopSetupPage::DesktopSetupPage): Define constructor
1814 in the implementation.
1815 * desktop.cc (DesktopControlsInfo): Position specifiers for status
1816 information items.
1817 (DesktopSetupPage::DesktopSetupPage): Register position specifiers.
1818 (set_status): New static method.
1819 (load_dialog): Set status information, if available.
1820 (DesktopSetupPage::OnInit): Set status header font.
1821
1822 2007-03-01 Brian Dessent <brian@dessent.net>
1823
1824 * ini.h (SETUP_INI_FILENAME): Rename setup_9x.ini to setup_legacy.ini.
1825 (SETUP_BZ2_FILENAME): Likewise.
1826
1827 2007-02-27 Brian Dessent <brian@dessent.net>
1828
1829 * ini.h (SETUP_INI_FILENAME): Add define.
1830 (SETUP_BZ2_FILENAME): Add define.
1831 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use
1832 above macros to parameterize setup.ini filename.
1833 * fromcwd.cc (SetupFindVisitor::visitFile): Ditto.
1834 * ini.cc (do_remote_ini): Ditto.
1835 * Makefile.am (setup_SOURCES): Add win32.cc.
1836 * autoload.c: Include windows.h directly instead of win32.h so that
1837 win32.h can contain C++.
1838 * desktop.cc (verinfo): Delete.
1839 (make_link): Use IsWindowsNT to check for NT instead of verinfo.
1840 (DesktopSetupPage::OnInit): Likewise.
1841 * mount.cc (is_admin): Likewise.
1842 * script.cc (init_run_script): Likewise.
1843 * main.cc (class SIDWrapper, SIDWrapper::SIDWrapper,
1844 SIDWrapper::~SIDWrapper, SIDWrapper::theSID, class HANDLEWrapper,
1845 HANDLEWrapper::HANDLEWrapper, HANDLEWrapper::~HANDLEWrapper,
1846 HANDLEWrapper::theHANDLE, class TokenGroupCollection,
1847 TokenGroupCollection::TokenGroupCollection,
1848 TokenGroupCollection::~TokenGroupCollection,
1849 TokenGroupCollection::populate, TokenGroupCollection::find,
1850 class NTSecurity, set_default_sec, NTSecurity::NoteFailedAPI,
1851 NTSecurity::NTSecurity, NTSecurity::failed,
1852 NTSecurity::initialiseEveryOneSID, NTSecurity::setDefaultDACL,
1853 NTSecurity::setDefaultSecurity): Remove implementation of these
1854 classes from this file and into new file win32.cc and existing win32.h.
1855 (main): Fix whitespace and formatting per GNU coding standards.
1856 * res.rc (IDS_SETUPINI_MISSING): Parameterize filename with %s.
1857 * win32.cc: New file containing methods removed from main.cc as well
1858 as new class VersionInfo methods.
1859 * win32.h: Include <string> for std::string.
1860 (class SIDWrapper, class HANDLEWrapper, class TokenGroupCollection,
1861 class NTSecurity): Add classes removed from main.cc.
1862 (class VersionInfo): Add new class.
1863 (GetVer): Declare.
1864 (IsWindowsNT): Define.
1865
1866 2007-02-20 Brian Dessent <brian@dessent.net>
1867
1868 * README: Modernize list of required packages, and mention doconfigure.
1869
1870 2007-02-17 Cesar Strauss <cstrauss@cea.inpe.br>
1871
1872 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
1873 Initialize the version and operator fields of the newly created
1874 PackageSpecification object, so setup can pick the correct source
1875 version later on.
1876
1877 2007-02-17 Brian Dessent <brian@dessent.net>
1878
1879 * script.cc (Script::run): Check for existance of script file and
1880 return without doing anything if it does not exist.
1881
1882 2006-12-26 Max Bowsher <maxb1@ukf.net>
1883
1884 * IniDBBuilder.h (IniDBBuilder): Make this class abstract.
1885 * IniDBBuilder.cc: Delete file.
1886 * Makefile.am (inilint_SOURCES, setup_SOURCES): Remove IniDBBuilder.cc.
1887
1888 2006-12-26 Max Bowsher <maxb1@ukf.net>
1889
1890 Add a shell script that documents/centralizes the standard configure
1891 command line.
1892
1893 * doconfigure: New file.
1894 * Makefile.am (EXTRA_DIST): Add doconfigure.
1895
1896 2006-11-28 Igor Peshansky <pechtcha@cs.nyu.edu>
1897
1898 * install.cc (Installer::installOne): If file is in use, ask the user
1899 to stop processes and retry.
1900 (MB_RETRYCONTINUE, IDCONTINUE): New macros.
1901 (hMsgBoxHook): New static field.
1902 (CBTProc): New window hook function.
1903 (_custom_MessageBox): New function.
1904 * CHANGES: Update with the above.
1905
1906 2006-10-12 Igor Peshansky <pechtcha@cs.nyu.edu>
1907
1908 * desktop.cc (make_cygwin_bat,save_icon): Capitalize filename.
1909
1910 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1911
1912 * package_version.cc (packageversion::scan): Catch and handle
1913 validation exception.
1914
1915 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1916
1917 * cygpackage.h (filesize): Remove unused field.
1918 (cygpackage::createInstance): Ditto.
1919 * cygpackage.cc (cygpackage::createInstance): Ditto.
1920 * package_db.cc (packagedb::packagedb): Remove unused variables.
1921 Simplify parsing of installed.db.
1922
1923 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1924
1925 * desktop.cc (DesktopSetupPage::OnInit): Remove stray MessageBox.
1926
1927 2006-05-24 Igor Peshansky <pechtcha@cs.nyu.edu>
1928
1929 * PickPackageLine.h (PickPackageLine::DrawIcon): Move to PickView.
1930 * PickView.h (PickView::DrawIcon): Move from PickPackageLine.
1931 (PickView::icon_dc,PickView::bm_icon): New instance field.
1932 (PickView::rect_icon,PickView::bg_fg_brush): Ditto.
1933 * PickCategoryLine.cc (PickCategoryLine::paint): Use
1934 PickView::DrawIcon() instead of BitBlt().
1935 * PickPackageLine.cc (PickPackageLine::DrawIcon): Move to PickView.
1936 (PickPackageLine::paint): Use PickView::DrawIcon().
1937 * PickView.cc (PickView::~PickView): Delete GDI objects.
1938 (PickView::init): Create icon drawing context.
1939 (PickView::DrawIcon): New function. Use system default colors to
1940 draw bitmaps.
1941 (PickView::paint): Set background color instead of using transparent
1942 mode. Create system-colored brush.
1943
1944 2006-04-25 Brian Dessent <brian@dessent.net>
1945
1946 * COPYING: New file (GPL).
1947 * Makfile.am (EXTRA_DIST): Add COPYING.
1948
1949 2006-04-17 Max Bowsher <maxb1@ukf.net>
1950
1951 * String++.cc, String++.h: Finally, it's time for the long-awaited
1952 departure of 'class String' from this world. setup.exe can now
1953 happily claim to follow the sane path of using just one general
1954 purpose string class throughout :-)
1955
1956 2006-04-17 Max Bowsher <maxb1@ukf.net>
1957
1958 * cygpackage.cc, cygpackage.h, package_version.cc, package_version.h:
1959 Do some String to std::string migration.
1960
1961 2006-04-17 Max Bowsher <maxb1@ukf.net>
1962
1963 * package_meta.cc, package_meta.h, package_source.cc,
1964 package_source.h: Do some String to std::string migration.
1965 * package_db.cc: Small tweak to assist with the above.
1966
1967 2006-04-17 Max Bowsher <maxb1@ukf.net>
1968
1969 * PickView.cc, PickView.h, package_db.cc, package_db.h:
1970 Do some String to std::string migration.
1971 * package_meta.h: Change a couple of types to assist with the above.
1972
1973 2006-04-17 Max Bowsher <maxb1@ukf.net>
1974
1975 * IniDBBuilder.cc, IniDBBuilder.h, IniDBBuilderPackage.cc,
1976 IniDBBuilderPackage.h, PickLine.h, PickPackageLine.cc:
1977 Do some String to std::string migration.
1978
1979 2006-04-16 Max Bowsher <maxb1@ukf.net>
1980
1981 * FindVisitor.cc, FindVisitor.h, IniParseFindVisitor.cc,
1982 IniParseFindVisitor.h, ScanFindVisitor.cc, ScanFindVisitor.h, find.cc,
1983 find.h, fromcwd.cc, ini.cc, ini.h, iniparse.y, postinstall.cc:
1984 Do some String to std::string migration.
1985
1986 2006-04-16 Max Bowsher <maxb1@ukf.net>
1987
1988 * IOStreamProvider.h, archive.cc, archive.h, archive_tar.cc,
1989 archive_tar.h, io_stream.cc, io_stream.h, io_stream_cygfile.cc,
1990 io_stream_cygfile.h, io_stream_file.cc, io_stream_file.h:
1991 Do some String to std::string migration.
1992
1993 2006-04-16 Max Bowsher <maxb1@ukf.net>
1994
1995 * desktop.cc, download.cc, install.cc, mount.cc, mount.h, script.cc,
1996 script.h: Do some String to std::string migration.
1997
1998 2006-04-16 Max Bowsher <maxb1@ukf.net>
1999
2000 * category.cc: Remove source file that contained no code!
2001 * category.h: Delete, moving the single useful line to...
2002 * package_meta.h: ...here. Remove category.h include.
2003 * choose.cc, package_db.h, package_meta.cc: Remove category.h include.
2004 * Makefile.am: Remove references to removed files.
2005
2006 2006-04-15 Max Bowsher <maxb1@ukf.net>
2007
2008 * ConnectionSetting.cc, ConnectionSetting.h, Exception.cc,
2009 Exception.h, IniParseFeedback.cc, IniParseFeedback.h, LogFile.cc,
2010 LogFile.h, LogSingleton.h, PackageSpecification.cc,
2011 PackageSpecification.h, SourceSetting.cc, SourceSetting.h,
2012 UserSettings.cc, UserSettings.h, dialog.cc, dialog.h, diskfull.cc,
2013 diskfull.h, filemanip.cc, filemanip.h, inilintmain.cc, localdir.cc,
2014 main.cc, nio-file.cc, nio-http.cc, prereq.cc, prereq.h, proppage.cc,
2015 proppage.h, site.cc, site.h, splash.cc, state.cc, state.h, window.cc,
2016 window.h: Do some String to std::string migration.
2017
2018 2006-04-15 Max Bowsher <maxb1@ukf.net>
2019
2020 * String++.cc, String++.h
2021 (new_cstr_char_array, format_1000s): Migrate String to std::string.
2022 (casecompare_lt_op, std::string operator+): New.
2023
2024 2006-04-06 Max Bowsher <maxb1@ukf.net>
2025
2026 * String++.h, String++.cc
2027 (String::replace): Remove - usused.
2028 (String::find): Remove - semantics do not match std::string.
2029
2030 * root.cc (directory_is_rootdir): Switch to std::string.find().
2031 * script.cc (Script::baseName): Rewrite use of String.find().
2032
2033 2006-03-30 Max Bowsher <maxb1@ukf.net>
2034
2035 * String++.cc (replace): New function to take the place of one form
2036 of String::replace method.
2037 * String++.h (replace): Declare.
2038 (String::replace): Make private.
2039
2040 * desktop.cc (make_cygwin_bat): Use new function.
2041 * filemanip.cc (backslash): Use simple loop in place of
2042 String::replace.
2043 * filemanip.h (backslash): Change signature to use std::string in
2044 place of String.
2045
2046 2006-03-30 Max Bowsher <maxb1@ukf.net>
2047
2048 * String++.cc, String++.h (casecompare): New function replacing
2049 String.casecompare to increase parity with std::string.
2050 (String::casecompare): Make private.
2051
2052 * ConnectionSetting.cc, IniDBBuilderPackage.cc,
2053 IniParseFindVisitor.cc, LogFile.cc, PackageSpecification.cc,
2054 PickView.cc, SourceSetting.cc, String++.cc, String++.h, fromcwd.cc,
2055 io_stream.cc, mount.cc, package_db.cc, package_source.h,
2056 package_version.cc, prereq.h, script.cc:
2057 Use casecompare in place of String::casecompare.
2058
2059 2006-03-30 Max Bowsher <maxb1@ukf.net>
2060
2061 * String++.cc, String++.h: Remove String(int) constructor, which
2062 was causing dangerously bizarre implicit conversions, and was a point
2063 of disparity between String and std::string.
2064 (stringify): New function to replace functionality removed above.
2065
2066 * PickView.cc (PickView::init_headers),
2067 archive_tar.cc (archive_tar::next_file_name),
2068 cygpackage.cc (cygpackage::setCanonicalVersion):
2069 Make explicit and call out with a FIXME some bizarre behaviour.
2070
2071 * ScanFindVisitor.cc (ScanFindVisitor::visitFile),
2072 filemanip.cc (base), iniparse.y,
2073 threebar.cc (ThreeBarProgressPage::SetBar2):
2074 Make simple adaptations to the changed API.
2075
2076 2006-03-14 Igor Peshansky <pechtcha@cs.nyu.edu>
2077
2078 * PickView.cc (PickView::setViewMode): Auto-expand category if
2079 its name starts with a dot.
2080
2081 2006-03-14 Dave Korn <dave.korn@artimi.com>
2082
2083 * String++.cc (new_cstr_char_array): Handle null input correctly.
2084
2085 2006-03-10 Christopher Faylor <cgf@timesys.com>
2086
2087 * res.rc: Update copyright.
2088 (IDS_MIRROR_LST): Use cygwin.com for mirror list, not
2089 sources.redhat.com.
2090 * site.cc (NOSAVE1): Use preferred name of sourceware site.
2091 (NOSAVE2): sourceware.cygnus.com -> sources.redhat.com.
2092 (NOSAVE1_LEN): Use just-defined name to determine length.
2093 (NOSAVE2_LEN): Ditto.
2094 (NOSAVE3_LEN): Ditto.
2095
2096 2006-03-10 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2097
2098 * res.rc (IDD_DROPPED): New dialog.
2099 * resource.h (IDD_DROPPED): New dialog-id.
2100 (IDC_DROP_MIRRORS, IDC_DROP_NOWARN): New control-ids.
2101 * site.cc: Add enum for response on dropped mirrors.
2102 (cache_is_usable, cache_needs_writing): New bools.
2103 (cache_warn_urls): New string.
2104 (cached_site-list, dropped_site_list): New SiteLists.
2105 (site_list_type::init, site_list_type::site_list_type): Change to four
2106 parameter form.
2107 (site_list_type::site_list_type, site_list_type::operator=) Copy
2108 servername, area and location.
2109 (load_site_list): New function, broken out of get_site_list. Support
2110 four-parameter site_list_type.
2111 (get_site_list): Break out load_site_list. Move reading cache earlier.
2112 Don't write new cache. Set flags to record cache state. Load both
2113 all_site_list and cached_site_list.
2114 (SiteSetting::registerSavedSite): Use four-parameter site_list_type.
2115 (drop_proc, check_dropped_mirrors, write_cache_list, save_cache_file):
2116 New functions.
2117 (SitePage::OnNext): Check for dropped mirrors and save cache as
2118 appropriate.
2119 (SitePage::OnMessageCmd): Use four-parameter site_list_type.
2120 * site.h
2121 (site_list_type::init, site_list_type::site_list_type): Change to four
2122 parameter form.
2123 (site_list_type): Add servername, area and location members.
2124
2125 2006-03-09 Igor Peshansky <pechtcha@cs.nyu.edu>
2126
2127 * script.cc (Script::run): Fix inverted test for abnormal exit.
2128
2129 2006-03-09 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2130 Max Bowsher <maxb1@ukf.net>
2131
2132 Provide indication of site that a file is being downloaded from.
2133
2134 * geturl.cc: Use std::string instead of String throughout.
2135 (init_dialog): Put more information into GUI.
2136 Remove unused 'owner' parameter and change all callers.
2137 (progress): Remove spurious \n characters from GUI.
2138 * geturl.h: Use std::string instead of String throughout.
2139 * res.rc (IDD_INSTATUS): Use SS_ENDELLIPSIS.
2140
2141 2006-03-09 Max Bowsher <maxb1@ukf.net>
2142
2143 * Makefile.am (EXTRA_DIST): Add tree-minus.bmp and tree-plus.bmp.
2144
2145 2006-01-20 Bryan Thrall <bryan.thrall@flightsafety.com>
2146
2147 * source.cc (SourcePage::OnActivate): Command line takes precedence
2148 over last user selection.
2149
2150 2005-11-30 Max Bowsher <maxb1@ukf.net>
2151
2152 * res.rc (IDD_ROOT, IDD_LOCAL_DIR): Rearrange some controls a little,
2153 in response to suggestion from Carl Karsten.
2154
2155 2005-11-30 Max Bowsher <maxb1@ukf.net>
2156
2157 * site.h, site.cc: Use std::string in preference to String.
2158 (site_list_type::init): Convert some painful raw C string work to
2159 STL std::string work. Stop totally ignoring the result of this
2160 calculation, implementing the (somewhat weird) sort order for sites
2161 that was apparently indented for ages.
2162
2163 2005-10-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2164
2165 * io_stream.cc (url_scheme_not_registered): New macro.
2166 (io_stream::open): Better log message on error.
2167 (io_stream::mkpath_p,io_stream::remove,io_stream::mklink): Ditto.
2168 (io_stream::move,io_stream::exists): Ditto.
2169
2170 2005-10-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2171
2172 * site.cc (get_site_list): Default to empty mirror list if
2173 server unavailable and none cached, to allow using preferred
2174 mirrors anyway.
2175
2176 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2177
2178 * package_db.cc (packagedb::packagedb): Remember missing package
2179 database file.
2180
2181 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2182
2183 * site.cc (get_site_list): Store mirror list locally.
2184 Use local copy if unable to download.
2185
2186 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2187
2188 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
2189 Better log message on error.
2190
2191 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2192
2193 * script.cc (Script::isAScript): Fix string comparison.
2194
2195 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2196
2197 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Reconnect on FTP timeout.
2198
2199 2005-09-11 Masayuki FUJII <boochang@m4.kcn.ne.jp>
2200
2201 * package_meta.cc (packagemeta::ScanDownloadedFiles): Don't use an
2202 invalid iterator. Fix whitespace.
2203
2204 2005-09-09 Brian Dessent <brian@dessent.net>
2205
2206 * CHANGES: Document recent updates.
2207 * choose.cc (ChooserPage::OnInit): Add new tooltip.
2208 * res.rc (IDD_CHOOSE): Remove 'administrative' from description.
2209 (IDS_HIDEOBS_TOOLTIP): Add new string for tooltip.
2210 * resource.h (IDS_HIDEOBS_TOOLTIP): Define.
2211 * window.cc (Window::ActivateTooltips): Fix whitespace. Set tooltip
2212 delay to 30 seconds.
2213
2214 2005-09-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2215
2216 * PickView.cc (PickView::paint): Set background mode to transparent.
2217 * PickCategoryLine.cc (PickCategoryLine::paint): Use bitwise AND to
2218 blit bitmaps.
2219 * PickPackageLine.cc (PickPackageLine::paint): Ditto.
2220
2221 2005-09-01 Brian Dessent <brian@dessent.net>
2222
2223 * package_meta.cc (packagemeta::uninstall): Remove support for
2224 undocumented and dangerous postremove script.
2225
2226 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2227
2228 * script.cc (run): Change to return the exit code or negative error.
2229 (Script::run): Ditto.
2230 (try_run_script): Receive both filename and extension and run only
2231 one script. Also return the exit code.
2232 * script.h (try_run_script): Change signature.
2233 (Script::run): Ditto.
2234 * postinstall.cc (RunScript::operator()): Change to return the exit
2235 code or negative error.
2236 * install.cc (Installer::preremoveOne): Pass extension to
2237 try_run_script().
2238
2239 2005-09-01 Eric Blake <ebb9@byu.net>
2240
2241 * script.cc (shells): Use /bin/bash, not sh, to allow upgrades to
2242 /bin/sh.
2243
2244 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2245
2246 * PickView.h (PickView::size_col): New instance variable.
2247 * PickView.cc (pkg_headers, cat_headers): Add size column.
2248 (PickView::set_headers): Initialize size_col.
2249 (PickView::init_headers): Include width of size column.
2250 * PickPackageLine.cc (PickPackageLine::paint): Handle size_col.
2251 * String++.cc (format_1000s): New function.
2252 * String++.h (format_1000s): Declare new function.
2253
2254 2005-09-01 Brian Dessent <brian@dessent.net>
2255
2256 * Makefile.am (BASECXXFLAGS): Add -Wno-uninitialized to work around
2257 spurious warnings with gcc 3.4.4.
2258
2259 2005-05-22 Brian Dessent <brian@dessent.net>
2260
2261 * res.rc (IDD_CHOOSE): Change description to include administrative
2262 packages in addition to obsolete.
2263
2264 2005-05-21 Brian Dessent <brian@dessent.net>
2265
2266 * prereq.cc: New file.
2267 * prereq.h: Ditto.
2268 * tree-minus.bmp: Ditto.
2269 * tree-plus.bmp: Ditto.
2270 * Makefile.am: Add prereq.cc and prereq.h to build.
2271 * PickCategoryLine.cc (PickCategoryLine::paint): Add new parameter and
2272 refactor. Use bitmap for '+' and '-' indicators. Draw package lines
2273 column-wise for better drawing efficiency.
2274 (PickCategoryLine::click): Use previously calculated x value.
2275 * PickCategoryLine.h (PickCategoryLine::paint): Update prototype. Add
2276 'spin_x' member.
2277 * PickLine.h (PickLine:paint): Update prototype.
2278 * PickPackageLine.cc (PickPackageLine::DrawCheck): Remove.
2279 (PickPackageLine::DrawIcon): New function.
2280 (PickPackageLine::paint): Add parameter. Refactor completely for more
2281 efficient painting.
2282 * PickPackageLine.h (PickPackageLine::DrawIcon): Add prototype.
2283 (PickPackageLine::paint): Update prototype.
2284 (PickPackageLine::DrawCheck): Remove.
2285 * PickView.cc (pkg_headers): Remove unused 'slen' field, add new
2286 'needs_clip' field to signify if clipping is necessary for this column.
2287 (PickView::note_width): Fold long line. Refactor slightly for
2288 simplicity.
2289 (PickView::set_view_mode): Remove.
2290 (PickView::cycleViewMode): New function.
2291 (PickView::setViewMode): Refactor completely. Incorporate functionality
2292 of clear_view() here instead. Simplify package selection into a single
2293 'for' loop rather than repeating code for each type.
2294 (isObsolete): New function, with second overloaded version.
2295 (PickView::setObsolete): New function.
2296 (PickView::insert_pkg): Do not show obsolete packages. Move
2297 declaration of 'db' lower. Fix whitespace.
2298 (PickView::insert_category): Do not show obsolete packages.
2299 (PickView::clear_view): Remove. Moved logic into 'setViewMode'.
2300 (PickView::scroll): Add additional parameter 'howmany' with default
2301 value of 1. Scroll by 'howmany' lines for SB_LINEDOWN and SB_LINEUP.
2302 (NUM_CATEGORY_COL_WIDTH): Define.
2303 (PickView::init_headers): Fix whitespace. Add comments. Ignore
2304 obsolete packages in width calculations. Add functionality to size
2305 'Category' column so that at least NUM_CATEGORY_COL_WIDTH categories
2306 are displayed for every package. Ensure that 'new_col' takes into
2307 account all possible labels.
2308 (PickView::PickView): Initialize showObsolete to false.
2309 (PickView::init): Remove unused bitmap bm_rtarrow. Add new bitmaps
2310 bm_treeplus and bm_treeminus. Use a macro for better readability.
2311 Fix whitespace formatting. Remove header computation from here, call
2312 refresh() instead.
2313 (PickView::registerWindowClass): Remove unnecessary background brush.
2314 (PickView::WindowProc): Add support for WM_MOUSEWHEEL message
2315 processing. Fix indentation. Reformat for readability.
2316 (PickView::paint): Get the update region before calling BeginPaint.
2317 Fill the update region with the default colors. Do not do clipping
2318 here. Pass update region to the PickLine paint function instead.
2319 Free the update region when finished.
2320 (PickView::Create): Fix indentation.
2321 (PickView::defaultTrust): Ditto.
2322 (PickView::refresh): Add column recalculation logic here.
2323 * PickView.h: Fix indentation.
2324 (RTARROW_WIDTH): Remove unused define.
2325 (NEW_COL_SIZE_SLOP): Ditto.
2326 (TREE_INDENT): Define.
2327 (PickView::get_view_mode): Remove.
2328 (PickView::set_view_mode): Rename to setViewMode for consistency.
2329 (PickView::cycleViewMode): Add new function.
2330 (PickView::setObsolete): Ditto.
2331 (PickView::clear_view): Remove.
2332 (PickView::bm_treeplus): Define new member.
2333 (PickView::bm_treeminus): Ditto.
2334 (PickView::scroll): Add parameter.
2335 (PickView::Header::slen): Remove unused member.
2336 (PickView::Header::needs_clip): Define new member.
2337 (PickView::showObsolete): Ditto.
2338 (isObsolete): Add prototype, and for overloaded version as well.
2339 * choose.cc: Add include.
2340 (ChooserControlsInfo): Allow new checkbox to be resized.
2341 (ChooserPage::OnInit): Start dialog with 'Hide obsolete' checked.
2342 (ChooserPage::OnNext): Call the dependency checker, act accordingly.
2343 (ChooserPage::changeTrust): Notify dependency checker of current trust
2344 level when it changes.
2345 (ChooserPage::OnMessageCmd): Just call cycleViewMode instead when
2346 changing the view. Update the chooser when the user toggles the
2347 'hide obsolete' checkbox.
2348 (ChooserPage::OnMouseWheel): New function. Pass mouse wheel message
2349 on to chooser.
2350 * choose.h (OnMouseWheel): Add prototype.
2351 * main.cc: Add include.
2352 (main): Define and initialize the PrereqPage object. Add it into
2353 the property sheet list.
2354 * PropPage.cc (PropertyPage::DialogProc): Add support for WM_MOUSEWHEEL
2355 message processing in derived classes.
2356 (PropertyPage::OnMouseWheel): New function.
2357 * PropPage.h (PropertyPage::OnMouseWheel): Add prototype.
2358 * res.rc (IDD_LOCAL_DIR): Shorten edit box so that pushbutton is not
2359 crowded.
2360 (IDD_SITE): Provide static text with an ID so that it can be resized
2361 properly. Move pushbutton slightly to right so that it doesn't crowd
2362 edit box.
2363 (IDD_SPLASH): Change copyright displayed on spash screen to be generic
2364 since the actual list of contributors is long.
2365 (IDD_CHOOSE): Add checkbox. Resize other controls to accomodate.
2366 (IDD_PREREQ): New dialog.
2367 (SPIN): Delete duplicated bitmap resource.
2368 (IDB_RTARROW): Remove unused bitmap resource.
2369 (IDB_TREE_PLUS): Add.
2370 (IDB_TREE_MINUS): Ditto.
2371 (IDS_TRUSTPREV_TOOLTIP): Revise wording to be more concise.
2372 (IDS_TRUSTCURR_TOOLTIP): Ditto.
2373 (IDS_TRUSTEXP_TOOLTIP): Ditto.
2374 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
2375 * resource.h (IDD_PREREQ): Define.
2376 (IDB_RTARROW): Remove.
2377 (IDB_TREE_PLUS): Add, and renumber.
2378 (IDB_TREE_MINUS): Ditto.
2379 (IDC_SITE_USERURL): Define.
2380 (IDC_CHOOSE_HIDE): Ditto.
2381 (IDC_PREREQ_TEXT): Ditto.
2382 (IDC_PREREQ_EDIT): Ditto.
2383 (IDC_PREREQ_CHECK): Ditto.
2384 * site.cc (SiteControlsInfo): Ensure that 'User URL' static text is
2385 properly resized.
2386
2387 2005-05-14 Max Bowsher <maxb@ukf.net>
2388
2389 "Type" field of packageversions was not even being filled in. Fix.
2390
2391 * cygpackage.h, cygpackage.cc (cygpackage::createInstance):
2392 Make "type" a mandatory parameter of the constructor.
2393 * IniDBBuilderPackage.cc: Adjust callers.
2394
2395 2005-05-14 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2396
2397 Fix behaviour of hardlinks in source packages.
2398
2399 * archive.cc (archive::extract_file):
2400 Use prefixPath for link target on hardlinks.
2401
2402 2005-05-14 Max Bowsher <maxb@ukf.net>
2403
2404 Hopefully, solve the "preremove DLL dependency" bug, by running all
2405 preremove scripts before actually removing any files.
2406
2407 * install.cc
2408 (Installer::preremoveOne): New method. Run preremove scripts here.
2409 (Installer::replaceOne): Remove method.
2410 (num_replacements): Remove variable.
2411 (do_install_thread): Significantly rewrite.
2412 * package_meta.cc (packagemeta::uninstall):
2413 Do not run preremove script here.
2414
2415 2005-05-14 Max Bowsher <maxb@ukf.net>
2416
2417 * download.cc (do_download_thread):
2418 Do not use packageversion::changeRequested().
2419 * package_version.cc (packageversion::Type):
2420 Implement declared but previously unimplemented method.
2421 (packageversion::changeRequested, _packageversion::changeRequested):
2422 Remove.
2423 * package_version.h
2424 (packageversion::changeRequested, _packageversion::changeRequested):
2425 Remove.
2426 * install.cc (Installer::replaceOne): Simplify, return void, not int.
2427 (installOneSource): Rename to...
2428 (installOne): ...this. Change arguments and return type. Refactor.
2429 (install_one): Remove.
2430 (do_install_thread): Tidying up.
2431
2432 2005-05-07 Max Bowsher <maxb@ukf.net>
2433
2434 * download.cc (validateCachedPackage): Remove all MD5 checking code.
2435 It is not acceptable to check MD5 sums as part of simply answering
2436 whether a package exists in the local cache or not. It is too slow.
2437 MD5 sums always have been - and will continue to be - checked at
2438 install time.
2439 (NoMD5Option): Remove this option, as the code it controls has been
2440 removed.
2441
2442 2005-05-07 Max Bowsher <maxb@ukf.net>
2443
2444 * install.cc (md5_one): Make the MD5 checking done at install time
2445 display a progess GUI, as the MD5 checking done at other times does.
2446
2447 2005-05-07 Max Bowsher <maxb@ukf.net>
2448
2449 * resource.h, res.rc: Followup to recent de-MSVC-ification of
2450 resource.h, by removing a lot from res.rc, and the last few bits
2451 from resource.h.
2452
2453 2005-05-05 Brian Dessent <brian@dessent.net>
2454
2455 * choose.cc (ChooserPage::OnInit): Initialize tooltips for this
2456 dialog.
2457
2458 * proppage.h (PropertyPage::makeClickable): Update prototype to
2459 reflect same argument name as function.
2460
2461 * proppage.cc (PropertyPage::DialogProc): Remove redundant 'break'
2462 statements that follow 'return's. Add missing braces to case
2463 statements. Call handler for TTN_GETDISPINFO.
2464
2465 * res.rc (IDS_TRUSTKEEP_TOOLTIP): Add new STRINGTABLE entry for
2466 tooltip text.
2467 (IDS_TRUSTPREV_TOOLTIP): Ditto.
2468 (IDS_TRUSTCURR_TOOLTIP): Ditto.
2469 (IDS_TRUSTEXP_TOOLTIP): Ditto.
2470 (IDS_TRUSTPREV_TOOLTIP): Ditto.
2471 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
2472
2473 * resource.h: Likewise, add identifiers for tooltip resources.
2474
2475 * window.h: Add includes.
2476 (Window::TooltipHandle): Add new private data structure.
2477 (Window::TooltipStrings): Ditto.
2478 (Window::ActivateTooltips): Define new function to support tooltip
2479 functionality.
2480 (Window::SetTooltipState): Ditto.
2481 (Window::AddTooltip): Ditto.
2482 (Window::TooltipNotificationHandler): Ditto.
2483
2484 * window.cc (Window::Window): Initialize handle to NULL.
2485 (Window::~Window): Call DestroyWindow on tooltip control if it was
2486 activated.
2487 (Window::ActivateTooltips): New function to activate the tooltip
2488 control.
2489 (Window::SetTooltipState): New function to allow toggling of
2490 tooltips.
2491 (Window::AddTooltip): New function that adds a tooltip to a given
2492 control in a given window. Also implement overloaded versions that
2493 provide simpler interface and the ability to use a string resource.
2494 (Window::TooltipNotificationHandler): New function to handle
2495 TTN_GETDISPINFO notification messages.
2496
2497 2005-05-05 Brian Dessent <brian@dessent.net>
2498
2499 * resource.h: Reorganize. Group by type, and give each its own
2500 range of IDs. Regenerate IDs accordingly.
2501 (IDD_CHOOSER): Remove obsolete and unused symbol.
2502
2503 2005-05-05 Brian Dessent <brian@dessent.net>
2504
2505 * root.h (class RootPage): Add missing virtual to OnMessageCmd.
2506
2507 2005-05-05 Brian Dessent <brian@dessent.net>
2508
2509 * root.cc (dialog_cmd): Remove. Use OnMessageCmd instead.
2510 (RootPage::Create): Accomodate above change.
2511
2512 * root.h (class RootPage): Add prototype for OnMessageCmd.
2513
2514 * res.rc (IDD_ROOT): Fix broken button groups. Correct the order of
2515 the controls and use of WS_GROUP so that the radio buttons act
2516 correctly.
2517
2518 2005-05-05 Max Bowsher <maxb@ukf.net>
2519
2520 Bulk rename of String++ member cstr_oneuse () to c_str () for
2521 similarity to std::string.
2522
2523 * Exception.cc
2524 * IniDBBuilderPackage.cc
2525 * IniParseFindVisitor.cc
2526 * LogFile.cc
2527 * PickCategoryLine.cc
2528 * PickPackageLine.cc
2529 * PickView.cc
2530 * String++.cc
2531 * String++.h
2532 * archive.cc
2533 * cygpackage.cc
2534 * desktop.cc
2535 * dialog.cc
2536 * diskfull.cc
2537 * download.cc
2538 * filemanip.cc
2539 * find.cc
2540 * geturl.cc
2541 * ini.cc
2542 * install.cc
2543 * io_stream.cc
2544 * io_stream_cygfile.cc
2545 * io_stream_file.cc
2546 * localdir.cc
2547 * mount.cc
2548 * nio-http.cc
2549 * package_db.cc
2550 * package_meta.cc
2551 * package_source.h
2552 * postinstall.cc
2553 * proppage.cc
2554 * root.cc
2555 * script.cc
2556 * site.cc
2557 * splash.cc
2558 * threebar.cc
2559 * window.cc
2560
2561 2005-05-05 Max Bowsher <maxb@ukf.net>
2562
2563 Some String++ refactoring, setting out in the general direction of
2564 eventually just using the STL std::string, not our own class.
2565
2566 * String++.cc (String::cstr, String::cstr () const): Remove.
2567 (new_cstr_char_array): New function.
2568 * String++.h: Sync with above.
2569 Remove irrelevant "class io_stream;" declaration.
2570
2571 * cygpackage.h: Add "class io_stream;" declaration, now no longer
2572 being supplied by side-effect.
2573
2574 * filemanip.cc: Remove unneeded includes, add "using namespace std;".
2575 (parse_filename): Exchange some awkward pointer manipulation for
2576 std::string usage. Use new_cstr_char_array ().
2577 * filemanip.h: Sync with above.
2578 (fileparse): Improve style of declaration.
2579
2580 * io_stream_cygfile.cc (io_stream_cygfile::normalise):
2581 Use new_cstr_char_array ().
2582 * site.cc (site_list_type::init, get_site_list): Ditto.
2583
2584 2005-05-05 Brian Dessent <brian@dessent.net>
2585
2586 * ControlAdjuster.h (enum ControlPosition): Declare new resizing
2587 methods CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, and their
2588 TOP/BOTTOM aliases.
2589
2590 * ControlAdjuster.cc (ControlAdjuster::ControlInfo::adjust):
2591 Implement CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, which are
2592 designed to resize elements in a two-column layout.
2593
2594 * localdir.h (class LocalDirPage): Remove constructor implementation
2595 from here...
2596
2597 * localdir.cc (LocalDirPage::LocalDirPage): ...to here, and call
2598 AddControlsInfo on initialization.
2599 (static LocaldirControlsInfo): Add. Define sizing rules for dialog
2600 elements.
2601
2602 * proppage.h: Add includes.
2603 (PropertyPage::ClickableURL):
2604 Declare new storage type for internal use by class.
2605 (PropertyPage::urls): Likewise.
2606 (PropertyPage::urlWinProc): Add declaration.
2607 (PropertyPage::makeClickable): Likewise.
2608
2609 * proppage.cc: Add includes.
2610 (PropertyPage::DialogProc): Implement handler for WM_CTLCOLORSTATIC
2611 message. Supports static controls that have been turned into
2612 clickable hyperlinks.
2613 (static PropertyPage::urls): Declare.
2614 (PropertyPage::makeClickable): Implement new member function that
2615 provides user interface for making text into clickable URLs.
2616 (PropertyPage::urlWinProc): Implement new private member function used
2617 as a windowproc for subclassing a static control.
2618
2619 * resource.h (IDC_SPLASH_URL, IDC_FILEMODES_LINK, IDC_ROOTDIR_GRP,
2620 IDC_INSTALLFOR_GRP, IDC_ALLUSERS_TEXT, IDC_JUSTME_TEXT, IDC_MODE_GRP,
2621 IDC_MODE_TEXT, IDC_MODE_BIN, IDC_LOCALDIR_GRP, IDC_SPLASH_TEXT,
2622 IDC_SPLASH_ICON, IDC_SPLASH_COPYR): Add. Replaces anonymous
2623 IDC_STATIC ids, so that controls can be referenced by the resizer.
2624
2625 * res.rc (IDD_LOCAL_DIR): Rearrange controls to match top-down order
2626 in the dialog. Fold long lines. Replace anonymous IDC_STATIC ids.
2627 (IDD_ROOT): Reorder in same manner. Replace anonymous IDC_STATIC ids.
2628 Add descriptive text of each option, and hyperlink for more
2629 information. Mark suggested choice as "(RECOMMENDED)". Swap order of
2630 'unix'/'dos' radio buttons so that recommended choice is first in both
2631 columns.
2632 (IDD_SPLASH): Reorder elements to match top-down order of dialog, fold
2633 long lines. Add descriptive paragraph, remove anonymous ids. Update
2634 copyright text, replace sources.redhat.com with cygwin.com.
2635
2636 * root.h (class RootPage): Remove constructor implementation from
2637 here...
2638
2639 * root.cc: ...to here, and call AddControlInfo.
2640 (static RootControlsInfo): Add. Populate with resizing data.
2641 (RootPage::OnInit): Make text a clickable hyperlink.
2642
2643 * splash.h (class SplashPage): Likewise, move constructor from
2644 here...
2645
2646 * splash.cc: ...to here. Call AddControlInfo.
2647 (static SplashControlsInfo): Add and populate.
2648 (SplashPage::Create): Make link on splash page a clickable hyperlink.
2649
2650 * window.h: Add include.
2651 (class Window): Store allocated fonts with a vector instead of fixed
2652 array. Change indentation of setParent to be consistent.
2653
2654 * window.cc (Window::Window): Remove FontCounter.
2655 (Window::~Window): Likewise. Iterate over vector of fonts instead.
2656 (Window::SetDlgItemFont): Use vector.
2657
2658 2005-05-05 Max Bowsher <maxb@ukf.net>
2659
2660 * Makefile.am (EXTRA_DIST, inilint_SOURCES):
2661 Sync with several recent changes.
2662
2663 2005-05-05 Brian Dessent <brian@dessent.net>
2664
2665 * res.rc: (CREATEPROCESS_MANIFEST_RESOURCE_ID): Include section
2666 comment.
2667
2668 2005-05-05 Brian Dessent <brian@dessent.net>
2669
2670 * res.rc: (IDC_CHOOSE): Widen 'view' button by 6px horizontally and
2671 4px vertically. Adjust other controls to accomodate.
2672 (CREATEPROCESS_MANIFEST_RESOURCE_ID): Define so that manifest is
2673 included in the binary.
2674
2675 * setup.exe.manifest: New file. Results in common controls with
2676 themed appearance on modern versions of Windows.
2677
2678 2005-05-05 Brian Dessent <brian@dessent.net>
2679
2680 * main.cc (WinMain): Change conditional to avoid spurious error
2681 message on success. Include reason for failure in log message.
2682
2683 2005-05-04 Max Bowsher <maxb@ukf.net>
2684
2685 * state.cc, state.h (net_method, net_proxy_host, net_proxy_port,)
2686 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
2687 Inet_ftp_user, net_ftp_passwd):
2688 Move these global variables to be static variables of the NetIO class.
2689
2690 * netio.h, netio.cc (net_method, net_proxy_host, net_proxy_port,)
2691 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
2692 net_ftp_user, net_ftp_passwd):
2693 As above.
2694
2695 * ConnectionSetting.cc, net.cc:
2696 Change include, refer to variables in new location.
2697
2698 2005-05-04 Max Bowsher <maxb@ukf.net>
2699
2700 * PickLine.cc: Remove file - redundant.
2701 * Makefile.am (setup_SOURCES): Adjust.
2702
2703 2005-05-04 Max Bowsher <maxb@ukf.net>
2704
2705 * package_version.h (packageversion::set_requirements):
2706 Remove deftrust argument default value.
2707
2708 2005-05-04 Max Bowsher <maxb@ukf.net>
2709
2710 * package_version.cc (DependencyProcessor): Remove trivial class.
2711 (select, processOneDependency): Do not use DependencyProcessor, just
2712 pass parameters normally.
2713
2714 2005-05-04 Brian Dessent <brian@dessent.net>
2715
2716 Fix bug #820: Clicking Curr, etc., causes some dependencies to not
2717 be installed.
2718
2719 * choose.cc (ChooserPage::changeTrust):
2720 Add a missing "packagedb.markUnVisited ()".
2721
2722 2005-05-03 Max Bowsher <maxb@ukf.net>
2723
2724 * PickCategoryLine.cc (PickCategoryLine::click):
2725 * PickPackageLine.cc (PickPackageLine::click):
2726 Abandon use of trivial packagemeta::PrepareForVisit() wrapper.
2727
2728 * package_meta.h (packagemeta::PrepareForVisit): Remove.
2729 * package_meta.cc (packagemeta::PrepareForVisit): Remove.
2730
2731 2005-05-03 Max Bowsher <maxb@ukf.net>
2732
2733 * choose.h (ChooserPage::ifChecked): Remove.
2734 (ChooserPage::changeTrust): Convert from template to ordinary function.
2735 * choose.cc (ChooserPage::changeTrust): As above, plus avoid the use
2736 of custom class SetRequirement, when bind2nd(mem_fun(...),...) can
2737 achieve the same effect.
2738 * package_meta.h (SetRequirement): Remove, now unused.
2739
2740 2005-05-03 Max Bowsher <maxb@ukf.net>
2741
2742 * package_meta.h (packagemeta::set_requirements):
2743 Remove default argument which seems inappropriate.
2744 * PickPackageLine.cc (PickPackageLine::click):
2745 Make an argument explicit, and not that it seems like the wrong value.
2746
2747 2005-05-03 Brian Dessent <brian@dessent.net>
2748
2749 Fix part of bug #853 - proxy port not remembered.
2750
2751 * net.cc (doing_loading): New static boolean.
2752 (load_dialog): Use the boolean to prevent save_dialog() from taking
2753 action due to field changes due to initialization.
2754 (save_dialog): Check the boolean and respond appropriately.
2755
2756 2005-04-19 Max Bowsher <maxb@ukf.net>
2757
2758 * postinstall.cc (RunFindVisitor::visitFile): Fix crash on
2759 encountering a postinstall script with a name of 4 characters or less.
2760 Bug introduced on 2004-12-25.
2761
2762 2005-04-05 Max Bowsher <maxb@ukf.net>
2763
2764 The Big Cleanup: Phase "rfc1738"
2765
2766 * rfc1738.cc, rfc1738.h: Delete.
2767 * csu_util/rfc1738.cc: Reimport latest version from upstream source.
2768 Make thread-safe. Rewrite C++ wrapper in terms of std::string.
2769 Document the divergences from the upstream source.
2770 * csu_util/rfc1738.h: Recreate for the std::string version of the
2771 C++ wrapper.
2772
2773 * Makefile.am (setup_SOURCES): Sync with added/removed files.
2774 * IniParseFindVisitor.cc: Modify #includes.
2775 (IniParseFindVisitor::visitFile): Change function name, as the new
2776 C++ wrapper does not contain an irregularity that the old one did.
2777 * download.cc: Modify #includes.
2778 * ini.cc: Modify #includes.
2779
2780 2005-04-05 Max Bowsher <maxb@ukf.net>
2781
2782 Remove setup's internal compression libraries, instead relying on the
2783 mingw-foo packages which have been part of the Cygwin net distribution
2784 for some time now. At the same time, reorganize the README file to
2785 inform about the change, and make some additional tidy-ups there whilst
2786 working there.
2787
2788 * GUIDELINES: Remove, contents transferred to README.
2789 * README: Add build instructions. Delete unconfirmed and fixed bugs
2790 sections. Incorporate the former contents of GUIDELINES.
2791
2792 * bz2lib/: Remove.
2793 * zlib/: Remove.
2794 * Makefile.am (DIST_SUBDIRS, SUBDIRS):
2795 * configure.in: Remove AC_CONFIG_SUBDIRS for removed subdirs.
2796 * compress_bz.h: Remove complex _WIN32 preprocessor conditional.
2797 * compress_gz.h: Fix #include file name.
2798 * archive_tar_file.cc: Remove unused #include.
2799 * install.cc: Remove unused #include.
2800
2801 2005-01-27 Max Bowsher <maxb@ukf.net>
2802
2803 Set CYGWIN=nontsec, for postinstall scripts.
2804
2805 * main.cc (main): putenv("CYGWIN=nontsec").
2806
2807 2005-01-27 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2808
2809 Fix corrupt display of ini parse percentage in log file.
2810
2811 * ini.cc (GuiParseFeedback): Use a sensible data type for lastpct.
2812
2813 2004-12-29 Max Bowsher <maxb@ukf.net>
2814
2815 * site.cc (get_site_list): Filter the incoming mirrors list to contain
2816 only URL schemes that we can read.
2817
2818 2004-12-28 Max Bowsher <maxb@ukf.net>
2819
2820 The Big Cleanup: Phase "hash"
2821
2822 * hash.cc, hash.h: Delete.
2823 * Makefile.am (setup_SOURCES): Sync with deleted files.
2824
2825 * package_mets: Modify includes.
2826 (standard_dirs): Remove.
2827 (hash::add_subdirs): Remove.
2828 (packagemeta::uninstall): Re-implement using STL set instead of
2829 homebrew hash.
2830
2831 2004-12-28 Max Bowsher <maxb@ukf.net>
2832
2833 * String++.h (operator std::string): Take care to never do
2834 std::string((char*)NULL) - it causes a hang!
2835
2836 2004-12-27 Max Bowsher <maxb@ukf.net>
2837
2838 The Big Cleanup: Phase "log"
2839
2840 * log.cc, log.h: Delete old C-style compatibility wrapper around the
2841 logging subsystem.
2842 * Makefile.am (setup_SOURCES): Sync with deleted files.
2843
2844 * AntiVirus.cc, archive_tar_file.cc, ini.cc, install.cc,
2845 * io_stream_cygfile.cc, localdir.cc, msg.cc, net.cc, netio.cc,
2846 * netio.h, nio-ftp.cc, nio-ftp.h, root.cc, source.cc:
2847 Throughout, refine includes, and update code using the old
2848 compatibility wrapper to C++ streams style code.
2849
2850 2004-12-27 Max Bowsher <maxb@ukf.net>
2851
2852 * compress.cc: Refine includes. Remove placeholder function
2853 definitions. Make destructor an empty function.
2854 * compress.h: Refine includes. Make placeholder functions pure
2855 virtual. Add missing const on buffer argument to write function,
2856 to match derived classes.
2857 * compress_bz.cc, compress_gz.cc: Refine includes. Throw exception,
2858 rather than logging and returning an error, when an unimplemented
2859 function is called.
2860 * compress_bz.h, compress_gz.h: Refine includes.
2861
2862 2004-12-26 Max Bowsher <maxb@ukf.net>
2863
2864 The Big Cleanup: Phase "version"
2865
2866 * String++.h (operator std::string): Add.
2867 * desktop.cc, fromcwd.cc: Remove irrelevant include.
2868
2869 * version.cc, version.h: Delete, replacing all functionality in new
2870 files.
2871
2872 * setup_version.h: Add, taking over declaration of generated version
2873 symbol functionality.
2874
2875 * Makefile.am (setup_SOURCES): Sync with new/deleted files.
2876 (setup_version.c): Rename the symbol 'version' to 'setup_version'.
2877 * main.cc: Modify includes.
2878 (main): Adapt to setup_version rename.
2879 * splash.cc: Modify includes.
2880 (SplashPage::OnInit): Adapt to setup_version rename.
2881
2882 * csu_util/version_compare.cc, csu_util/version_compare.h: Add,
2883 containing a completely rewritten replacement for canonical_version().
2884
2885 * IniDBBuilderPackage.cc: Modify includes.
2886 (IniDBBuilderPackage::buildVersion): Use new version_compare API.
2887 * ini.cc: Modify includes.
2888 (setup_version): Rename...
2889 (ini_setup_version): ...to this.
2890 (do_local_ini, do_remote_ini): Adapt to above change.
2891 (do_ini_thread): Adapt to above change. Use new version_compare API.
2892
2893 2004-12-25 Max Bowsher <maxb@ukf.net>
2894
2895 * install.cc (Installer::installOneSource): Remove a stray "break;"
2896 left over from the switch-case -> if-else conversion in the previous
2897 change.
2898
2899 2004-12-25 Max Bowsher <maxb@ukf.net>
2900
2901 The Big Cleanup: Phase "win32"
2902
2903 * win32.h: Major overhaul. Document why we use _WIN32_IE. Move out
2904 fragment dealing with alloca() to the single file in which it is used.
2905 Remove fragment dealing with _MAX_PATH, and convert all uses of it
2906 elsewhere to MAX_PATH. Remove random include of <stdarg.h>. Remove
2907 NOCOMATTRIBUTE, as setup contains no code which it affects. Remove
2908 includes of <wininet.h> and <windowsx.h> - see later in this log.
2909 (IsWindowsNT): New inline function, a much simpler implementation of
2910 Win32::OS().
2911
2912 * win32.cc: Delete.
2913
2914 * Makefile.am (setup_SOURCES): Remove "win32.cc".
2915
2916 * AntiVirus.cc (detect), PickPackageLine.cc (PickPackageLine::paint),
2917 * install.c (Installer::installOneSource):
2918 Use IsWindowsNT(), not Win32::OS().
2919 * main.cc (main): Use IsWindowsNT(), not locally defined iswinnt.
2920
2921 * PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
2922 * proppage.cc (PropertyPage::DialogProc):
2923 Avoid using obfuscating macros from <windowsx.h>.
2924
2925 * archive.cc: Include or #define alloca() in the only file in which
2926 it is used.
2927
2928 * nio-ie5.h: Include <wininet.h> here, where it is actually needed,
2929 rather than in "win32.h" which is included almost everywhere.
2930
2931 * archive_tar.cc, archive_tar.h, cygpackage.cc, cygpackage.h,
2932 * desktop.cc, find.cc, install.cc, main.cc, mklink2.c, mount.cc,
2933 * script.cc: Use MAX_PATH, not _MAX_PATH.
2934
2935 2004-12-25 Max Bowsher <maxb@ukf.net>
2936
2937 Remove some overcomplications.
2938
2939 * Makefile.am (setup_SOURCES): Remove FilterVisitor.{cc,h}.
2940 * FilterVisitor.cc, FilterVisitor.h: Delete.
2941 * String++.cc (strmatch, String::matches): Remove.
2942 * String++.h (String::matches): Remove.
2943 * postinstall.cc: Do not include "FilterVisitor.h".
2944 (RunFindVisitor): Exclude items with the extension ".done".
2945 (do_postinstall_thread): Remove overcomplicated exclusion of items
2946 with the extension ".done".
2947
2948 2004-12-24 Max Bowsher <maxb@ukf.net>
2949
2950 * String++.cc, String++.h: Remove unused and incomplete code.
2951 * LogFile.cc (LogFile::log_save): Don't leak memory.
2952 * filemanip.cc, geturl.cc, root.cc, version.cc:
2953 Don't pointlessly create temporary copies strings.
2954
2955 2004-12-23 Max Bowsher <maxb@ukf.net>
2956
2957 * choose.cc (ChooserPage::OnNext): Relegate some overly verbose
2958 logging to an #ifdef DEBUG section.
2959 * geturl.h (dismiss_url_status_dialog): Remove stale function
2960 declaration, for which there is no definition.
2961 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
2962 Motivated by the recent unexplained hang bug, add some extra logging.
2963
2964 2004-11-22 Max Bowsher <maxb@ukf.net>
2965
2966 * MD5++.cc, MD5++.h: Remove this class.
2967 * csu_util/MD5Sum.cc, csu_util/MD5Sum.h: New more complete MD5 class.
2968 * Makefile.am (setup_SOURCES): Adjust to new files.
2969 * download.cc (validateCachedPackage): Simplify, using the new class.
2970 * install.cc (md5_one): Ditto.
2971 * package_source.h (packagesource::md5): Change to be an object of the
2972 new class.
2973
2974 2004-11-22 Max Bowsher <maxb@ukf.net>
2975
2976 * main.cc (main): Fix bug in one of the 2004-11-19 commits.
2977 Avoid referring to the theLog pointer before it is set.
2978
2979 2004-11-20 Max Bowsher <maxb@ukf.net>
2980
2981 * res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
2982 Re-layout the radio buttons.
2983
2984 2004-11-20 Max Bowsher <maxb@ukf.net>
2985
2986 Repair the broken detection of wrongly-sized package files.
2987
2988 * download.cc (validateCachedPackage): Make static, since not used
2989 elsewhere. Improve logging. Migrate file-size tests to here, alongside
2990 the MD5 tests.
2991 (check_for_cached): Remove broken testing of file-size, now covered by
2992 the above. Code cleanups.
2993
2994 2004-11-19 Max Bowsher <maxb@ukf.net>
2995
2996 * package_version.cc (dumpAndList): Make dependencies much more
2997 readable in full log output.
2998
2999 2004-11-19 Max Bowsher <maxb@ukf.net>
3000
3001 * proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
3002 block, since allowing exceptions to unwind into the guts of Windows is
3003 quite disasterous.
3004
3005 2004-11-19 Max Bowsher <maxb@ukf.net>
3006
3007 * main.cc (main): Move option parsing code earlier - it must execute
3008 before any significant object creations, which might test options in
3009 their initialization.
3010
3011 2004-11-19 Max Bowsher <maxb@ukf.net>
3012
3013 * main.cc (main): Remove some junk code - either commented out, or
3014 contained within unreachable preprocessor conditional sections.
3015
3016 2004-11-19 Max Bowsher <maxb@ukf.net>
3017
3018 * install.cc (Installer::installOneSource): Avoid leaking the open
3019 file handles of every tarball that is installed.
3020
3021 2004-11-19 Max Bowsher <maxb@ukf.net>
3022
3023 * package_source.h (packagesource::Canonical, packagesource::Base)
3024 (packagesource::Filename): Add "const" specification to accessor
3025 methods.
3026
3027 2004-11-18 Max Bowsher <maxb@ukf.net>
3028
3029 * archive.h (archive::~archive): Define a pure virtual destructor to
3030 enforce the abstract nature of this class.
3031 * archive.cc (archive::~archive): Pure virtual destructors require an
3032 implementation! Add one.
3033 * io_stream.h (io_stream::destroyed): Remove this severely
3034 brain-damaged implementation of a weakly-enforced abstract class.
3035 The pure virtual destructor was strongly enforcing the abstract nature
3036 anyway.
3037 * io_stream.cc (io_stream::~io_stream): Empty out horribly pointless
3038 code from the pure virtual destructor.
3039 * archive_tar.cc (archive_tar::~archive_tar): Remove all
3040 reference to the removed "destroyed" member.
3041 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
3042 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
3043 * compress_gz.cc (compress_gz::~compress_gz): Ditto.
3044 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Ditto.
3045 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
3046 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
3047
3048 2004-11-17 Max Bowsher <maxb@ukf.net>
3049
3050 * mount.cc (create_mount): Fix operator precedence error introduced in
3051 first 2004-11-11 commit - warned of by gcc 3.3.3 but not 3.4.1 !
3052
3053 2004-11-13 Max Bowsher <maxb@ukf.net>
3054
3055 Miscellaneous cleanup.
3056
3057 * geturl.cc (getUrlToStream): Make static.
3058 * geturl.h (getUrlToStream): Remove declaration.
3059
3060 * geturl.cc, geturl.h, netio.cc, netio.h, nio-ftp.cc, nio-ftp.h,
3061 nio-http.cc, nio-http.h:
3062 Remove unused "allow_ftp_auth" flag throughout.
3063
3064 2004-11-11 Max Bowsher <maxb@ukf.net>
3065
3066 * libmd5-rfc: New directory, to hold code imported from the libmd5-rfc
3067 project in a clearly delineated fashion.
3068 * libmd5-rfc/README: New file.
3069 * md5.c, md5.h: Delete...
3070 * libmd5-rfc/md5.c, libmd5-rfc/md5.h: ...and replace with pristine
3071 versions from upstream (only change is restoration of upstream CVS
3072 keyword expansions).
3073 * libmd5-rfc/md5main.c: New file.
3074 * Makefile.ami (setup_SOURCES): Edit file paths.
3075 * download.cc, install.cc: Edit include paths.
3076
3077 2004-11-11 Max Bowsher <maxb@ukf.net>
3078
3079 * dialog.cc (fatal): Make capable of handling a passed-in error code,
3080 as an alternative to calling GetLastError().
3081 * dialog.h (fatal): Adjust prototype as above.
3082 * mount.cc (create_mount): Use the above to correctly report errors.
3083
3084 2004-10-28 Max Bowsher <maxb@ukf.net>
3085
3086 * LogFile.cc (LogFile::getFileName), splash.cc (SplashPage::Create),
3087 threebar.cc (ThreeBarProgressPage::SetBar2):
3088 Migrate from cistring and string resources
3089 to String and string literals.
3090 * localdir.cc: Remove unneeded #include of "cistring.h".
3091 * cistring.cc, cistring.h: Remove this now-redundant class.
3092 * Makefile.am: Remove mention of the above removed files.
3093 * res.rc, resource.h: Remove obsolete strings and IDs, both those
3094 obseleted by and obselete before the above changes.
3095 * res.rc: Merge the 2 adjacent STRINGTABLEs.
3096
3097 2004-10-27 Max Bowsher <maxb@ukf.net>
3098
3099 * Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.
3100
3101 2004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
3102
3103 * package_source.cc (packagesource::set_canonical):
3104 Fix one-off in 'base' when ini is in same dir as package.
3105
3106 2004-10-25 Max Bowsher <maxb@ukf.net>
3107
3108 * main.cc (next_dialog): Remove this legacy global variable.
3109 * download.cc (do_download_thread): Return a value instead of setting
3110 a global variable, then returning void.
3111 (do_download_reflector): Look for the next dialog code as a return
3112 value instead of a global variable.
3113
3114 2004-10-25 Max Bowsher <maxb@ukf.net>
3115
3116 * port.h: Remove this redundant file - all contained definitions are
3117 duplicated in "win32.h".
3118 * Makefile.am, UserSetting.cc, UserSettings.cc, archive.cc,
3119 archive_tar.cc, archive_tar_file.cc, choose.cc, compress.cc,
3120 compress_bz.cc, compress_gz.cc, desktop.cc, find.cc, fromcwd.cc,
3121 iniparse.y, install.cc, io_stream_cygfile.cc, io_stream_file.cc,
3122 main.cc, netio.cc, site.cc, version.cc:
3123 Remove all references to "port.h".
3124
3125 2004-10-25 Max Bowsher <maxb@ukf.net>
3126
3127 Fix compilation with w32api 3.1 and later.
3128
3129 * ControlAdjuster.h, RECTWrapper.h, cistring.h, propsheet.h,
3130 window.cc, window.h: Include "win32.h" not <windows.h> directly.
3131 * win32.h (WINBASEAPI): Define to empty string.
3132
3133 2004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3134
3135 * script.cc (run): Kill stdin when running scripts.
3136
3137 2004-09-01 Max Bowsher <maxb@ukf.net>
3138
3139 * Makefile.am: Oops. Unwanted keyword expansion ate the code of the
3140 previous commit. Restore the code, escaped to not look like a keyword.
3141
3142 2004-09-01 Max Bowsher <maxb@ukf.net>
3143
3144 * Makefile.am: Simplify the shell incantation for getting the revision
3145 of ChangeLog from grep-and-sed to just sed.
3146
3147 2004-08-31 Max Bowsher <maxb@ukf.net>
3148
3149 Attain GCC 3.4 compatibility.
3150
3151 * PackageSpecification.h (PackageSpecification): Make the
3152 unnecessarily private copy-constructor public.
3153
3154 2004-08-30 Max Bowsher <maxb@ukf.net>
3155
3156 Rework the implementation of not including -Werror for specific files,
3157 to a way that does not require hardcoding modified automake output back
3158 into its input.
3159
3160 * Makefile.am (AM_CXXFLAGS, BASECXXFLAGS): Seperate out -Werror.
3161 (autoload.o): Drop this rule, -finline-functions is no longer required
3162 and -Werror is acceptable here now we have __attribute__ ((used)).
3163 (WARNONLY_CFLAGS, inilex.o): Drop these.
3164 (EXTRA_PROGRAMS): Add a fake "warnonly" program.
3165 (warnonly_CXXFLAGS): Set to the $(BASECXXFLAGS).
3166 (warnonly_SOURCES): Set to "inilex.cc".
3167 (EXTRA_setup_SOURCES): Set to $(warnonly_SOURCES).
3168 (setup_SOURCES): Remove "inilex.cc".
3169 (setup_LDADD): Add "warnonly-inilex.o".
3170
3171 2004-08-30 Max Bowsher <maxb@ukf.net>
3172
3173 Move closer to GCC 3.4 compatibility.
3174
3175 * IOStreamProvider.h, io_stream_cygfile.cc, io_stream_cygfile.h,
3176 io_stream_file.cc: Do not incorrectly use "enum" after it has been
3177 hidden inside a typedef.
3178 * archive.h: In "virtual func() = 0;", the 0 is a language construct,
3179 not some symbol that might evaluate to 0, and gcc 3.4 enforces this.
3180 * autoload.c (DllInfo.name): Silence warning by making const.
3181 (DLL, autoload_common): __attribute__ ((used)) is now required to
3182 prevent gcc being over-eager in it's optimization, and removing these
3183 seemingly-unused (used only from assembly) functions.
3184 Silences some warnings, too.
3185 * Makefile.am (AM_CXXFLAGS, AM_CFLAGS): The options
3186 -Wstrict-prototypes -Wmissing-prototypes do not apply to C++ and
3187 g++ 3.4 complains about them.
3188
3189 2004-08-29 Max Bowsher <maxb@ukf.net>
3190
3191 * Exception.h: Reformatting, #include more, remove incorrect and
3192 less-than-useful comments.
3193 (TOPLEVEL_CATCH): New preprocessor macro.
3194
3195 * LogFile.cc (LogFile::operator()): Throw an exception object, not a
3196 char* string.
3197
3198 Wrap the top-level of each thread (including the main thread) in a
3199 try...catch block, in order to display a useful error message if an
3200 exception is not caught.
3201 * download.cc (do_download_reflector): Here ...
3202 * ini.cc (do_ini_thread_reflector): ... and here ...
3203 * install.cc (do_install_reflector: ... and here ...
3204 * main.cc (main): ... and here ...
3205 * postinstall.cc (do_postinstall_thread): ... and here ...
3206 * site.cc (do_download_site_info_thread): ... and here!
3207
3208 * msg.h: Include a missing header requirement.
3209 * res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
3210 New strings.
3211 * resource.h (IDS_UNCAUGHT_EXCEPTION)
3212 (IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.
3213
3214 2004-08-28 Max Bowsher <maxb@ukf.net>
3215
3216 * res.rc (IDS_WINDOW_INIT_BADMSG): New string.
3217 * resource.h (IDS_WINDOW_INIT_BADMSG): New string resource ID.
3218 * window.cc (Window::FirstWindowProcReflector): Convert an abort()
3219 into a descriptive error.
3220
3221 2004-08-24 Max Bowsher <maxb@ukf.net>
3222
3223 The Doug Lee replacement malloc was no longer hooked up with the
3224 buildsystem in any way. Pruning the remaining unused file.
3225
3226 * dlmalloc.c: Removed.
3227
3228 2004-08-18 Max Bowsher <maxb@ukf.net>
3229
3230 "librsync is not wire-compatible with rsync 2.x, and is not likely
3231 to be in the future." -- librsync.sourceforge.net
3232
3233 So, it is of no practical use to setup. Therefore, removing all
3234 rsync related files and code from setup.
3235
3236 * rsync: Directory removed.
3237 * Makefile.am: Remove rsync support from the buildsystem.
3238 * configure.in: Ditto.
3239 * README: Since it seems vanishingly unlikely that it will ever happen,
3240 remove rsync support from the wishlist.
3241 * io_stream_rsync.cc: Remove.
3242 * io_stream_rsync.h: Remove.
3243
3244 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3245
3246 * package_meta.cc (packagemeta::set_requirements): fix problem with
3247 libpcre0 not being pulled in automatically.
3248
3249 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3250
3251 * IniDBBuilderPackage.cc (dumpAndList):
3252 Move out to packageversion for reuse.
3253 * package_meta.cc (packagemeta::logAllVersions): log dependencies.
3254 * package_version.cc (packageversion::depends):
3255 provide a const accessor.
3256 (dumpAndList): Moved from INIDBBuilder.cc.
3257 * package_version.h: declare new method and function.
3258
3259 2003-12-21 Robert Collins <rbtcollins@hotmail.com>
3260
3261 * main.cc (main): Update to head libgetopt++ syntax.
3262
3263 2003-11-2 Robert Collins <rbtcollins@hotmail.com>
3264
3265 * ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
3266 CP_CENTERED.
3267 * ControlAdjuster.cc: Ditto.
3268
3269 2003-10-31 Frank Richter <frichter@gmx.li>
3270
3271 * localdir.cc (OnNext): When SelectDirectoryA() fails, display a
3272 message with the error returned from the system instead of just
3273 'could not change dir'. Also, offer the user to 'Retry', 'Ignore' the
3274 error or 'Abort' the directory change.
3275
3276 2003-10-31 Frank Richter <frichter@gmx.li>
3277
3278 * propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
3279 window gets minimized. Otherwise some glitches (e.g. wrong child
3280 sizes) occur.
3281 Added support for WM_GETMINMAXINFO. Prevents the property sheet from
3282 getting smaller than the original size.
3283
3284 2003-11-1 Robert Collins <rbtcollins@hotmail.com>
3285
3286 * ControlAdjuster.h (ControlDimension): Add.
3287 (ControlAdjuster): Factor adjust functionality into ControlInfo.
3288 * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
3289 (ControlAdjuster::ControlInfo::adjust): Ditto.
3290
3291 2003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3292
3293 * ControlAdjuster.h (ControlPosition): New enum type.
3294 (ControlInfo::horizontalPos, ControlInfo::verticalPos): New
3295 instance variables.
3296 (ControlInfo::anchorLeft, ControlInfo::anchorTop,
3297 ControlInfo::anchorRight, ControlInfo::anchorBottom): Remove.
3298 * ControlAdjuster.cc (ControlAdjuster::AdjustControls): Switch to
3299 using position specifiers instead of anchors.
3300 * choose.cc (ChooserControlsInfo): Ditto.
3301 * proppage.cc (DefaultControlsInfo): Ditto.
3302 * propsheet.cc (PropSheetControlsInfo): Ditto.
3303 * site.cc (SiteControlsInfo): Position specifiers for site
3304 selection dialog controls.
3305 * threebar.cc (ThreeBarControlsInfo): Position specifiers for
3306 progress dialog controls.
3307
3308 2003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
3309
3310 * main.cc (HelpOption): New instance.
3311 (main): Added help command line option handling.
3312 * localdir.cc (LocalDirOption): New instance.
3313 (LocalDirSetting::load): allow setting localdir from command line.
3314
3315 2003-10-16 Frank Richter <frichter@gmx.li>
3316
3317 * ControlAdjuster.cc: New file, helper to move elements of a dialog
3318 along when the it's resized.
3319 * ControlAdjuster.h: Ditto.
3320 * Makefile.am: Add new source files.
3321 * proppage.cc (PropertyPage::DialogProc): Adjust some common
3322 controls (Cygwin icon top right, separator below) when a page is
3323 resized.
3324 (PropertyPage::PropertyPage): Dito.
3325 * propsheet.cc (IsDialog): New. Test whether a window is a dialog.
3326 Used internally by resize logic.
3327 (EnumPages): New. Used internally by resize logic: resizes the
3328 property sheet's individual pages.
3329 (PropSheetWndProc): New. Hook for the propery sheet window proc.
3330 (PropSheetProc): More style tweaks, add maximize box and thick border
3331 as well. Hook into the property sheet's window proc.
3332 (PropSheet::AdjustPageSize): New. Adjust the metrics of a single page
3333 to fit nicely into the property sheet. Part of resize logic.
3334 * res.rc (All dialogs): The top-right Cygwin icon and top separator
3335 now have IDs distinct from IDC_STATIC, so their metrics can be
3336 adjusted upon a resize. Also, all those Cygwin icons are at the exact
3337 same spot now.
3338 * choose.cc (ChooserPage::ChooserPage): Now the controls on the
3339 chooser page move/size when the page size is changed.
3340 * choose.h: Dito.
3341
3342 2003-10-23 Jerry D. Hedden <jerry@hedden.us>
3343
3344 * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
3345 (ConnectionSetting::save): Save proxy settings.
3346
3347 2003-10-07 Robert Collins <rbtcollins@hotmail.com>
3348
3349 * proppage.h (PropertyPage::wantsActivation): const correctness fix.
3350
3351 2003-08-19 Max Bowsher <maxb@ukf.net>
3352
3353 * win32.h: Define NOMINMAX only if not already defined - because
3354 libstdc++-v3 3.3.1 defines NOMINMAX itself.
3355
3356 2003-08-03 Max Bowsher <maxb@ukf.net>
3357
3358 * ChangeLog: Fix broken line-wrapping throughout. Clarify that
3359 "Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.
3360
3361 2003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3362
3363 * propsheet.cc (Copyright): Update copyright dates.
3364 (PropSheet::PropSheet): Remove NumPropPages initialization.
3365 (PropSheet::CreatePages): Use PropertyPages.size() instead of
3366 NumPropPages.
3367 (PropSheet::Create): Ditto.
3368 (PropSheet::AddPage): Change to use new PropertyPages std::vector<>.
3369 * propsheet.h (Copyright): Update copyright dates.
3370 (File Scope): Include <vector>.
3371 (PropSheet::PropertyPages): Change from array to vector<>.
3372 (PropSheet::NumPropPages): Remove.
3373
3374 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3375
3376 Changes modified by Max Bowsher <maxb@ukf.net>
3377 * splash.cc (Copyright): Update copyright dates.
3378 (SplashPage::OnInit): Remove call to SetDlgItemFont(). Now handled in
3379 base class.
3380 * proppage.h (PropertyPage::setTitleFont): Declare.
3381 * proppage.cc (Copyright): Update copyright dates.
3382 (PropertyPage::DialogProc WM_INITDIALOG): Move all font setting code,
3383 including that from splash.cc into new function...
3384 (PropertyPage::setTitleFont): Create, using moved code. Change font
3385 "MS Sans Serif" to "MS Shell Dlg" in line with recent res.rc change.
3386 Set font for IDC_STATIC_WELCOME_TITLE here, to allow easy re-use of
3387 style for future "Finished" page.
3388
3389 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3390
3391 * propsheet.cc: Include "resource.h".
3392 (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
3393
3394 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3395
3396 * proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.
3397
3398 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3399
3400 * proppage.h (Copyright): Update copyright dates.
3401 (PropertyPage): Document OnNext and OnBack.
3402
3403 2003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3404
3405 * proppage.cc (PropertyPage::Create): Use more self-documenting
3406 MAKEINTRESOURCE() instead of cast to LPCSTR.
3407
3408 2003-07-31 Robert Collins <rbtcollins@hotmail.com>
3409
3410 * README: Mark completed items complete.
3411
3412 2003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
3413
3414 * main.cc (set_default_sec): Set token owner from token user.
3415 Always try to set the token primary group to Users or Admins.
3416
3417 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3418
3419 * String++.h (String::replace): New instance functions.
3420 * String++.cc (String::replace): Implement.
3421 * filemanip.cc (backslash): Change to use String::replace.
3422 * desktop.cc (make_cygwin_bat): Escape '%' in path.
3423
3424 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3425
3426 * String++.h (TOSTRING): New macro.
3427 * UserSettings.cc (UserSettings::deRegisterSetting): Fix
3428 erroneous __LINE__/__FILE__ usage.
3429 * download.cc (validateCachedPackage, check_for_cached): Ditto.
3430 * geturl.cc (getUrlToStream): Ditto.
3431 * install.cc (md5_one): Ditto.
3432
3433 2003-07-30 Max Bowsher <maxb@ukf.net>
3434
3435 * ini.cc (do_ini_thread): Return bool.
3436 (do_ini_thread_reflector): Put returned bool in lParam.
3437 * threebar.cc (WM_APP_SETUP_INI_DOWNLOAD_COMPLETE): Rework for new
3438 meaning of lParam. Replace erroneous use of do_fromcwd with
3439 SetActivePageByID (IDD_SOURCE).
3440
3441 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3442
3443 * ConnectionSetting.cc: New file, persist connection type selection.
3444 * ConnectionSetting.h: Ditto.
3445 * net.cc: Hold a ConnectionSetting instance to trigger the logic.
3446 (NetPage::OnInit): Don't force net_method to any value.
3447 * Makefile.am: Add new source files.
3448
3449 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3450
3451 * SourceSetting.cc: New file, persist source selection.
3452 * SourceSetting.h: Ditto.
3453 * source.cc: Hold a Source setting instance to trigger the logic.
3454 * Makefile.am: Add new source files.
3455
3456 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3457
3458 * UserSettings.h (UserSettings::settingFileForLoad): Extracted method
3459 from LocalDirSetting::load().
3460 * UserSettings.cc (UserSettings::settingFileForLoad): Ditto.
3461 * UserSettings.h (UserSettings::settingFileForSave): Extracted method
3462 from LocalDirSetting::save().
3463 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
3464 * localdir.cc (LocalDirSetting::load): Extract location logic to
3465 UserSettings.
3466 (LocalDirSetting::save): Extract location logic to UserSettings.
3467 * site.cc (SiteSetting::getSavedSites): Use
3468 UserSettings::settingFileForLoad.
3469 (SiteSetting::save): Use UserSettings::settingFileForSave.
3470
3471 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3472
3473 * PickView.cc: Adjust ::GetClientRect(..) to the inherited one
3474 throughout.
3475
3476 2003-07-29 Max Bowsher <maxb@ukf.net>
3477
3478 Based on a patch by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
3479 * AntiVirus.cc (AntiVirusPage::wantsActivation): Define.
3480 * AntiVirus.h (AntiVirusPage::wantsActivation): Declare.
3481 * localdir.cc (LocalDirPage::OnBack): Remove logic subsumed by
3482 RootPage::wantsActivation.
3483 * proppage.cc (PropertyPage::DialogProc): Call wantsActivation(),
3484 and skip to next page in sequence if activation is refused.
3485 * proppage.h (PropertyPage::wantsActivation): Default implementation.
3486 * root.cc (RootPage::wantsActivation): Define.
3487 * root.h (RootPage::wantsActivation): Declare.
3488 * source.cc: Don't include "AntiVirus.h".
3489 (SourcePage::OnNext): Remove logic subsumed by
3490 RootPage::wantsActivation.
3491 (SourcePage::OnBack): Remove logic subsumed by
3492 AntiVirusPage::wantsActivation.
3493 * splash.cc: Don't include "AntiVirus.h" or "dialog.h".
3494 (SplashPage::OnNext): Remove - subsumed by
3495 AntiVirusPage::wantsActivation.
3496 * splash.h (SplashPage::OnNext): Remove declaration.
3497
3498 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3499
3500 * PickView.h (PickView::refresh): New method.
3501 * PickView.cc (PickView::refresh): Extracted from various
3502 ChooserPage callers.
3503 * choose.cc: Use PickView::refresh wherever possible.
3504
3505 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3506
3507 * choose.h (ChooserPage::createListView): Remove last parameter.
3508 (ChooserPage::getDefaultListViewSize): Extracted method.
3509 * choose.cc (ChooserPage::createListView): Remove last parameter.
3510 (ChooserPage::getDefaultListViewSize): Extracted method.
3511
3512 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3513
3514 * choose.cc (ChooserPage::createListView): Remove unneeded
3515 parameter.
3516 * choose.h: Ditto.
3517
3518 2003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3519
3520 * dialog.h (do_fromcwd): Change function declaration.
3521 * fromcwd.cc (do_fromcwd): Change return type to bool. Eliminate
3522 use of next_dialog, return true or false instead.
3523 * localdir.cc (LocalDirPage::OnNext): Use do_fromcwd()'s return
3524 value instead of next_dialog.
3525
3526 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3527
3528 * package_db.h (packagedb::fillMissingCategory): Move from ChooserPage.
3529 * choose.h (ChooserPage::fillMissingCategory): Delete.
3530 * package_db.cc (packagedb::fillMissingCategory): Move from ChooserPage.
3531 * choose.cc (ChooserPage::fillMissingCategory): Delete and adjust
3532 callers.
3533
3534 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3535
3536 * PickView.h (CATEGORY_EXPANDED): Move from choose.h
3537 (CATEGORY_COLLAPSED): Move from choose.cc.
3538 (PickView::setViewMode): Move from ChooserPage.
3539 * choose.h (CATEGORY_EXPANDED): Delete.
3540 (CATEGORY_COLLAPSED): Delete.
3541 (ChooserPage::setViewMode): Delete.
3542 * PickView.cc (PickView::setViewMode): Move from ChooserPage.
3543 * chooser.cc (ChooserPage::setViewMode): Delete, and adjust callers
3544 throughout.
3545
3546 2003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3547
3548 * AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
3549 page to display next, since it follows in the default page ordering
3550 anyway.
3551
3552 2003-07-28 Max Bowsher <maxb@ukf.net>
3553
3554 * dialog.h: (NEXT): Remove obsolete macro.
3555 * site.cc (save_dialog): Remove use of NEXT(), and non-functional
3556 unnecessary error handler.
3557
3558 2003-07-28 Robert Collins <rbtcollins@hotmail.com>
3559
3560 * package_meta.h (packagemeta::addToCategoryAll): Declare.
3561 * package_meta.cc (packagemeta::addToCategoryAll): New method,
3562 separated to allow clear iteration.
3563 * choose.cc (ChooserPage::fillMissingCategory): BUGFIX: "all" is
3564 meant to be added unconditionally.
3565
3566 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3567
3568 * Generic.h: New file, home for generic programming tools.
3569 (visit_if): Move here from package_meta.cc.
3570 Adjust to be fully parameterised.
3571 * package_meta.h (packagemeta::hasNoCategories): Query for generic
3572 programming.
3573 (packagemeta::setDefaultCategories): set categories for packages
3574 with none.
3575 * package_meta.cc: Move visit_if out. Adjust users for
3576 full paramterised operation.
3577 (packagemeta::hasNoCategories): Implement.
3578 (packagemeta::setDefaultCategories): Implement.
3579 * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to
3580 reduce duplicate code.
3581 (ChooserPage::setExistence): Delete.
3582 * choose.h (ChooserPage::setExistence): Rename to
3583 packagedb::setExistence.
3584 * package_db.h (packagedb::setExistence): Declare.
3585 * package_db.cc (packagedb::setExistence): Copy from choose.cc
3586
3587 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3588
3589 * localdir.h (LocalDirPage::OnInit): Remove.
3590 * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
3591 ::load().
3592 (LocalDirSetting::load): Copied from LocalDirPage::OnInit.
3593 * site.h (SitePage::OnInit): Remove.
3594 (SitePage::getSavedSites): New member, replaces get_saved_sites.
3595 (SitePage::registerSavedSite): New member, replaces
3596 register_saved_site.
3597 * site.cc (SitePage::OnInit): Move to SiteSetting::load().
3598 (SiteSetting::load): Copied from SitePage::OnInit.
3599 (SitePage::getSavedSites): Renamed from get_saved_sites.
3600 (SitePage::registerSavedSite): Renamed from register_saved_site.
3601 (do_download_site_info_thread): Don't look at the list size for
3602 determining if the download was successful.
3603
3604 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3605
3606 * choose.h (ChooserPage::setViewMode): Remove HWND from
3607 signature.
3608 (ChooserPage::defaultTrust): Ditto.
3609 Move to PickView.
3610 (ChooserPage::ifChecked): Use Window helper function
3611 IsButtonChecked.
3612 * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
3613 throughout.
3614 Update all callers with new signature.
3615 (ChooserPage::defaultTrust): Ditto.
3616 Move to PickView.
3617 * PickView.h (PickView::defaultTrust): Declare.
3618 * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.
3619
3620 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3621
3622 * PickView.h (PickView::lv): Eliminate.
3623 * PickView.cc (PickView::init): Replace use of lv with
3624 GetHWND().
3625 (PickView::list_click): Ditto.
3626 * choose.h (ChooserPage::lv): Eliminate.
3627 * choose.cc: Replace lv with chooser->GetHWND()
3628 throughout.
3629
3630 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3631
3632 * PickView.h (PickView::chooser): Eliminate.
3633 (PickView::list_vscroll): Make non-static.
3634 (PickView::list_hscroll): Ditto.
3635 (PickView::list_click): Ditto.
3636 (PickView::paint): Ditto.
3637 * PickView.cc (PickView::list_vscroll): Eliminate use
3638 of PickView::chooser.
3639 (PickView::list_hscroll): Ditto.
3640 (PickView::list_click): Ditto.
3641 (PickView::paint): Ditto.
3642 * choose.cc (Chooser::createListView): Eliminate use
3643 of PickView::chooser.
3644
3645 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3646
3647 * PickView.h (PickView): Inherit from Window.
3648 (PickView::RegisterWindows): Move from ChooserPage.
3649 (PickView::listview_proc): Likewise.
3650 (PickView::paint): Ditto.
3651 (PickView::list_click): Ditto.
3652 (PickView::list_hscroll): Ditto.
3653 (PickView::list_vscroll): Ditto.
3654 (PickView::lv): Ditto.
3655 (PickView::chooser): Ditto.
3656 (PickView::Create): Override Windows::Create as we migrate.
3657 (PickView::registerWindowClass): Renamed RegisterWindows.
3658 (PickView::WindowClassAtom): Prevent double registration.
3659 (PickView::init): Declare.
3660 * PickView.cc: Adjust for new inheritance.
3661 (PickView::RegisterWindows): Move from ChooserPage.
3662 (PickView::listview_proc): Likewise.
3663 (PickView::paint): Ditto.
3664 (PickView::list_click): Ditto.
3665 (PickView::list_hscroll): Ditto.
3666 (PickView::list_vscroll): Ditto.
3667 (PickView::lv): Ditto.
3668 (PickView::chooser): Ditto.
3669 (PickView::Create): Introduce stub.
3670 (PickView::RegisterWindows): Rename
3671 (PickView::init): Extracted from constructor to allow
3672 reordering.
3673 * chooser.h (ChooserPage::registerWindows): Rename to
3674 PickView::RegisterWindows.
3675 (ChooserPage::listview_proc): Likewise.
3676 (ChooserPage::paint): Ditto.
3677 (ChooserPage::list_click): Ditto.
3678 (ChooserPage::list_hscroll): Ditto.
3679 (ChooserPage::list_vscroll): Ditto.
3680 (ChooserPage::lv): Duplicate into PickView, observe
3681 as non-static.
3682 (ChooserPage::chooser): Ditto.
3683 * chooser.cc (ChooserPage::registerWindows): Delete.
3684 (ChooserPage::listview_proc): Ditto.
3685 (ChooserPage::paint): Ditto.
3686 (ChooserPage::list_click): Ditto.
3687 (ChooserPage::list_hscroll): Ditto.
3688 (ChooserPage::list_vscroll): Ditto.
3689 (ChooserPage::createListView): Create() on PickView.
3690 * window.h (Window::RegisterWindowClass): Make virtual
3691 to allow Create to become a Template Method, and rename
3692 to registerWindowClass as it's not static.
3693 * window.cc (Window::registerWindowClass): Ditto.
3694 (Window::FirstWindowProcReflector): BUGFIX: Set window
3695 handle to prevent races with the window procedure.
3696
3697 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3698
3699 * choose.cc (set_view_mode): Rename to ChooserPage::setViewMode.
3700 (default_trust): Rename to ChooserPage::defaultTrust.
3701 (fill_missing_category): Rename to ChooserPage::fillMissingCategory.
3702 (set_existence): Rename to ChooserPage::setExistence.
3703 (register_windows): Rename to ChooserPage::registerWindows.
3704 (listview_proc): Rename to ChooserPage::listview_proc.
3705 (paint): Rename to ChooserPage::paint.
3706 (list_click): Rename to ChooserPage::list_click.
3707 (list_hscroll): Rename to ChooserPage::list_hscroll.
3708 (list_vscroll): Rename to ChooserPage::list_vscroll.
3709 (lv): Rename to ChooserPage::lv.
3710 (chooser): Rename to ChooserPage::chooser.
3711 * choose.h (ChooserPage::setViewMode): Declare.
3712 (ChooserPage::defaultTrust): Declare.
3713 (ChooserPage::fillMissingCategory): Declare.
3714 (ChooserPage::setExistence): Declare.
3715 (ChooserPage::registerWindows): Declare.
3716 (ChooserPage::listview_proc): Declare.
3717 (ChooserPage::paint): Declare.
3718 (ChooserPage::list_click): Declare.
3719 (ChooserPage::list_hscroll): Declare.
3720 (ChooserPage::list_vscroll): Declare.
3721 (ChooserPage::lv): Declare.
3722 (ChooserPage::chooser): Declare.
3723
3724 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3725
3726 * choose.cc (create_listview): Use for_each instead of explicit
3727 iteration.
3728 (create_listview): Rename to ChooserPage::createListview.
3729 * package_meta.h (packagemeta::set_requirements): Explicitly separate
3730 the 1 and 2 parameter versions.
3731
3732 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3733
3734 * String++.h (String::operator !=): Declare for char * and String.
3735 * String++.cc (String::operator !=): Implement.
3736 * package_meta.cc(StringConcatenator): Move above all users.
3737 (_visit_if): Predicate support for visitors.
3738 (packagemeta::getReadableCategoryList): Refactor to use
3739 StringConcatenator with a predicate.
3740 * choose.h: Remove unneeded c++ guards.
3741
3742 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3743
3744 * choose.cc (scan_downloaded_files): Rename to
3745 packagemeta::ScanDownloadedFiles.
3746 (scanAVersion): Rename to packageversion::scan.
3747 (GetParentRect): Rename to ChooserPage::getParentRect.
3748 * choose.h (ChooserPage::getParentRect): Declare.
3749 * package_meta.h (packagemeta::ScanDownloadedFiles): Declare.
3750 * package_version.h (packageversion::scan): Declare.
3751 * package_version.cc (packageversion::scan): Move from choose.cc
3752 * package_meta.cc (packagemeta::ScanDownloadedFiles): Move from
3753 choose.cc
3754
3755 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3756
3757 * choose.cc (ChooserPage::OnNext): log before starting activity threads.
3758 (ChooserPage::OnInit): Remove temporary variable frame.
3759 (ChooserPage::setPrompt): Extract method from OnInit.
3760 (choose_inst_text): Remove unused variable.
3761 * choose.h(ChooserPage::setPrompt): Declare
3762 * res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present
3763 caption.
3764
3765 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3766
3767 Remove package specific code from choose.cc.
3768 Update copyrights where appropriate.
3769 * choose.cc(ChooserPage::OnNext): Extract logging to
3770 packagemeta::logSelectionStatus.
3771 * package_meta.cc(packagemeta::logSelectionStatus): Extract from
3772 ChooserPage::OnNext.
3773 (StringConcatenator): helper for logSelectionStatus.
3774 (action_caption): Make const.
3775 * package_meta.h(packagemeta): Declare logSelectionStatus.
3776 (packagemeta::action_caption): Make const.
3777 * package_version.cc(packageversion::sourcePackage): Make const.
3778 * package_version.h(packageversion::sourcePackage): Make const.
3779
3780 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3781
3782 * choose.cc: Update copyright.
3783 (ChooserPage::keepClicked): Extracted from OnMessageCmd.
3784 (ChooserPage::changeTrust): Ditto.
3785 * choose.h (ChooserPage): Declare keepClicked and changeTrust.
3786 (ChooserPage::ifChecked): Extracted from OnMessageCmd.
3787 * package_meta.h (SetRequirement): Adapter for visiting package
3788 collections.
3789
3790 2003-07-26 Max Bowsher <maxb@ukf.net>
3791
3792 * tests/.cvsignore: New file, listing Makefile.in.
3793
3794 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3795
3796 Save used local cache dir from initial run of setup, so the user doesn't
3797 need to retype it.
3798 * localdir.h (LocalDirSetting): UserSetting class for the local cache
3799 dir.
3800 * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and
3801 update callers.
3802
3803 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3804
3805 Save used site from initial run of setup, so the user doesn't need to
3806 retype it.
3807 * main.cc (main): Load and save all user settings.
3808 * site.cc (SiteSetting::save): Migrate logic from save_site_url.
3809 (SitePage::OnNext): Use ChosenSites.save() to remove uneeded
3810 save_site_url call.
3811 (save_site_url): Delete.
3812 * site.h (save_site_url): Remove declaration.
3813 * .cvsignore: Update autoconf generated files.
3814
3815 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3816
3817 * tests/Makefile.am: Driver for test suite.
3818 * tests/UserSettingTest.cc: Test UserSetting interface.
3819 * tests/UserSettingsTest.cc: Test UserSettings interface.
3820 * Makefile.am: Add the tests dir to recurse into.
3821 * configure.in: Ditto.
3822 * UserSetting.h: Add load and save methods to allow global
3823 serialisation.
3824 Add explicit copy and assignment operators to prevent synthetics.
3825 Make the constructor protected to prevent direct instantiation.
3826 * UserSettings.h (UserSettings::loadAllSettings): New method.
3827 (UserSettings::savedAllSettings): New method.
3828 * UserSettings.cc: Implement new methods.
3829 * site.cc: Implement stubs for new required UserSetting methods.
3830 * site.h (ChosenSite): Ditto.
3831 * bz2lib/: Ran automake.
3832 * zlib/: Ran automake.
3833
3834 2003-07-23 Max Bowsher <maxb@ukf.net>
3835
3836 * desktop.cc (DesktopSetupPage::OnBack): Remove obsolete use of NEXT().
3837 * root.cc (RootPage::OnNext): Ditto.
3838 (RootPage::OnBack): Ditto.
3839 * install.cc (do_install_thread): Remove obsolete use of next_dialog.
3840 * main.cc (main): Ditto.
3841 * postinstall.cc (do_postinstall_thread): Ditto.
3842
3843 2003-07-23 Max Bowsher <maxb@ukf.net>
3844
3845 * dialog.h (do_choose, do_desktop, do_local_dir, do_net, do_other)
3846 (do_root, do_site, do_source, do_splash): Remove declarations, since
3847 these functions no longer exist.
3848
3849 2003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3850
3851 * choose.cc (initialized): Remove obsolete file scope variable.
3852
3853 2003-07-18 Max Bowsher <maxb@ukf.net>
3854
3855 * res.rc: Make caption of every dialog page begin with "Cygwin Setup".
3856 This aids recognition when minimized.
3857 Prompted by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
3858
3859 2003-07-10 Jeremy White <jwhite@codeweavers.com>
3860
3861 * mount.cc, root.cc, site.cc: Make StringOptions required,
3862 thereby making --longopt <parm> behave as a newbie would expect.
3863
3864 2003-07-08 Max Bowsher <maxb@ukf.net>
3865
3866 * LogFile.h, cistring.h, dialog.h, diskfull.h, filemanip.h, geturl.h,
3867 hash.h, log.h, mkdir.h, mklink2.h, mount.h, msg.h, netio.h, nio-file.h,
3868 nio-ftp.h, nio-http.h, nio-ie5.h, port.h, simpsock.h, state.h,
3869 version.h: Add inclusion guard.
3870 * root.h: Standardize naming of inclusion guard.
3871
3872 2003-06-23 Max Bowsher <maxb@ukf.net>
3873
3874 * AntiVirus.h, Exception.h, FilterVisitor.h, FindVisitor.h,
3875 IOStreamProvider.h, IniDBBuilder.h, IniDBBuilderPackage.h,
3876 IniParseFeedback.h, IniParseFindVisitor.h, LogSingleton.h, MD5++.h,
3877 PackageSpecification.h, PackageTrust.h, PickCategoryLine.h, PickLine.h,
3878 PickPackageLine.h, PickView.h, RECTWrapper.h, ScanFindVisitor.h,
3879 String++.h, UserSetting.h, UserSettings.h, archive.h, archive_tar.h,
3880 category.h, choose.h, compress.h, compress_bz.h, compress_gz.h,
3881 cygpackage.h, desktop.h, download.h, find.h, ini.h, io_stream.h,
3882 io_stream_cygfile.h, io_stream_file.h, io_stream_memory.h,
3883 io_stream_rsync.h, localdir.h, net.h, package_db.h, package_meta.h,
3884 package_source.h, package_version.h, proppage.h, propsheet.h, script.h,
3885 site.h, source.h, splash.h, threebar.h, win32.h, window.h:
3886 Standardize naming and placement of inclusion guards.
3887
3888 2003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3889
3890 * res.rc (all dialogs): Change font from "MS Sans Serif" to
3891 "MS Shell Dlg".
3892
3893 2003-06-22 Max Bowsher <maxb@ukf.net>
3894
3895 * Makefile.am: Clarify comment.
3896 Derive AM_CFLAGS from AM_CXXFLAGS, rather than the other way around.
3897 (AM_CXXFLAGS): Remove -Wmissing-declarations - it is a C-only warning.
3898 (AM_CFLAGS): Add -Winline, and -Wmissing-declarations.
3899
3900 2003-06-22 Max Bowsher <maxb@ukf.net>
3901
3902 * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional.
3903
3904 2003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3905
3906 * window.h (SETUP_WINDOW_H): Rename multi-include guard.
3907 (Copyright): Update.
3908 (RECTWrapper): New forward declaration.
3909 (Window::Create): Move.
3910 (Window::MoveWindow): New overload declaration.
3911 * window.cc: (RECTWrapper.h) Include.
3912 (Copyright): Update.
3913 (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead
3914 of C-style casts.
3915 (Window::MoveWindow): New overload.
3916
3917 2003-05-31 Max Bowsher <maxb@ukf.net>
3918
3919 * res.rc: Resize title controls to fully fill available width.
3920
3921 2003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3922
3923 * RECTWrapper.h: New file.
3924
3925 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3926
3927 * script.cc (Script::extension): Extract method from Script::run.
3928 (Script::run): Extract extension generation to Script::extension.
3929 * script.h (Script::extension): Declare.
3930
3931 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3932
3933 * script.cc (run_script): Remove.
3934 (try_run_script): Inline method run_script.
3935 * script.h (run_script): Remove.
3936
3937 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3938
3939 * postinstall.cc (RunScript::operator()): Use new run syntax.
3940 * script.h (Script::run): Eliminate to_log parameter.
3941 * script.cc (Script::run): Ditto.
3942 (run_script): Use new run syntax.
3943
3944 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3945
3946 * script.cc (Script::run): Eliminate temp variable 'f2'.
3947 Rename temp variable 'f2' to 'windowsName' for increased clarity.
3948
3949 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3950
3951 * script.cc (Script::run): Eliminate temp variable 'fname'.
3952
3953 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3954
3955 * script.cc (Script::run): Eliminate temp variable 'dir'.
3956
3957 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3958
3959 * script.cc (run_script): Always pass TRUE to Script::run.
3960 * script.h (run_script): Remove optional to_log parameter.
3961
3962 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3963
3964 * script.cc (run_script): Move functionality into Script.
3965 (Script::run): Absorb run_script.
3966
3967 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3968
3969 * PickCategoryLine.cc (PickCategoryLine::click): Tell packagemeta we
3970 are about to perform a visit.
3971 * PickPackageLine.cc (PickPackageLine::click): Tell packagemeta we
3972 are about to perform a visit.
3973 * package_db.cc (packagedb::markUnVisited): Convenience wrapper -
3974 mark all packages as unvisited.
3975 * package_db.h (packagedb::markUnVisited): Declare.
3976 * package_meta.cc (packagemeta::PrepareForVisit): New static method
3977 to prepare for a loop-free visit.
3978 (packagemeta::packagemeta): Adjust for new member.
3979 (packagemeta::set_requirements): Only visit a node once.
3980 (packagemeta::visited): Get and Set methods for new member visited_.
3981 * package_meta.h (packagemeta::PrepareForVisit): Declare.
3982 (packagemeta::visited): Declare.
3983 (packagemeta::visited_): Declare.
3984
3985 2003-04-07 Max Bowsher <maxb@ukf.net>
3986
3987 * download.cc: Add command line option to suppress MD5 checks.
3988 (validateCachedPackage): Test option and possibly skip.
3989
3990 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3991
3992 Merge in setup-200303-troubleshooting fixes.
3993
3994 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3995
3996 * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code.
3997 (NTSecurity::setDefaultSecurity): Ditto.
3998
3999 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4000
4001 * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL
4002 buffer sizing.
4003
4004 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4005
4006 * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation.
4007
4008 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4009
4010 * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for
4011 auto_ptr use.
4012
4013 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4014
4015 * main.cc (NTSecurity::NoteFailedAPI): Helper function.
4016 Use throughout NTSecurity routines.
4017 (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage.
4018
4019 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4020
4021 * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining
4022 active code.
4023
4024 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4025
4026 * main.cc (NTSecurity::GroupInfo): Extract group query code.
4027 (NTSecurity::setDefaultDACL): Disable ~ 50% of code.
4028
4029 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4030
4031 * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security
4032 code.
4033
4034 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
4035
4036 * main.cc (NTSecurity::setDefaultSecurity): Remove double declaration of
4037 sz. User TokenGroupCollection to abstract token searching logic,
4038 eliminate isadmin and isuser temporary variables.
4039 (TokenGroupCollection): New class for querying token group information.
4040
4041 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
4042
4043 * main.cc (NTSecurity::setDefaultSecurity): Extract esid initialisation.
4044 Move local variables to just before first use.
4045 SetTokenInformationFailures where being handled inconsistently.
4046 Remove assignments from if statements.
4047 (NTSecurity::esid): Rename to everyOneSID.
4048 (NTSecurity::initialiseEveryOneSID): new method.
4049 (NTSecurity::setDefaultDACL): Extract method for default DACL logic.
4050
4051 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
4052
4053 * main.cc (SIDWrapper): Manage SID memory.
4054 (HANDLEWrapper): Likewise for HANDLES.
4055 (NTSecurity): Worker class for set_default_sec().
4056 (set_default_sec): Move body into NTSecurity::setDefaultSecurity().
4057 (NTSecurity::setDefaultSecurity): Eliminate goto out: via memory
4058 managing objects.
4059
4060 2003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4061
4062 * cygwin.ico: Added two new resolutions, 64x64 and 72x72.
4063
4064 2003-03-29 Robert Collins <rbtcollins@hotmail.com>
4065
4066 * GUIDELINES: New file documenting code guidelines.
4067
4068 2003-03-26 Max Bowsher <maxb@ukf.net>
4069
4070 * .cvsignore: Add cfgaux.
4071
4072 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
4073
4074 * package_version.cc (_defaultversion::accessible): Override and make
4075 always false.
4076 (_packageversion::accessible): Fix a couple of logic bugs resulting in
4077 incorrect trues.
4078 * package_version.h (_packageversion::accessible): Make virtual.
4079
4080 2003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4081
4082 * threebar.h (WM_APP_START_POSTINSTALL): New message.
4083 (WM_APP_POSTINSTALL_THREAD_COMPLETE): New message.
4084 * threebar.cc (ThreeBarProgressPage::OnMessageApp):
4085 Add handling for WM_APP_START_POSTINSTALL and
4086 WM_APP_POSTINSTALL_THREAD_COMPLETE.
4087 * install.cc (do_install_thread): Set next_dialog to
4088 IDD_S_POSTINSTALL.
4089 * desktop.cc (DesktopSetupPage::OnFinish): Move the
4090 do_postinstall call to ThreeBarProgressPage::OnMessageApp.
4091 * script.h (Script::fullName): New member function.
4092 (Script::run): New member function.
4093 (Script::ETCPostinstall): New static member constant.
4094 * script.cc (Script::fullName): Implement.
4095 (Script::run): Implement.
4096 (Script::ETCPostinstall): Define.
4097 (Script::isAScript): Use ETCPostinstall instead of a
4098 hardcoded string constant.
4099 (run): Enable "#if 0"'d code.
4100 * postinstall.cc (Progress): New extern variable.
4101 (RunFindVisitor::visitFile): Add script to vector
4102 instead of running.
4103 (RunFindVisitor::_scripts): New member variable.
4104 (RunScript): New helper class for use in for_each.
4105 (do_postinstall_thread): Rename do_postinstall to. Add
4106 Progress bar and text setting. Add package count.
4107 (do_postinstall_reflector): New static function.
4108 (do_postinstall): Rename to do_postinstall_thread.
4109 Create a thread instead.
4110
4111 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4112
4113 * script.cc (run): Add file_out parameter.
4114 Redirect output of subprocess to file, creating the
4115 path if necessary. Minimize the script window.
4116 (run_script): Add optional to_log boolean parameter.
4117 If to_log, redirect output to temporary file and then
4118 import it into LOG_BABBLE.
4119 (OutputLog): New helper class.
4120 (operator<<): New operation on OutputLog.
4121 * script.h (run_script): Add optional to_log parameter.
4122 * postinstall.cc (RunFindVisitor::visitFile): Instruct
4123 run_script() to log script output.
4124 (do_postinstall): Ditto.
4125
4126 2003-03-20 Robert Collins <rbtcollins@hotmail.com>
4127
4128 * package_meta.cc (packagemeta::set_action): The logic
4129 test for the default action was reversed.
4130
4131 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4132
4133 * postinstall.cc (do_postinstall): Filter out '*.done'.
4134 * FilterVisitor.h: New header file. Declare the
4135 FilterVisitor, Filter, and ExcludeNameFilter classes.
4136 * FilterVisitor.cc: New file. Implement FilterVisitor,
4137 Filter, and ExcludeNameFilter.
4138 * String++.h (String::matches): New instance function.
4139 * String++.cc (String::matches): Implement.
4140 (strmatch) Import and adapt for <buf,len> strings.
4141 * Makefile.am (setup_SOURCES): Add FilterVisitor.cc and
4142 FilterVisitor.h to value.
4143
4144 2002-03-18 Max Bowsher <maxb@ukf.net>
4145
4146 * LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess().
4147 Use passed exit_code even if been_here.
4148 Remove incorrect _CYGWIN_ preprocessor conditional.
4149
4150 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
4151
4152 * package_db.h (PackageDBConnectedIterator): Typedef
4153 for connected loop detection collection iterator.
4154 * package_db.cc (ConnectedLoopDetector): An
4155 implementation of R.E. Tarjans strongly connected
4156 set visitor algorithm.
4157 * postinstall.cc (do_postinstall): Use the new iterator
4158 for visiting postinstall scripts.
4159
4160 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
4161
4162 * install.cc: Introduce Installer class.
4163 (init_dialog): Rename to Installer::initDialog.
4164 (progress): Rename to Installer::progress.
4165 (standard_dirs): Rename to Installer::StandardDirs.
4166 (uninstall_one): Rename to Installer::uninstallOne.
4167 (replace_one): Rename to Installer::replaceOne.
4168 (log_ror_failure): Rename to
4169 Installer::replaceOnRebootFailed.
4170 (log_ror_success): Rename to
4171 Installer::replaceOnRebootSucceeded.
4172 (install_one_source): Rename to Installer::installOneSource.
4173 Note script files as they are installed.
4174 * package_version.cc (packageversion::addScript): Implement.
4175 (packageversion::scripts): Implement.
4176 * package_version.h (packageversion::addScript): Record the
4177 presence of a script.
4178 * script.h (Script): New class to track scripts.
4179 * postinstall.cc (do_postinstall): Iterate through the
4180 package listed scripts before searching for scripts.
4181 * String++.cc (String::substr): Second argument needed to
4182 be signed.
4183 * String++.h (String::substr): Second argument needed to
4184 be signed.
4185
4186 2003-03-16 Max Bowsher <maxb@ukf.net>
4187
4188 * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and
4189 autom4te.cache.
4190
4191 2003-03-16 Max Bowsher <maxb@ukf.net>
4192
4193 * UserSettings.cc (UserSettings::Instance): Remove premature return.
4194
4195 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4196
4197 * script.cc (run): Rename variable b to createSucceeded.
4198
4199 2003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4200
4201 * script.cc (run): Close unneeded handles.
4202
4203 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4204
4205 * configure: Remove.
4206 * aclocal.m4: Remove.
4207 * Makefile.in: Remove.
4208 * cfgaux: Remove.
4209 * cfgaux/compile: Remove.
4210 * cfgaux/config.guess: Remove.
4211 * cfgaux/config.sub: Remove.
4212 * cfgaux/depcomp: Remove.
4213 * cfgaux/install-sh: Remove.
4214 * cfgaux/ltmain.sh: Remove.
4215 * cfgaux/missing: Remove.
4216 * cfgaux/mkinstalldirs: Remove.
4217
4218 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4219
4220 * install.cc (replace_one): Clear Text3.
4221
4222 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4223
4224 * install.cc (install_one_source): Add logging for successful
4225 replace-on-reboot scheduling. Factor out duplicate code.
4226 Set rebootneeded on Win9x.
4227 (log_ror_failure): New static function.
4228 (log_ror_success): New static function.
4229
4230 2003-03-14 Robert Collins <rbtcollins@hotmail.com>
4231
4232 * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by
4233 Igor Pechtchanski <pechtcha@cs.nyu.edu>.
4234
4235 2003-03-13 Max Bowsher <maxb@ukf.net>
4236
4237 * Update included zlib to 1.1.4.
4238
4239 2003-03-13 Robert Collins <rbtcollins@hotmail.com>
4240
4241 * install.cc (do_install_thread): Use a query method rather than temp
4242 variable do_skip.
4243
4244 2003-03-09 Pavel Tsekov <ptsekov@gmx.net>
4245
4246 * install.cc (do_install_thread): Use IDS_SKIP_PACKAGE
4247 instead of IDS_CORRUPT_PACKAGE when asking the user to take
4248 action if the hash verification check fails for a source package.
4249 Do not increase the value of 'total_bytes' variable if the
4250 user chooses to skip over a package, which failed the hash
4251 verification.
4252
4253 2003-03-10 Max Bowsher <maxb@ukf.net>
4254
4255 * Makefile.am: Add foreign to AUTOMAKE_OPTIONS.
4256
4257 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4258
4259 * UserSettings.cc (UserSettings::init): Really initialize all members.
4260
4261 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4262
4263 * Exception.h: Add a logic error exception id.
4264 * Makefile.am: Add new sources.
4265 * UserSettings.cc: New file.
4266 * UserSettings.h: New file.
4267 * UserSetting.cc: New file.
4268 * UserSetting.h: New file.
4269 * site.h: Add a SiteSetting as example of a UserSetting.
4270 * site.cc (ChosenSites): Add a instance of SiteSetting to trigger
4271 registration.
4272
4273 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4274
4275 * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of
4276 lasterr.
4277 (compress_bz::error): Return lasterr which will indicate any error.
4278
4279 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4280
4281 * choose.h (ChooserPage): Override OnActivate.
4282 * choose.cc (ChooserPage::OnActivate): Refresh the current view when
4283 activating the dialog.
4284
4285 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4286
4287 * package_version.cc (_defaultversion::pick(bool)): Override this and
4288 do nothing.
4289 (packageversion::pick(bool): Use a mutator function rather than direct
4290 member access.
4291 * package_version.h (_packageversion::pick(bool)): Move method from
4292 _packageversion.
4293
4294 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4295
4296 * install.cc (install_one_source): Remove the MD5 verification
4297 code.
4298 Delay the creation of the package listing file.
4299 (do_install_thread): Check the hashes for packages which need
4300 to be installed before the uninstall step. Allow the user to
4301 skip over packages, which fail the hash verification.
4302 (md5_one): Define new function.
4303 * res.rc (IDS_SKIP_PACKAGE): New string resource.
4304 * resource.h (IDS_SKIP_PACKAGE): New macro definition.
4305
4306 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4307
4308 * Exception.h: Declare new constructor.
4309 (Exception::_message): Change the type from 'const char *' to
4310 'class String'.
4311 (Exception::~Exception): Implement destructor (make gcc shut up).
4312 * Exception.cc: Implement new constructor.
4313 (Exception::what): Use String::cstr_oneuse ().
4314 * download.cc (validateCachedPackage): Use the constructor, which
4315 takes String& as its second argument, when throwing objects
4316 of type Exception.
4317 (check_for_cached): Ditto.
4318 * install.cc (install_one_source): Ditto.
4319
4320 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4321
4322 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
4323 log filename to %s.
4324 (IDS_MISSING_LOG): New string resource.
4325 * resource.h (IDS_MISSING_LOG): New resource.
4326 * LogFile.cc (LogFile::exit): Pass log filename for
4327 LOG_BABBLE to note().
4328 (LogFile::getFileName): New function.
4329 * LogFile.h (LogFile::getFileName): New function.
4330
4331 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4332
4333 * String++.cc: Don't include concat.h.
4334 * Makefile.am: Remove concat.cc and concat.h references.
4335 * concat.h: Remove.
4336 * concat.cc: Remove.
4337
4338 2003-03-09 Max Bowsher <maxb@ukf.net>
4339
4340 * bootstrap.sh: Add sanity check of current directory.
4341 Recurse into libgetopt++ if needed.
4342
4343 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4344
4345 * Update readme of bugs and wishes.
4346
4347 2003-03-05 Max Bowsher <maxb@ukf.net>
4348
4349 * netio.cc (save_dialog): Allocate an empty string if the password is
4350 null, so that an empty password is accepted elsewhere in setup.
4351 (check_if_enable_ok): An empty password is OK.
4352
4353 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
4354
4355 * PickView.cc (PickView::views): Add two new views for Skipped
4356 packages and Installed Packages not requiring update.
4357 (PickView::set_headers () ): Ditto.
4358 (PickView::clear_view (void) ): Ditto.
4359 (PickView::views::caption () ): Add two new captions for the new
4360 views added for Skipped and Installed Packages.
4361 (PickView::scroll () ): Modify Scroll Bar property to Disable
4362 instead of disappearing when there is nothing to Scroll.
4363 * PickView.h: Add two new views for Skipped packages and Installed
4364 packages to public class view.
4365 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
4366 instead of disappearing when there is nothing to Scroll.
4367 (listview_proc () ): Ditto.
4368 (set_view_mode): Add two new views for Skipped Packages and Installed
4369 Packages not requiring update. Modify Scroll Bar property to Disable
4370 instead of disappearing when there is nothing to scroll.
4371 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
4372 Button and View Button Caption to make room for longer captions.
4373
4374 2003-03-04 Max Bowsher <maxb@ukf.net>
4375
4376 * compress_gz.cc (compress_gz::construct):
4377 Fix broken checkin dated 2002-07-03.
4378
4379 2003-02-28 Max Bowsher <maxb@ukf.net>
4380
4381 * main.cc (set_default_sec): Add logging.
4382
4383 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
4384
4385 * main.cc (set_default_dacl): Replace with set_default_sec.
4386 (set_default_sec): Attempt to change the default group to
4387 Users or Administrators if it is None, in addition to setting
4388 Everyone in the default DACL.
4389 (main): Call set_default_sec instead of set_default_dacl.
4390
4391 2003-01-31 Max Bowsher <maxb@ukf.net>
4392
4393 * install.cc (install_one_source): Fix spacing in log message.
4394
4395 2003-01-19 Max Bowsher <maxb@ukf.net>
4396
4397 * resource.h (IDC_CHOOSE_KEEP): Define.
4398 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
4399 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
4400 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
4401
4402 2003-01-15 Max Bowsher <maxb@ukf.net>
4403
4404 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
4405 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
4406 * proppage.h: Include "win32.h" instead of <windows.h>.
4407
4408 2003-01-15 Max Bowsher <maxb@ukf.net>
4409
4410 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
4411
4412 2002-12-11 Abraham Backus <abraham@backus.com>
4413
4414 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
4415 unless non-default.
4416
4417 2002-12-11 Max Bowsher <maxb@ukf.net>
4418
4419 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
4420 * package_version.cc: Ditto.
4421
4422 2002-09-22 Max Bowsher <maxb@ukf.net>
4423
4424 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
4425 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
4426 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
4427 * PickPackageLine.cc (PickPackageLine::paint): Change to use
4428 getReadableCategoryList.
4429 Fix x2 argument to IntersectClipRect.
4430
4431 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4432
4433 * window.h (Window::GetWindowRect): New method declaration.
4434 (Window::GetClientRect): Ditto.
4435 (Window::MoveWindow): Ditto.
4436 (Window::ScreenToClient): Ditto.
4437 * window.cc (REFLECTION_INFO): Remove.
4438 (ReflectionInfo): Remove.
4439 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
4440 of the horrid REFLECTION_INFO hack to hook the Window instance to the
4441 HWND instance.
4442 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
4443 available.
4444 (Window::Create): Change to use new WM_NCCREATE reflection procedure
4445 above.
4446 (Window::GetWindowRect): New method.
4447 (Window::GetClientRect): New method.
4448 (Window::MoveWindow): New method.
4449 (Window::CenterWindow): Use new methods, also specify "::" for some non-
4450 member functions with the same names.
4451 (Window::ScreenToClient): New method.
4452
4453 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4454
4455 * AntiVirus.cc: Change the short option again! It's now 'A'.
4456 * desktop.cc (etc_profile): Remove.
4457 (make_etc_profile): Remove.
4458 (uexists): Remove.
4459 (make_passwd_group): Remove.
4460 (do_desktop_setup): Don't call removed functions.
4461
4462 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4463
4464 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
4465 Marcel's patch.
4466
4467 2002-07-08 Marcel Telka <marcel@telka.sk>
4468
4469 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
4470 reply (code 227) to the PASV command.
4471
4472 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4473
4474 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
4475 Sort the packages db once all the new packages have been added.
4476 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
4477 Declare this.
4478
4479 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4480
4481 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
4482 * package_version.cc (processOneDependency): Return once selecting
4483 a package (bugfix to prevous rework).
4484 Log if the default trust fails the package specification.
4485
4486 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4487
4488 * package_meta.h (packagemeta::logAllVersions): Declare.
4489 (packagemeta::trustLabel): Ditto.
4490 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
4491 versions.
4492 * package_meta.cc (packagemeta::logAllVersions): Implement.
4493 (packagemeta::trustLabel): Ditto.
4494
4495 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4496
4497 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
4498
4499 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4500
4501 * AntiVirus.cc: New file.
4502 * AntiVirus.h: Ditto.
4503 * LogFile.cc: Include AntiVirus.h for class definition.
4504 (LogFile::exit): Trigger AntiVirus::AtExit().
4505 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
4506 * autoload.c: Declare Service Control Manager related API's.
4507 * main.cc: Include AntiVirus.h for class definition.
4508 (main): Add the AntiVirus page in.
4509 * res.rc: Define IDD_VIRUS.
4510 * resource.h: Define IDD_VIRUS related control ID's.
4511 * splash.h: Override OnNext.
4512 * splash.cc: Only show AntiVirus page when one has been detected.
4513 * source.cc: Ditto.
4514
4515 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4516
4517 * package_version.cc (DependencyProcessor): Create convenience class.
4518 (select): Extract version selection method.
4519 (processOneDependency): Check for a satisfactory trusted version
4520 first.
4521
4522 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4523
4524 * main.cc (main): Use the factory for LogFile.
4525 * String++.cc: Update to use sstream.
4526 (String::String): Use a ostringstream for libC++ 3.2.
4527 * LogFile.h (LogFile): Make createLogFile static.
4528
4529 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4530
4531 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
4532
4533 2002-11-04 Max Bowsher <maxb@ukf.net>
4534
4535 * Exception.h (Exception::what): Add throw() specification,
4536 to agree with libstdc++-v3.
4537 * Exception.cc (Exception::what): Ditto.
4538 * IniDBBuilderPackage.h: Add 'std::' where needed.
4539 * PickCategoryLine.h: Ditto.
4540 * category.h: Ditto.
4541 * package_db.h: Ditto.
4542 * package_meta.h: Ditto.
4543 * package_source.h: Ditto.
4544 * package_version.h: Ditto.
4545 * site.h: Ditto.
4546 * win32.h: Define NOMINMAX before including <windows.h>.
4547 * package_meta.cc: Add 'using namespace std;'.
4548 (packagemeta::set_requirements): Remove default parameter values
4549 from definition (gcc3 likes them only in declaration).
4550 * package_version.cc: Add 'using namespace std;'.
4551 (packageversion::set_requirements): Remove default parameter
4552 values from definition (gcc3 likes them only in declaration).
4553
4554 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4555
4556 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
4557 header includes it.
4558
4559 2002-11-04 Max Bowsher <maxb@ukf.net>
4560
4561 * compress_bz.h: #undef small before including bzlib.h - if we are
4562 going to hide the fact that we are _WIN32 from bzlib, then we need
4563 to #undef small for it as well (bad windows.h clash).
4564
4565 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4566
4567 * localdir.cc: Update the extern LogFile to be a pointer.
4568 (save_local_dir): Change . to -> for the above.
4569 * main.cc (theFile): Change from an instance to a pointer.
4570 (main): Change . to -> for the above.
4571
4572 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4573
4574 * LogFile.cc: use 'std::' where needed throughout.
4575 (LogFile::createLogFile): Implement a factory for LogFile.
4576 (LogFile::LogFile): Update for use with the factory, and to
4577 handle the latest g++ library changes.
4578 (LogFile::operator()): Ditto.
4579 (LogFile::endEntry()): Ditto.
4580 * LogFile.h: Ditto.
4581 * LogSingleton.cc: Ditto.
4582 * LogSingleton.h: Ditto.
4583
4584 2002-11-04 Max Bowsher <maxb@ukf.net>
4585
4586 * String++.h: Add 'std::' where needed.
4587
4588 2002-11-04 Max Bowsher <maxb@ukf.net>
4589
4590 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
4591 * IniParseFindVisitor.cc: Ditto.
4592 * LogFile.cc: Ditto.
4593 * LogSingleton.cc: Ditto.
4594 * PickView.cc: Ditto.
4595 * String++.cc: Ditto.
4596 * choose.cc: Ditto.
4597 * download.cc: Ditto.
4598 * find.cc: Ditto.
4599 * install.cc: Ditto.
4600 * io_stream.cc: Ditto.
4601 * io_stream_file.cc: Ditto.
4602 * package_db.cc: Ditto.
4603 * root.cc: Ditto.
4604 * site.cc: Ditto.
4605
4606 2002-11-04 Max Bowsher <maxb@ukf.net>
4607
4608 * LogSingleton.h: Add 'std::' where needed.
4609
4610 2002-11-04 Max Bowsher <maxb@ukf.net>
4611
4612 * archive_tar_file.cc: Include <algorithm>.
4613 Change min(a,b) to std::min(a,b)
4614 * compress_bz.cc: Ditto.
4615 * compress_gz.cc: Ditto.
4616
4617 2002-11-04 Max Bowsher <maxb@ukf.net>
4618
4619 * res.rc: Change a #-comment (invalid) to a //-comment.
4620
4621 2002-11-04 Max Bowsher <maxb@ukf.net>
4622
4623 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
4624 (inilint_LDADD): Remove -lstd++.
4625 (setup_LDADD): Ditto.
4626
4627 2002-09-22 Max Bowsher <maxb@ukf.net>
4628
4629 * IniDBBuilderPackage.cc: Update DEBUG code to current class
4630 layout.
4631
4632 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
4633
4634 * choose.h: Add OnUnattended method.
4635 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
4636 control via command line options.
4637 (DesktopSetupPage::OnUnattended): Implement.
4638 (DesktopSetupPage::OnMessageApp): Implement.
4639 * desktop.h (DesktopSetupPage::OnUnattended): declare.
4640 (DesktopSetupPage::OnMessageApp): Ditto.
4641 * download.cc (do_download_thread): Support unattended mode.
4642 * install.cc (do_install_thread): Ditto.
4643 * localdir.h: Ditto.
4644 * main.cc (main): Ditto.
4645 * net.cc (NetPage::OnUnattended): Ditto.
4646 * net.h (NetPage::OnUnattended): Declare.
4647 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
4648 * proppage.h (PropertyPage::OnUnattended): Declare.
4649 * root.cc (RootPage::OnInit): Support unattended mode.
4650 (RootPage::OnUnattended): Implement.
4651 * root.h (RootPage::OnUnattended): Declare.
4652 * site.cc (register_saved_site): Extract Method from get_saved_sites.
4653 (get_saved_sites): Remove common code for adding a site.
4654 (SitePage::OnInit): Support unattended mode.
4655 (SitePage::OnUnattended): Implement.
4656 * site.h (SitePage::OnUnattended): Declare.
4657 * source.cc (SourcePage::OnActivate): Support unattended mode.
4658 (SourcePage::OnUnattended): Implement.
4659 * source.h (SourcePage::OnUnattended): Declare.
4660 * splash.h (SplashPage::OnUnattended): Declare.
4661 * state.cc (unattended_mode): Declare.
4662 * state.h (unattended_mode): Declare.
4663 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
4664
4665 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
4666
4667 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
4668
4669 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4670
4671 * package_version.cc (packageversion::sources): Implement this.
4672 * download.cc (do_download_thread): Support multiple files per package.
4673
4674 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4675
4676 * package_version.h (packageversion::sources): Support multiple files in
4677 a single package version.
4678 * package_version.cc (_packageversion::accessible): Ditto.
4679 (packageversion::source): Ditto.
4680
4681 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4682
4683 * iniparse.y: Implement support for multiple source files for a source
4684 package.
4685 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
4686 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
4687 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
4688 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
4689 stub as preparation.
4690
4691 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
4692
4693 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
4694 packages under all circumstances - slightly higher overheader, simpler
4695 code.
4696 * download.cc (do_download_thread): Correctly download source
4697 packages.
4698 * package_meta.cc (checkForInstalled): Remove.
4699 (checkForUpgradeable): Ditto.
4700 (checkForSatisfiable): Ditto.
4701 (processOneDependency): Ditto.
4702 (packagemeta::set_requirements): Move guts to packageversion.
4703 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
4704 (checkForUpgradeable): Ditto.
4705 (checkForSatisfiable): Ditto.
4706 (processOneDependency): Ditto.
4707 (packageversion::set_requirements): Ditto.
4708 * package_version.h (packageversion::set_requirements): Declare.
4709
4710 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
4711
4712 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
4713 (IniDBBuilder::buildBeginBinary): Implement.
4714 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
4715 (IniDBBuilder::buildBeginBinary): Ditto.
4716 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
4717 Implement.
4718 (IniDBBuilderPackage::buildBeginBinary): Ditto.
4719 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
4720 Declare.
4721 (IniDBBuilderPackage::buildBeginBinary): Ditto.
4722 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
4723 T_UNKNOWN.
4724 * iniparse.y: Full support for parsing a debian Sources file in-line in
4725 setup.ini.
4726 * package_version.cc (packageversion::binaries): Implement.
4727 * package_version.h (packageversion::binaries): Declare list of what
4728 packages are created from a given source package.
4729 (_packageversion::binaries): Ditto.
4730
4731 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
4732
4733 * iniparse.y: Add basis for support for parsing a debian Sources file.
4734 * inilex.l: Ditto.
4735
4736 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
4737
4738 Change custom container code for packagedb::packages to STL containers
4739 throughout.
4740 * IniDBBuilderPackage.cc: Ditto.
4741 * PickView.cc: Ditto.
4742 * choose.cc: Ditto.
4743 * desktop.cc: Ditto.
4744 * download.cc: Ditto.
4745 * install.cc: Ditto.
4746 * package_db.cc: Ditto.
4747 * package_db.h: Ditto.
4748 * Makefile.am: Remove list.h references.
4749 * list.h: Remove.
4750
4751 2002-07-08 Max Bowsher <maxb@ukf.net>
4752
4753 * PickView.cc (PickView::PickView): Set font of package list header to
4754 the same as used in the rest of the package list.
4755
4756 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
4757
4758 * install.cc (NoReplaceOnReboot): New command line option to prevent
4759 replacing in use files.
4760 (install_one_source): Check the option and use it.
4761 * README: Update TODO lists.
4762
4763 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
4764
4765 * PickCategoryLine.cc: Change bucket to use STL container syntax
4766 throughout.
4767 (PickCategoryLine::paint): Use new Category type syntax.
4768 * PickCategoryLine.h: Use STL vectors rather than custom containers
4769 throughout.
4770 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
4771 Use new add_category syntax.
4772 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
4773 (PickView::insert_category): Ditto.
4774 (PickView::init_headers): Ditto.
4775 * category.cc: Trim obsolete code.
4776 * category.h: Replace interconnecting class with a typedef to
4777 facilitate leveraging STL maps.
4778 * choose.cc (fill_missing_category): Use updated pkg.add_category
4779 syntax.
4780 (default_trust): Use new Category type syntax.
4781 (set_view_mode): Ditto.
4782 (create_listview): Ditto.
4783 * package_db.cc (categories): Ditto.
4784 * package_db.h: Update headers list to include needed headers.
4785 (packagedb::categories): Replace custom list with STL map.
4786 * package_meta.cc: Use new Category type syntax throughout.
4787 (packagemeta::add_category): Implement new syntax.
4788 * package_meta.h: Remove commented out source.
4789 (packagemeta::add_category): Update syntax to decouple interface from
4790 packagedb.
4791
4792 2002-07-06 Christopher Faylor <cgf@redhat.com>
4793
4794 * site.cc (do_download_site_info_thread): Correct spelling error.
4795
4796 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
4797
4798 * PickCategoryLine.h: Include required header list.h.
4799 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
4800 containers for listing of packages per category and vice verca.
4801 * PickView.cc (PickView::insert_pkg): Ditto.
4802 (PickView::insert_category): Ditto.
4803 * String++.h (String::caseless): STL helper to allow trivial containers
4804 of Strings with case insensitive comparisons.
4805 * category.h: Adjust to use STL containers for listing of packages per
4806 category and vice verca.
4807 * choose.cc (fill_missing_category): Ditto.
4808 (default_trust): Ditto.
4809 (ChooserPage::OnNext): Ditto.
4810 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
4811 (packagemeta::packagemeta): Adjust for new category list name.
4812 (packagemeta::~packagemeta): Adjust to use STL containers for listing
4813 of packages per category and vice verca.
4814 (packagemeta::set_action): Ditto.
4815 * package_meta.h (CategoryPackage): Remove.
4816 (packagemeta): Adjust to use STL containers for listing of packages per
4817 category and vice verca.
4818
4819 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4820
4821 * io_stream.cc: Use STL containers rather than custom ones.
4822 (io_stream::registerProvider): Ditto.
4823 (findProvider): Ditto.
4824
4825 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4826
4827 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
4828 Use STL collections for download site collections.
4829 (IniDBBuilderPackage::add_correct_version): Ditto.
4830 (IniDBBuilderPackage::process_src): Ditto.
4831 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
4832 accessible() call to abstract package availability.
4833 * choose.cc (scanAVersion): Use STL collections for download site
4834 collections.
4835 * download.cc (check_for_cached): Ditto.
4836 (download_one): Ditto.
4837 * package_meta.cc (packagemeta::set_action): Use the packageversion
4838 accessible() call to abstract package availability.
4839 * package_source.h: Use STL containers rather than custom containers.
4840 (site): Create a == operator to allow STL container use.
4841 (packagesource::sites): Use STL containers rather than custom
4842 containers.
4843 * package_version.cc (_packageversion::accessible): Use STL containers
4844 for download site containers.
4845
4846 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4847
4848 * LogFile.cc: Use STL containers rather than custom containers.
4849 (filedef): Create == and < operators for STL use.
4850 (files): Convert to an STL set.
4851 (LogFile::setFile): Use STL operations on files.
4852 (LogFile::exit): Ditto.
4853
4854 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4855
4856 * ini.cc (do_remote_ini): Use STL collection for site collection.
4857 * site.cc: Include site.h first to ensure it's parsable standalone.
4858 Use STL algorithms.
4859 (site_list): Convert to an STL container.
4860 (all_site_list): Ditto.
4861 (site_list_type::site_list_type): Implement copy constructor.
4862 (site_list_type::operator=): Implement assignment operator.
4863 (site_list_type::operator ==): Implement.
4864 (site_list_type::operator <): Ditto.
4865 (save_dialog): Use STL collection calls for site collection.
4866 (save_site_url): Ditto.
4867 (get_site_list): Ditto.
4868 (get_saved_sites): Ditto.
4869 (do_download_site_info_thread): Ditto.
4870 (SitePage::OnNext): Ditto.
4871 (SitePage::PopulateListBox): Ditto.
4872 (SitePage::OnMessageCmd): Ditto.
4873 * site.h: Use STL vectors instead of custom code.
4874 (site_list_type::site_list_type): Declare.
4875 (site_list_type::operator=): Ditto.
4876 (site_list_type::operator ==): Ditto.
4877 (site_list_type::operator !=): Ditto.
4878 (site_list_type::operator <): Ditto.
4879 (site_list_type::operator <=): Ditto.
4880 (site_list_type::operator >): Ditto.
4881 (site_list_type::operator >=): Ditto.
4882 (site_list): Convert to an STL container.
4883 (all_site_list): Ditto.
4884
4885 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4886
4887 * choose.cc (default_trust): Check package accessibility before
4888 triggering an install. (Suggested by Pavel).
4889
4890 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
4891
4892 * compress_gz.cc (compress_gz::construct): Always initialize key members
4893 to ensure the destructor does the right thing.
4894
4895 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
4896
4897 * filemanip.cc (parse_filename): Do not try to parse empty
4898 strings (filenames).
4899 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
4900 extracted good package name and filename.
4901
4902 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
4903
4904 * package_meta.cc (packagemeta::set_requirements): Automatically select
4905 version of dependent packages that satisfies the requirements.
4906 Use processOneDependency to trigger the install of those packages.
4907 (checkForInstalled): Check that the package remains installed.
4908 (processOneDependency): Helper function for dependent packages.
4909 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
4910 debug information.
4911 Clear out all current state on new packages.
4912 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
4913 across.
4914
4915 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
4916
4917 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
4918 nb: inilint is still incomplete, as the packageversion code is not
4919 ready for database-less linking.
4920 * site.cc (get_site_list): When the same site is reentered by the user
4921 replace the old one. (Suggested by John Marshall).
4922
4923 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
4924
4925 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
4926 Clear out package selections when generating implicit source packages.
4927 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
4928 (PackageSpecification::_operators::satisfies): Implement.
4929 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
4930 Worker function for testing versions.
4931
4932 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
4933
4934 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
4935 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
4936 * IniDBBuilderPackage.cc: Use the STL algorithms.
4937 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
4938 functions for the same variable throughout.
4939 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
4940 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
4941 and set an empty source package.
4942 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
4943 to record an install package.
4944 (IniDBBuilderPackage::buildPackageSource): Move source package logic
4945 out from process_src, as it now occurs at separate times.
4946 (IniDBBuilderPackage::buildPackageRequirement): Remove.
4947 (IniDBBuilderPackage::buildSourceName): Use renamed package
4948 specifiation accessor for clarity.
4949 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
4950 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
4951 than custom code.
4952 Remove source package references.
4953 (IniDBBuilderPackage::process_src): Remove source package code as it's
4954 now handled separately.
4955 Set Path information before merging versions, to prevent dangling
4956 pointers.
4957 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
4958 Remove.
4959 (IniDBBuilderPackage::cpv): Remove.
4960 (IniDBBuilderPackage::cbpv): New generic binary working variable.
4961 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
4962 (IniDBBuilderPackage::csp): Source package variable for disjoint
4963 source packages.
4964 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
4965 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
4966 * PickPackageLine.cc: Adjust packageversion accessors to the new
4967 reference calls. (i.e. -> to .) throughout.
4968 (PickPackageLine::paint): Use accessible() for clarity.
4969 Use new split out source package logic.
4970 (PickPackageLine::click): Ditto.
4971 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
4972 to the new reference calls. (i.e. -> to .) throughout.
4973 Use new split out source package logic.
4974 * choose.cc: Don't depend on a specific package type.
4975 Adjust packageversion accessors to the new reference calls. (i.e. -> to
4976 .) throughout.
4977 (set_existence): Use accessible () for clarity.
4978 (default_trust): Simplify a little.
4979 (scanAVersion): Factored out code from scan_downloaded_files for
4980 clarity.
4981 (scan_downloaded_files): Factor out inner loop for clarity.
4982 (ChooserPage::OnNext): Don't dump the dependency list,
4983 it's parsing is robust now!.
4984 * cygpackage.cc (createInstance): Use a factory method to create new
4985 objects.
4986 (cygpackage::cygpackage): Make this private for use by the factory.
4987 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
4988 Remove key usage as it's obsolete.
4989 * cygpackage.h (cygpackage): Inherit from _packageversion, not
4990 packageversion.
4991 (cygpackage::createInstance): New factory.
4992 (cygpackage::cygpackage): Make private.
4993 * desktop.cc (make_passwd_group): Use new packageversion reference.
4994 * download.cc (do_download_thread): Use changeRequested() for clarity.
4995 Use new packageversion reference calls.
4996 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
4997 requires code.
4998 * install.cc: Adjust -> to ., and use the new accessor functions for
4999 packageversion throughout.
5000 * package_db.cc: Adjust -> to ., and use the new accessor functions for
5001 packageversion throughout.
5002 (packagedb::packagedb): Use the new cygpackage factory.
5003 (packagedb::flush): Leverage String to remove buffer overflow chance in
5004 sprintf.
5005 (packagedb::findBinary): Find a binary meta package that has a version
5006 matching a given specification.
5007 (packagedb::findSource): Ditto, but for source.
5008 * package_db.h (packagedb::findBinary): Declare.
5009 (packagedb::findSource): Ditto.
5010 * package_meta.cc: Adjust packageversion accessors to the new
5011 reference calls. (i.e. -> to .) throughout.
5012 Include the package_meta header first to ensure it parses standalone.
5013 Use the STL algorithms.
5014 (packagemeta::packagemeta): Create a copy constructor to allowing
5015 cloning binary package metadata to source package metadata.
5016 (packagemeta::~packagemeta): Use the STL coleltion code rather than
5017 custom collection code.
5018 (packagemeta::add_version): Ditto.
5019 (packagemeta::set_installed): Ditto.
5020 (packagemeta::SDesc): Ditto.
5021 (hasSDesc): Helper function for find_if.
5022 (checkForInstalled): Ditto.
5023 (checkForUpgradeable): Ditto.
5024 (checkForSatisfiable): Ditto.
5025 (packagemeta::action_caption): Update for split out source packages.
5026 (packagemeta::set_action): Ditto.
5027 (packagemeta::set_requirements): Support multi-valued dependency
5028 lists - a|b & c|d - with versioned package specifications.
5029 (packagemeta::accessible): Helper member to improve abstraction.
5030 (packagemeta::sourceAccessible): Ditto.
5031 * package_meta.h: Adjust packageversion accessors to the new
5032 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
5033 (packagemeta::packagemeta): Declare copy constructor.
5034 Remove self initialising members.
5035 (packagemeta::set_action): Update parameters for new packageversion.
5036 (packagemeta::trustp): Ditto.
5037 (packagemeta::versions): Becomes an STL set.
5038 * package_source.h (packagesource::Cached): Const correctness change.
5039 * package_version.cc: Rewrite the packageversion interface to remove
5040 the cygpackage nonvirtual members, and provide a copy by value,
5041 pointer semantics reference counting wrapper class to ease use and
5042 comparison of packageversions.
5043 Change existing packageversion class to _packageversion throughout.
5044 (_defaultversion): A trivial concrete class to prevent specialcasing
5045 the default constructor for packageversion;
5046 (packageversion::packageversion): Implement.
5047 (packageversion::~packageversion): Ditto.
5048 (packageversion::operator=): Ditto.
5049 (packageversion::operator !): Ditto.
5050 (packageversion::operator bool): Ditto.
5051 (packageversion::operator ==): Ditto.
5052 (packageversion::operator !=): Ditto.
5053 (packageversion::operator <): Ditto.
5054 (packageversion::Name): Ditto.
5055 (packageversion::Canonical_version): Ditto.
5056 (packageversion::setCanonicalVersion): Ditto.
5057 (packageversion::getfirstfile): Ditto.
5058 (packageversion::getnextfile): Ditto.
5059 (packageversion::SDesc): Ditto.
5060 (packageversion::set_sdesc): Ditto.
5061 (packageversion::LDesc): Ditto.
5062 (packageversion::set_ldesc): Ditto.
5063 (packageversion::sourcePackage): Ditto.
5064 (packageversion::sourcePackageSpecification): Ditto.
5065 (packageversion::setSourcePackageSpecification): Ditto.
5066 (packageversion::depends): Ditto.
5067 (packageversion::predepends): Ditto.
5068 (packageversion::recommends): Ditto.
5069 (packageversion::suggests): Ditto.
5070 (packageversion::replaces): Ditto.
5071 (packageversion::conflicts): Ditto.
5072 (packageversion::provides): Ditto.
5073 (packageversion::picked): Ditto.
5074 (packageversion::pick): Ditto.
5075 (packageversion::changeRequested): Ditto.
5076 (packageversion::uninstall): Ditto.
5077 (packageversion::source): Ditto.
5078 (packageversion::accessible): Ditto.
5079 (_packageversion::sourcePackage): Ditto.
5080 (_packageversion::accessible): Ditto.
5081 (_packageversion::changeRequested): Ditto.
5082 * package_version.h: Rewrite the packageversion interface to remove
5083 the cygpackage nonvirtual members, and provide a copy by value,
5084 pointer semantics reference counting wrapper class to ease use and
5085 comparison of packageversions.
5086 Change existing packageversion class to _packageversion throughout.
5087 (Dependency): Remove.
5088 (packageversion): New wrapper class.
5089 (_packageversion): Renamed from packageversion.
5090 (_packageversion::setCanonicalVersion): New method.
5091 (_packageversion::sourcePackage): Ditto.
5092 (_packageversion::sourcePackageSpecification): Ditto.
5093 (_packageversion::setSourcePackageSpecification): Ditto.
5094 (_packageversion::changeRequested): Ditto.
5095 (_packageversion::bin): Rename to source.
5096 (_packageversion::src): Remove.
5097 (_packageversion::accessible): New method.
5098 (_packageversion::references): Allow reference counting.
5099 (_packageversion::sourceVersion): Cached the best-match source
5100 package version.
5101
5102 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5103
5104 * compress_bz.h (compress_bz::position): Track how much has been read.
5105 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
5106 (compress_bz::read): Track amount read by the client.
5107 (compress_bz::tell): And report it when asked.
5108
5109 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5110
5111 * Makefile.am (snapshot): Automate snapshot creation some more.
5112
5113 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5114
5115 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
5116 (mbox): Ditto.
5117 * ini.cc (fprintf): Ditto.
5118 * log.cc (log): Ditto.
5119 * package_db.cc (packagedb::sourcePackages): Split out source packages
5120 from binary packages.
5121 * package_db.h: Ditto.
5122
5123 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5124
5125 * PackageSpecification.h: New file. Abstracts the ability to refer
5126 to another package, by name, or name and version.
5127 * PackageSpecification.cc: Ditto.
5128 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
5129 (IniDBBuilder::buildPackageSource): Ditto.
5130 (IniDBBuilder::buildBeginDepends): New method for versioned
5131 dependencies.
5132 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
5133 satisfied before pre-install.
5134 (IniDBBuilder::buildPriority): New method, for getting the package
5135 Priority.
5136 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
5137 (IniDBBuilder::buildMaintainer): Who maintains the package?
5138 (IniDBBuilder::buildArchitecture): What platform is it for?
5139 (IniDBBuilder::buildInstallSize): How big is the binary download?
5140 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
5141 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
5142 (IniDBBuilder::buildBeginRecommends): What other packages are
5143 recommended with this one?
5144 (IniDBBuilder::buildBeginSuggests): And suggested?
5145 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
5146 (IniDBBuilder::buildBeginConflicts): And collide with?
5147 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
5148 package names) does this provide?
5149 (IniDBBuilder::buildDescription): Grab a multi line description one
5150 line at a time.
5151 (IniDBBuilder::buildSourceName): What source package should be used to
5152 install the source for this binary package?
5153 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
5154 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
5155 list of package specifications.
5156 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
5157 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
5158 to the current specification.
5159 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
5160 operator act on?
5161 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
5162 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
5163 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
5164 (IniDBBuilderPackage::process_src): Streamline and split out
5165 functionality.
5166 (IniDBBuilderPackage::setSourceSize): From process_src.
5167 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
5168 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
5169 (IniDBBuilderPackage::currentOrList): Track the current Or list.
5170 (IniDBBuilderPackage::currentAndList): Track the current And list.
5171 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
5172 progress on parsing.
5173 (IniParseFeedback::iniName): Tell what ini filename we are currently
5174 processing.
5175 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
5176 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
5177 Make the feedback object non-const to allow mutating methods which are
5178 needed when the object has state.
5179 (IniParseFindVisitor::visitFile): Tell the caller the name of each
5180 .ini found.
5181 Initialise the parser with the feedback object to allow it to tell of
5182 progress.
5183 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
5184 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
5185 (setup_SOURCES): Add the new PackageSpecification sources.
5186 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
5187 builder syntax to setup binary package details.
5188 * choose.cc: Use the LogSingleton calls throughout.
5189 * configure.in: Create the INILINT substitution correctly for recent
5190 autotool configurations.
5191 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
5192 rather than a string built from an int. Thanks to Pavel Tsekov for
5193 identifying the bug.
5194 (cygpackage::getnextfile): Ditto.
5195 * download.cc: Use LogSIngletion calls throughout.
5196 (validateCachedPackage): A refactoring of the
5197 check_for_cached code to eliminate duplciation.
5198 (check_for_cached): Use validateCachedPackage to check packages.
5199 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
5200 parsing progress.
5201 (do_remote_ini): Ditto.
5202 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
5203 progress reporting.
5204 * inilex.l: Identify new symbols - operators, and multi line plain text.
5205 Releases files.
5206 * inilintmain.cc (show_help): Provide basic infomation on inilint.
5207 * iniparse.y: Adjust for the new builder syntax, and process debian
5208 Release files.
5209 * io_stream_file.cc: Always include mkdir.h.
5210 * list.h: Factor index location into a private routine.
5211 (list::findindex): Implement this.
5212 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
5213 builds. NB: This breaks cygwin build functionality still.
5214 * package_meta.cc: Use the LogSingleton calls throughout.
5215 (packagemeta::set_requirements): Adjust for object changes in
5216 dependencies.
5217 * package_meta.h (packagemeta::packagemeta): Initialise new members.
5218 (packagemeta::architecture): What platform does this package run on?
5219 This may need to move in the future to a per packagefile object.
5220 (packagemeta::priority): What priority does this package have?
5221 * package_source.h (packagesource::packagesource): Initialise new
5222 members.
5223 (packagesource::installedSize): How much space does the package need?
5224 (packagesource::setInstalledSize): Tell the amount.
5225 (packagesource::_installedSize): And store it.
5226 * package_version.cc (packageversion::sourcePackage): return the
5227 source package.
5228 (packageversion::setSourcePackage): And set it.
5229 * package_version.h: Declare the package_version.cc changes.
5230 (packageversion::depends): New package specification AND list.
5231 (packageversion::predepends): Ditto.
5232 (packageversion::recommends): Ditto.
5233 (packageversion::suggests): Ditto.
5234 (packageversion::replaces): Ditto.
5235 (packageversion::conflicts): Ditto.
5236 (packageversion::provides): Ditto.
5237 (packageversion::sourcePackage): What source package is needed?
5238 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
5239 the bottom bar.
5240 * threebar.h: Declare the threebar.cc change.
5241
5242 2002-06-27 John Marshall <johnm@falch.net>
5243
5244 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
5245 * site.cc (SitePage::OnMessageCmd): Ditto
5246
5247 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5248
5249 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
5250
5251 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5252
5253 * package_meta.cc (packagemeta::set_action): When installing packages
5254 with no binaries, choose the source package.
5255
5256 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
5257
5258 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
5259 Bowshers fix for the crash with a root level setup.ini.
5260 * README: Update todos.
5261
5262 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
5263
5264 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
5265 GNU long name extension support.
5266
5267 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
5268
5269 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
5270 unescape 0 length strings.
5271
5272 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
5273
5274 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
5275 when local with no cached file, and install the default source if the
5276 default version has no binary.
5277
5278 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5279
5280 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
5281 method.
5282 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
5283 setup version created the ini file.
5284 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
5285 method.
5286 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
5287 feedback strategy.
5288 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
5289 Require a feedback strategy.
5290 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
5291 * Makefile.in: Regenerate.
5292
5293 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5294
5295 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
5296 trick to delete read only files.
5297 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
5298 remove files.
5299 * Makefile.am (release): Tweak to be more helpful.
5300 * Makefile.in: Regenerate.
5301
5302 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5303
5304 * Makefile.am (release): Tweak to be more helpful.
5305 * Makefile.in: Regenerate.
5306
5307 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5308
5309 * Makefile.am (release): Tweak to be more helpful.
5310 * Makefile.in: Regenerate.
5311
5312 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5313
5314 * choose.cc (scan_downloaded_files): When a non-installed version
5315 has neither bin nor src cached files for local installs,
5316 remove the version from availability.
5317
5318 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5319
5320 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
5321
5322 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5323
5324 * rsync: New support library, contains librsync. This is not (yet)
5325 rsync interoperable.
5326 * configure.in: --with-rsync to enable rsync support. (Not complete).
5327 * Makefile.am: Enable building with rsync.
5328 * Makefile.in: Regenerate.
5329 * configure: Ditto.
5330 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
5331 an array.
5332 (IniDBBuilder::buildPackageSource): Ditto.
5333 * IniDBBuilder.h: Ditto.
5334 * IniDBBuilderPackage.cc: Ditto.
5335 * IniDBBuilderPackage.h: Ditto.
5336 * FindVisitor.cc: New file.
5337 * FindVisitor.h: New file, interface for visiting a file system
5338 aggregate.
5339 * IniParseFindVisitor.cc: New file.
5340 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
5341 found setup.ini's.
5342 * README: Update TODO's.
5343 * String++.cc (String::String): New constructor for <string> inter-
5344 operability.
5345 (String::substr): New method.
5346 * String++.h: Ditto.
5347 * choose.cc (scan2): Remove.
5348 (scan_downloaded_files): Simplify.
5349 * dialog.h: Include parsing pre-requirements.
5350 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
5351 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
5352 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
5353 * find.h: Ditto.
5354 * fromcwd.cc: Remove unneeded includes.
5355 (is_test_version): Remove.
5356 (found_file): Remove.
5357 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
5358 (found_ini): Remove.
5359 (do_fromcwd): Remove commented code that has be replaced elsewhere.
5360 * ini.cc (local_ini): Remove.
5361 (findBuilder): Remove.
5362 (find_routine): Remove.
5363 (do_local_ini): Use new IniParseFindVisitor.
5364 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
5365 unsigned char.
5366 * postinstall.cc: Remove non-core includes.
5367 (run_script_in_postinstall): Remove.
5368 (RunFindVisitor): Trivial Visitor, runs each found script.
5369 (do_postinstall): Use new find syntax.
5370
5371 2002-05-14 Christopher Faylor <cgf@redhat.com>
5372
5373 * ini.cc (find_routine): Don't clear buffer it it's NULL.
5374
5375 2002-05-14 Christopher Faylor <cgf@redhat.com>
5376
5377 * filemanip.h (trail): Declare.
5378 * filemanip.cc (trail): New function.
5379 (find_tar_ext): Use trail() instead of strstr().
5380 * fromcwd.cc (check_ini): Ditto.
5381 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
5382 should now be fully qualified. Set ini_filename. Reset error_buf and
5383 error_count for any subsequent ini file parsing.
5384 (ini_filename): New static variable for parse error reporting.
5385 (yyerror): Use full path of setup.ini in error message. Subtract one
5386 from line number if at bol.
5387 * find.cc (found_part): Eliminate.
5388 (find_sub): Call for_each with full path found rather than just file
5389 component.
5390 (find): Don't calculate found_part.
5391 * inilex.l (ini_init): Flush input buffer and reset line number.
5392 (yybol): New function. Exports YY_AT_BOL.
5393 * iniparse.y: Increase stack depth to allow more tokens to be processed.
5394 (yyparse): Remove newline from error condition to allow subsequent
5395 per-line error processing to proceed normally.
5396
5397 2002-05-14 Christopher Faylor <cgf@redhat.com>
5398
5399 * find.cc (find_sub): Be more defensive in preserving trailing parts of
5400 components when doing recursive directory searches or calling user
5401 supplied for_each().
5402 * ini.cc (find_routine): Don't assume that any path name with
5403 "setup.ini" in it is actually a setup.ini file. Only honor trailing
5404 components. Copy path argument to temporary storage when unescaping
5405 to prevent nuking of argument.
5406
5407 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5408
5409 * CONTRIBUTORS: New file.
5410
5411 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
5412
5413 * choose.cc: Run indent.
5414 (nextbutton): Remove static variable.
5415 (default_trust): Remove use of nextbutton.
5416 (set_view_mode): Ditto.
5417 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
5418 rbset() sets the prev/next/curr radio buttons properly.
5419 (dialog_cmd): Delete function.
5420 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
5421 ChooserPage::OnInit.
5422 (do_choose): Delete function. Move pre-DialogBox() code to
5423 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
5424 (WM_APP_START_CHOOSE): Remove define.
5425 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
5426 (do_choose_thread): Delete function.
5427 (ChooserPage::OnActivate): Delete method.
5428 (ChooserPage::OnMessageApp): Delete method.
5429 (ChooserPage::OnInit): New method.
5430 (ChooserPage::OnNext): New method.
5431 (ChooserPage::OnBack): New method.
5432 (ChooserPage::OnMessageCmd): New method.
5433 * choose.h: Run indent.
5434 (ChooserPage::OnMessageApp): Delete declaration.
5435 (ChooserPage::OnActivate): Ditto.
5436 (ChooserPage::OnMessageCmd): New declaration.
5437 (ChooserPage::OnInit): Ditto.
5438 (ChooserPage::OnNext): Ditto.
5439 (ChooserPage::OnBack): Ditto.
5440 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
5441 with IDD_CHOOSE.
5442 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
5443 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
5444 * res.rc (IDD_CHOOSE): Remove dialog template.
5445 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
5446
5447 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5448
5449 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
5450 corrupt log file entries.
5451 * geturl.cc: Convert to the new LogSingleton logging.
5452
5453 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5454
5455 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
5456 setup.ini.
5457
5458 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5459
5460 * geturl.h: Declare getUrlToStream.
5461 * geturl.cc (getUrlToStream): New function.
5462 (get_url_to_membuf): Refactor to use getUrlToStream.
5463
5464 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
5465
5466 * Makefile.am: Add a release target to automate some of the routine
5467 work.
5468 * Makefile.in: Regenerate.
5469
5470 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
5471
5472 * choose.cc (scan_downloaded_files): On local installs remove all
5473 mirror sites if no cached copy of a package is found.
5474
5475 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
5476
5477 * Makefile.in: Regenerate.
5478 * iniparse.y: Use left recursion, not right in the lines rule to
5479 avoid stack overflows.
5480 * README: Update TODO's.
5481 * io_stream_file.cc: Native builds need to include sys/stat.h
5482
5483 2002-05-06 John Marshall <jmarshall@acm.org>
5484
5485 * site.cc (SitePage::OnMessageCmd): recalculate navigation
5486 button activation when "Add" is pressed.
5487 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
5488
5489 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
5490
5491 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
5492 depending on platform.
5493 Add file:// support.
5494 * configure.in: Set conditional MINGWTARGET if compiling against mingw
5495 libraries.
5496 * Makefile.in: Regenerate.
5497 * configure: Ditto.
5498 * io_stream_file.cc: Only use win32 calls when building for mingw.
5499
5500 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
5501
5502 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
5503 * configure.in: Ditto.
5504 Fix incorrect header checking syntax.
5505 * aclocal.m4: Regenerate.
5506 * configure: Regenerate.
5507 * Makefile.in: Regenerate.
5508 * io_stream.cc: Remove platform specific and provider specific code.
5509 (io_stream::registerProvider): New method, registers a Url provider with
5510 the io_stream code.
5511 Make all methods consistently throw invalid_argument exceptions when
5512 a provider that is requested is not present.
5513 (findProvider): New private function, finds a provider.
5514 * io_stream.h: Declare io_stream::registerProvider.
5515 * io_stream_cygfile.cc: Create a Provider class to register with
5516 io_stream.cc.
5517 * io_stream_file.cc: Ditto.
5518 * archive.cc: Remove unneeded includes.
5519 * archive_tar.cc: Remove unneeded includes.
5520 * archive_tar.h: Add required include.
5521 * archive_tar_file.cc: Remove unneded includes.
5522 * choose.cc: Remove unneeded includes:
5523
5524 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5525
5526 * io_stream.cc: Use the new log interface thruout.
5527
5528 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5529
5530 * log.cc (log): Reimplement via LogSingleton.
5531 (log_save): Remove.
5532 (exit_setup): Remove.
5533 * log.h (log_save): Remove.
5534 (exit_setup): Remove.
5535 * LogSingleton.cc: New file.
5536 * LogSingleton.h: New file.
5537 * LogFile.cc: New file.
5538 * LogFile.h: New file.
5539 * Makefile.am (inilint_SOURCES): Add the new log interface.
5540 (setup_SOURCES): Add the new log interface and the concrete File
5541 implementation.
5542 * Makefile.in: Regenerate.
5543 * archive.cc: Use the new log interface thruout.
5544 * archive_tar.cc: Ditto.
5545 * main.cc: Ditto.
5546 * dialog.cc (fatal): Use the new log interface.
5547 * ini.cc (do_ini_thread): Use the log interface to exit.
5548 * isntall.cc (do_install_thread): Ditto.
5549 * netio.cc (auth_cmd): Ditto.
5550 * msg.cc (fatal): Ditto.
5551 * localdir.cc (save_local_dir): Save to different files depending on
5552 the mode, and if a root dir exists.
5553
5554 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5555
5556 * IniDBBuilder.cc: New file.
5557 * IniDBBuilder.h: New file.
5558 * IniDBBuilderPackage.cc: New file.
5559 * IniDBBuilderPackage.h: New file.
5560 * PackageTrust.h: New file.
5561 * IniState.h: Remove, wasn't thought out well enough.
5562 * Makefile.am (inilint_SOURCES): Add more requirements.
5563 (setup_SOURCES): Add new Builder base and concrete classes.
5564 * Makefile.in: Regenerate.
5565 * String++.cc (String::String): Implement int contructor.
5566 * String++.h (String): Declare int constructor.
5567 * archive_tar.cc (archive_tar::next_file_name): Return String() when
5568 no filename exists.
5569 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
5570 it's not needed.
5571 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
5572 (find_routine): Use new IniDBBuilder to configure the parser.
5573 (do_local_ini): Ditto.
5574 (do_remote_ini): Ditto.
5575 * ini.h: Use IniDBBuilder to initialise parsing.
5576 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
5577 swapped.
5578 (ini_init): Use an IniDBBuilder rather than static variables.
5579 * iniparse.y: Hand off all the object creation to a builder, rather
5580 than hardcoding the behaviour. This allows run-time configured
5581 behaviour.
5582 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
5583 method, it's not needed.
5584 * io_stream_file.h (io_stream_file): Ditto.
5585 * mount.cc (cygpath): Return String() for missing mounts.
5586 * package_meta.cc (packagemeta::SDesc): Return String() for blank
5587 descriptions.
5588 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
5589 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
5590 usage.
5591 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
5592 String constructor usage.
5593 * site.h (site_list_type): Ditto.
5594
5595 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
5596
5597 * String++.h: Declare a << operator that accepts String objects.
5598 * String++.cc: We need iostream for..
5599 (operator <<): this. Provide a << operator that accepts String objects.
5600 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
5601 Change from vargs to a String parameter.
5602 * inilintmail.cc: Remove the gui related headers.
5603 (yyerror): Implement this for parsing.
5604 * iniparse.y: Use the new yyerror syntax.
5605
5606 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
5607
5608 * Makefile.am: Add IniState.h.
5609 * Makefile.in: Regenerate.
5610 * IniState.h: New file.
5611 * choose.cc: Don't include ini.h - it's not needed.
5612 * configure: Regenerate.
5613 * desktop.cc: Don't include ini.h - it's not needed.
5614 * download.cc: Ditto.
5615 * fromcwd.cc: Ditto.
5616 * ini.cc: Use IniState.h to track each parsing calling.
5617 (find_routine): Ditto.
5618 (do_remote_ini): Ditto.
5619 (do_ini_thread): Ditto.
5620 * ini.h (ini_init): Adjust parameters to include state object.
5621 * inilex.l: Declare parser state variable.
5622 (ini_init): Adjust parameters to include state object.
5623 * iniparse.y: Remove obsolete setup_timestamp and setup_version
5624 declarations.
5625 (setup_header): Use new state variable to track time and version.
5626 (add_correct_version): Ditto.
5627 * install.cc: Don't include ini.h - it's not needed.
5628
5629 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
5630
5631 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
5632 * io_stream_file.cc: Don't include filemanip.h.
5633 (io_stream_file::get_size): Implement here to remove filemanip
5634 dependency.
5635 * io_stream_cygfile.cc: Don't include filemanip.h.
5636 (io_stream_cygfile::get_size): Implement here to remove filemanip
5637 dependency.
5638 Implement a stat based version for when win32 is not available.
5639 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
5640 * filemanip.cc: Don't include win32.h - be platform independent.
5641 Include strings.h and io_stream.h as part of that.
5642 (get_file_size): Leverage io_streams and remove win32 implementation.
5643 * download.cc (check_for_cached): Use io_stream syntax for
5644 get_file_size.
5645 (download_one): Ditto.
5646
5647 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
5648
5649 * configure.in: Correct a typo in last change.
5650 * configure: Regenerate.
5651 * Makefile.in: Regenerate.
5652
5653 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
5654
5655 * configure.in: Check for string.h and string.
5656 * configure: Regenerate.
5657 * Makefile.in: Regenerate.
5658
5659 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5660
5661 * res.rc (IDD_SPLASH): Remove white box.
5662
5663 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5664
5665 Oops! forgot to list these in the last checkin.
5666 * inilintmain.cc: New file.
5667 * md5.h: New file - imported md5 source, BSD style licence.
5668 * md5.cc: New file - imported md5 source, BSD style licence.
5669 * Exception.cc: New file.
5670 * Exception.h: New file.
5671 * MD5++.cc: New file.
5672 * MD5++.h: New file.
5673
5674 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5675
5676 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
5677 Remove -fno-rtti, we need it for exceptions.
5678 (AM_CXXFLAGS): Ditto.
5679 (WARNONLY_CFLAGS): Ditto.
5680 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
5681 (setup_LDFLAGS): Add and set to -mwindows.
5682 (setup_SOURCES): Add new sources.
5683 * Makefile.in: Regenerate.
5684 * README: Update TODO.
5685 * choose.cc (scan_downloaded_files): Use ini information if it's
5686 available.
5687 * configure: Regenerate.
5688 * download.cc (check_for_cached): Make reusable from elsewhere.
5689 Throw exceptions on errors (as opposed to failures).
5690 Check MD5 sum when it's known.
5691 (download_one): Never force a download.
5692 Handle corrupt package exceptions.
5693 * ini.cc (find_routine): Reverse escape the URL to correctly identify
5694 the site URL.
5695 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
5696 * iniparse.y: Allow calculation of MD5 sums, and allow src only
5697 packages.
5698 (process_src): New helper function.
5699 * isntall.cc (install_one_source): Check MD5 sums when possible.
5700 Throw exceptions on errors.
5701 (do_install_thread): Handle exceptions for installation calls.
5702 * package_source.h: Store MD5 information.
5703 * propsheet.cc (PropSheet::Create): Add a useful comment.
5704 * res.rc (IDS_INSTALL_ERROR): Define.
5705 (IDS_CORRUPT_PACKAGE): Define.
5706 * resource.h (IDS_INSTALL_ERROR): Define.
5707 (IDS_CORRUPT_PACKAGE): Define.
5708 * rfc1738.cc (rfc1738_unescape_part): Implement.
5709 * rfc1738.h (rfc1738_unescape_part): Declare.
5710
5711 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
5712
5713 * Makefile.am: Remove dependecy rules that automake emits.
5714 Correct badly copied dependency info for manually compiled files.
5715 (setup_SOURCES): Add all used headers.
5716 (EXTRA_DIST): Include non compilate but required sources.
5717 (setup_LDADD): Remove mingw32, it is autodetected.
5718 * Makefile.in: Regenerate.
5719 * String++.h: sys/types is a system header.
5720 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
5721 Use ExitThread.
5722 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
5723 portable).
5724 * configure: Regenerate.
5725 * configure.in: Check for mingw32/cygwin specific headers and libraries.
5726 * cygpackage.h: Include the win32.h header to get correct macro
5727 definitions in all situations.
5728 * download.cc (do_download_reflector): Make into a Win32 thread routine.
5729 Use ExitThread.
5730 (do_download): Use Win32 threads.
5731 * ini.cc: Ditto.
5732 * install.cc: Ditto.
5733 * (WinMain): Adjust to build valid command line using application
5734 under both mingw32 and cygwin.
5735 * mount.cc (set)cygdrive_flags): Create new system flags if the
5736 user requests system and the value does not exist.
5737 * nio-http.cc: Define a _strnicmp for cygwin.
5738 * package_db.cc: Include <errno.h> if it exists.
5739 * site.cc (do_download_site_info_thread): Make into a Win32 thread
5740 routine.
5741 Use ExitThread.
5742 (do_download_site-Info): Use Win32 threads.
5743 * state.cc: Explicity declare variables to avoid header conflicts
5744 caused by '#define extern" on cygwin.
5745 * win32.h: Include <alloca.h> if it exists.
5746 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
5747 (_access): Define as access if not defined by windows.h.
5748
5749 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
5750
5751 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
5752
5753 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
5754
5755 * Makefile.am: Add libgetopt++ to the subdirs list.
5756 Search the libgetopt++ header directory.
5757 Link against libgetopt++.la.
5758 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
5759 (setup_LDADD): Explicitly include res.o.
5760 * Makefile.in: Regenerate.
5761 * aclocal.m4: Regenerate.
5762 * bootstrap.sh: Call libtoolize.
5763 * configure: Regenerate.
5764 * configure.in: Add libtool support and configure libgetopt++.
5765 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
5766 (DesktopSetupPage::OnInit): Use the simpler syntax.
5767 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
5768 declaration.
5769 * main.cc: Include getopt++/GetOption.h.
5770 (main): Use simpler syntax.
5771 * cdefs.h: Remove.
5772 * getopt.h: Remove.
5773 * getopt.c: Remove.
5774 * GetOption.h: Remove.
5775 * GetOption.cc: Remove.
5776 * Option.h: Remove.
5777 * Option.cc: Remove.
5778
5779 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5780
5781 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
5782
5783 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5784
5785 * aclocal.m4: New file, cached macros.
5786 * bootstrap.sh: New file, calls required autotools in appropriate
5787 order.
5788 * Makefile.am: New file, input Makefile for automake.
5789 * Makefile,in: Now a generated file - regenerate.
5790 * configure: Regenerate.
5791 * configure.in: Add automake support.
5792 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
5793 automake's VERSION define.
5794 * iniparse.y: Ditto.
5795
5796 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5797
5798 * cdefs.h: New file, imported to allow getopt.c to build without
5799 cygwin headers.
5800 * getopt.h: New file, imported to allow building without cygwin headers.
5801 * getopt.c: Ditto.
5802 * bz2lib: New directory, contains copy of bz2lib.
5803 * cfgaux: New directory, contains autotool helper scripts.
5804 * Makefile,in: Adjust library and target definitions for building
5805 outside the sourceware tree.
5806 * compress_bz.h: Use new bz2lib header location.
5807 * mount.cc: Import key defines and enums to be independent of cygwin
5808 headers.
5809 * configure.in: Update to autoconf 2.53, and to be sourceware
5810 independent.
5811 * configure: Regenerate.
5812
5813 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
5814
5815 * mklink2.cc (make_link_2): Tweak to work with current w32api
5816 headers.
5817
5818 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
5819
5820 * version.cc (canonicalize_version): Fix a call delete[]
5821 to delete the allocated address.
5822
5823 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
5824
5825 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
5826 to Ton van Overbeek for locating the bug area.
5827
5828 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
5829
5830 * PickView.cc (PickView::insert_pkg): Be more generic with
5831 object use.
5832 (PickView::insert_category): Ditto.
5833 (PickView::~PickView): Create.
5834 * PickView.h (PickView::~PickView): Declare.
5835
5836 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
5837
5838 * Makefile.in (OBJS): Add new commandline objects.
5839 * desktop.cc (NoShortCutsOption): New option code.
5840 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
5841 * desktop.h (NoShortCutsOption): New concrete command line option class.
5842 * main.cc (WinMain): Process command line options.
5843 * GetOption.h: New file, singleton command line class.
5844 * GetOption.cc: New file, implementation of the above.
5845 * Option.h : New file, abstract option for GetOption.
5846 * Option.cc: New file, implement constructor and destructor.
5847
5848 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
5849
5850 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
5851
5852 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
5853
5854 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
5855 to textheight, so large fonts work.
5856
5857 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5858
5859 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
5860 symlinks.
5861
5862 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5863
5864 * io_stream_cygfile.cc (cwd): New static for cwd storage.
5865 (io_stream_cygfile::normalise): New method.
5866 (io_stream_cygfile::io_stream_cygfile): Use it.
5867 (io_stream_cygfile::exists): Ditto.
5868 (io_stream_cygfile::remove): Ditto.
5869 (io_stream_cygfile::mklink): And again.
5870 (cygmkdir_p): Yes, again.
5871 (io_stream_cygfile::move): And once more.
5872 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
5873 (io_stream_cygfile::cwd): Ditto.
5874
5875 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5876
5877 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
5878 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
5879 Overbeek for the report).
5880 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
5881 Make g++ compatible.
5882 * mklink2.c: Remove.
5883 * site.cc (site_list_type::init): Delete the correct memory addres.
5884 Thanks to Pavel Tsekov for tracking this down.
5885
5886 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
5887
5888 * win32.h: Only define alloca if it's not already.
5889
5890 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
5891
5892 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave
5893 installed packages alone.
5894 * README: Update with latest requests.
5895 * Various: MTC fixes from setup200202 branch.
5896
5897 2002-03-19 Christopher Faylor <cgf@redhat.com>
5898
5899 * Makefile.in (setup_version.c): Add back magic which allows detection
5900 of setup.exe version number.
5901
5902 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
5903
5904 * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
5905 calculation on win9x systems.
5906
5907 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
5908
5909 * install.cc (install_one_source): Write the correct length of a string
5910 to the lst file (Thanks to Pavel Tsekov for reporting the bug).
5911
5912 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5913
5914 * choose.cc (list_click): Always refresh the entire chooser, as our
5915 package state change mechanism is broken with the new improved list
5916 classes.
5917
5918 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5919
5920 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd
5921 and /etc/group.
5922
5923 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5924
5925 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored
5926 out from paint().
5927 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and
5928 the new bin tickbox.
5929 (PickPackageLine::click): Handle the new bin tickbox.
5930 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
5931 * PickView.cc (pkg_headers): Add a Bin? column.
5932 (cat_headers): Ditto.
5933 (PickView::set_headers): Ditto.
5934 (PickView::init_headers): Ditto.
5935 * PickView.h (PickView): Ditto.
5936 * choose.cc (list_click): Use the new name for src_col to set the clip
5937 rectangle.
5938
5939 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
5940
5941 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
5942 fixup.
5943
5944 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
5945
5946 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
5947 call.
5948 (make_passwd_group): Ditto.
5949 * localdir.cc (save_local_dir): Ditto.
5950 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
5951 Add "cygfile://" prefix to io_stream::open() calls.
5952
5953 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
5954
5955 * log.cc (log_save): Fix creating /var/log.
5956 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
5957
5958 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
5959
5960 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
5961 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
5962 * resource.h: Add IDS_CYGWIN_SETUP and
5963 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
5964
5965 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
5966 operator (::SetWindowText()).
5967
5968 * threebar.cc: Run indent.
5969 (cistring.h): Add include.
5970 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
5971 global scope operator.
5972 (SetBar2): Add logic for writing percent complete into window title.
5973
5974 * window.h: Run indent.
5975 (SetWindowText): New function.
5976 (String): Add forward declaration.
5977 * window.cc: Run indent.
5978 (String++.h): Add include.
5979 (SetWindowText): New function.
5980
5981 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
5982
5983 * README: Update TODO list.
5984 * install.cc (install_one): Fix src package location.
5985 (do_install_thread): Fix creating directories.
5986
5987 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5988
5989 * choose.cc: Include cygpackage.h for scan2 use.
5990 (set_existence): Ignore setup.ini mirrors when installing from cwd.
5991 (scan2): Process any valid file.
5992 Add cache entries when a file matching a setup.ini listed version is
5993 found.
5994 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
5995 * filemanip.h (filemanip::pkgtar): Remove.
5996 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
5997 (packagemeta::~packagemeta): Move from package_meta.h
5998 Remove and delete all version and category information.
5999 * package_meta.h (CategoryPackage): Create a destructor.
6000 (packagemeta::~packagemeta): Move to .cc file.
6001
6002 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6003
6004 * install.cc (install_one_source): Make NULL cached package names cause
6005 errors.
6006
6007 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
6008
6009 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
6010 unnecessarily.
6011
6012 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
6013
6014 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
6015
6016 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6017
6018 * mount.cc (create_mount): Avoid a const char*->char* warning.
6019 (read_mounts): Ditto.
6020
6021 2002-02-05 Jason Tishler <jason@tishler.net>
6022
6023 * download.cc (do_download_thread): Fix off-by-one error.
6024
6025 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6026
6027 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
6028 * configure (CXXFLAGS): Regenerate.
6029 * Makefile.in (iniparse.o): Build via default rules - no errors now.
6030 * README: TODO list updates.
6031
6032 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
6033
6034 * String++.cc (String::concat):: Remove.
6035 (String::vconcat):: Ditto.
6036 * String++.h (String::concat):: Remove.
6037 (String::vconcat):: Ditto.
6038 * archive_tar.cc: Don't include concat.h.
6039 * archive_tar_file.cc: Don't include concat.h.
6040 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
6041 (compress_bz::seek): Ditto.
6042 (compress_bz::~compress_bz): Ditto.
6043 * compress_gz.cc (compress_gz::peek): Ditto.
6044 (compress_gz::error): Ditto.
6045 (compress_gz::~compress_gz): Ditto.
6046 * concat.cc (vconcat): Remove.
6047 (concat): Ditto.
6048 * concat.h (vconcat): Remove.
6049 (concat): Ditto.
6050 * desktop.cc (desktop_icon): Use new cygpath.
6051 (make_etc_profile): Ditto.
6052 (uexists): Ditto.
6053 (make_passwd_group): Ditto.
6054 (save_icon): Ditto.
6055 (check_desktop): Remove concat use.
6056 (check_start_menu): Ditto.
6057 * download.cc (download_one): Use new mkpath_p correctly.
6058 Use LOG_PLAIN.
6059 * fromcwd.cc: Don't include concat.h.
6060 * geturl.cc (get_url_to_membuf): Use String log() call.
6061 (get_url_to_file): Ditto.
6062 * install.cc: Don't include concat.h.
6063 (uninstall_one): Use LOG_PLAIN.
6064 (replace_one): Ditto.
6065 (install_one_source): Ditto.
6066 (install_one): More char to String conversion.
6067 (do_install_thread): Use new cygpath.
6068 Use new create_mount.
6069 * io_stream.cc (io_stream::move): Use new log().
6070 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new
6071 cygpath.
6072 (io_stream_cygfile::exists): Ditto.
6073 (io_stream_cygfile::remove): Ditto.
6074 (io_stream_cygfile::mklink): Ditto.
6075 (io_stream_cygfile::write): Ditto.
6076 (cygmkdir_p): Ditto.
6077 (io_stream_cygfile::move): Ditto.
6078 * io_stream_file.cc: Don't include log.h.
6079 (io_stream_file::write): Don't log unneeded messages.
6080 * localdir.cc: Don't include concat.h.
6081 (LocalDirPage::OnNext): Use LOG_PLAIN.
6082 * log.cc: Don't include log.h.
6083 (exit_setup): Use new cygpath.
6084 * log.h (log_level): Add new level LOG_PLAIN.
6085 * main.cc (WinMain): Use new log().
6086 * mount.cc (SLASH_P): New macro from concat.h.
6087 (cygpath): Make String version globally visible.
6088 Remove varargs version.
6089 * mount,h: Ditto.
6090 * msg.cc (mbox): Use LOG_PLAIN.
6091 * net.cc (NetPage::OnNext): Ditto.
6092 * nio-ftp.cc (ftp_line): Use new log().
6093 * nio-http.cc: Don't include log.h.
6094 (retry_get): Use alternative url variable.
6095 * package_db.cc: Don't include concat.h.
6096 (packagedb::flush): Don't use concat.
6097 * package_meta.cc: Don't include concat.h.
6098 (packagemeta::uninstall): Use new cygpath.
6099 * postinstall.cc (do_postinstall): Ditto.
6100 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
6101 * script.cc: Don't include concat.h.
6102 (init_run_script): Use new cygpath.
6103 (run_script): More char * to String conversion.
6104 (try_run_script): Ditto.
6105 * site.cc: Don't include concat.h.
6106 (SitePage::OnNext): Use LOG_PLAIN.
6107 (SitePage::OnMessageCmd): Use new log().
6108 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
6109
6110 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6111
6112 * Makefile.in (OBJS): Add new object.
6113 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the
6114 name.
6115 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
6116 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
6117 (PickLine::Pickline): Accept a String for the key.
6118 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to
6119 Strings.
6120 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is
6121 automatically initialised now.
6122 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
6123 (PickView::init_header): Move category length checking out of the inner
6124 loop for efficiency.
6125 Convert all char use to Strings.
6126 * PickView.h: Include the String++ header.
6127 (PickView::note_width): Update the prototype.
6128 * String++.cc: New file, implements a reference counting string class.
6129 * String++.h: New file, declares a reference counting string class.
6130 * archive.cc: Include String++ instead of concat.
6131 (archive::extract_file): Convert char * usage to Strings.
6132 * archive.h: Inlude the String++ header.
6133 (archive::extract_file): Update prototype.
6134 (archive::next_file_name): Convert to a String.
6135 (archive::linktarget): Ditto.
6136 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
6137 (archive_tar::linktarget): Ditto.
6138 * arhive_tar.h: Update the copyright.
6139 Explicitly include the relevant headers.
6140 (tar_map_result_type): Convert to String usage.
6141 (archive_tar::next_file_name): Update prototype.
6142 (archive_tar::linktarget): Ditto.
6143 * category.cc (Category::Category): Update initialisers.
6144 Convert to String usage.
6145 (Categorycmp): Update to String usage.
6146 * category.h: Include the String++ header.
6147 (Category::Category): Update to String usage.
6148 (Category::name): Ditto.
6149 (Category::key): Ditto.
6150 * choose.cc: Remove concat.h, it's not needed.
6151 (scan2): Update to String usage.
6152 (do_choose): Ditto.
6153 * cygpackage.cc: Update includes for use of String class.
6154 (cygpackage::cygpackage): Update for String usage.
6155 (cygpackage::set_canonical_version): Ditto.
6156 (cygpackage::destroy): Ditto.
6157 (cygpackage::getfirstfile): Ditto.
6158 (cygpackage::getnextfile): Ditto.
6159 (cygpackage::Name): Ditto.
6160 (cygpackage::Vendor_version): Ditto.
6161 (cygpackage::Package_version): Ditto.
6162 (cygpackage::Canonical_version): Ditto.
6163 (cygpackage::set_sdesc): Ditto.
6164 (cygpackage::set_ldesc): Ditto.
6165 * cygpackage.h: Include String++.h for parsing this file.
6166 (cygpackage::cygpackage): Update for String usage.
6167 (cygpackage::set_canonical_version): Ditto.
6168 (cygpackage::destroy): Ditto.
6169 (cygpackage::getfirstfile): Ditto.
6170 (cygpackage::getnextfile): Ditto.
6171 (cygpackage::Name): Ditto.
6172 (cygpackage::Vendor_version): Ditto.
6173 (cygpackage::Package_version): Ditto.
6174 (cygpackage::Canonical_version): Ditto.
6175 (cygpackage::set_sdesc): Ditto.
6176 (cygpackage::set_ldesc): Ditto.
6177 (cygpackage::name): Ditto.
6178 (cygpackage::vendor): Ditto.
6179 (cygpackage::packagev): Ditto.
6180 (cygpackage::canonical): Ditto.
6181 (cygpackage::fn): Ditto.
6182 (cygpackage::sdesc): Ditto.
6183 (cygpackage::ldesc): Ditto.
6184 * desktop.cc: Update includes for use of String class.
6185 (batname): Update for String usage.
6186 (iconname): Ditto.
6187 (make_link): Ditto.
6188 (start)menu): Ditto.
6189 (desktop_icon): Ditto.
6190 (make_cygwin_bat): Ditto.
6191 (make_etc_profile): Ditto.
6192 (uexists): Ditto.
6193 (make_passwd_group): Ditto.
6194 (save_icon): Ditto.
6195 (check_desktop): Ditto.
6196 (check_startmenu): Ditto.
6197 * dialog.cc (eget): Update for String usage.
6198 (egetString): New function.
6199 (eset): New variant for Strings.
6200 * dialog.h: Include String++.h for parsing this file.
6201 (egetString): New function.
6202 (eset): New variant for Strings.
6203 * diskfull.cc (diskfull): Update for String usage.
6204 * diskfull.h: Include String++.h for parsing this file.
6205 (diskfull): Update for String usage.
6206 * download.cc: Update includes for use of String class.
6207 (check_for_cached): Update for String usage.
6208 (download_one): Ditto.
6209 * filemanip.cc (get_file_size): Ditto.
6210 (base): Ditto.
6211 (parse_filename): Ditto.
6212 (backslash): Ditto.
6213 * filemanip.h: Include String++.h for parsing this file.
6214 (fileparse): Update for String usage.
6215 (base): Ditto.
6216 (parse_filename): Ditto.
6217 Don't consider '_' to be a separator.
6218 (backslash): Ditto.
6219 * find.cc: Update includes for use of String class.
6220 (find_sub): Make more flexible.
6221 (find): Update for String usage.
6222 * find.h (find): Use Strings.
6223 * fromcwd.cc (found_file): Update for String usage.
6224 * geturl.cc: Ditto.
6225 (init_dialog): Ditto.
6226 (get_url_to_membuf): Ditto.
6227 (get_url_to_string): Ditto.
6228 (get_url_to_file): Ditto.
6229 * geturl.h: Ditto.
6230 (get_url_to_membuf): Ditto.
6231 (get_url_to_string): Ditto.
6232 (get_url_to_file): Ditto.
6233 * hash.h: Ditto.
6234 (add_subdirs): Ditto.
6235 * ini.cc: Update includes for String usage.
6236 (find_routine): Update for String usage.
6237 (do_remote_ini): Ditto.
6238 (do_ini_thread): Ditto.
6239 * ini.h (ini_init): Ditto.
6240 * inilex.l: Update includes for String usage.
6241 (ini_init): Update for String usage.
6242 * iniparse.y: Ditto.
6243 (add_correct_version): Ditto.
6244 * install.cc: Update includes for String usage.
6245 (install_one_source): Update for String usage.
6246 (uninstall_one): Ditto.
6247 (replace_one): Ditto.
6248 (install_one_source): Ditto.
6249 (do_install_thread): Ditto.
6250 * io_stream.cc: Update includes for String usage.
6251 (io_stream::open): Update for String usage.
6252 (io_stream::mkpath_p): Ditto.
6253 (io_stream::remove): Ditto.
6254 (io_stream::mklink): Ditto.
6255 (io_stream::move_copy): Ditto.
6256 (io_stream::move): Ditto.
6257 (io_stream::exists): Ditto.
6258 * io_stream.h: Update includes to allow correct parsing.
6259 (io_stream::open): Update for String usage.
6260 (io_stream::mkpath_p): Ditto.
6261 (io_stream::remove): Ditto.
6262 (io_stream::mklink): Ditto.
6263 (io_stream::move_copy): Ditto.
6264 (io_stream::move): Ditto.
6265 (io_stream::exists): Ditto.
6266 * io_stream_cygfile.cc: Update includes for String usage.
6267 (get_root_dir_now): Update for String usage.
6268 (io_stream_cygfile::io_stream_cygfile): Ditto.
6269 (io_stream_cygfile::~io_stream_cygfile): Ditto.
6270 (io_stream_cygfile::exists): Ditto.
6271 (io_stream_cygfile::remove): Ditto.
6272 (io_stream_cygfile::mklink): Ditto.
6273 (cygmkdir_p): Ditto.
6274 (io_stream_cygfile::set_mtime): Ditto.
6275 (io_stream_cygfile::move): Ditto.
6276 (io_stream_cygfile::get_size): Ditto.
6277 * io_stream_cygfile.h: Update includes for String usage.
6278 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
6279 (io_stream_cygfile::~io_stream_cygfile): Ditto.
6280 (io_stream_cygfile::exists): Ditto.
6281 (io_stream_cygfile::remove): Ditto.
6282 (io_stream_cygfile::mklink): Ditto.
6283 (cygmkdir_p): Ditto.
6284 (io_stream_cygfile::set_mtime): Ditto.
6285 (io_stream_cygfile::move): Ditto.
6286 (io_stream_cygfile::get_size): Ditto.
6287 (io_stream_cygfile::fname): Ditto.
6288 (io_stream_cygfile::lmode): Ditto.
6289 * io_stream_file.cc: Update includes for String usage.
6290 (io_stream_file::io_stream_file): Update for String usage.
6291 (io_stream_file::~io_stream_file): Ditto.
6292 (io_stream_file::exists): Ditto.
6293 (io_stream_file::remove): Ditto.
6294 (io_stream_file::mklink): Ditto.
6295 (io_stream_file::set_mtime): Ditto.
6296 (io_stream_file::move): Ditto.
6297 (io_stream_file::get_size): Ditto.
6298 * io_stream_file.h: Update includes for String usage.
6299 * io_stream_file.cc: Update includes for String usage.
6300 (io_stream_file::io_stream_file): Update for String usage.
6301 (io_stream_file::~io_stream_file): Ditto.
6302 (io_stream_file::exists): Ditto.
6303 (io_stream_file::remove): Ditto.
6304 (io_stream_file::mklink): Ditto.
6305 (io_stream_file::set_mtime): Ditto.
6306 (io_stream_file::move): Ditto.
6307 (io_stream_file::get_size): Ditto.
6308 (io_stream_file::fname): Ditto.
6309 (io_stream_file::lmode): Ditto.
6310 * localdir.cc: Update includes for String usage.
6311 (save_local_dir): Update for String usage.
6312 (check_if_enable_next): Ditto.
6313 (load_dialog): Ditto.
6314 (browse_cb): Ditto.
6315 (LocalDirPage::OnInit): Ditto.
6316 (LocalDirPage::OnNext): Ditto.
6317 * log.cc: Update includes for String usage.
6318 (struct LogEnt): Update for String usage.
6319 (log): Ditto.
6320 (log_save): Ditto.
6321 (exit_setup): Ditto.
6322 * log.h: Update includes for String usage.
6323 (log_level): Update for String usage.
6324 (log): Ditto.
6325 (log_save): Ditto.
6326 * main.cc (WinMain): Update for String usage.
6327 * mklink2.c (make_link_2): Update for String usage.
6328 * mklink2.h (make_link_2): Update for String usage.
6329 * mount.cc: Update includes for String usage.
6330 (mount_table): Update for String usage.
6331 (find2): Ditto.
6332 (create_mount): Ditto.
6333 (remove1): Ditto.
6334 (remove_mount): Ditto.
6335 (read_mounts): Ditto.
6336 (set_root_dir): Ditto.
6337 (get_root_dir): Ditto.
6338 (path_prefix_p): Ditto.
6339 (cygpath): Ditto.
6340 * mount.h: Update includes for String usage.
6341 (create_mount): Update for String usage.
6342 (remove_mount): Ditto.
6343 (cygpath): Ditto.
6344 (set_root_dir): Ditto.
6345 (get_root_dir): Ditto.
6346 * msg.cc (mbox): Ditto.
6347 * net.cc (NetPage::OnNext): Ditto.
6348 * package_db.cc (packagedb::flush): Ditto.
6349 (packagedb::packages): Ditto.
6350 (packagedb::categories): Ditto.
6351 * package_db.h: Update includes for String usage.
6352 (packagedb::packages): Update for String usage.
6353 (packagedb::categories): Ditto.
6354 * package_meta.cc: Update includes for String usage.
6355 (hash::add_subdirs): Update for String usage.
6356 (packagemeta::uninstall): Ditto.
6357 (packagemeta::SDesc): Ditto.
6358 (packagemeta::action_caption): Ditto.
6359 * package_meta.h: Update includes for String usage.
6360 (packagemeta::packagemeta): Update for String usage.
6361 (packagemeta::~packagemeta): Ditto.
6362 (packagemeta::uninstall): Ditto.
6363 (packagemeta::SDesc): Ditto.
6364 (packagemeta::action_caption): Ditto.
6365 (package_source.cc site::site): Ditto.
6366 (packagesource::set_canonical): Ditto.
6367 (packagesource::set_cached): Ditto.
6368 * package_source.h: Update includes for String usage.
6369 (site::site): Update for String usage.
6370 (packagesource::set_canonical): Ditto.
6371 (packagesource::set_cached): Ditto.
6372 (packagesource::packagesource): Ditto.
6373 (packagesource::sites): Ditto.
6374 (packagesource::cached): Ditto.
6375 * package_version.h: Update includes for String usage.
6376 (Dependency): Update for String usage.
6377 (packageversion): Ditto.
6378 * postinstall.cc: Update includes for String usage.
6379 (do_postinstall): Update for String usage.
6380 * res.rc (IDD_LOCAL_DIR): Fix typo again!
6381 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
6382 * rfc1738.h: Update includes for String usage.
6383 (rfc1738_escape_part): Update for String usage.
6384 * root.cc: Update includes for String usage.
6385 (check_if_enable_next): Update for String usage.
6386 (save_dialog): Ditto.
6387 (browse_cb): Ditto.
6388 (directory_is_absolute): Ditto.
6389 (directory_is_rootdir): Ditto.
6390 (directory_has_spaces): Ditto.
6391 (RootPage::OnInit): Ditto.
6392 (RootPage::OnNext): Ditto.
6393 * script.cc: Update includes for String usage.
6394 (init_run_script): Update for String usage.
6395 (run): Ditto.
6396 (run_script): Ditto.
6397 (try_run_script): Ditto.
6398 * script.h: Update includes for String usage.
6399 (run_script): Update for String usage.
6400 (try_run_script): Ditto.
6401 * site.cc site_list): Ditto.
6402 (all_site_list): Ditto.
6403 (other_url): Eliminate.
6404 (site_list_type::init): Update for String usage.
6405 (site_list_type::site_list_type): Ditto.
6406 (get_site_list): Ditto.
6407 (get_saved_sites): Ditto.
6408 (do_download_site_info_thread): Ditto.
6409 (SitePage::OnNext): Ditto.
6410 (SitePage::OnActivate): Ditto.
6411 (SitePage::PopulateListBox): Ditto.
6412 (SitePage::OnMessageCmd): Handle empty url's.
6413 * site.h: Update includes for String usage.
6414 (site_list_type::site_list_type): Update for String usage.
6415 (site_list_type::init): Ditto.
6416 (site_list_type::~site_list_type): Ditto.
6417 (site_list_type::url): Ditto.
6418 (site_list_type::displayed_url): Ditto.
6419 (site_list_type::key): Ditto.
6420 * source.cc (SourcePage::OnDeactivate): Ditto.
6421 * state.h: Update includes for String usage.
6422 (local_dir): Update for String usage.
6423 (trust_level): Remove.
6424 * version.cc: Update includes for String usage.
6425 (canonicalize_version): Update for String usage.
6426 * version.h: Update includes for String usage.
6427 (canonicalize_version): Update for String usage.
6428
6429 2002-02-15 Christopher Faylor <cgf@redhat.com>
6430
6431 * filemanip.c (parse_filename): Revert previous change.
6432
6433 2002-02-14 Christopher Faylor <cgf@redhat.com>
6434
6435 * filemanip.c (parse_filename): Don't treat '_' as a version number
6436 introducer.
6437
6438 2002-01-29 Christopher Faylor <cgf@redhat.com>
6439
6440 * configure: Regenerate.
6441
6442 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6443
6444 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
6445 <Hoeck@extern.lrz-muenchen.de>
6446
6447 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6448
6449 * README: Update Todo's.
6450 * list.h: Run indent.
6451 (list): New methods checksize and insert to reduce code duplication.
6452 (list::registerbykey): Use them.
6453 (list::registerbyobject): Ditto.
6454 (list::removebyindex): Copy each object individually - safe for non
6455 trivial objects.
6456 (list::checksize): Implement.
6457 (list::insert): Implement.
6458
6459 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6460
6461 * Makefile.in: Remove the dlmalloc object by default.
6462 * install.cc (do_install_thread): Remove the mallinfo call for 'working
6463 around' the crashing issue.
6464 * package_db.h: Include <string.h> - it's needed to parse this.
6465 * package_source.cc (site::site): Move here from the header file.
6466 * package_source.h (site): Stop the constructor being inlinable.
6467
6468 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
6469
6470 * filemanip.cc (find_tar_ext): Add a descriptive comment.
6471
6472 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
6473
6474 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
6475 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
6476 * install.cc (install_one_source): Add space between words in log()
6477 call.
6478
6479 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6480
6481 * log.cc (exit_setup): When saving to the download dir, explicity
6482 specify the path.
6483
6484 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6485
6486 * archive.cc (extract_file): Separate out the prefix and the URL
6487 scheme.
6488 * archive.h (archive::extract_file): Ditto.
6489 * install.cc (install_one_source): Ditto. Use the new
6490 archive::extract_file syntax.
6491 (replace_one): Use the new syntax.
6492 (io_stream.cc): Add some log info for links.
6493
6494 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6495
6496 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
6497 (PickCategoryLine::paint): Use the new action method.
6498 (PickCategoryLine::click): Set the action for all children.
6499 (PickCategoryLine::set_action): New method.
6500 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
6501 (PickCategoryLine::current_default): Use packagemeta _actions class.
6502 * PickLine.h (PickLine::set_action): New abstract method that requires
6503 including package_meta.h.
6504 * PickPackageLine.cc (PickPackageLine::set_action): New method.
6505 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
6506 * list.h (getbykey): A const correctness fix.
6507 * package_meta.cc: Run indent.
6508 (packagemeta::Default_action): New const.
6509 (packagemeta::Install_action): Ditto.
6510 (packagemeta::Reinstall_action): Ditto.
6511 (packagemeta::Uninstall_action): Ditto.
6512 (packagemeta::_actions::caption): New method.
6513 (packagemeta::_actions::operator++): Ditto.
6514 (packagemeta::set_action): New overload.
6515 * package_meta.h (packagemeta::_actions): New class.
6516 (packagemeta::set_action): Declare this.
6517
6518 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6519
6520 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
6521 * choose.cc: Don't define alloca anymore, it's done in win32.h
6522
6523 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6524
6525 * PickPackageLine.cc: New file.
6526 * PickPackageLine.h: New file.
6527 * PickLine.cc: New file.
6528 * PickLine.h: New file.
6529 * PickCategoryLine.cc: New file.
6530 * PickCategoryLine.h: New file.
6531 * PickView.cc: New file.
6532 * PickView.h: New file.
6533 * Makefile.in: Add new objects to setup.exe.
6534 Backout -fno-exceptions option.
6535 * choose.cc: Include PickView.h.
6536 Remove view related defines and static variables.
6537 (_pkg_headers): Moved to PickView.cc.
6538 (_cat_headers): Ditto.
6539 (view::views::Unknown): Ditto.
6540 (view::views::PackageFull):
6541 (view::views::Package):
6542 (view::views::Category):
6543 (pkgtrustp): Moved to package_meta.cc.
6544 (add_required): Moved to package_meta.cc.
6545 (pick_category_line::empty): Moved to PickCategoryLine.cc
6546 (paint): Adjust for moved static variables.
6547 (view::scroll): Moved to PickView.cc.
6548 (list_vscroll): Adjust for moved static variables.
6549 (list_hscroll): Ditto.
6550 (list_click): Ditto.
6551 (note_width): Moved to PickView.cc.
6552 (view::view): Ditto.
6553 (view::set_view_mode): Ditto.
6554 (view::mode_caption): Ditto.
6555 (view::views::caption): Ditto.
6556 (view::set_headers): Ditto.
6557 (DoInsertItem): Ditto.
6558 (view::init_headers): Ditto.
6559 (view::insert_pkg): Ditto.
6560 (view::insert_category): Ditto.
6561 (view::clear_view): Ditto.
6562 (view::views::operator++): Ditto.
6563 (view::click): Ditto.
6564 (default_trust): Adjust for moved statics.
6565 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
6566 (pick_pkg_line::click): Ditto.
6567 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
6568 (pick_category_line::paint): Ditto.
6569 (pick_category_line::click): Ditto.
6570 (set_view_mode): Adjust for moved statics.
6571 (create_listview): Ditto.
6572 * choose.h: Remove Category and packagemeta forward defines -
6573 not needed.
6574 Don't include unneeded headers list and package_meta.
6575 (_header): Move to PickView.h.
6576 (pick_line): Move to PickLine.h.
6577 (pick_pkg_line): Move to PickPackageLine.h.
6578 (pick_category_line): Move to PickCategoryLine.h.
6579 (view): Move to PickView.h.
6580 * ini.h (trusts): Move to package_meta.h.
6581 * package_meta.h (trusts): New enum.
6582 (packagemeta::set_requirements): New helper method.
6583 (packagemeta::trustp): Ditto.
6584
6585 2002-01-21 Christopher Faylor <cgf@redhat.com>
6586
6587 * choose.h (view): Move forward declaration of views into public area
6588 or g++ v3 will complain.
6589
6590 2002-01-21 Christopher Faylor <cgf@redhat.com>
6591
6592 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
6593 * win32.h (alloca): Define as __builtin_alloca.
6594 * io_stream_memory.cc: Add include file.
6595
6596 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
6597
6598 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as
6599 destroyed.
6600 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
6601 * compress.cc (compress::~compress): Be less verbose.
6602 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
6603 Mark the stream as destroyed.
6604 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as
6605 destroyed.
6606 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not
6607 marked as destroyed.
6608 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
6609 stream as destroyed.
6610 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
6611 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
6612
6613 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
6614
6615 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
6616 (OBJS): Link in malloc objects.
6617 * category.cc (category): Use new char, not strdup.
6618 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
6619 (do_choose): Use new char, not malloc.
6620 * concat.cc (vconcat): Ditto.
6621 * cygpackage.cc (cygpackage): Use new char, not strdup.
6622 (set_canonical_version): Ditto.
6623 (cygpackage::destroy): Use delete[], not free.
6624 * desktop.cc (uexists): Ditto.
6625 * dialog.cc (egest): Use new char, not strdup.
6626 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
6627 * hash.cc (hash::hash): Use delete instead of free.
6628 (hash::add): Use new char, not strdup.
6629 * ini.cc (do_remote_ini): Use delete[] not free.
6630 * inilex.l: Use new char, not strdup.
6631 (ini_init): Ditto.
6632 * iniparse.y: Ditto.
6633 Use a local package_db rather than a static one.
6634 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
6635 (do_install_thread): Call mallinfo to force a consistency check. Appears
6636 to fix a 'inuse' error in -DDEBUG builds.
6637 Use delete[] for strings.
6638 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new
6639 char, not strdup.
6640 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
6641 (io_stream_cygfile::remove): Use new char, not strdup.
6642 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not
6643 strdup.
6644 (io_stream_file::io_stream_file): Use delete[], not free.
6645 (io_stream_file::remove): Use new char, not strdup.
6646 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
6647 * io_stream_memory.h (memblock): Use new char, not malloc.
6648 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
6649 * main.cc (WinMain): Use new char, not strdup.
6650 * mount.cc (find2): Use new char, not malloc.
6651 (read_mounts): Ditto.
6652 (cygpath): Use new char, not strdup.
6653 * netio.cc (NetIO::~NetIO): Use delete[], not free.
6654 (NetIO::set_url): Use new char, not strdup.
6655 (NetIO::get_ftp_auth): Use delete[], not free.
6656 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
6657 Use new char instead of strdup.
6658 * nio-http.cc (base64_encode): Use new char, not malloc.
6659 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
6660 * package_source.h (~ packagesource): Use delete[] instead of delete.
6661 * port.h (strdup): Deprecate the use of strdup.
6662 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
6663 * script.cc (init_run_script): Us delete[], not free.
6664 (run_script): Ditto.
6665 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
6666 (SimpleSocket::invalidate): Use delete[], not free.
6667 * site.cc (site_list_type::init): Use new char instead of strdup.
6668 * site.h (~site_list_type): Use delete[], not free.
6669
6670 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
6671
6672 * Makefile.in (OBJS): Add win32.o - win32 support functions.
6673 * README: Update todos.
6674 * archive.cc (extract_file): Support a suffix for appending to extracted
6675 files.
6676 * archive.h: Ditto.
6677 * choose.cc (set_view_mode): Use the new view::views class.
6678 (view::views::Unknown): New static for defaulting view::views variables.
6679 (view::views::PackageFull): New static for the current view.
6680 (view::views::Package): Ditto.
6681 (view::views::Category): Ditto.
6682 (topbucket::paint): Remove.
6683 (topbucket::empty): Rename to pick_category_line::empty.
6684 (topbucket::~topbucket): Remove.
6685 (paint): Use the new view::views class.
6686 Don't paint 'all' as a category when showing package categoies.
6687 (pick_category_line::actiontext): New method.
6688 (pick_category_line::paint): Make showing the category optional, and
6689 show the 'category action'.
6690 (pick_category_line::click): Make showing the category optional, and
6691 differentiate between the name being clicked, and the action
6692 description.
6693 (view::view): Use the new view::views class.
6694 (view::set_view_mode): Ditto.
6695 (view::mode_caption): Ditto.
6696 (view::views::caption): New method.
6697 (view::set_headers): Use the new view::views class.
6698 (view::clear_view): Ditto.
6699 (viewsplusplus): Replaced by
6700 (view::views::operator++): New operator.
6701 (set_view_mode): Use the new view::views class.
6702 (create_listview): Ditto.
6703 (dialog_cmd): Ditto.
6704 * choose.h (actions): Remove.
6705 (views): Remove.
6706 (pick_line): Add a new convenience constructor.
6707 (top_bucket): Remove.
6708 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
6709 (view::views): New class.
6710 * ini.h: Don't include choose.h
6711 (is_download_action): Remove.
6712 (is_upgrade_action): Remove.
6713 (is_uninstall_action): Remove.
6714 (is_full_action): Remove.
6715 * install.cc (num_replacements): New static.
6716 (rebootneeded): Ditto.
6717 (replace_one): Handle upgrades separate from removal or new installs.
6718 (install_one_source): Handle in use files.
6719 (install_one): Don't repeat upgrades.
6720 (do_install_thread): Initialize new statics.
6721 Order actions as uninstall, replace, install.
6722 Warn about rebooting if needed.
6723 * res.rc (IDS_REBOOT_REQUIRED): New string.
6724 * resource.h (IDS_REBOOT_REQUIRED): Give value.
6725 * win32.h: Declare class Win32, and update copyright and intent message.
6726 * win32.cc: New file.
6727
6728 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
6729
6730 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
6731 * package_meta.cc (packagemeta::uninstall): Check for additional
6732 Windows shortcut. Unset R/O file attribute before trying to delete
6733 file.
6734
6735 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
6736
6737 * choose.cc (pkgtrustp): Fall back to installed if a package is not
6738 present in the current trust level. For prev, fall back via curr.
6739 (set_existence): Allow sources with no sites, but cached files to be
6740 kept.
6741 (pick_category_line::paint): Start drawing clickable categories.
6742 * fromcwd.cc (found_file): Reinstate local file scanning.
6743
6744 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6745
6746 * fromcwd.cc: Run indent.
6747 (do_fromcwd): Reverse sense of comment. Set next_dialog
6748 to IDD_CHOOSER instead of IDD_CHOOSE.
6749 * ini.cc (find_routine): Remove "/" from "/setup.ini".
6750
6751 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
6752
6753 * category.cc (Categorycmp): Add a const safe version.
6754 * category.h (Categorycmp): Add a const safe version.
6755 (Category): Add operator ==.
6756 * choose.cc (fill_missing_category): Add every package to "All".
6757 (pick_category_line::paint): Add support for hidden labels, and a tree
6758 depth.
6759 (pick_category_line::click): Ditto.
6760 (view::view): Pass in a top level category to use.
6761 (view::insert_pkg): Special case - skip category "All".
6762 (view::insert_category): Ditto.
6763 (view::clear_view): Set the contents label state.
6764 (create_listview): Pass in a top level category to view().
6765 * choose.h (topbucket): Make bucket available to derived classes.
6766 (pick_category_line): Add support for hidden labels, and a tree depth.
6767 Remove our second copy of bucket.
6768 (view): Pass in a top level category to the constructor.
6769 Use pick_category_line to allow three level display.
6770
6771 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
6772
6773 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
6774 * iniparse.y (add_correct_version): Copy descriptions across.
6775 * package_meta.cc (SDesc): Iterate through versions, return the first
6776 with a description.
6777 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
6778
6779 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
6780
6781 * script.cc (run_script): Change cygpath:// to cygfile://.
6782 * install.cc (do_install_thread): Fix off-by-one errors.
6783
6784 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
6785
6786 * package_db.cc (packagedb::flush): Fix an off-by-one error.
6787
6788 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
6789
6790 * Makefile.in (realclean): more clean.
6791 (OBJS): Add script.o.
6792 * postinstall.cc (run_script_in_etc_postinstall): New function.
6793 (do_postinstall): Split off new funtion init_run_script ().
6794 (init_run_script):
6795 (run):
6796 (run_script): Move to script.cc. Replace some deprecated remove
6797 and move calls.
6798 * script.h:
6799 * script.cc: New file.
6800 * Forward port cygwin-20010707.jcn3.patch.
6801 * package_meta.cc (uninstall): Run pre- and postremove scripts.
6802 * install.cc: Typo fix.
6803 (do_install): Run script initialisation.
6804
6805 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6806
6807 * cistring.cc: Run d2u.
6808 * cistring.h: Run d2u.
6809
6810 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
6811 from the generated /etc/profile. Bash will source this file
6812 automatically, and having this here merely results in .bashrc being
6813 executed twice. Run d2u.
6814 * desktop.h: Run d2u.
6815
6816 * propsheet.cc: Run d2u.
6817 (PropSheetProc): New function. Add minimize box here instead of in
6818 PropertyPage::DialogProc.
6819 (PropSheet::Create): Change to use creation callback PropSheetProc.
6820 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
6821
6822 * propsheet.h: Run indent, d2u.
6823 * proppage.h: Run indent, d2u.
6824
6825 * proppage.cc: Run d2u.
6826 (PropertyPage::DialogProc): Remove minimize-box-adding
6827 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
6828 Add support for calling virtual OnMessageCmd. Add setting of fonts in
6829 WM_INITDIALOG handler.
6830 (resource.h): New include for resource IDs.
6831
6832 * res.rc: Resize and rearrange property page dialog templates
6833 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
6834 specification. Run d2u.
6835 (IDD_SITE): Add an edit control and an "Add" button in order to
6836 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
6837 (IDD_OTHER_URL): Remove dialog template.
6838 (IDD_DLSTATUS): Remove dialog template.
6839
6840 * site.cc: Run d2u.
6841 (SitePage::OnBack): Remove NEXT() macro invocation.
6842 (SitePage::OnActivate): New member function.
6843 (load_dialog): Remove. Functionality subsumed into
6844 SitePage::OnActivate.
6845 (save_dialog): Change to support both list and user URLs. Remove
6846 OTHER_IDX and mirror_idx logic.
6847 (SitePage::PopulateListBox): New member function.
6848 (SitePage::CheckControlsAndDisableAccordingly): New member function.
6849 (SitePage::OnMessageCmd): New override.
6850 (check_if_enable_next): Remove.
6851 (dialog_cmd): Remove.
6852 (do_download_site_info_thread): Remove calls to NEXT() macro.
6853 (SitePage::Create): Call the single-param PropertyPage::Create
6854 overload.
6855 (other_url): New static taken from other.cc.
6856 (SitePage::OnNext): Remove mirror_idx logic.
6857 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
6858 list box populating code, now handled in SitePage::PopulateListBox.
6859 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
6860 (save_site_url): Fix potential buffer overflow problem. Switched to
6861 TCHAR in grossly premature preparation for multilingual support.
6862 * site.h: Run d2u.
6863 (SitePage::OnActivate): New member function.
6864 (SitePage::CheckControlsAndDisableAccordingly) New member.
6865 (SitePage::OnMessageCmd): New override.
6866 (do_download_site_info_thread): Add MessageBox call on failure to
6867 download site list.
6868
6869 * splash.cc: Run d2u.
6870 (SplashPage::OnInit): Set the font for the title.
6871 * splash.h: Run d2u.
6872
6873 * threebar.cc: Run d2u.
6874 * threebar.h: Run d2u.
6875
6876 * window.h: Run d2u.
6877 (Window::IsButtonChecked): New member function declaration.
6878 (Window::OnMessageCmd): New member function.
6879 (Window::SetDlgItemFont): New member function declaration.
6880 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
6881 members.
6882 * window.cc: Run d2u.
6883 (Window::IsButtonChecked): New member function definition.
6884 (Window::SetDlgItemFont): New member function definition.
6885 (Window::Window): Add initialization for FontCounter.
6886 (Window::~Window): Delete any fonts we created.
6887
6888 * geturl.cc: Run d2u.
6889 (progress): Remove the "3" field width from the "%3d"
6890 percent-complete format indicator. Causes line to not start at
6891 beginning of text box, and does little to help with "jumping", since
6892 the "bytes downloaded so far" field is variable-width anyway. Change
6893 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
6894 painfully slow connections, or temporary slowdowns in faster
6895 connections should such more-instantaneous functionality become
6896 available.
6897
6898 * net.h: Run d2u.
6899 (NetPage::OnMessageCmd): New member function declaration.
6900 (NetPage::CheckIfEnableNext): New member function declaration.
6901 * net.cc: Run d2u.
6902 (NetPage::OnMessageCmd): New member function definition.
6903 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
6904 (check_if_enable_next): Remove.
6905 (NetPage::CheckIfEnableNext): New member function, subsumes
6906 check_if_enable_next.
6907 (propsheet.h): Add include.
6908 (NetPage::Init): Add call to CheckIfEnableNext.
6909 (load_dialog): Remove call to check_if_enable_next.
6910 (NetPage::Create): Call single-template-ID-parameter overload of
6911 PropertyPage::Create instead of three-parameter one.
6912
6913 * Makefile.in (OBJS): Remove other.o.
6914 * other.cc: Remove file.
6915
6916 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
6917
6918 * README: Update TODO's.
6919 * choose.cc (set_existence): Delete non installed packages with no
6920 mirrors.
6921 (fill_missing_category): Fix an off-by-one error.
6922 (default_trust): Ditto. Also delete any unused categories.
6923 (view::init_headers): Fix an off-by-one error.
6924 (set_view_mode): Ditto.
6925 (set_view_mode): Ditto.
6926 (create_listview): Ditto.
6927 (dialog_cmd): Ditto.
6928 (do_choose): Ditto.
6929 * io_stream.cc: Indent.
6930 * io_stream.h: Ditto.
6931 * package_db.cc: Ditto.
6932 * package_meta.h: Const correctness for SDesc ();
6933 * proppage.cc: Run d2u and indent.
6934 * propsheet.cc: Run d2u and indent.
6935 * window.cc: Run d2u and indent.
6936 * window.h: Run d2u and indent.
6937
6938 2001-12-28 Christopher Faylor <cgf@redhat.com>
6939
6940 * Makefile.in (iniparse.o): Accommodate newer bisons.
6941
6942 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6943
6944 * window.h (Window): New file, new class.
6945 * window.cc (Window): New file, new class.
6946
6947 * threebar.h (ThreeBarProgressPage): New file, new class.
6948 * threebar.cc (ThreeBarProgressPage): New file, new class.
6949
6950 * splash.h (SplashPage): New file, new class.
6951 * splash.cc (SplashPage): Replace file with implementation of new
6952 class.
6953
6954 * source.h (SourcePage): New file, new class.
6955 * source.cc: Run indent.
6956 (SourcePage): Add class implementation to this file.
6957 (do_source): Remove, functionality subsumed by SourcePage::Create()
6958 and SourcePage::OnDeactivate().
6959 (dialog_proc): Remove, functionality subsumed by
6960 SourcePage::OnActivate().
6961
6962 * site.h: Run indent.
6963 (SitePage): Add class declaration.
6964 * site.cc: Run indent.
6965 (SitePage): Add class implementation.
6966 (do_download_site_info_thread): New function.
6967 (context): New var. Context info for do_download_site_info_thread().
6968 (do_download_site_info): New function.
6969 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
6970 (SitePage::OnBack): SitePage class implementation..
6971 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
6972 by SitePage members.
6973 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
6974 functionality.
6975 (do_site): Remove, now handled by do_download_site_info_thread() and
6976 SitePage::OnNext functionality.
6977 (get_site_list): Remove dismiss_url_status_dialog() call.
6978
6979 * root.h (RootPage): New file, new class.
6980 * root.cc: Run indent.
6981 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
6982 (dialog_proc): Remove.
6983 (do_root): Remove
6984 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
6985 (RootPage::OnInit): New member function. Move get_root_dir() logic to
6986 here from do_root().
6987 (RootPage::Create): New member function.
6988 (RootPage::OnNext): New member function. Move IDOK logic from
6989 dialog_cmd() to here.
6990 (RootPage::OnBack): New member function.
6991
6992 * propsheet.h (PropSheet): New file, new class.
6993 * propsheet.cc (PropSheet): New file, new class.
6994
6995 * proppage.h (PropertyPage): New file, new class.
6996 * proppage.cc (PropertyPage): New file, new class.
6997
6998 * postinstall.cc (do_postinstall): Add owner parameter.
6999
7000 * other.cc (do_other): Add owner parameter.
7001
7002 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
7003 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
7004 get_ftp_auth().
7005 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
7006 get_proxy_auth(),
7007 and get_ftp_auth().
7008 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
7009 get_auth(), get_proxy_auth().
7010
7011 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
7012 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
7013 NetIO::get_ftp_auth)
7014 (auth_common): Add owner param. Pass owner param to DialogBox.
7015 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
7016 owner param to auth_common().
7017
7018 * net.h (NetPage): New file, new class.
7019 * net.cc: Run indent.
7020 (net.h, threebar.h): Add includes.
7021 (Progress): Add extern.
7022 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
7023 property sheet logic. Saved temporarily for reference.
7024 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
7025 NetPage::OnNext, NetPage::OnBack):
7026 New implementation of NetPage class members.
7027 (do_net): Remove.
7028 (dialog_proc): Remove.
7029
7030 * msg.h (fatal, note, yesno): Add owner param.
7031 * msg.c (fatal, note, yesno, mbox): Add owner param.
7032 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
7033 now that we have a parent.
7034
7035 * main.cc: Run indent.
7036 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
7037 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
7038 headers.
7039 (root_dialog_proc): extern into this file.
7040 (Progress): Progress dialog defined here, used in several other files.
7041 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
7042 Site, Chooser, Desktop pages and MainWindow sheet. Call
7043 InitCommonControls() to make sure Windows is set up for our use of
7044 property sheets. Add pages to sheet.
7045 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
7046 now handled by the PropSheet class.
7047 (root.h): Add include.
7048
7049 * log.cc (log_save): Pass NULL parent to fatal().
7050 (exit_setup): Pass NULL parent to note().
7051
7052 * localdir.h (LocalDirPage): New file, new class.
7053 * localdir.cc: Run indent.
7054 (localdir.h): New include.
7055 (threebar.h): New include.
7056 (Progress): extern into this file.
7057 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
7058 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
7059 LocalDirPage.
7060 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
7061 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
7062 (do_local_dir): Remove.
7063 (dialog_proc): Remove.
7064 (cwd): Remove, not used by anything.
7065
7066 * install.cc: Run indent.
7067 (process.h, threebar.h): New includes.
7068 (Progress): extern into this file.
7069 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
7070 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
7071 ThreeBarProgressPage.
7072 (dialog_cmd, dialog_proc, dialog): Removed, handled in
7073 ThreeBarProgressPage.
7074 (init_dialog): Remove all mention of the above ins_* handles. Now
7075 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
7076 ThreeBarProgressPage instance Progress directly.
7077 (progress): Alter bar update logic to call ThreeBarProgressPage
7078 instance Progress directly.
7079 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
7080 instance Progress directly.
7081 (install_one_source): Alter SetWindowText()s to call
7082 ThreeBarProgressPage
7083 instance Progress directly. Pass NULL parent to note().
7084 (do_install_thread): Rename from do_install(), added owner param.
7085 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
7086 directly.
7087 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
7088 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
7089 fatal().
7090 (do_install_reflector): New function.
7091 (do_install): New function.
7092
7093 * ini.cc (process.h, threebar.h): New includes.
7094 (Progress): externed into this file.
7095 (find_routine): Pass NULL parent to note().
7096 (do_local_ini): Add owner param.
7097 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
7098 and note(). Remove call to dismiss_url_status_dialog().
7099 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
7100 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
7101 to IDD_CHOOSER on exit.
7102 (do_ini_thread_reflector): New function.
7103 (context): New var. Context for do_ini_thread.
7104 (do_ini): New function.
7105
7106 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
7107 owner param.
7108 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
7109 gw_iprogress)
7110 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
7111 Removed.
7112 (threebar.h): New include.
7113 (Progress): externed into this file.
7114 (dialog_cmd, dialog_proc, dialog): Removed, handled by
7115 ThreeBarProgressPage now.
7116 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
7117 SetWindowText()s
7118 and bar setting SendMessage()s to call ThreeBarProgressPage instance
7119 Progress directly. Remove "one bar only" logic, this is now handled
7120 explicitly in the ThreeBarProgressPage class.
7121 (progress): Altered bar and text update logic to call
7122 ThreeBarProgressPage instance Progress directly. Changed kbps
7123 calculation to floating point and now print out a single decimal
7124 place.
7125 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
7126 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
7127 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
7128 update logic to call ThreeBarProgressPage instance Progress directly.
7129 (dismiss_url_status_dialog): Remove.
7130
7131 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
7132 false, was true.
7133
7134 * download.cc: Run indent.
7135 (process.h, threebar.h): New includes.
7136 (Progress): externed into this file.
7137 (download_one): Add owner param. Pass it to get_url_to_file().
7138 (do_download_thread): Renamed from do_download. Add owner param. When
7139 calculating total_download_bytes, take binpicked and srcpicked into
7140 account. Remove call to dismiss_url_status_dialog(), no longer needed.
7141 Pass owner handle to download_one() and yesno().
7142 (do_download_reflector, do_download): New functions.
7143 (context): New var. Context for do_download_thread().
7144
7145 * dialog.h (D(x)): Add owner param.
7146
7147 * desktop.h (DesktopSetupPage): New file, new class.
7148 * desktop.cc: Run indent.
7149 (desktop.h): Add include.
7150 (dialog_proc, do_desktop): Remove, now handled in
7151 DesktopSetupPage::OnInit().
7152 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
7153 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
7154 resp.
7155 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
7156 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
7157 of DesktopSetupPage.
7158
7159 * cistring.h: New file, new class.
7160 * cistring.cc: New file, new class.
7161
7162 * choose.h: Run indent.
7163 (Chooser): New class declaration.
7164 * choose.cc: Run indent.
7165 (do_choose): Add owner param. Pass it to DialogBox() and
7166 fatal().
7167 (Chooser): New class implementation.
7168
7169 * res.rc (IDS_VERSION_INFO): New string.
7170 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
7171 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
7172 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
7173 throughout.
7174 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
7175 TAB control navigation etc. Give the controls a reasonable tab order.
7176 Grouped radio buttons. Something's still not right, can't tab away
7177 from back/next/cancel group reliably.
7178 * resource.h (IDD_CHOOSER): New dialog ID.
7179
7180 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
7181 threebar.o, and window.o.
7182
7183 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
7184
7185 * choose.cc (listview_proc): Update the scrollbar when the headers are
7186 dragged.
7187 (pick_pkg_line::paint): Clip columns to prevent overlap.
7188
7189 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
7190
7191 * Makefile.in: Add libcomctl32.a for setup.exe.
7192 * archive.h (archive): Prevent non-child direct creation of the class.
7193 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and
7194 assignment.
7195 * choose.cc: Include commctrl for the choose header.
7196 (NEW_COL_SIZE_SLOP): Define without magic numbers.
7197 (pkgtrustp): Convert to function.
7198 (set_action): Remove.
7199 (add_required, fill_missing_category,default_trust): Use list syntax for
7200 package list.
7201 Use new set_action.
7202 (choose_caption): Remove.
7203 (topbucket::paint): New method.
7204 (topbucket::empty): Ditto.
7205 (topbucket::click): Ditto.
7206 (topbucket::~topbucket): Ditto.
7207 (paint): Remove i,ii and p as they are obsolete.
7208 Remove header drawing code.
7209 Use new chooser method to paint the chooser.
7210 Use new chooser itemcount method.
7211 (scroll_common): Rename to view::scroll.
7212 Scroll the header window separately.
7213 (list_vscroll, list_hscroll, list_click): Update for new chooser
7214 methods.
7215 (listview_proc): Look for header messages.
7216 (note_width): Accept stringless calls.
7217 (pick_line::set_line): Remove.
7218 (pick_line::paint): Remove.
7219 (pick_pkg_line::paint): Paint this one line, using the header column
7220 widths.
7221 (pick_category_line::paint): Paint this category, and anything in the
7222 bucket.
7223 (pick_line::click): Remove.
7224 (pick_pkg_line::click): Handle a click.
7225 (pick_category_line::click): Handle a click.
7226 (_view): Rename all to view.
7227 (view::view): Initialise the control contents.
7228 (view::set_headers): Work with the header control.
7229 (view::init_headers): Use list syntax for package list.
7230 Rearrange the width logic a little.
7231 (view::insert_pkg): Update to use the hierarchy.
7232 (view::insert_category): Ditto.
7233 (view::insert_at, view::insert_under): Remove.
7234 (view::clear_view): Update to use the hierarchy.
7235 (view::click): Update to use the hierarchy.
7236 (set_view_mode): Use list syntax for package list.
7237 Update for new chooser methods.
7238 (DoInsertItem): New helper function. (Needs a home somewhere).
7239 (create_listview): Remove choose control code and use the constructor
7240 instead.
7241 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
7242 * choose.h: Include newly required headers list and package_meta.
7243 (_voew): Rename to view.
7244 (pick_line): Convert to an ABC.
7245 (pick_pkg_line): New class.
7246 (pick_catgory_line): New class.
7247 (topbucket): New class.
7248 (view::scroll): New method created from listview_scroll function.
7249 * desktop.cc (make_passwd_group): Use list syntax for package list.
7250 * download.cc (do_download): Use list syntax for package list.
7251 * fromcwd.cc (found_file): Use list syntax for package list.
7252 * iniparse.y (pacakges): Use list syntax for package list.
7253 * install.cc (uninstall_one): Use list syntax for package list.
7254 (do_install): Use list syntax for package list.
7255 * io_stream.h (io_stream): Prevent non-child direct creation of the
7256 class.
7257 Prevent inaccurate synthetic copy and assignment.
7258 * list.h: Include required header stdlib.
7259 Work on const correctness.
7260 * package_db.cc (packagedb::getpackagebyname): Remove.
7261 (packagedb::packagedb): Remove custom list code, and make db a local.
7262 (packagedb::getfirstpackage): Remove.
7263 (packagedb::getnextpackage): Remove.
7264 (packagedb::addpackage): Remove.
7265 (flush): Remove custom list code.
7266 (packagedb::registerpackage): Remove.
7267 (packagedb::packages): New static member.
7268 (packagedb::task): New static member.
7269 * package_db.h (PackageDBActions): New enum.
7270 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
7271 addpackage, registerpackage, packages, packagecount, curr_package, db.
7272 Add packages, task.
7273 * pacakge_meta.cc: Include package_db.h.
7274 (packagemeta::action_caption): New method.
7275 (packagemeta::set_action): New method.
7276 * package_meta.h (CategoryPackage): Initialise key.
7277 (packagemeta): Initialise key.
7278 Add set_action and action_caption methods.
7279 Prevent inaccurate synthetic copy and assignment.
7280 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
7281 * source.cc: Include package_db for db manipulation.
7282 (save_dialog): Set the db task.
7283 * win32.h: Tell the w32 include headers what IE version to
7284 expect/require.
7285
7286 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
7287
7288 * README: Wishlist updates.
7289
7290 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7291
7292 * package_db.cc (getnextpackage): Don't overrun the array.
7293
7294 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7295
7296 * Makefile.in (OBJS): Add setup_version.o.
7297 (version.c): Rename to setup_version.
7298 * choose.cc (set_action): Prevent NULL pointer dereference.
7299 (package_sort): Remove.
7300 * fromcwd.cc (canonicalize_version): Moved to version.cc.
7301 (check_ini): New function for use with find to see if there is a cached
7302 setup.ini.
7303 (do_fromcwd): Check for a cached setup.ini from any mirror site.
7304 * ini.cc (find_routine): New function, for finding cached setup.ini's.
7305 (do_local_ini): New function, drives parsing of local ini's.
7306 (do_remote_ini): New function, drives parsing and caching of remote
7307 ini's.
7308 (do_ini): Move guts to do_remote_ini and do_local_ini.
7309 * list.h (removebyindex): New method.
7310 * other.cc (save_dialog): Use new site_list and all_site_list to add the
7311 new site to the site picklist.
7312 (dialog_cmd): Only save the dialog when exiting the dialog.
7313 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
7314 * site.cc (site_list_type): Move to site.h
7315 (site_list): New global, sites chosen by the user.
7316 (all_site_list): New global, all potential sites.
7317 (site_list_type::init): New method, parses a mirror.lst URL string into
7318 a site_list_type object.
7319 (site_list_type::site_list_type): New method.
7320 (check_if_enable_next): Examine the control, not a local variable.
7321 (load_dialog): Select all the user chosen sites by default.
7322 (save_dialog): Adjust for multiple selection semantics.
7323 (save_site_url): Save all user chosen sites.
7324 (dialog_cmd): Don't save the dialog when the listbox recieves a message
7325 - thats not needed.
7326 Remove obsolete other_url reference.
7327 (dialog_proc): Use all_site_list instead of site_list.
7328 (site_sort): Remove.
7329 (get_site_list): Remove malloc use - use list template instead.
7330 Move site_list_type initialisation to site_list_type::init().
7331 (get_initial_list_idx): Renamed to ...
7332 (get_saved_sites): this. Also read in multiple sites to the site_list.
7333 (do_site): Use all_site_list not site_list.
7334 Log all chosen sites.
7335 * site.h: New file, defines site related class, functions and variables.
7336 * state.h: Add comment about use of state.h
7337 (mirror_site): Remove.
7338 (other_url): Remove.
7339 (MIRROR_SITE): Remove.
7340 * version.cc: New file, for version-handling and related functions.
7341
7342 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
7343
7344 * Makefile.in: Add filemanip.o to setup.
7345 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
7346 * archive_tar.h (archive_tar_file): Implement get_size virtual.
7347 (archive_tar): Ditto.
7348 * choose.cc (set_action): Use [] operator instead of getnth - its more
7349 readable.
7350 (paint): Ditto.
7351 (_view::init_headers): Ditto.
7352 (_view::insert_pkg): Ditto.
7353 (set_view_mode): Ditto.
7354 (scan2): Ditto.
7355 (do_choose): Ditto.
7356 (base): Moved to filemanip.cc.
7357 (find_tar_ext): Ditto.
7358 (parse_filename): Ditto.
7359 (_Info::_Info): Remove.
7360 * compress_bz.h (compress_bz): Implement get_size virtual.
7361 * compress_gz.h (compress_gz): Implement get_size virtual.
7362 * cygpackage.cc (cygpackage::destroy): Use array delete for char *
7363 objects.
7364 * download.cc (get_file_size): Move to filemanip.cc.
7365 (check_for_cached): Use [] operator instead of getnth - its more
7366 readable.
7367 (download_one): Ditto.
7368 * filemanip.cc: New file.
7369 * geturl.cc (init_dialog): Make url a pointer to const as it is not
7370 modified.
7371 (get_url_to_membuf): New function - contains get_url_to_string worker
7372 code.
7373 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
7374 * geturl.h: Declare new prototype.
7375 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
7376 Tidy up the error code a little.
7377 * ini.h: Remove __cplusplus protection for ini_init.
7378 (_Info): Remove.
7379 * inilex.l: Remove old globals.
7380 (ini_init): Use an io_stream for getting the characters.
7381 (ini_getchar): Ditto.
7382 * iniparse.y: Declare yylex as a C++ function.
7383 (add_correct_version): Use [] operator instead of getnth - its more
7384 readable.
7385 * io_stream.cc (io_stream::move_copy): Use the copy method.
7386 (io_stream::copy): New method to simply copy from one stream to another.
7387 * io_stream.h (io_stream): New static method copy, and virtual method
7388 get_size.
7389 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
7390 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
7391 * io_stream_file.cc (io_stream_file::get_size): Implement this.
7392 * io_stream_file.h (io_stream_file::get_size): Declare this.
7393 * io_stream_memory.h: Include errno as it's neded to parse the header.
7394 (io_stream_memory::get_size): Implement this.
7395 (io_stream_memory::st_size): Delete this.
7396 * list.h: Change getnth into the [] operator.
7397 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being
7398 modified.
7399 (NetIO::set_url): Ditto.
7400 (NetIO::open): Ditto.
7401 * netio.h: As for netio.cc.
7402 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect
7403 Purl not being modified.
7404 * nio-file.h: Ditto.
7405 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
7406 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
7407 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
7408 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
7409 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
7410 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
7411 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
7412 * package_source.cc (packagesource::set_canonical): Ditto.
7413 (packagesource::set_cached): Ditto.
7414 * package_source.h (site::~site): Ditto.
7415 * site.cc: Change site_list_type to a class, and search and replace
7416 sort_key to key globally.
7417
7418 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
7419
7420 * package_source.cc (packagesource::set_canonical): Filename was out by
7421 one.
7422
7423 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
7424
7425 * Makefile.in (OBJS): Remove category_list - it's not needed.
7426 * README: More wishlist updates.
7427 * category.cc (Category::Category): Initialise new members.
7428 (Categorycmp): New function.
7429 * category.h (Category): New member key for template use.
7430 * category_list.cc: Remove.
7431 * category_list.h: Remove.
7432 (Categorycmp): New function prototype.
7433 * choose.cc: Remove category_list - not needed.
7434 (set_action): Only show the 'source' option when the source is actually
7435 available.
7436 (add_required): Fix recursion limiter to 5.
7437 (fill_missing_category): Use list access.
7438 (default_trust): Ditto.
7439 (pick_line::paint): Ditto.
7440 (_view::init_headers): Ditto.
7441 (_view::insert_pkg): Ditto.
7442 (_view::insert_category): Ditto.
7443 (_view::click): Ditto.
7444 (set_view_mode): Ditto.
7445 (do_choose): Ditto.
7446 * cygpackage.h: Remove category_list - not needed.
7447 * geturl.cc (get_url_to_string): Fix null byte insertion.
7448 * inipatse.y: Remove category_list - not needed.
7449 (categories): Use list access.
7450 * package_db.cc: Ditto.
7451 * package_db.h: Remove category_list - not needed.
7452 (packagedb): Use the list template for categories.
7453 * package_meta.cc (add_category): Ditto.
7454 * package_meta.h (CategoryPackage): Link to the category as well.
7455 (packagemeta): Use a list of CategoryPackages instead of Categories
7456 for more memory efficient cross-referencing.
7457
7458 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
7459
7460 * package_db.cc (packagedb::flush): Write a canonical version for all
7461 packages irrespective of the media they were installed from.
7462
7463 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
7464
7465 * Makefile.in (OBJS): Add package_source and rfc1738.
7466 * README: Wishlist update.
7467 * category_list.cc (register_category): Use references.
7468 * category_list.h (CategoryList): Ditto.
7469 * choose.cc (isinstalled): Remove.
7470 (pkgtrustp): New macro.
7471 (set_action): Use packagemeta.
7472 (add_required): Ditto.
7473 (choose_caption): Example package to choose caption, rather than state
7474 flags.
7475 (check_existence): Remove.
7476 (set_existence): Remove old code.
7477 (fill_missing_category): Use packagemeta.
7478 (keep_or_skip): Remove.
7479 (default_trust): Use packagemeta and set trust values directly.
7480 (pick_line::set_line): Use packagemeta.
7481 (_view::insert_pkg): Ditto.
7482 (_view::insert_category): Ditto.
7483 (_view::click): Ditto.
7484 (set_view_mode): Ditto. Also remove "exclude" code.
7485 (create_listview): Use packagemeta.
7486 (dialog_cmd): Ditto.
7487 (getpkgbyname): Remove
7488 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
7489 (read_installed_db): Remove.
7490 (package_sort): Use packagemeta.
7491 (do_choose): Use packagemeta. Don't sort the packages - the db does
7492 that.
7493 * choose.h: Use packagemeta.
7494 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
7495 (cygpackage::cygpackage): Ditto.
7496 (cygpackage::set_canonical_version): Copy the passed string.
7497 (cygpackage::~cygpackage): Move cleanup code to destroy().
7498 (cygpackage::destroy): New function.
7499 (cygpackage::getfirstfile): Use a separate buffer.
7500 (cygpackage::getnextfile): Ditto.
7501 (cygpackage::Canonical_version): New function.
7502 (cygpackage::set_sdesc): Ditto.
7503 (cygpackage::set_ldesc): Ditto.
7504 * cygpackage.h (cygpackage::Canonical_version): New method.
7505 (cygpackage::set_sdesc): New method.
7506 (cygpackage::set_ldesc): New method.
7507 (cygpackage::SDesc): New method.
7508 (cygpackage::LDesc): New method.
7509 (cygpackage::set_canonical_version): New method.
7510 * desktop.cc: Include packagedb headers.
7511 (make_password_group): Use packagemeta.
7512 * download.cc: Include packagedb headers.
7513 (check_for_cached): New method to find any cached file and fill out the
7514 database info.
7515 (download_one): Take a packagesource, support multiple mirrors.
7516 (do_download): Use packagemeta.
7517 * from cwd.cc: Include packagedb headers.
7518 (found_file): Use packagemeta.
7519 * ini.cc (do_ini): Beginning of multiple-mirror support.
7520 * ini.h (CategoryPackage): Remove.
7521 (Dependency): Remove.
7522 (Package): Remove.
7523 (new_package,getpkgbyname,getpackagecategorybyname,add_category):
7524 Remove.
7525 * inilex.l: Support multiple mirrors.
7526 * iniparse.y: Include packagedb headers.
7527 (parser): Use packagemeta.
7528 (new_package): Remove.
7529 (add_correct_version): New function.
7530 (new_requirement): Remove.
7531 (add_category): Remove.
7532 * install.cc (uninstall_one): Use packagemeta.
7533 (install_one_source): New function.
7534 (install_one): Use packagemeta.
7535 (do_install): Use packagemeta.
7536 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
7537 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the
7538 file after setting the mtime, it makes no sense, and results in 0 length
7539 files.
7540 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
7541 * list.h: New file, template class for a form of list.
7542 * package_db.cc (packagedb::registerpackage): New function.
7543 * package_db.h (packagedb::npackages ()): New method.
7544 * package_meta.cc (packagemeta::add_version): Use list template.
7545 (packagemeta::set_installed): Ditto.
7546 (packagemeta::add_category): New method.
7547 * package_meta.h: Include necessary headers to parse the class.
7548 (CategoryPackage): New class.
7549 (packagemeta): Initialise all members.
7550 (packagemeta::SDesc): New method.
7551 (packagemeta::Categories): New method.
7552 (packagemeta::add_category): Ditto.
7553 (packagemeta::versions): Change to be a list instance.
7554 * package_source.cc (packagesource::set_canonical): New method.
7555 (packagesource::set_cached): New method.
7556 * package_source.h: Include necessary headers to parse the class.
7557 (site): New class.
7558 (packagesource::packagesource): Initialize all members.
7559 (packagesource): Make this class non-abstract.
7560 * package_version.cc (packageversion::packageversion): New method.
7561 * package_version.h (Dependency): New class.
7562 (packageversion::Canonical_vesion): New method.
7563 (packageversion::SDesc): New method.
7564 (packageversion::LDesc): New method.
7565 (packageversion::new_requirement): Ditto.
7566 (packageversion::srcpicked, binpicked): What to install.
7567 (packageversion::src, bin): Installation source data.
7568 * rfc1738.cc: New file. Escapes special characters in URL's.
7569 * rfc1738.h: Ditto.
7570
7571 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
7572
7573 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
7574 SimpleSocket::gets() returns a zero-length string, so that we
7575 don't end up eating the entire stream thinking it's all header info.
7576
7577 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
7578
7579 * install.cc (badrename): Remove.
7580 (do_install): Use packagedb flush method to write
7581 /etc/setup/installed.db.
7582 * io_stream.cc (io_stream::move_copy): New method.
7583 (io_stream::move): New method.
7584 * io_stream.h (io_stream): New methods move and move_copy.
7585 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
7586 * io_stream_cygfile.h (io_stream_cygfile): New method move.
7587 * io_stream_file.cc (io_stream_file::move): New method.
7588 * io_stream_file.h (io_stream_file): New method move.
7589 * package_db.cc (packagedb::flush): New method.
7590 * package_db.h (packagedb): New method flush.
7591
7592 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
7593
7594 * Makefile.in (OBJS): Add package_version.
7595 * ategory.cc (Category::Category): Update constructors.
7596 * category_list.cc (CategoryList::register_category): Insert correctly.
7597 * choose.cc: Include package_version.h, not package.h.
7598 * cygpackage.cc: Ditto.
7599 (cygpackage::uninstall): New method.
7600 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
7601 New method uninstall.
7602 * hash.cc (add, has, enumerate): Change prototype to be accurate.
7603 * hash.h (hash): Change prototypes to be accurate.
7604 * ini.h (_Info): New parameterless constructor.
7605 (CategoryPackage): New constructor.
7606 (Package): Ditto.
7607 * install.cc: Don't include unneeded headers.
7608 Include package database headers.
7609 (hash::add_subdirs): Remove.
7610 (uninstall_one): Use packagemeta->uninstall to perform the
7611 uninstallation. Don't uninstall source packages.
7612 (do_install): Just can uninstall_one once as we ignore source packages
7613 now. Don't copy the installed.old database accross, instead iterate
7614 through the packagedb packages list and write the installed packages
7615 out.
7616 * package_db.cc: Include package_version.h, not package.h.
7617 (packagedb::packagedb): Never let db be undefined.
7618 Record the installation filename, so we can reconstruct installed.db.
7619 (packagedb::addpackage): Insert packages in alpha sorted order.
7620 (packagedb::categories): Initialise correctly.
7621 * package_meta.cc: Include win32 and mount headers as a workaround to
7622 current io_stream limitations. Include a TODO about that.
7623 (standard_dirs): New, from install.cc.
7624 (hash::add_subdirs): New, from install.cc.
7625 (packagemeta::set_installed): Rename genericpackage to packageversion.
7626 (packagemeta::uninstall): New method.
7627 * package_meta.h: Rename genericpackage to packageversion.
7628 (packagemeta): Update constructor.
7629 (add_version, set_installed): Rename genericpackage to packageversion.
7630 (uninstall): New method.
7631 (installed_from): New member.
7632 * package_source.cc: New file.
7633 * package_source.h: New file.
7634 * package_version.cc: New file.
7635 * package_version.h: New file.
7636 * package.cc: Removed.
7637 * package.h: Removed.
7638
7639 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7640
7641 * Makefile.in (OBJS): Add category.o and category_list.o.
7642 * category.h: New file.
7643 * category.cc: New file.
7644 * category_list.h: New file.
7645 * category_list.cc: New file.
7646 * choose.cc: Include category headers.
7647 (fill_missing_category): Use package_db to access global categories.
7648 (_view::insert_pkg): Ditto.
7649 (_view::insert_category): Ditto.
7650 (set_view_mode): Ditto.
7651 (getcategorybyname): Remove.
7652 * cygpackage.h: Include category_list.h to parse this correctly.
7653 (cygpackage): New virtual &Categories.
7654 * ini.h (_CategoryPackage): More C to C++ conversion.
7655 (Category): Remove.
7656 (getcategorybyname): Remove.
7657 (register_category): Remove.
7658 * iniparse.y: Include package db and category headers.
7659 (categories): Use package_db to access global categories.
7660 (category): Remove.
7661 (ncategories): Remove.
7662 (register_category): Remove.
7663 * package.h: New virtual &Categories.
7664 * package_db.cc (packagedb::packagedb): Don't read the installed db
7665 twice.
7666 (packagedb::categories): Declare.
7667 * package_db.h (packagedb): New member categories for global categories
7668 list.
7669
7670 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7671
7672 * choose.h: Don't include ini.h
7673 * ini.h: Allow pure c++ in the header file.
7674
7675 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7676
7677 * install.cc (do_install): Write a version 2 installed.db file.
7678 * package_db.cc (packagedb::packagedb): Read version 1 and 2
7679 installed.db files.
7680
7681 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7682
7683 * Makefile.in (OBJS): Add package abstraction objects.
7684 * choose.cc: Include package abstraction headers.
7685 (read_installed_db): Use packagedb class and ignore installed sources.
7686 * cygpackage.cc: New file.
7687 * cygpackage.h: New file.
7688 * filemanip.h (get_file_size): Use unixy types.
7689 * package.h: New file.
7690 * package.cc: New file.
7691 * package_db.cc: New file.
7692 * package_db.h: New file.
7693 * package_meta.cc: New file.
7694 * package_meta.h: New file.
7695
7696 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7697
7698 * REAME: Updates to wishlist.
7699
7700 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
7701
7702 * README: Updated and added my list of wishlist and todo items.
7703
7704 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
7705
7706 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
7707 * archive_tar.cc (archive_tar::write): New prototype.
7708 (archive_tar::seek): New method.
7709 * archive.h (archive_tar_file): Update write() and add seek().
7710 (archive_tar): Ditto.
7711 * archive_tar_file.cc (archive_tar_file::write): New prototype.
7712 (archive_tar_file::seek): New method.
7713 * compress_bz.cc (compress_bz::write): New prototype.
7714 (compress_bz::seek): New function.
7715 * compress_bz.h (compress_bz): Update write() and add seek().
7716 * compress_gz.cc (compress_gz::write): New prototype.
7717 (compress_gz::seek): New function.
7718 * compress_gz.h (compress_gz): Update write() and add seek().
7719 * geturl.cc: Include io_stream headers.
7720 (GUBuf): Remove.
7721 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
7722 * io_stream.h (io_stream_seek_t): New enum.
7723 (io_stream): Update write() and add seek().
7724 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
7725 (io_stream_cygfile::seek): New function.
7726 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add
7727 seek().
7728 * io_stream_file.cc (io_stream_file::write): New prototype.
7729 (io_stream_file::seek): New function.
7730 * io_stream_file.h (io_stream_file): Update write() and add seek().
7731
7732 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
7733
7734 * localdir.cc: Add headers unistd.h and port.h.
7735 (save_local_dir): Expand search logic to include local directory for
7736 location of file last-cache.
7737 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
7738 (do_local_dir): Expand search logic to include local directory for file
7739 last-cache.
7740 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
7741 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
7742 Internet.
7743 (do_source): Default to Install from Internet on first entry or
7744 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
7745
7746 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
7747
7748 * choose.cc (find_tar_ext): Only match at the end of the string.
7749 (getpkgbyname): Prevent NULL pointer dereference.
7750
7751 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
7752
7753 * Makefile.in (CFLAGS): Add warnings and -Werr.
7754 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter
7755 what.
7756 (OBJS): Add io_stream class' objects.
7757 (autoload.o): Use WARNONLY_FLAGS.
7758 (inilex.o): Ditto.
7759 (iniparse.o): Ditto.
7760 * archive.cc: New file.
7761 * archive.h: New file.
7762 * archive_tar.cc: New file.
7763 * archive_tar.h: New file.
7764 * archive_tar_file.cc: New file.
7765 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
7766 * choose.cc: Use io_stream.h, not mount.h.
7767 Run indent.
7768 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an
7769 extension.
7770 (read_installed_db): Use io_streams.
7771 * choose.h: Run indent.
7772 * compress.cc: New file.
7773 * compress.h: New file.
7774 * compress_bz.cc: New file.
7775 * compress_bz.h: New file.
7776 * compress_gz.cc: New file.
7777 * compress_gz.h: New file.
7778 * concat.cc: Run indent.
7779 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7780 * concat.h: Run indent.
7781 * desktop.cc: Run indent.
7782 Include mklink2.h rather than redefining by hand.
7783 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7784 (etc_profile): Fix compiler warning (deprecated conversion).
7785 (make_link): Fix compiler warning (deprecated conversion).
7786 Tidy up use of args variable - consolidate into argbuf.
7787 (start_menu): Fix compiler warning (deprecated conversion).
7788 (desktop_icon): Fix compiler warning (deprecated conversion).
7789 (make_etc_profile): Fix compiler warning (deprecated conversion).
7790 (uexists): Fix compiler warning (deprecated conversion).
7791 (check_desktop): Fix compiler warning (deprecated conversion).
7792 (check_startmenu): Fix compiler warning (deprecated conversion).
7793 * dialog.cc: Run indent.
7794 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7795 (fatal): Fix compiler warning (deprecated conversion).
7796 * dialog.h: Run indent.
7797 * diskfull.cc: Run indent.
7798 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7799 * download.cc: Run indent.
7800 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7801 (download_one): Fix compiler warning (signed vs unsigned comparison).
7802 * filemanip.h: Run indent.
7803 * find.cc: Run indent.
7804 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7805 (find): Fix compiler warning (deprecated conversion).
7806 * find.h: Run indent.
7807 * fromcwd.cc: Run indent.
7808 * geturl.cc: Run indent.
7809 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7810 (dialog_cmd): Return a value.
7811 (dialog_proc): Remove unused variables.
7812 Return a value.
7813 (get_url_to_file): Fix compiler warning (deprecated conversion).
7814 * geturl.h: Run indent.
7815 * hash.cc: Run indent.
7816 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7817 * hash.h: Run indent.
7818 * ini.cc: Run indent.
7819 Use io_streams.
7820 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7821 (do_ini): Use io_streams for local io.
7822 * ini.h: Run indent.
7823 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
7824 Fix compiler warning (brackets for truth assignment).
7825 * install.cc: Run indent.
7826 Fix compiler warning (/* in comment).
7827 Use io_streams.
7828 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7829 (dialog_cmd): Return a value.
7830 (dialog_proc): Return a value.
7831 (start_tics): Deleted - was unused.
7832 (badrename): Fix compiler warnings (unused, deprecated conversion).
7833 (standard_dirs): Fix compiler warning (deprecated conversion).
7834 (exists): Remove.
7835 (uninstall_one): Convert to io_streams.
7836 (install_one): Convert to io_streams.
7837 (do_install): Convert to io_streans.
7838 Fix compiler warning (deprecated conversion).
7839 * io_stream.cc: New file.
7840 * io_stream.h: New file.
7841 * io_stream_cygfile.cc: New file.
7842 * io_stream_cygfile.h: New file.
7843 * io_stream_file.cc: New file.
7844 * io_stream_file.h: New file.
7845 * localdir.cc: Run indent.
7846 Use io_streams.
7847 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7848 (get_root_dir_now): Remove.
7849 (save_local_dir): Convert to io_streams.
7850 (dialog_cmd): Return a value.
7851 (do_local_dir): Convert to io_streams.
7852 (log.cc): Run indent.
7853 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7854 (log): Fix compiler warning (deprecated conversion).
7855 (log_save): Fix compiler warning (deprecated conversion).
7856 * log.h: Run indent.
7857 (log): Fix compiler warning (deprecated conversion).
7858 (log_save): Fix compiler warning (deprecated conversion).
7859 * main.cc: Run indent.
7860 Don't include "netio.h".
7861 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7862 (netio_test): Remove.
7863 (sid_auth): Fix compiler warning (partially bracketed initialiser).
7864 (WinMain): Return a value.
7865 * mkdir.cc: Run indent.
7866 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7867 * mklink2.c: Run indent.
7868 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7869 (mkcygsymlink): New function.
7870 * mklink2.h: New file.
7871 * mount.cc: Run indent.
7872 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7873 (create_mount): Remove unused variables.
7874 (cygpath): Fix compiler warning (signed vs unsigned comparison).
7875 * mount.h: Run indent.
7876 * msg.cc: Run indent.
7877 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7878 (msg): Fix compiler warning (deprecated conversion).
7879 (mbox): Fix compiler warning (deprecated conversion).
7880 * msg.h: Run indent.
7881 (msg): Fix compiler warning (deprecated conversion).
7882 * net.cc: Run indent.
7883 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7884 (dialog_cmd): Return a value.
7885 * netio.cc: Run indent.
7886 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7887 (auth_cmd): Return a value.
7888 * netio.h: Run indent.
7889 * nio-file.cc: Run indent.
7890 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7891 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
7892 * nio-file.h: Run indent.
7893 * nio-ftp.cc: Run indent.
7894 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7895 * nio-ftp.h: Run indent.
7896 * nio-http.cc: Run indent.
7897 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7898 * nio-http.h: Run indent.
7899 * nio-ie5.cc: Run indent.
7900 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7901 * nio-ie5.h: Run indent.
7902 * other.cc: Run indent.
7903 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7904 (dialog_cmd): Return a value.
7905 * port.h: Run indent.
7906 * postinstall.cc: Run indent.
7907 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7908 (cmd): Fix compiler warning (deprecated conversion).
7909 (eun): Fix compiler warning (deprecated conversion).
7910 * root.cc: Run indent.
7911 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7912 * simpsock.cc: Run indent.
7913 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7914 * simpsock.h: Run indent.
7915 * site.cc: Run indent.
7916 Use io_streams.
7917 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7918 (get_root_dir_now): Remove.
7919 (save_site_url): Convert to io_streams.
7920 (dialog_cmd): Return 0.
7921 (get_initial_list_idx): Convert to io_streans.
7922 * source.cc: Run indent.
7923 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7924 (check_if_enable_next): Remove.
7925 (load_dialog): Remove unused variables.
7926 (save_dialog): Ditto.
7927 (dialog_cmd): Return a value.
7928 * splash.cc: Return a value.
7929 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7930 (dialog_cmd): Return a value.
7931 * state.cc: Run indent.
7932 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7933 * state.h: Run indent.
7934 * tar.h: Remove.
7935 * tar.cc: Remove.
7936
7937 2001-11-12 Christopher Faylor <cgf@redhat.com>
7938
7939 * desktop.cc (start_menu): Change start menu name to "Cygwin".
7940 (check_startmenu): Ditto.
7941
7942 2001-11-11 Christopher Faylor <cgf@redhat.com>
7943
7944 * choose.cc (parse_filename): Finish reorganization by correctly
7945 decrementing p in memmove.
7946
7947 2001-11-11 Christopher Faylor <cgf@redhat.com>
7948
7949 * choose.cc (parse_filename): Reorganize code to work around gcc
7950 optimization problem.
7951
7952 2001-11-09 Gareth Pearce <tilps@hotmail.com>
7953
7954 * choose.cc (set_action): Allow skip as an option for installed
7955 packages that have version number not listed in setup.ini.
7956
7957 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7958
7959 * choose.cc (set_cation): Backout last change.
7960 (choose_caption): Ditto.
7961
7962 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7963
7964 * ini.h (actions): Remove - transferred to choose.h.
7965 (views): Ditto.
7966 * choose.h: Protect class's from "C" compilers.
7967 (actions): New enum, from ini.h. This may not be the 'right' place
7968 but that place doesn't exist yet.
7969 (_views): New enum, from ini.h.
7970 * choose.cc (set_action): Handle installed packages with a version not
7971 in setup.ini.
7972 (choose_caption): Ditto.
7973 * iniparse.y: Rearrange header order to handle new ini.h.
7974
7975 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7976
7977 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
7978 (registry_category): Fix compiler warning (deprecated conversion).
7979 * iniparse.y (registry_category): Ditto.
7980 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated
7981 conversion).
7982 (add_requried): Remove unused variable.
7983 (choose_caption): Handle all enumeration values via a default.
7984 (paint): Fix compiler warnings (unused, deprecated conversion).
7985 (scroll_common): Fix compiler warnings (unused, signed vs unsigned
7986 comparison).
7987 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
7988 (note_width): Fix compiler warnings (deprecated conversion).
7989 (keep_or_skip): Fix compiler warnings (unused).
7990 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
7991 (set_view_mode): Fix compiler warnings (unused).
7992 (create_listview): Fix compiler warnings (unused, incorrect format,
7993 reaches end of function).
7994 (dialog_proc): Fix compiler warnings (unused).
7995 (read_installed_db): Fix compiler warnings (unused, deprecated
7996 conversion).
7997 * choose.h (_header): Fix compiler warnings (deprecated conversion).
7998 (_view): Ditto.
7999
8000 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
8001
8002 * simpsock.h (SimpleSocket::invalidate): Declare new method.
8003 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
8004 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
8005 memory for buf in the constructor.
8006 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
8007 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
8008 (SimpleSocket::write): Check object consistency - return -1 on error.
8009 invalidate() the object on socket write error.
8010 (SimpleSocket::fill): Check object consistency - return -1 on error.
8011 invalidate() the object if socket read error is encountered and there
8012 is no more data available in the internal read buffer.
8013 Allocate memory for the internal read buffer.
8014 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
8015 during fill() and no more data is available in the internal read buffer.
8016 (SimpleSocket::read): Check object consistency - return -1 on error.
8017 invalidate() the object if socket read error is encountered.
8018 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
8019 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
8020 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
8021 (NetIO_FTP::read): Use NetIO_FTP::ok().
8022 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
8023 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
8024
8025 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
8026
8027 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated
8028 conversion).
8029 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated
8030 conversion).
8031 (SimpleSocket::printf): Ditto.
8032 (SimpleSocket::write): Ditto.
8033 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
8034 printf and write.
8035 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated
8036 conversion).
8037 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
8038 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated
8039 conversion).
8040
8041 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
8042
8043 * geturl.cc (get_url_to_string): clean up memory leak
8044 (get_url_to_file): ditto
8045
8046 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
8047
8048 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
8049 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
8050
8051 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
8052
8053 * fromcwd.cc (found_file): Free() memory containing the version and
8054 filepath information for a given package, before replacing the pointers
8055 which reference this memory.
8056
8057 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
8058
8059 * fromcwd: Fix compiler warnings for cvsid.
8060 (canonicalize_version): Fix compilter warnings.
8061 (do_fromcwd): Ditto.
8062 * version.h: Fix compiler warnings for canonicalize_version.
8063
8064 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
8065
8066 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
8067
8068 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8069
8070 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
8071
8072 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8073
8074 * choose.cc (set_action): Correctly allow skip for any uninstalled
8075 package.
8076
8077 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8078
8079 * choose.cc (default_trust): Change the "Required" forced install
8080 category to "Base".
8081
8082 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8083
8084 * choose.cc: Ran indent.
8085 (set_action): When the requested trust level is missing and the level
8086 was not user requested, set the action to ACTION_SAME_CURR.
8087
8088 2001-11-01 Christopher Faylor <cgf@redhat.com>
8089
8090 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
8091
8092 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8093
8094 * choose.cc (_view::init_headers): Resync with the paint logic.
8095
8096 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8097
8098 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently
8099 installed packages.
8100
8101 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8102
8103 * choose.cc (default_trust): Autoset currently installed packages per
8104 the user's selection of prev/curr/exp.
8105
8106 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8107
8108 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
8109
8110 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
8111
8112 * geturl.cc (is_showing): Remove.
8113 (is_local_install): New static variable. Controls whether the
8114 progress dialog and the supporting thread will be created.
8115 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32
8116 API.
8117 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
8118 This prevents the progress dialog to gain control over the
8119 application and fixes the "setup.exe going to background" problem.
8120 (progress): Use is_local_install.
8121 (get_url_to_string): Set is_local_install.
8122 (dismiss_url_status_dialog): Use is_local_install.
8123 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
8124 (init_dialog): Remove usage of SetForegroundWindow.
8125 This prevents the progress dialog to gain control over the
8126 application and fixes the "setup.exe going to background" problem.
8127
8128 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8129
8130 * choose.cc (list_click): Change r to row for clarity.
8131 When we shrink the list below 1 page, scroll to the top of the list.
8132 (_view::click): Return the actual change for contractions.
8133 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32
8134 API.
8135
8136 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8137
8138 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir
8139 selection order.
8140 * localdir.cc: Ran indent.
8141 (get_root_dir_now): New function.
8142 (save_local_dir): New function.
8143 (dialog_cmd): Use it and swap cygwin root selection and local dir
8144 selection order.
8145 (do_local_dir): If there is a saved local dir, read it in.
8146 * net.cc (dialog_cmd): Swap cygwin root selection and local dir
8147 selection order.
8148 * root.cc (dialog_cmd): Ditto.
8149 * source.cc (dialog_cmd): Ditto.
8150
8151 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8152
8153 * choose.cc(list_vscroll): Return 0 as required by win32.
8154 (list_hscroll): Ditto.
8155 (list_click): Ditto.
8156
8157 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8158
8159 * argv.cc: Remove.
8160 * argv.h: Remove.
8161 * main.cc(WinMain): Use __argv to retrieve command line parameters.
8162 * Makefile,in: Remove argv.o.
8163
8164 2001-11-01 Matt Hargett <matt@use.net>
8165
8166 * geturl.cc (progress): Change int to unsigned int to eliminate
8167 lint warnings.
8168 * (get_url_to_string): Check for NULL pointer.
8169 * mount.cc (find2): Use free instead of delete for malloc'd
8170 memory.
8171 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
8172
8173 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8174
8175 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen]
8176 with neither a package nor a category. The lines[linen] bug was reported
8177 by Matt (matt@usa.net).
8178 (read_installed_db): Bugfix for testing whether a package has a source
8179 tarball. Reported by Matt (matt@usa.net).
8180 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid
8181 programmer confusion and lint errors. Reported by Matt (matt@usa.net).
8182
8183 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8184
8185 * argv.cc: New file, converts arguments for -mwindows
8186 programs. (Simplified derivation from dcrt0.cc.)
8187 * argv.h: New file.
8188 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
8189 Add mingw_getopt.o build rule.
8190 * main.cc(WinMain): Initialise argv and argc for use by getopt.
8191
8192 2001-10-27 Christopher Faylor <cgf@redhat.com>
8193
8194 * res.rc: Rearrange info on top line slightly.
8195
8196 2001-10-27 Christopher Faylor <cgf@redhat.com>
8197
8198 * desktop.cc (make_passwd_group): Move file creation earlier in the
8199 process to ensure that passwd-grp.bat reflects desired operation.
8200
8201 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
8202
8203 * postinstall.cc (each): Remove "*.done" file else rename will fail.
8204
8205 2001-10-16 Christopher Faylor <cgf@redhat.com>
8206
8207 * res.rc: Oops. Take 640x480 screen size into account.
8208
8209 2001-10-16 Christopher Faylor <cgf@redhat.com>
8210
8211 * res.rc: Enlarge chooser screen.
8212
8213 2001-10-12 Christopher Faylor <cgf@redhat.com>
8214
8215 * Makefile.in: Accomodate changes to w32api_include macro.
8216
8217 2001-10-12 Christopher Faylor <cgf@redhat.com>
8218
8219 * Makefile.in: Use correct flags for windres.
8220
8221 2001-10-12 Christopher Faylor <cgf@redhat.com>
8222
8223 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
8224
8225 2001-10-12 Christopher Faylor <cgf@redhat.com>
8226
8227 * choose.cc (pick_line::paint): Reorganize after botched patch.
8228
8229 2001-10-12 Christopher Faylor <cgf@redhat.com>
8230
8231 * choose.cc (pick_line::paint): Add missing declaration.
8232
8233 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
8234
8235 * choose.cc (pick_line::paint): Add package name to sdesc for display.
8236
8237 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
8238
8239 * choose.cc (_view::insert_pkg): Correctly exit loop.
8240 * iniparse.y (register_category): Always insert new categories.
8241
8242 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
8243
8244 * inilex.l (yylex): For comments, eat all characters up to, but not
8245 including newline.
8246
8247 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
8248
8249 * fromcwd.cc (found_file): Use correct package name when adding an
8250 unknown package rather than random stack garbage.
8251
8252 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
8253
8254 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
8255
8256 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
8257
8258 * desktop.cc (etc_profile): Leave environment variables untouched.
8259
8260 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
8261
8262 * autoload.c: Add dynamic load statements for NT/W2K
8263 advapi32 functions not available in 9x/ME.
8264 * main.cc (set_default_dacl): New function.
8265 (WinMain): Call `set_default_dacl' if running on NT/W2K.
8266
8267 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
8268
8269 * ini.h (_CategoryPackage): Change pkg field to pkgname for
8270 consistency.
8271 * choose.cc: Use pkgname field when referencing _CategoryPackage
8272 throughout.
8273 (fill_missing_category): Don't add excluded packages.
8274 (default_trust): Ditto.
8275 (_view::insert_pkg): Ditto.
8276 * iniparse.y (register_category): Use consistent variable name.
8277
8278 2001-07-09 Egor Duda <deo@logos-m.ru>
8279
8280 * choose.cc: Use system foreground color for text output.
8281
8282 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
8283
8284 * choose.cc (set_action): Use default trust for determining reinstall
8285 and source only.
8286 (default_trust): Set default trust.
8287 (pick_line::paint): Allow source selection when reinstalling or
8288 retrieving.
8289
8290 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
8291
8292 * choose.cc (isinstalled): Modify to properly accomodate special case
8293 of "download only".
8294 (set_action): Check downloaded components, not installed components if
8295 "download only".
8296 (set_existence): Always include full list of files when "download
8297 only".
8298
8299 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
8300
8301 * choose.cc (pick_line::paint): Properly display "na" field when no
8302 source exists.
8303
8304 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
8305
8306 * choose.cc (scan2): Ensure that older versions do not show up in
8307 "Test" slot.
8308
8309 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
8310
8311 * choose.cc (set_action): Allow "Skip" action if trust != installed.
8312 * res.rc: Fix copyright.
8313
8314 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
8315
8316 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
8317 boxes.
8318 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
8319
8320 * choose.cc: Restore some more changes from 2001-06-25, throughout.
8321 (paint): Wrap some excessively long lines.
8322 (pick_line::paint): Ditto. Move the arrow in the "Current" column
8323 right to where it belongs. Move the source checkbox slightly to the
8324 right.
8325 (do_choose): List categories and required packages in setup.log.full.
8326
8327 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
8328
8329 * choose.cc (scan2): Restore source scanning eliminated by previous
8330 checkin.
8331
8332 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
8333
8334 * ini.h (struct _Info): Add "derived" element.
8335 * choose.cc (scan2): Try to place unknown tar files into proper slot
8336 when package exists in setup.ini but tar file does not.
8337
8338 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
8339
8340 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
8341 (do_choose): Log the first category name.
8342
8343 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
8344
8345 *ini.h: Reapply 2001-06-25 changes.
8346 * choose.cc (add_required): Ditto. Default to "Keep" state if
8347 UNINSTALL and product is installed. Default to curr state if SKIP,
8348 etc.
8349 (keep_or_skip): New function. Returns skip or keep state depending on
8350 installed state of package.
8351 (default_trust): Use keep_or_skip to set state.
8352 (_view::insert_pkg): Use calloc to allocate lines.
8353 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
8354
8355 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
8356
8357 * choose.cc: Remove globals full_list, headers, package_indexes and
8358 nindexes.
8359 Add globals cat_headers, pkg_headers and chooser.
8360 (add_required): New function.
8361 (paint): Use the chooser for header details.
8362 Call into the chooser to paint each line.
8363 (list_click): Use new global variables.
8364 Call into the chooser to handle the click.
8365 Repaint the entire view if packages have been added or removed.
8366 (note_width): Get passed a headers struct rather than using a global
8367 variable.
8368 (fill_missing_category): New function.
8369 (default_trust): Skip non-"Required" or "Misc" packages.
8370 (pick_line::set_line (Package *)): New function.
8371 (pick_line::set_line (Category *)): New function.
8372 (pick_line::paint): New function.
8373 (pick_line::click): New function.
8374 (_view::_view): New function.
8375 (_view::set_view_mode): New function.
8376 (_view::mode_caption): New function.
8377 (_view::set_headers): New function.
8378 (_view::init_header): New function.
8379 (_view::insert_pkg): New function.
8380 (_view::insert_category): New function.
8381 (_view::insert_at): New function.
8382 (_view::insert_under): New function.
8383 (_view::clear_view): New function.
8384 (viewsplusplus): New function.
8385 (_view::client): New function.
8386 (set_view_mode): Use new chooser functionality.
8387 (set_full_list): Use new global variables.
8388 (create_listview): Instantiate chooser.
8389 Remove all hardcoded headers[] code.
8390 (dialog_cmd): On trust changes, check dependencies.
8391 (getcategorybyname): New function.
8392 (getpackagecategorybyname): New function.
8393 (scan2): Use case-insensitive package comparison.
8394 (do_choose): Use fill_missing_category ().
8395 Show some category data.
8396 * ini.h: Protect against multiple inclusion.
8397 (views) New enum.
8398 (_CategoryPackage): New struct.
8399 (_Category): New struct.
8400 (_Package): Change category to Category * from char *.
8401 (extern Category category): New global variable.
8402 (extern in ncategories): Ditto.
8403 (getcategorybyname): New prototype.
8404 (catpackagecategorybyname): New prototype.
8405 (register_category): New prototype.
8406 (add_category): New prototype.
8407 * iniparse.y: Parse multiple categories per package.
8408 (category): New global variable.
8409 (ncategories): New global variable.
8410 (new_package): Compare package against NULL, not 0.
8411 (new_requirement): Source formatting fix.
8412 (register_category): New function.
8413 (add_category): New function.
8414 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
8415 IDC_CHOOSE_VIEWCAPTION: New control.
8416 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
8417 IDC_CHOOSE_VIEWCAPTION: New control.
8418 Increment _APS_NEXT_CONTROL_VALUE.
8419
8420 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
8421
8422 * choose.cc (paint): Wrap excessively long lines.
8423 (list_click): Ditto.
8424 (create_listview): Ditto.
8425 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
8426 setup.log.full. Allow "Yes" for source exists in setup.log.full when
8427 installing from local directories.
8428
8429 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
8430
8431 * choose.cc (set_action): Only clear srcpicked when moving to next
8432 state. Allow source installation if it exists in the current "trust"
8433 state. Don't move to skip state when package is installed.
8434 (list_click): Don't allow source clicking when no source is available.
8435 (set_full_list): Display package when not is_full_action.
8436 * ini.h (is_full_action): Define.
8437
8438 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
8439
8440 * install.cc (check_for_old_cygwin): New function. First stab at
8441 checking for old cygwin versions.
8442 (do_install): Call check_for_old_cygwin if there were no errors during
8443 the install.
8444
8445 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
8446
8447 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
8448 than zeroed "source" element.
8449
8450 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
8451
8452 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
8453 the highest available "hole" in the trust array.
8454
8455 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
8456
8457 * choose.cc (set_existence): Use pointer method for indexing in trust
8458 array.
8459 (create_listview): Ditto.
8460 (scan2): Ditto. Also, use consistent variable name for indexing into
8461 trust array.
8462 * ini.h (Package): Reorganize info array for easier scanning.
8463
8464 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
8465
8466 * choose.cc (isinstalled): Eliminate special download only test.
8467 (set_action): Don't move to next state if in ACTION_SAME range and not
8468 incrementing.
8469 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
8470 downloading.
8471 (do_choose): Sort packages after all packages have been read.
8472 Accomodate the fact that first element in trust array is empty so that
8473 log files don't report the wrong trust value.
8474 * iniparse.y (new_package): Malloc space for package name or suffer
8475 memory corruption.
8476
8477 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
8478
8479 * ini.h (Dependency): New structure. Declare new function.
8480 * inilex.l (yylex): Detect new setup.ini options - category and
8481 requires.
8482 * iniparse.y: Declare new setup.ini token values.
8483 (yyparse): Parse new token values.
8484 (new_requirement): New function.
8485
8486 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
8487
8488 * choose.cc (read_installed_db): Eliminate obsolete code.
8489
8490 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
8491
8492 * choose.cc (set_action): Set trust on "redo".
8493 (_Info::_Info): New constructor.
8494 (read_installed_db): Use new constructor. Use trusts type for
8495 iterator.
8496 * ini.h (struct _Info): Label struct, add constructor.
8497 (Package): Make installed_ix a type 'trusts.'
8498 * install.cc (uninstall_one): Unset any installed info for current
8499 package.
8500 (install_one): Allocate new Info struct for installed reflecting new
8501 installed info.
8502 (do_install): Don't output line to installed.db if package is being
8503 uninstalled.
8504
8505 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
8506
8507 * choose.cc (getpkgbyname): Use consistent method for scanning package
8508 array.
8509
8510 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
8511
8512 * choose.cc: Add some comments.
8513 (getpkgbyname): Use strcasecmp for comparisons.
8514
8515 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
8516
8517 * install.cc (do_install): Avoid checking for download action if
8518 package wasn't currently retrieved.
8519
8520 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
8521
8522 * choose.cc: Eliminate extra array throughout. Use element in package
8523 structure instead. Use pointers rather than array indexes where
8524 appropriate.
8525 (set_action): New function to set next action based on current.
8526 (choose_caption): New function. Returns display caption.
8527 (check_existence): Change arguments. Use pointer to 'info' structure.
8528 (set_existence): Use pointer rather than array index.
8529 (default_trust): Use trusts enum for second argument.
8530 (set_full_list): Honor exclude element in package structure.
8531 (build_labels): Eliminate.
8532 (base): Make global. Use const char * argument.
8533 (get_package_version): Eliminate.
8534 (getpkgbyname): New function.
8535 (read_installed_db): Use parse_filename to get version info.
8536 * desktop.cc (make_passwd_group): Use getpkgbyname function.
8537 * download.cc (get_file_size): const argument.
8538 (do_download): Use is_download_action to determine when something
8539 should be downloaded.
8540 * filemanip.h: Add some functions.
8541 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
8542 * ini.h: Use enums for actions and trusts.
8543 (is_download_action): New macro.
8544 (is_upgrade_action): Ditto.
8545 (is_uninstall_action): Ditto.
8546 (struct Package): Add new fields.
8547 * inilex.l (yylex): Detect new setup.ini options.
8548 * iniparse.y: Declare new tokens.
8549 (yyparse): Detect exclude keyword. Fill out version field even if
8550 version == 0.
8551 (new_package): Use greater granularity when allocating package array to
8552 avoid repeated calls to realloc.
8553 * install.cc (exists): const argument.
8554 (uninstall_one): Take pkg argument.
8555 (install_one): Ditto. Eliminate unneeded arguments which can be
8556 derived from package info.
8557 (do_install): Iterate over package array using a pointer. Use
8558 is_download_action to control when package should be downloaded.
8559 * tar.cc (tar_open): const argument.
8560 * tar.h: Refloect const argument.
8561
8562 2001-05-31 Michael Chase mchase@ix.netcom.com
8563
8564 * main.cc (WinMain): Add setup version to starting setup.log entry
8565
8566 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
8567
8568 * inilex.l: Add + to list of valid string characters.
8569
8570 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
8571
8572 * Makefile.in: Remove more stuff in the clean target.
8573
8574 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
8575
8576 * Makefile.in: Correctly generate iniparse.h.
8577
8578 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
8579
8580 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
8581 * geturl.h: Change declaration of `get_url_to_file' accordingly.
8582 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
8583 Set member `ftp_auth'.
8584 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
8585 to constructors of derived classes.
8586 (NetIO::get_ftp_auth): New method.
8587 * netio.h: Change class definition accordingly.
8588 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
8589 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
8590 Add code for ftp authentication retry.
8591 * nio-ftp.h: Change class definition accordingly.
8592 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
8593 Add code for ftp authentication retry in case of proxy connection.
8594 * nio-http.h: Change class definition accordingly.
8595 * res.rc: Add FTP authentication dialog.
8596 * resource.h: Add new constants used in res.rc.
8597 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
8598
8599 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
8600
8601 * res.rc (IDD_SPLASH): Add a copyright year.
8602
8603 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
8604
8605 * Makefile.in: Make iniparse.y produce a c++ file.
8606 * choose.cc (set_existence): Revert 2001-05-27 change.
8607 * ini.cc: Remove "C" from declaration of yyparse.
8608 * iniparse.y (yyparse): Fill out version field by default when a binary
8609 install is detected and no version has been set yet.
8610 * install.cc (do_install): Mount things earlier so that we can use
8611 proper mount table settings. Don't remove mounts since they are now
8612 honored.
8613 * mount.cc (create_mount): Reread the mount table after establishing a
8614 new mount.
8615 (read_mounts): Explicitly clear root_here to allow multiple uses of
8616 this function. Ensure that there is no garbage in the table when we've
8617 exhausted all of the mounts in the registry.
8618 (cygpath): Accomodate ./ in path.
8619
8620 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
8621
8622 Use parse_filename method to parse filenames throughout. Use
8623 get_root_dir to retrieve the current root directory throughout. Set
8624 const in argument list, where appropriate, throughout.
8625 * choose.cc (set_existence): Detect case of uninstalled package with no
8626 version.
8627 (parse_filename): New function.
8628 * filemanip.h (fileparse): New structure.
8629 * mount.cc (read_mounts): Remember where we found the root mount.
8630 (set_root_dir): New function.
8631 (get_root_dir): Ditto.
8632 * mount.h: Declare new functions.
8633 * site.cc (get_root_dir_now): Renamed from get_root_dir.
8634 (save_site_url): Use new function name.
8635 (get_initial_list_idx): Ditto.
8636
8637 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
8638
8639 * choose.cc: Use a constant throughout to deal with chooser icon
8640 length.
8641 * res.rc (IDD_CHOOSE): Increase size of chooser box.
8642
8643 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
8644
8645 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
8646 use when Redownload or Sources Only selected.
8647
8648 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
8649
8650 Reformat file after botched patch formatting.
8651 * choose.cc (which_trust): Eliminate variable.
8652 (default_trust): Don't set which_trust.
8653 (do_choose): Use selected trust when reinstalling or installing source.
8654
8655 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
8656
8657 Change concat to cygpath throughout.
8658 Change map_filename to cygpath throughout.
8659 * concat.cc (vconcat): New function.
8660 (concat): Use vconcat.
8661 * concat.h: Reflect above.
8662 * install.cc (map_filename): Eliminate.
8663 (install_one): Free dest_file.
8664 * mount.cc (find2): Expect input key to be pointing to mount record.
8665 (in_table): New function.
8666 (is_admin): Move from root.cc.
8667 (read_mounts): New function.
8668 (path_prefix_p): New function.
8669 (cygpath): New function.
8670 * mount.h: Define new functions and structure.
8671 * root.cc (in_table): Move to mount.cc.
8672 (do_root): Call read_mounts to initialize root stuff and mount table.
8673 * site.cc (get_root_dir): Ditto.
8674
8675 2001-05-09 Matt Hargett <matt@use.net>
8676
8677 * Makefile.in: Remove *.rc from clean.
8678
8679 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
8680
8681 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
8682 TRUST_PREV which produced "0" versions.
8683
8684 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
8685
8686 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
8687 _APS_NEXT_CONTROL_VALUE to account for addition of
8688 IDC_CHOOSE_INST_TEXT.
8689 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
8690 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
8691 hot keys to select Prev, Curr, Exp.
8692 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
8693 define for LOOP_PACKAGES to include new actions ACTION_REDO and
8694 ACTION_SRC_ONLY.
8695 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
8696 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
8697 source Checkbox to use.
8698 (build_labels): Add logic to allow for selection of Source only
8699 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
8700 current version binary.
8701 (dialog_proc): Add conditional display for file selection prompt based
8702 on download vs install using IDC_CHOOSE_INST_TEXT.
8703 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
8704 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
8705 handle the instance where Source Download/Install was selected. Modify
8706 log file to store appropriate information regarding Action selected and
8707 the new actions that were added (I.E.: ACTION_REDO and
8708 ACTION_SRC_ONLY).
8709 * download.cc: Add include for <unistd.h> and "port.h".
8710 (download_one): Modify parameter list to include the selected action
8711 for the file to be downloaded. Modify size check against expected size
8712 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
8713 .tmp file to also remove the destination file if exists due to ability
8714 to redownload source and binary now.
8715 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
8716 calculation of Download Bytes. Modify to also use ACTION_REDO and
8717 ACTION_SRC_ONLY in determining files selected for download.
8718 * install.cc (uninstall_one): Add check to treat a Reinstall like an
8719 upgrade so current version will be uninstalled prior to reinstall.
8720 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
8721 uninstalling and installing binary and source packages.
8722 * desktop.cc (make_passwd_group): Modify logic to account for a Source
8723 only cygwin install when checking for cygwin to determine need for
8724 mkpasswd and mkgroup.
8725
8726 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8727
8728 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
8729 Removed WS_DISABLED from "OK" buttons to accomodate default focus
8730 changes in net.cc and source.cc.
8731 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
8732 a default is selected.
8733 * winsup/cinstall/source.cc (dialog_proc): Ditto.
8734 (check_if_enable_next): Removed. No longer needed since a radio button
8735 will always be selected.
8736 (load_dialog): Removed call to check_if_enable_next.
8737 (dialog_cmd): Ditto. Also added default to switch.
8738
8739 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
8740
8741 * res.rc: Resize affected text.
8742
8743 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
8744
8745 * net.cc (do_net): Default to direct download.
8746 * res.rc: Move default selections to the top.
8747
8748 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
8749
8750 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
8751 Must now include <windows.h> and not the pieces.
8752 * choose.cc (create_listview): Clean up type mismatch problems.
8753 * dialog.h (NEXT(id)): Ditto.
8754 * geturl.cc (dialog): Ditto.
8755 * install.cc (dialog): Ditto.
8756 * splash.cc (load_dialog): Ditto.
8757
8758 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
8759
8760 * tar.cc (class gzbz): Define dummy virtual functions.
8761
8762 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
8763
8764 * Makefile.in: Add bz2 include/library support.
8765 * filemanip.h: New file.
8766 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
8767 .tar.bz2 found.
8768 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
8769 (read_installed_db): Ditto.
8770 (do_choose): Ditto.
8771 * fromcwd.cc (found_file): Ditto.
8772 (do_fromcwd): Ditto.
8773 * tar.cc (class gzbz): New super class for uncompression support.
8774 (gz): New class for gzip support.
8775 (bz): New class for bzip2 support.
8776 (tar_open): Use gzbz class to control file opening.
8777 (tar_ftell): Ditto for returning position in file.
8778 (skip_file): Ditto for reading file.
8779 (tar_next_file): Ditto.
8780 (tar_read_file): Ditto.
8781 (tar_close): Ditto for close.
8782
8783 * zlib/configure.in: Force NM substitution.
8784
8785 * source.cc (do_source): Default to "Install from Internet".
8786
8787 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
8788
8789 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
8790 `stat'.
8791 * choose.cc (list_click): Correct inability to select source code for
8792 download.
8793 (scan2): Modify to skip source tarballs when scanning disk for
8794 installable packages.
8795
8796 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
8797
8798 * install.cc: install sources into /usr/src instead
8799 of /, also include the sizes of source tarballs
8800 in total_bytes.
8801 * download.cc: include sizes of source tarballs in
8802 total_download_bytes.
8803
8804 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
8805
8806 * download.cc (get_file_size): Remove `static'.
8807
8808 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
8809
8810 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
8811
8812 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
8813
8814 * choose.cc (paint): Modify message for nothing to download vs
8815 nothing to install/update based on installation method.
8816 (list_click): Modify to skip versions in selection process if
8817 installing from local directory and installation file does not exist.
8818 Also leaves Source Action set to N/A if the source file does not exist
8819 and installing from local directory.
8820 (check_existence): New method to check current existence of installation
8821 files based on selected installation method.
8822 (set_existence): New method to set the current existence of installation
8823 files based on selected installation method.
8824 (best_trust): Modify decision process for best trust to base decision on
8825 current trust selected (IE: Prev, Curr, or Test), existence of file and
8826 installation method selected.
8827 (default_trust): Add logic to capture the current trust level and the
8828 trust selected for the given package.
8829 (set_full_list): Expand decision criteria for displaying a package in
8830 the selection list to include file existence/non-existence and selected
8831 installation method.
8832 (build_labels): Modify criteria for label addition to include
8833 installation method and file existence/non-existence.
8834 (create_listview): Modify to establish package trust level for each
8835 package before setting up the display list. Also modification to set
8836 current trust button as the default.
8837 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
8838 a reset of the selection list in addition to setting the default trust.
8839 (get_package_version): New method to provide reusable code for
8840 determining the package version from the file name for a specified
8841 trust.
8842 (scan2): Modify to use new method get_package_version and
8843 also enhance handling of the build for the structures package and
8844 extra.
8845 (read_installed_db): Modify to use the new method
8846 get_package_version and also enhance handling of the build for the
8847 structures package and extra.
8848 (do_choose): Add additional initialization of package and extra
8849 structures. Modify to use read_installed_db all the time despite
8850 install method. Modify output to setup.log.full log file to increase
8851 readability by adding additional spacing, expanded code and available
8852 versions.
8853 * ini.h: Add new fields install_exists, source_exists and
8854 partial_list_display to the structure definition for package.
8855 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
8856 pushbuttons by replacing with Radio Buttons thus allowing the
8857 operator to better determine which is selected.
8858
8859 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
8860
8861 * download.cc (do_download): Add new variables total_download_bytes and
8862 total_download_bytes_sofar for download progress meter. Add loop
8863 to accumulate the total bytes to download from the selected packages.
8864 * geturl.cc: Add state.h and diskfull.h to include list. Add new
8865 variables gw_iprogress, gw_pprogress, gw_progress_text,
8866 gw_pprogress_text, and gw_iprogress_text to allow for addition of
8867 total packages download progress meter and disk full percent
8868 progress meter. Add variables total_download_bytes and
8869 total_download_bytes_sofar for use by progress meters.
8870 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
8871 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
8872 allow for addition of total packages download progress meter and disk
8873 full percent progress meter.
8874 (init_dialog): Ditto.
8875 (progress): Ditto.
8876 (get_url_to_file): Ditto.
8877 * geturl.h: Add external definition for total_download_bytes and
8878 total_download_bytes_sofar.
8879 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
8880 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
8881 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
8882 download meters.
8883 * resource.h: Add new fields for progress meters and text and update
8884 _APS_NEXT_CONTROL_VALUE.
8885
8886 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
8887
8888 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
8889 for NULL.
8890
8891 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
8892
8893 * download.cc (download_one): Add missing parenthesis.
8894
8895 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
8896
8897 * download.cc (get_file_size): New function. Eliminates the need
8898 to call `stat'.
8899 (download_one): Call `get_file_size' instead of `stat'. This
8900 workarounds a problem with mingw's `stat' call.
8901
8902 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
8903
8904 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
8905 This is to allow cinstall to build with 2.95.2-7 and to make the
8906 use of headers consistent.
8907
8908 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
8909
8910 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
8911
8912 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
8913
8914 * winsup/cinstall/res.rc: Added accelerators and improved focus
8915 order.
8916
8917 2000-12-10 Egor Duda <deo@logos-m.ru>
8918
8919 * choose.cc (paint): Use system background color for text output.
8920
8921 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
8922
8923 * Makefile.in: Use CXX for linking and for compiling .cc files.
8924 * configure.in: Find correct c++ compiler.
8925 * configure: Regenerate.
8926
8927 2000-11-17 DJ Delorie <dj@redhat.com>
8928
8929 * splash.cc (load_dialog): Make message more obvious.
8930 * res.rc: Ditto.
8931
8932 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
8933
8934 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
8935 necessary for newer compilers.
8936
8937 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
8938
8939 * desktop.cc: Include "ini.h" and "version.h".
8940 (make_passwd_group): Skip the function on 9x/ME boxes when an
8941 older version of Cygwin has been installed which doesn't
8942 support mkpasswd/mkgroup on 9x/ME.
8943 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
8944 * ini.h: ...here.
8945
8946 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
8947
8948 * desktop.cc (make_passwd_group): Don't exit when started
8949 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
8950
8951 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
8952
8953 * install.cc (do_install): Add call to set_cygdrive_flags to sync
8954 the mount modes.
8955 * mount.cc (set_cygdrive_flags): New function.
8956 (get_cygdrive_flags): Ditto.
8957 (default_cygdrive): Ditto.
8958 (set_cygdrive_flags): Ditto.
8959 * mount.h: Add prototype for set_cygdrive_flags.
8960
8961 2000-10-23 DJ Delorie <dj@redhat.com>
8962
8963 * ini.h: add source actions
8964 * fromcwd.cc: check for available sources
8965 * res.rc: add checkbox bitmaps
8966 * resource.h: ditto
8967 * check-*.bmp: new
8968 * choose.cc: add source column
8969 * download.cc: download sources if called for
8970 * install.cc: [un]install sources too
8971
8972 2000-10-22 DJ Delorie <dj@redhat.com>
8973
8974 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
8975 ignore it wrt full_list if there's already a version installed.
8976 (do_choose): Sort the list.
8977 (package_sort): New.
8978
8979 2000-10-12 DJ Delorie <dj@redhat.com>
8980
8981 * res.rc: Add more error strings.
8982 * resource.h: Ditto.
8983 * iniparse.y (new_package): re-initialize if needed.
8984 * download.cc (do_download): Keep track of errors; notify and
8985 allow retry.
8986 * install.cc (do_install): Ditto.
8987
8988 2000-10-05 DJ Delorie <dj@redhat.com>
8989
8990 * Makefile.in: fix %.cc rule
8991
8992 2000-10-04 DJ Delorie <dj@redhat.com>
8993
8994 * desktop.cc: quote HOME and USER, don't . ./.profile
8995
8996 * choose.cc (build_labels): don't include in partial list just
8997 because there's a *previous* version available.
8998
8999 * install.cc (do_install): if installing from local directory with
9000 setup.ini and the file isn't found, look in "." also. Note errors.
9001
9002 2000-10-02 DJ Delorie <dj@redhat.com>
9003
9004 * ini.cc (do_ini): save setup.ini locally
9005
9006 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
9007
9008 * desktop.cc: quote escapes in prompt
9009
9010 2000-10-02 Jason Tishler <jt@dothill.com>
9011
9012 * root.cc (is_admin): New function.
9013 (read_mount_table): Check for administrative priviledges and set
9014 installation scope as appropriate.
9015
9016 2000-09-28 DJ Delorie <dj@redhat.com>
9017
9018 * nio-ftp.cc (ftp_line): handle continuations more robustly
9019
9020 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
9021
9022 * res.rc: increased the size of the site dialog (IDD_SITE) & the
9023 corresponding list box to provide for more URL's to be listed.
9024 Modified the position of the Back, Next and Cancel buttons to
9025 correspond to the new size of the dialog.
9026
9027 2000-09-13 DJ Delorie <dj@redhat.com>
9028
9029 * install.cc (do_install): update disk fullness once per package
9030 to improve performance
9031
9032 * choose.cc (create_listview): call ReleaseDC
9033
9034 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
9035
9036 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
9037 returned, as it seems Samba 2.0.6+ returns this instead of
9038 ERROR_PATH_NOT_FOUND
9039
9040 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
9041
9042 * site.cc (get_initial_list_idx): Don't default to saved URL if it
9043 refers to sources.
9044
9045 2000-09-07 DJ Delorie <dj@redhat.com>
9046
9047 * splash.cc: use version.h, not local decl
9048 * res.rc: add "old version" message
9049 * resource.h: ditto
9050 * version.h: new
9051 * fromcwd.cc (canonicalize_version): make global
9052 * iniparse.y: add setup-version support, fix bug in blank line
9053 handling
9054
9055 * inilex.l: add [exp] as alias for [test], add setup-version
9056 * Makefile.in (version.c): add setup-version tag
9057
9058 * desktop.cc (do_desktop): remove 1.1 version number
9059 (do_desktop_setup): ditto
9060
9061 * ini.cc (do_ini): zero out package list just in case we redo it.
9062
9063 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
9064
9065 * choose.cc (list_click): Check for nindexes==0; if so, return.
9066
9067 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
9068
9069 * localdir.cc: new, local package directory selection dialog; cd
9070 into selected directory
9071 * Makefile.in (OBJS): add localdir.o
9072 * dialog.h: add prototype for do_local_dir
9073 * main.cc (WinMain): initialize local_dir to cwd; add call to
9074 do_local_dir
9075 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
9076 * source.cc (dialog_cmd): ditto
9077 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
9078 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
9079 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
9080 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
9081 * state.h: add local_dir variable
9082
9083 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
9084
9085 * desktop.cc: added logic to handle to the new dialog and to
9086 default the setting for the new checkboxes based on whether the
9087 desktop icon or start menu link already exist.
9088 (desktop_icon): correction to desktop directories for desktop icon
9089 creation. Additional logic added for Win95 which does not appear
9090 to have Common Directories so if Common selected and null uses
9091 normal directory.
9092 (start_menu): Additional logic added for Win95 which does not
9093 appear to have Common Directories so if Common selected and null
9094 uses normal directory.
9095 (do_desktop_setup): moved the saving of the icon, creation of the
9096 bat file, profile, passwd, Start Menu link and desktop shortcut to
9097 this method from do_desktop. Made the creation of the desktop
9098 icon and start menu link conditional on settings of new dialog
9099 created for desktop.
9100 * install.cc (do_install): changed next from IDD_S_DESKTOP to
9101 IDD_DESKTOP.
9102 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
9103 * res.rc: added new resource to create a desktop dialog with 2
9104 checkboxes for creating the desktop icon and start menu link.
9105 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
9106 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
9107 * state.h: added root_menu and root_desktop for use in dialog.
9108
9109 2000-08-29 DJ Delorie <dj@redhat.com>
9110
9111 * choose.cc (scan_downloaded_files): scan for existing files, so
9112 that the user only sees new downloads.
9113
9114 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
9115 * site.cc (do_site): if we can't download the mirror list, go back
9116 to the net setup box to choose another transport.
9117 * autoload.c: add more functions
9118 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
9119 * resource.h: add WININET message
9120
9121 * net.cc (do_net): no longer default to IE5
9122 * simpsock.h (class SimpleSocket): new, simplify socket operations
9123 * simpsock.cc: ditto
9124 * nio-http.h: new, for direct http protocol
9125 * nio-http.cc: ditto
9126 * nio-ftp.h: new, for direct http protocol
9127 * nio-ftp.cc: ditto
9128 * netio.cc (set_url): move initialization here to handle redirections
9129 (open): add direct http/ftp
9130 * netio.h (NetIO::set_url): new
9131
9132 * log.cc (log_save): create directory for log if needed
9133
9134 * hash.cc, hash.h: new
9135 * Makefile: add hash.o
9136 * choose.cc: enable "uninstall" option
9137 * download.cc: invert action test to accomodate uninstalling
9138 * ini.h: add ACTION_UNINSTALL
9139 * install.cc: add uninstall functionality
9140 * res.rc: make install tag changeable
9141 * resource.h: add uninstall resources
9142
9143 * res.rc: update mirror list URL
9144
9145 2000-08-24 DJ Delorie <dj@redhat.com>
9146
9147 * log.cc, log.h: new files
9148 * Makefile.in (OBJS): add log.o
9149 * tar.cc: use exit_setup instead of exit
9150 * dialog.cc (fatal): use exit_setup instead of ExitProcess
9151 * msg.cc (fatal): ditto
9152 * install.cc (dialog_cmd): ditto
9153 * ini.cc (do_ini): ditto
9154 * main.cc (main): add logging
9155 * source.cc (do_source): ditto
9156 * root.cc (do_source): ditto
9157 * site.cc (do_site): ditto
9158 * other.cc (do_other): ditto
9159 * net.cc (do_net): ditto
9160 * choose.cc (do_choose): ditto
9161 * download.cc (do_download): ditto
9162 * install.cc (do_install): ditto
9163 * msg.cc (fatal): ditto
9164
9165 * res.rc: mark password boxes as *being* password boxes.
9166
9167 * fromcwd.cc (canonicalize_version): use multiple buffers so that
9168 multiple calls won't use the same buffer.
9169 * choose.cc (create_listview): don't default to full list if no changes
9170 (base): return computed value, not temporary :-(
9171 (do_choose): don't use installed.db if we're only downloading.
9172
9173 2000-08-23 DJ Delorie <dj@redhat.com>
9174
9175 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
9176 * nio-ie5.h (flush_io): new
9177 * netio.cc (load_dialog): note when we're initializing the dialog
9178 box, and ignore changes to the edit fields then.
9179
9180 2000-08-21 DJ Delorie <dj@redhat.com>
9181
9182 * README: Update
9183
9184 * fromcwd.cc (found_file): don't remember the canonicalized version
9185
9186 * choose.cc (paint): print "nothing to do" message when list is empty.
9187 (build_labels): Use version "0.0" if no version is available.
9188 (create_listview): default to full list if nothing to install/update.
9189 (base): new, returns basename of file
9190 (read_installed_db): compare base names, not full paths
9191
9192 2000-08-11 DJ Delorie <dj@redhat.com>
9193
9194 * choose.cc: add new chooser dialog
9195 * fromcwd.cc: use IDD_CHOOSE
9196 * ini.cc: use IDD_CHOOSE
9197 * main.cc: use IDD_CHOOSE
9198 * ini.h: cosmetic changes
9199 * res.rc: add choose dialog, bitmaps
9200 * choose-spin.bmp: new
9201 * choose-rtarrow.bmp: new
9202 * resource.h: add choose dialog controls
9203
9204 * mount.cc: remove debug statement
9205
9206 2000-08-08 DJ Delorie <dj@redhat.com>
9207
9208 * Makefile.in (version.c): make version checking more robust
9209 * splash.cc (load_dialog): handle case where there's no version
9210
9211 2000-08-07 DJ Delorie <dj@redhat.com>
9212
9213 * (all): add cvsid tags
9214 * Makefile.in: generate version.c from ChangeLog, add splash.o
9215 * splash.o: new
9216 * res.rc: add splash screen
9217
9218 2000-08-02 DJ Delorie <dj@redhat.com>
9219
9220 * net.cc: remove proxy password code
9221 * res.rc: remove proxy user/pass from net, add auth dialogs
9222 * netio.cc,h: add sys/proxy auth methods
9223 * nio-ie5: use them, check for http status codes
9224 * state.h: add system authorization
9225
9226 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
9227 meaning an url)
9228
9229 2000-08-02 Norman Vine <nhv@yahoo,com>
9230
9231 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
9232
9233 2000-08-01 DJ Delorie <dj@redhat.com>
9234
9235 * postinstall.cc (each): don't rename files we ignore
9236 (do_postinstall): set CYGWINROOT to root_dir, chdir there
9237
9238 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
9239
9240 2000-07-31 DJ Delorie <dj@redhat.com>
9241
9242 * desktop.cc: reverse PATH so /usr/bin precedes /bin
9243
9244 2000-07-18 DJ Delorie <dj@redhat.com>
9245
9246 * autoload.c: new, autoload dlls that might not be available.
9247 * Makefile.in (OBJS): add autoload.o
9248
9249 * res.rc: rewrite root options (text/binary, system/user) to be
9250 more obvious.
9251
9252 * site.cc (get_site_list): trim displayed URL, sort by domain
9253
9254 * net.cc (do_net): make IE5 default to checked, for now
9255
9256 * choose.cc (do_choose): sort packages correctly
9257 * ini.cc (do_ini): handle parse errors more gracefully
9258 (yyerror): ditto
9259 (fprintf): line buffer output
9260 (do_ini): if we can't load setup.ini, go back to the site list.
9261 * ini.h: add "unknown" trust level
9262 * inilex.l: absorb unknown trust levels and key/value pairs,
9263 add line number logic
9264 * iniparse.y: handle parse errors more gracefully.
9265 * install.cc: skip packages with no valid install entry
9266
9267 2000-07-17 DJ Delorie <dj@cygnus.com>
9268
9269 * coding standards fixups, many files
9270 * mkdir.cc: warn about deletions *before* deleting them
9271
9272 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
9273
9274 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
9275
9276 * other.cc (dialog_cmd): save download site URL
9277 * site.cc (get_root_dir): new
9278 (save_mirror_site): new
9279 (dialog_cmd): save download site URL
9280 (get_site_list): make list big enough to add prev site
9281 (get_initial_list_idx): new, read last-used URL from file and
9282 append it to site_list
9283 (do_site): call get_initial_list_idx
9284
9285 * concat.cc (concat): avoid segfault when first parm is null
9286
9287 2000-07-13 DJ Delorie <dj@cygnus.com>
9288
9289 * postinstall.cc: new
9290 * Makefile.in: add postinstall.o
9291 * concat.h: add backslash ()
9292 * concat.cc: ditto
9293 * desktop.cc (etc_profile): don't do postinstall
9294 (backslash): moved to concat.cc
9295 (uexists): new
9296 (make_postinstall_script): run directly
9297 (do_desktop): chain to do_postinstall
9298 * dialog.h: add exit_msg, do_postinstall
9299 * download.cc: use exit_msg
9300 * install.cc: ditto
9301 * main.cc: add postinstall, exit_msg
9302 * resource.h: add postinstall
9303 * README: add more to-do items
9304
9305 2000-07-12 DJ Delorie <dj@cygnus.com>
9306
9307 * desktop.cc: add /etc/postinstall/ support
9308 * install.cc: add more "standard" directories
9309
9310 2000-07-11 DJ Delorie <dj@cygnus.com>
9311
9312 * desktop.cc: create /etc/profile
9313 * desktop.cc: fix include syntax
9314 * Makefile.in: add auto-dependencies
9315 * root.cc: support system vs user
9316 * desktop.cc: ditto
9317 * mount.h: ditto
9318 * mount.cc: ditto
9319 * install.cc: ditto
9320 * res.rc: ditto
9321 * resource.h: ditto
9322 * state.h: ditto
9323 * desktop.cc: make sure we use backslashes, not slashes.
9324 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
9325 * geturl.cc: change math for percentage to avoid overflow
9326 * install.cc: ditto
9327 * download.cc: post "download complete" message.
9328 * root.cc: pre-fill in defaults if needed, don't start
9329 browse at root_dir unless it's set.
9330 * desktop.cc: quote $PATH in case it has spaces in it
9331
9332 2000-07-10 DJ Delorie <dj@cygnus.com>
9333
9334 * Makefile.in: add desktop.o and mklink2.o
9335 * dialog.h: add do_desktop
9336 * install.cc: create standard directories, call do_desktop
9337 * res.rc: add cygwin.ico as a file also
9338 * desktop.cc: new, do shortcuts, batch files, and icons
9339 * mklink2.c: new, for COM
9340 * README: update to-do list
9341
9342 2000-07-10 DJ Delorie <dj@cygnus.com>
9343
9344 * ini.cc (do_ini): don't worry about timestamps if we're not
9345 actually installing.
9346
9347 2000-07-09 DJ Delorie <dj@cygnus.com>
9348
9349 * Makefile.in: add -I$(srcdir) for ini.h
9350
9351 2000-07-06 DJ Delorie <dj@cygnus.com>
9352
9353 * Replace everything with a new GUI version
9354 * zlib/gzio.c: add gzctell() for progress displays
9355
9356 2000-06-22 DJ Delorie <dj@cygnus.com>
9357
9358 * setup.c (tarx): re-add call to write_pkg()
9359
9360 2000-06-07 DJ Delorie <dj@cygnus.com>
9361
9362 * cygcalls.c: new, call cygwin1.dll functions directly
9363 * cygcalls.h: header for same
9364 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
9365 exes, fix cinstall.rc dependencies.
9366 * path.c: remove unneeded code
9367 * setup.c: use cygcalls instead of xcreate_process.
9368 uncompress embedded files with zlib
9369 add "-d" for "download only"
9370 add "-h" for help
9371 postpone mount changes until very end
9372 add download progress indicators
9373 pack multi-column listings more
9374 auto-delete temp files
9375 customize banner message according to options
9376 prompt user for text/binary mounts
9377 add warnings about empty setup directory, root installs, etc
9378
9379 2000-05-24 DJ Delorie <dj@cygnus.com>
9380
9381 * tar.c: New file; built-in tar using zlib.
9382 * tar.h: New file; header for same.
9383 * ctar.c: New file; test program for same.
9384 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
9385 * path.c (pathcat): convert slashes and canonicalize, instead of
9386 aborting
9387 * setup.c (tarx): add support for built-in tar
9388 (main): accept unix-style slashes, check root dir for drive letters,
9389 warn about installing in /, make sure cwd is empty for internet
9390 installs, defer mounts to end of install, support built-in tar.
9391
9392 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
9393
9394 Fix compiler warnings throughout.
9395 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
9396 get_pkg_stuff.
9397 * setup.c: Make 'root' global.
9398 (istargz): Return pointer to "stem" of matched .tar.gz file.
9399 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
9400 bogus check_for_installed check.
9401 (recurse_dirs): Add preliminary support for .bat file execution.
9402 (create_uninstall): Eliminate unneeded parameter.
9403 (do_start_menu): Ditto.
9404 (mkmount): Ditto.
9405 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
9406 scanning for the version number. Eliminate unneeded argument to
9407 create_uninstall.
9408 (getdownloadsource): Add 'name' to list of names rather than url.
9409 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
9410 unneeded argument in mkmount and do_start_menu.
9411
9412 2000-05-18 DJ Delorie <dj@cygnus.com>
9413
9414 * setup.c (optionprompt): allow multi-column, clean up message
9415 about more options, be more robust about user input.
9416 (getdownloadsource): make the mirror URL a macro.
9417 (main): do mounts after done prompting user.
9418
9419 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
9420
9421 * setup.c (cleanup): Inverse order of deletion stands a better chance
9422 of deleting cygpath.exe. Still seems to suffer from occasional races,
9423 though.
9424 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
9425 w2k.
9426 (output_file): Defend against an unlikely handle leak.
9427 (main): Don't set up signal handling until we have something special to
9428 do.
9429
9430 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
9431
9432 * path.c (kill_cygpath): Delete function.
9433 (exit_cygpath): Make more defensive so that it can be called at any
9434 time.
9435 (cygpath_pipe): Don't set up signal here. Do it in main().
9436 * setup.c (istargz): New function.
9437 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
9438 inexplicably fails on samba mounted partitions. Use istargz to match
9439 tar.gz tail.
9440 (processdirlisting) Use istargz to match tar.gz tail.
9441 (cleanup): Renamed from filedel.
9442 (cleanup_on_signal): New function. Called on CTRL-C.
9443 (main): Record handle of main thread so that it can be suspended when
9444 CTRL-C occurs. Set up cleanup_on_signal signal handler.
9445
9446 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
9447
9448 * setup.c (do_start_menu): Don't concatenate paths to already built
9449 paths.
9450
9451 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
9452
9453 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
9454 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
9455 that.
9456 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
9457 root"-specific.
9458 * setup.c (filedel): Call exit_cygpath here so that we can be assured
9459 that cygpath subprocess has died. This allows us to delete cygpath.exe
9460 and cygwin1.dll.
9461 (optionprompt): Initialize response to -1 so that second screen of
9462 mirrors will appear.
9463 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
9464 * setup.h: Reflect init_pkgs prototype change.
9465
9466 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
9467
9468 * pkg.c (init_pkgs): Accept an argument to control what root registry
9469 key should be used.
9470 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
9471 * setup.h: Reflect init_pkgs prototype change.
9472
9473 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
9474
9475 * error.c (winerror): Respond to gcc warning.
9476 * path.c (cygpath_pipe): Ditto.
9477 * setup.c (filedel): Call sa_cleanup on deleteme.
9478 (create_shortcut): Coerce argument to eliminate compiler warning.
9479 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
9480 (refmatches): New function. Tests if ref is contained in a list of
9481 packages to install.
9482 (filematches): New function. Tests if filename matches one of a list
9483 of packages to install.
9484 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
9485 test to accomodate _tar.gz.
9486 (prompt): Ensure that stdout is flushed prior to asking for input.
9487 (findhref): Initialize variables to quiet a compiler warning.
9488 (processdirlisting): Accept list of packages to install. Special case
9489 cygwin tar file version number.
9490 (downloaddir): Accept list of packages to install.
9491 (downloadfrom): Ditto.
9492 (create_uninstall): Eliminate unneeded variables. Quote arguments to
9493 regtool.
9494 (do_start_menu): Don't create uninstall bat file if updating or user
9495 specified a list of packages.
9496 (mkmount): Eliminate unneeded variables.
9497 (get_pkg_stuff): New function. Checks for previous unversioned
9498 installation.
9499 (main): Accept -u and -f options and package names on the command line.
9500 Use get_pkg_stuff to initialize package information. Umount /etc.
9501 Call recurse_dirs and downloadfrom with list of package to install.
9502 Ensure that all /usr/local directories are created. Output
9503 installation time to setup.log.
9504 * setup.h: Add some prototypes.
9505 * xsystem.c (xcreate_process): Eliminate unneeded variable.
9506
9507 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
9508
9509 * setup.c (optionprompt): Don't overlap display of already seen options
9510 on next page.
9511 (geturl): Print name of site which we're connecting to rather than "ftp
9512 site".
9513 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
9514 test too simplistic?
9515 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
9516 problems when user chooses x:\ as their root.
9517 (main): For now, default to "non-update" mode. Allow -u option to
9518 signify an update.
9519
9520 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
9521
9522 * pkg.c: New file.
9523 * setup.c (tarx): Skip already installed or older packages. Report
9524 when a package has been updated.
9525 (processdirlisting): Skip already installed or older packages.
9526 (main): Detect -f option for forced installation. Initialize pkg stuff
9527 if appropriate.
9528 * setup.h: Add pkg definitions.
9529
9530 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
9531
9532 * setup.c (findhref): Return NULL on empty string. Eat any trailing
9533 ";something".
9534 (processdirlisting): Attempt to limit recursively processing the same
9535 directory.
9536
9537 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
9538
9539 * setup.c (filedel): New function.
9540 (output_file): Keep track of files extracted from setup.exe for
9541 subsequent deletion.
9542 (tarx): Close process handle of child tar process or suffer handle
9543 leak.
9544 (getdownloadsource): Close mirror file so that it can be unlinked.
9545 (processdirlisting): Return total number of files extracted.
9546 (main): Initialize array of files to delete. Ensure that files are
9547 closed on exit. Make the directory that setup.exe is started from ==
9548 the directory where temporary files are placed. Issue an error if no
9549 files were found to download.
9550 * xsystem.c (xcreate_process): Close the thread handle. Close the
9551 process handle if we waited for it to exit.
9552
9553 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
9554
9555 * setup.c (main): Change version number output.
9556
9557 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
9558
9559 * setup.c (tarx): Use full path name to tar executable.
9560 (main): Build full pathname to tar executable. Create /usr/local/etc
9561 by default.
9562
9563 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
9564
9565 * setup.c (findhref): Change method for scanning for href= to choose
9566 the last one on the line. This is still not foolproof and probably
9567 will need to be changed eventually. Don't abort if no "size" field is
9568 evident.
9569 (processdirlisting): Fix boolean algebra.
9570
9571 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
9572
9573 * main.c (tarx): Add some code for future task of unmounting
9574 directories encountered in tar file.
9575
9576 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
9577
9578 * setup.c (findhref): Decode file size, when appropriate.
9579 (needfile): New function. Returns 1 when file should be
9580 downloaded.
9581 (processdirlisting): Always download if file size does not
9582 match. Prompt when download fails for some reason.
9583 (getdownloadsource): Accomodate findhref argument changes.
9584
9585 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
9586
9587 Throughout, use global session handle rather than reinitializing for
9588 each connect. Don't pass session as an argument to setup.c functions.
9589 * setup.c (geturl): Only issue "Connecting to.." message when using
9590 http or first time for ftp since subsequent connections will be fast.
9591 (processdirlisting): Allocate space for "N" when user has specified
9592 "N"ever option so that it can be subsequently freed.
9593 (main): Abort if we can't get the list of mirrors.
9594
9595 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
9596
9597 * setup.c (main): Umount /bin and /lib.
9598
9599 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
9600
9601 * setup.c (main): Create an empty /var/run/utmp.
9602
9603 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
9604
9605 * Makefile.in: Add umount to list of files to include in setup.exe.
9606 * setup.c (xumount): New function for unmounting directories.
9607 (main): Unmount /usr.
9608 (mkmount): Unmount "unix directory" before trying to figure out where
9609 to create the directory.
9610
9611 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
9612
9613 * setup.c (mkmount): Use xcreate_process to start mount process,
9614 avoiding the shell.
9615 (main): Don't do buffering on stdout or prompts won't be displayed
9616 correctly if running in a cygwin shell with CYGWIN=tty.
9617
9618 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
9619
9620 * setup.c (main): Remove the CYGWIN environment variable before
9621 starting any cygwin programs.
9622
9623 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
9624
9625 * setup.c (geturl): Use alternative method for finding filename part of
9626 a URL.
9627 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
9628 (downloaddir): Unlink file containing dir listing.
9629 (downloadfrom): Ditto.
9630
9631 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
9632
9633 * setup.c (main): Disallow running setup.exe from the "root".
9634
9635 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
9636
9637 Use "warning" function, where appropriate, to output warnings.
9638 * setup.c (warning): New function -- outputs warning to console and log
9639 file.
9640 (tarx): Fix index used to reset file protection.
9641 (main): Open the log file earlier so that more stuff can be sent to it.
9642
9643 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
9644
9645 * setup.c (processdirlisting): Make "N" option a little less aggressive.
9646
9647 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
9648
9649 * setup.c (tarx): Wait to after tar has completed to reset protections
9650 or suffer races with tar process.
9651
9652 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
9653
9654 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
9655 * setup.c (create_uninstall): Create the uninstall .bat file in the
9656 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
9657 list of files to be deleted. Fix directory detection for determining
9658 when to use 'rmdir'.
9659 (do_start_menu): Add /usr/local/bin to the path.
9660 (main): Add slop to files.array allocation so that we don't have to
9661 worry about reallocating the array when it grows too large when doing
9662 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
9663 files.
9664
9665 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
9666
9667 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
9668 download.
9669
9670 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
9671
9672 * path.c (kill_cygpath): New cleanup function.
9673 (exit_cygpath): New cleanup function.
9674 (cygpath_pipe): New function. Sets up cygpath in the background for
9675 translating filenames.
9676 (pathcvt): Use background cygpath for file translation.
9677 * setup.c (tarx): New function. Called to extract tar files, capture
9678 logging output, and translate it to Windows format.
9679 (recurse_dirs): Use 'tarx' function to extract files.
9680 (create_uninstall): Use file list built up by tarx rather than reading
9681 the log file.
9682 (mkmount): Add ability to mount root.
9683 (main): Track elapsed install time. Mount root.
9684 * starry.h: Add index field to strarry for tracking of tarx's usage of
9685 this structure.
9686 * xsystem.c (xcreate_process): Return proces handle when not waiting.
9687
9688 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
9689
9690 * path.c: New file.
9691 (pathfp): New function. Preliminary work for new -f cygpath
9692 functionality.
9693 * Makefile.in: Add new file.
9694 (pathcvt): Move to new file.
9695 (dtoupath): Ditto.
9696 (utodpath): Ditto.
9697 (pathcat): Ditto.
9698 * setup.c (processdirlisting): Always open file in text mode.
9699 (create_uninstall): Ditto.
9700 (getdownloadsource): Ditto.
9701 (main): Ditto.
9702
9703 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
9704
9705 * xsystem.c: New file.
9706 * Makefile.in: Accomodate new file.
9707 * setup.c (xsystem): Move to new file.
9708 (recurse_dirs): Accept handle to output log file. Don't use ">"
9709 redirection to trap tar output. Use supplied handle instead.
9710 (create_uninstall): Accept FILE pointer to opened log file. Don't
9711 unlink log file here.
9712 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
9713 (main): Open log file here and pass it to various functions. Unlink
9714 when done.
9715
9716 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
9717
9718 Change occurrences of .usr.bin to .bin throughout.
9719 * setup.c (geturl): Increase number of retries to 20. Let user know
9720 what's going on during long connects.
9721 (processdirlisting): Accept "A"lways and "N"ever as update options.
9722 (create_uninstall): Load cygwin1.dll from the current directory rather
9723 than \bin.
9724 (main): Add some expository text.
9725
9726 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
9727
9728 * Makefile.in: Change method for compressing cygwin1.dll to avoid
9729 creating a cygwin1.dll in the current directory. Ensure the addition
9730 of -nostdinc to MINGW_CFLAGS.
9731
9732 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
9733
9734 * Makefile.in: Augment clean target.
9735
9736 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
9737
9738 * README: Added info about non-working mingw implementation
9739 * gzip.exe.gz: Replace with a version from the same build as the other
9740 tools.
9741 * tar.exe.gz: Replace with a version from the same build as the other
9742 tools.
9743 * mount.exe.gz: Add to repository until, mingw can build setup.
9744 * cygpath.exe.gz: ditto
9745 * cygwin1.dll.gz: ditto
9746 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
9747 for Win9x. Display only a screenfull of options at a time. Call all
9748 tools with an absolute path.
9749 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
9750 them.
9751 * setup.dsw: ditto
9752 * zlib.dsw: ditto
9753
9754 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
9755
9756 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
9757 cygwin1.dll from ../cygwin subdirectory.
9758 * gzip.exe.gz: Update.
9759 * tar.exe.gz: Update.
9760
9761 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
9762
9763 * Makefile.in: Use ZLIB variable as a target.
9764
9765 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
9766
9767 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
9768 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
9769 sources.
9770 * configure.in: Locate correct objcopy.
9771 * configure: Regenerate.
9772
9773 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
9774
9775 * Makefile.in: New file.
9776 * configure.in: New file.
9777 * configure: New file.
9778 * zlib/Makefile.am: New file.
9779 * zlib/configure.in: New file.
9780 * zlib/aclocal.m4: New file.
9781 * zlib/acinclude.m4: New file.
9782 * zlib/configure: Regenerate from configure.in.
9783 * zlib/Makefile.in: Regenerate from Makefile.am
9784
9785 %%% $Id$
9786 $Revision$
This page took 0.450451 seconds and 4 git commands to generate.