]> cygwin.com Git - cygwin-apps/setup.git/blob - ChangeLog
cd60130504512edd8b32406645b24a2ef7548134
[cygwin-apps/setup.git] / ChangeLog
1 2010-04-07 Matthias Andree <matthias.andree@gmx.de>
2
3 * README (HOW TO BUILD): Mention mingw-lib{gcrypt,lzma}-devel.
4
5 * res.rc (IDD_DESKTOP): Move Installation Status line,
6 IDC_STATUS_HEADER and IDC_STATUS up 20 units, make IDC_STATUS text
7 20 units taller and 40 units wider so that IDS_REBOOT_REQUIRED
8 message fits the screen.
9 * res.rc (IDD_SPLASH): Bump copyright years in IDC_SLASH_COPYR to
10 "2000-2010".
11
12 2010-04-07 Corinna Vinschen <corinna@vinschen.de>
13
14 * install.cc (create_allow_protected_renames): New function to
15 create AllowProtectedRenames registry entry.
16 (Installer::installOne): Call create_allow_protected_renames if former
17 call to MoveFileEx was successful.
18
19 2010-03-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
20
21 Use external crypto libraries
22 * Makefile.am: Remove local libgcrypt and libgpg-error
23 source directories from AM_CPPFLAGS.
24 * configure.ac: Remove libgcrypt and libgpg-error subdirs
25 from AC_CONFIG_SUBDIRS. Remove now-unnecessary cruft.
26 * doconfigure: Specify gcc-3 and g++-3. Set PATH when $build
27 is cygwin, so that correct (mingw) libgcrypt and libgpg-error
28 config scripts can be used.
29
30 Remove libgpg-error.
31 * libgpg-error/tests/Makefile.am, libgpg-error/tests/Makefile.in,
32 libgpg-error/tests/t-strerror.c, libgpg-error/tests/t-syserror.c,
33 libgpg-error/po/ChangeLog, libgpg-error/po/LINGUAS,
34 libgpg-error/po/Makefile.in.in, libgpg-error/po/Makevars,
35 libgpg-error/po/POTFILES.in, libgpg-error/po/Rules-quot,
36 libgpg-error/po/boldquot.sed, libgpg-error/po/de.gmo,
37 libgpg-error/po/de.po, libgpg-error/po/en@boldquot.header,
38 libgpg-error/po/en@quot.header, libgpg-error/po/fr.gmo,
39 libgpg-error/po/fr.po libgpg-error/po/insert-header.sin,
40 libgpg-error/po/libgpg-error.pot, libgpg-error/po/pl.gmo,
41 libgpg-error/po/pl.po, libgpg-error/po/quot.sed,
42 libgpg-error/po/remove-potcdate.sin, libgpg-error/po/ro.gmo,
43 libgpg-error/po/ro.po libgpg-error/po/stamp-po,
44 libgpg-error/po/sv.po, libgpg-error/po/vi.gmo,
45 libgpg-error/po/vi.po, libgpg-error/po/sv.gmo,
46 libgpg-error/m4/ChangeLog, libgpg-error/m4/Makefile.am,
47 libgpg-error/m4/ac_prog_cc_for_build.m4, libgpg-error/m4/autobuild.m4,
48 libgpg-error/m4/codeset.m4, libgpg-error/m4/gettext.m4,
49 libgpg-error/m4/glibc2.m4, libgpg-error/m4/glibc21.m4,
50 libgpg-error/m4/iconv.m4, libgpg-error/m4/intdiv0.m4,
51 libgpg-error/m4/intmax.m4, libgpg-error/m4/inttypes-h.m4,
52 libgpg-error/m4/inttypes-pri.m4, libgpg-error/m4/inttypes.m4,
53 libgpg-error/m4/inttypes_h.m4, libgpg-error/m4/isc-posix.m4,
54 libgpg-error/m4/lcmessage.m4, libgpg-error/m4/lib-ld.m4,
55 libgpg-error/m4/lib-link.m4, libgpg-error/m4/lib-prefix.m4,
56 libgpg-error/m4/libtool.m4, libgpg-error/m4/lock.m4,
57 libgpg-error/m4/longdouble.m4, libgpg-error/m4/longlong.m4,
58 libgpg-error/m4/nls.m4, libgpg-error/m4/po.m4,
59 libgpg-error/m4/printf-posix.m4, libgpg-error/m4/progtest.m4,
60 libgpg-error/m4/signed.m4, libgpg-error/m4/size_max.m4,
61 libgpg-error/m4/stdint_h.m4, libgpg-error/m4/uintmax_t.m4,
62 libgpg-error/m4/ulonglong.m4, libgpg-error/m4/visibility.m4,
63 libgpg-error/m4/wchar_t.m4, libgpg-error/m4/wint_t.m4,
64 libgpg-error/m4/xsize.m4, libgpg-error/m4/Makefile.in,
65 libgpg-error/lang/Makefile.am, libgpg-error/lang/README,
66 libgpg-error/lang/Makefile.in, libgpg-error/lang/cl/Makefile.am,
67 libgpg-error/lang/cl/README, libgpg-error/lang/cl/gpg-error-package.lisp,
68 libgpg-error/lang/cl/gpg-error.asd, libgpg-error/lang/cl/gpg-error.asd.in,
69 libgpg-error/lang/cl/gpg-error.lisp, libgpg-error/lang/cl/mkerrcodes.awk,
70 libgpg-error/lang/cl/Makefile.in, libgpg-error/src/Makefile.am,
71 libgpg-error/src/README, libgpg-error/src/code-from-errno.c,
72 libgpg-error/src/code-to-errno.c, libgpg-error/src/err-codes.h,
73 libgpg-error/src/err-codes.h.in, libgpg-error/src/err-sources.h,
74 libgpg-error/src/err-sources.h.in, libgpg-error/src/errnos.in,
75 libgpg-error/src/gettext.h, libgpg-error/src/gpg-error-config.in,
76 libgpg-error/src/gpg-error.c, libgpg-error/src/gpg-error.def,
77 libgpg-error/src/gpg-error.h, libgpg-error/src/gpg-error.h.in,
78 libgpg-error/src/gpg-error.m4, libgpg-error/src/init.c,
79 libgpg-error/src/mkerrcodes.awk, libgpg-error/src/mkerrcodes.c,
80 libgpg-error/src/mkerrcodes1.awk, libgpg-error/src/mkerrcodes2.awk,
81 libgpg-error/src/mkerrnos.awk, libgpg-error/src/mkheader.awk,
82 libgpg-error/src/mkstrtable.awk, libgpg-error/src/strerror-sym.c,
83 libgpg-error/src/strerror.c, libgpg-error/src/strsource-sym.c,
84 libgpg-error/src/strsource.c, libgpg-error/src/versioninfo.rc.in,
85 libgpg-error/src/w32-gettext.c, libgpg-error/src/w32-gettext.h,
86 libgpg-error/src/Makefile.in, libgpg-error/ABOUT-NLS,
87 libgpg-error/AUTHORS, libgpg-error/COPYING, libgpg-error/COPYING.LIB,
88 libgpg-error/ChangeLog, libgpg-error/INSTALL, libgpg-error/Makefile.am,
89 libgpg-error/NEWS, libgpg-error/README, libgpg-error/THANKS,
90 libgpg-error/VERSION, libgpg-error/autogen.sh, libgpg-error/compile,
91 libgpg-error/config.guess, libgpg-error/config.rpath,
92 libgpg-error/config.sub, libgpg-error/configure.ac, libgpg-error/depcomp,
93 libgpg-error/install-sh, libgpg-error/libgpg-error.spec,
94 libgpg-error/libgpg-error.spec.in, libgpg-error/ltmain.sh,
95 libgpg-error/missing, libgpg-error/mkinstalldirs,
96 libgpg-error/aclocal.m4, libgpg-error/configure,
97 libgpg-error/config.h.in, libgpg-error/Makefile.in: Remove.
98
99 Remove libgcrypt.
100 * libgcrypt/tests/ChangeLog, libgcrypt/tests/Makefile.am,
101 libgcrypt/tests/ac-data.c, libgcrypt/tests/ac-schemes.c,
102 libgcrypt/tests/ac.c, libgcrypt/tests/basic.c,
103 libgcrypt/tests/benchmark.c, libgcrypt/tests/hmac.c,
104 libgcrypt/tests/keygen.c, libgcrypt/tests/keygrip.c,
105 libgcrypt/tests/mpitests.c, libgcrypt/tests/pkbench.c,
106 libgcrypt/tests/prime.c, libgcrypt/tests/pubkey.c,
107 libgcrypt/tests/random.c, libgcrypt/tests/register.c,
108 libgcrypt/tests/t-mpi-bit.c, libgcrypt/tests/testapi.c,
109 libgcrypt/tests/tsexp.c, libgcrypt/tests/version.c,
110 libgcrypt/tests/Makefile.in, libgcrypt/src/ChangeLog
111 libgcrypt/src/Makefile.am, libgcrypt/src/Manifest, libgcrypt/src/ath.c,
112 libgcrypt/src/ath.h, libgcrypt/src/cipher.h, libgcrypt/src/dumpsexp.c,
113 libgcrypt/src/g10lib.h, libgcrypt/src/gcrypt-module.h,
114 libgcrypt/src/gcrypt.h, libgcrypt/src/gcrypt.h.in,
115 libgcrypt/src/gcryptrnd.c, libgcrypt/src/getrandom.c,
116 libgcrypt/src/global.c, libgcrypt/src/hwfeatures.c,
117 libgcrypt/src/libgcrypt-config.in, libgcrypt/src/libgcrypt.def,
118 libgcrypt/src/libgcrypt.m4, libgcrypt/src/libgcrypt.vers,
119 libgcrypt/src/misc.c, libgcrypt/src/missing-string.c,
120 libgcrypt/src/module.c, libgcrypt/src/mpi.h, libgcrypt/src/secmem.h,
121 libgcrypt/src/sexp.c, libgcrypt/src/stdmem.c, libgcrypt/src/stdmem.h,
122 libgcrypt/src/types.h, libgcrypt/src/versioninfo.rc.in,
123 libgcrypt/src/visibility.c, libgcrypt/src/visibility.h,
124 libgcrypt/src/Makefile.in, libgcrypt/src/secmem.c,
125 libgcrypt/m4/ChangeLog, libgcrypt/m4/Makefile.am,
126 libgcrypt/m4/libtool.m4, libgcrypt/m4/noexecstack.m4,
127 libgcrypt/m4/onceonly.m4, libgcrypt/m4/socklen.m4,
128 libgcrypt/m4/sys_socket_h.m4, libgcrypt/m4/Makefile.in,
129 libgcrypt/doc/ChangeLog, libgcrypt/doc/HACKING,
130 libgcrypt/doc/Makefile.am, libgcrypt/doc/README.apichanges,
131 libgcrypt/doc/gcrypt.texi, libgcrypt/doc/gpl.texi,
132 libgcrypt/doc/lgpl.texi, libgcrypt/doc/mdate-sh,
133 libgcrypt/doc/texinfo.tex, libgcrypt/doc/stamp-vti,
134 libgcrypt/doc/version.texi, libgcrypt/doc/gcrypt.info,
135 libgcrypt/doc/Makefile.in, libgcrypt/cipher/ChangeLog,
136 libgcrypt/cipher/Makefile.am, libgcrypt/cipher/Manifest,
137 libgcrypt/cipher/ac.c, libgcrypt/cipher/arcfour.c,
138 libgcrypt/cipher/bithelp.h, libgcrypt/cipher/blowfish.c,
139 libgcrypt/cipher/camellia-glue.c, libgcrypt/cipher/camellia.c,
140 libgcrypt/cipher/camellia.h, libgcrypt/cipher/cast5.c,
141 libgcrypt/cipher/cipher.c, libgcrypt/cipher/crc.c,
142 libgcrypt/cipher/des.c, libgcrypt/cipher/dsa.c, libgcrypt/cipher/ecc.c,
143 libgcrypt/cipher/elgamal.c, libgcrypt/cipher/md.c,
144 libgcrypt/cipher/md4.c, libgcrypt/cipher/md5.c,
145 libgcrypt/cipher/primegen.c, libgcrypt/cipher/pubkey.c,
146 libgcrypt/cipher/rand-internal.h, libgcrypt/cipher/random-daemon.c,
147 libgcrypt/cipher/random.c, libgcrypt/cipher/random.h,
148 libgcrypt/cipher/rfc2268.c, libgcrypt/cipher/rijndael-tables.h,
149 libgcrypt/cipher/rijndael.c, libgcrypt/cipher/rmd.h,
150 libgcrypt/cipher/rmd160.c, libgcrypt/cipher/rndegd.c,
151 libgcrypt/cipher/rndhw.c, libgcrypt/cipher/rndlinux.c,
152 libgcrypt/cipher/rndunix.c, libgcrypt/cipher/rndw32.c,
153 libgcrypt/cipher/rsa.c, libgcrypt/cipher/seed.c,
154 libgcrypt/cipher/serpent.c, libgcrypt/cipher/sha1.c,
155 libgcrypt/cipher/sha256.c, libgcrypt/cipher/sha512.c,
156 libgcrypt/cipher/tiger.c, libgcrypt/cipher/twofish.c,
157 libgcrypt/cipher/whirlpool.c, libgcrypt/cipher/Makefile.in,
158 libgcrypt/AUTHORS, libgcrypt/BUGS, libgcrypt/COPYING,
159 libgcrypt/COPYING.LIB, libgcrypt/ChangeLog, libgcrypt/INSTALL,
160 libgcrypt/Makefile.am, libgcrypt/NEWS, libgcrypt/README,
161 libgcrypt/README.SVN, libgcrypt/THANKS, libgcrypt/TODO, libgcrypt/VERSION,
162 libgcrypt/acinclude.m4, libgcrypt/autogen.sh, libgcrypt/compile,
163 libgcrypt/config.guess, libgcrypt/config.sub, libgcrypt/configure.ac,
164 libgcrypt/depcomp, libgcrypt/install-sh, libgcrypt/ltmain.sh,
165 libgcrypt/missing, libgcrypt/mkinstalldirs, , libgcrypt/aclocal.m4,
166 libgcrypt/configure, libgcrypt/config.h.in, libgcrypt/Makefile.in,
167 libgcrypt/mpi/ChangeLog, libgcrypt/mpi/Makefile.am,
168 libgcrypt/mpi/Manifest, libgcrypt/mpi/config.links, libgcrypt/mpi/ec.c,
169 libgcrypt/mpi/longlong.h, libgcrypt/mpi/mpi-add.c,
170 libgcrypt/mpi/mpi-bit.c, libgcrypt/mpi/mpi-cmp.c,
171 libgcrypt/mpi/mpi-div.c, libgcrypt/mpi/mpi-gcd.c,
172 libgcrypt/mpi/mpi-inline.c, libgcrypt/mpi/mpi-inline.h,
173 libgcrypt/mpi/mpi-internal.h, libgcrypt/mpi/mpi-inv.c,
174 libgcrypt/mpi/mpi-mod.c, libgcrypt/mpi/mpi-mpow.c,
175 libgcrypt/mpi/mpi-mul.c, libgcrypt/mpi/mpi-pow.c,
176 libgcrypt/mpi/mpi-scan.c, libgcrypt/mpi/mpicoder.c,
177 libgcrypt/mpi/mpih-div.c, libgcrypt/mpi/mpih-mul.c,
178 libgcrypt/mpi/mpiutil.c, libgcrypt/mpi/Makefile.in,
179 libgcrypt/mpi/alpha/README, libgcrypt/mpi/alpha/distfiles,
180 libgcrypt/mpi/alpha/mpih-add1.S, libgcrypt/mpi/alpha/mpih-lshift.S,
181 libgcrypt/mpi/alpha/mpih-mul1.S, libgcrypt/mpi/alpha/mpih-mul2.S,
182 libgcrypt/mpi/alpha/mpih-mul3.S, libgcrypt/mpi/alpha/mpih-rshift.S,
183 libgcrypt/mpi/alpha/mpih-sub1.S, libgcrypt/mpi/alpha/udiv-qrnnd.S,
184 libgcrypt/mpi/amd64/distfiles, libgcrypt/mpi/amd64/mpih-add1.S,
185 libgcrypt/mpi/amd64/mpih-lshift.S, libgcrypt/mpi/amd64/mpih-mul1.S,
186 libgcrypt/mpi/amd64/mpih-mul2.S, libgcrypt/mpi/amd64/mpih-mul3.S,
187 libgcrypt/mpi/amd64/mpih-rshift.S, libgcrypt/mpi/amd64/mpih-sub1.S,
188 libgcrypt/mpi/generic/Manifest, libgcrypt/mpi/generic/distfiles,
189 libgcrypt/mpi/generic/mpi-asm-defs.h, libgcrypt/mpi/generic/mpih-add1.c,
190 libgcrypt/mpi/generic/mpih-lshift.c, libgcrypt/mpi/generic/mpih-mul1.c,
191 libgcrypt/mpi/generic/mpih-mul2.c, libgcrypt/mpi/generic/mpih-mul3.c,
192 libgcrypt/mpi/generic/mpih-rshift.c, libgcrypt/mpi/generic/mpih-sub1.c,
193 libgcrypt/mpi/generic/udiv-w-sdiv.c, libgcrypt/mpi/hppa/README,
194 libgcrypt/mpi/hppa/distfiles, libgcrypt/mpi/hppa/mpih-add1.S,
195 libgcrypt/mpi/hppa/mpih-lshift.S, libgcrypt/mpi/hppa/mpih-rshift.S,
196 libgcrypt/mpi/hppa/mpih-sub1.S, libgcrypt/mpi/hppa/udiv-qrnnd.S,
197 libgcrypt/mpi/hppa1.1/distfiles, libgcrypt/mpi/hppa1.1/mpih-mul1.S,
198 libgcrypt/mpi/hppa1.1/mpih-mul2.S, libgcrypt/mpi/hppa1.1/mpih-mul3.S,
199 libgcrypt/mpi/hppa1.1/udiv-qrnnd.S, libgcrypt/mpi/i386/Manifest,
200 libgcrypt/mpi/i386/distfiles, libgcrypt/mpi/i386/mpih-add1.S,
201 libgcrypt/mpi/i386/mpih-lshift.S, libgcrypt/mpi/i386/mpih-mul1.S,
202 libgcrypt/mpi/i386/mpih-mul2.S, libgcrypt/mpi/i386/mpih-mul3.S,
203 libgcrypt/mpi/i386/mpih-rshift.S, libgcrypt/mpi/i386/mpih-sub1.S,
204 libgcrypt/mpi/i386/syntax.h, libgcrypt/mpi/i586/Manifest,
205 libgcrypt/mpi/i586/README, libgcrypt/mpi/i586/distfiles,
206 libgcrypt/mpi/i586/mpih-add1.S, libgcrypt/mpi/i586/mpih-lshift.S,
207 libgcrypt/mpi/i586/mpih-mul1.S, libgcrypt/mpi/i586/mpih-mul2.S,
208 libgcrypt/mpi/i586/mpih-mul3.S, libgcrypt/mpi/i586/mpih-rshift.S,
209 libgcrypt/mpi/i586/mpih-sub1.S, libgcrypt/mpi/m68k/Manifest,
210 libgcrypt/mpi/m68k/distfiles, libgcrypt/mpi/m68k/mpih-add1.S,
211 libgcrypt/mpi/m68k/mpih-lshift.S, libgcrypt/mpi/m68k/mpih-rshift.S,
212 libgcrypt/mpi/m68k/mpih-sub1.S, libgcrypt/mpi/m68k/syntax.h,
213 libgcrypt/mpi/mips3/Manifest, libgcrypt/mpi/mips3/README,
214 libgcrypt/mpi/mips3/distfiles, libgcrypt/mpi/mips3/mpi-asm-defs.h,
215 libgcrypt/mpi/mips3/mpih-add1.S, libgcrypt/mpi/mips3/mpih-lshift.S,
216 libgcrypt/mpi/mips3/mpih-mul1.S, libgcrypt/mpi/mips3/mpih-mul2.S,
217 libgcrypt/mpi/mips3/mpih-mul3.S, libgcrypt/mpi/mips3/mpih-rshift.S,
218 libgcrypt/mpi/mips3/mpih-sub1.S, libgcrypt/mpi/pa7100/Manifest,
219 libgcrypt/mpi/pa7100/distfiles, libgcrypt/mpi/pa7100/mpih-lshift.S,
220 libgcrypt/mpi/pa7100/mpih-rshift.S, libgcrypt/mpi/pentium4/README,
221 libgcrypt/mpi/pentium4/distfiles, libgcrypt/mpi/power/Manifest,
222 libgcrypt/mpi/power/distfiles, libgcrypt/mpi/power/mpih-add1.S,
223 libgcrypt/mpi/power/mpih-lshift.S, libgcrypt/mpi/power/mpih-mul1.S,
224 libgcrypt/mpi/power/mpih-mul2.S, libgcrypt/mpi/power/mpih-mul3.S,
225 libgcrypt/mpi/power/mpih-rshift.S, libgcrypt/mpi/power/mpih-sub1.S,
226 libgcrypt/mpi/powerpc32/Manifest, libgcrypt/mpi/powerpc32/distfiles,
227 libgcrypt/mpi/powerpc32/mpih-add1.S,
228 libgcrypt/mpi/powerpc32/mpih-lshift.S,
229 libgcrypt/mpi/powerpc32/mpih-mul1.S,
230 libgcrypt/mpi/powerpc32/mpih-mul2.S,
231 libgcrypt/mpi/powerpc32/mpih-mul3.S,
232 libgcrypt/mpi/powerpc32/mpih-rshift.S,
233 libgcrypt/mpi/powerpc32/mpih-sub1.S, libgcrypt/mpi/powerpc32/syntax.h,
234 libgcrypt/mpi/powerpc64/distfiles, libgcrypt/mpi/sparc32/Manifest,
235 libgcrypt/mpi/sparc32/distfiles, libgcrypt/mpi/sparc32/mpih-add1.S,
236 libgcrypt/mpi/sparc32/mpih-lshift.S,
237 libgcrypt/mpi/sparc32/mpih-rshift.S, libgcrypt/mpi/sparc32/udiv.S,
238 libgcrypt/mpi/sparc32v8/Manifest, libgcrypt/mpi/sparc32v8/distfiles,
239 libgcrypt/mpi/sparc32v8/mpih-mul1.S,
240 libgcrypt/mpi/sparc32v8/mpih-mul2.S,
241 libgcrypt/mpi/sparc32v8/mpih-mul3.S, libgcrypt/mpi/supersparc/Manifest,
242 libgcrypt/mpi/supersparc/distfiles,
243 libgcrypt/mpi/supersparc/udiv.S, libgcrypt/mpi/m68k/mc68020/distfiles
244 libgcrypt/mpi/m68k/mc68020/Manifest,
245 libgcrypt/mpi/m68k/mc68020/mpih-mul1.S,
246 libgcrypt/mpi/m68k/mc68020/mpih-mul2.S,
247 libgcrypt/mpi/m68k/mc68020/mpih-mul3.S,
248 libgcrypt/mpi/pentium4/mmx/distfiles,
249 libgcrypt/mpi/pentium4/mmx/mpih-lshift.S,
250 libgcrypt/mpi/pentium4/mmx/mpih-rshift.S,
251 libgcrypt/mpi/pentium4/sse2/distfiles,
252 libgcrypt/mpi/pentium4/sse2/mpih-add1.S,
253 libgcrypt/mpi/pentium4/sse2/mpih-mul1.S,
254 libgcrypt/mpi/pentium4/sse2/mpih-mul2.S,
255 libgcrypt/mpi/pentium4/sse2/mpih-mul3.S,
256 libgcrypt/mpi/pentium4/sse2/mpih-sub1.S: Remove.
257
258 2010-03-17 Corinna Vinschen <corinna@vinschen.de>
259
260 * autoload.cc (Auto): Create autoload code in an executable section
261 called .autoload_text to avoid problems with DEP.
262
263 2010-03-14 Christopher Faylor <me+cygwin@cgf.cx>
264
265 * Makefile.am: Add a setup-src target.
266
267 2010-03-14 Charles Wilson <cygwin@cwilson.fastmail.fm>
268
269 Support xz and lzma decompression via liblzma
270 * Makefile.am: Add -DLZMA_API_STATIC to AM_CPPFLAGS,
271 -lzma to setup_LDADD, and -static-libtool-libs to
272 setup_LDFLAGS. Update setup_SOURCES.
273 * compress.cc: Update includes.
274 (compress::decompress): Use compress_xz rather than
275 compress_lzma; compress_xz supports both xz and lzma
276 decompression.
277 * compress_xz.h: New.
278 * compress_xz.cc: New.
279 * compress_lzma.h: Removed.
280 * compress_lzma.cc: Removed.
281 * lzma-sdk/LzmaDec.c: Removed.
282 * lzma-sdk/LzmaDec.h: Removed.
283 * lzma-sdk/Types.h: Removed.
284
285 2010-03-13 DJ Delorie <dj@redhat.com>
286
287 * nio-ftp.c (read): Read RETR status code on EOF to avoid
288 deadlock with PASV.
289
290 2010-03-01 Corinna Vinschen <corinna@vinschen.de>
291
292 * filemanip.cc (mklongpath): Skip "." and ".." path components to
293 avoid error messages.
294
295 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
296
297 * filemanip.cc (mklongpath): Simplify backslash folding.
298
299 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
300
301 * filemanip.cc (transform_chars): Drop function.
302 (mklongpath): Call mbrtowc in a loop rather than just mbstowcs.
303 Transform characters on the fly. Fold multiple backslashes into one.
304 Drop trailing backslash.
305
306 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
307
308 * choose.cc (ChooserPage::PlaceDialog): Only skip resizing window
309 in fully-unattended mode, not chooser-only mode.
310 (ChooserPage::OnUnattended): Return appropriate status to run page
311 or not according to kind of unattended mode.
312 * choose.h (ChooserPage::OnUnattended): Remove inline implementation
313 and retain prototype only.
314 * main.cc (PackageManagerOption): New boolean option.
315 (main): Take it into account when setting unattended_mode.
316 * proppage.cc (PropertyPage::DialogProc): Use new enum type when
317 setting unattended_mode.
318 * state.cc (unattended_mode): Change from bool to enum attend_mode.
319 * state.h (enum attend_mode): Declare new enum type.
320 (unattended_mode): Update extern declaration to use it.
321
322 2010-02-04 Corinna Vinschen <corinna@vinschen.de>
323
324 * win32.cc (NTSecurity::GetPosixPerms): Return NULL security descriptor
325 if is_legacy is set.
326 (NTSecurity::SetPosixPerms): Remove.
327 * win32.h (NTSecurity::GetPosixPerms): Remove declaration.
328
329 2010-02-02 Corinna Vinschen <corinna@vinschen.de>
330
331 * desktop.cc (make_link): Use 0 default permissions when creating files
332 and directories.
333 * download.cc (download_one): Ditto.
334 * ini.cc (do_remote_ini): Ditto.
335 * localdir.cc (offer_to_create): Ditto.
336 * filemanip.cc (nt_wfopen): Use Windows default permissions if perms
337 is set to 0.
338 * mkdir.cc (mkdir_p): Ditto if mode is set to 0.
339
340 2010-01-29 Christopher Faylor <me+cygwin@cgf.cx>
341
342 * mount.cc (read_mounts_9x): Preserve old way of doing things when
343 is_legacy.
344
345 2010-01-28 Christopher Faylor <me+cygwin@cgf.cx>
346
347 * desktop.cc (make_link): Preserve old way of doing things when
348 is_legacy.
349 (make_cygwin_bat): Ditto.
350 (save_icon): Ditto.
351 * mount.cc (read_mounts): Ditto.
352 (set_root_dir): Ditto.
353 * root.cc (load_dialog): Ditto.
354 (save_dialog): Ditto.
355 * install.cc (Installer::installOne): Don't install anything if there
356 is no canonical file associated with source.
357 (do_install_thread): Set up old-style registry entries if is_legacy
358 rather than just keying on whether this is Windows NT.
359 * io_stream_file.cc (io_stream_file::exists): Redefine "exists" to mean
360 "it's a file".
361
362 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
363
364 * archive_tar.c (archive_tar_file::read): Always set read_something
365 even for zero-length files.
366
367 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
368
369 * archive_tar.h (archive_tar_file::read_something): New member.
370 * archive_tar_file.cc (archive_tar_file::archive_tar_file): Don't reset
371 state unless we've actually read something.
372 (archive_tar_file::read): Set read_something variable here to indicate
373 that we've read something from the tar file.
374
375 2010-01-13 Christopher Faylor <me+cygwin@cgf.cx>
376
377 * localdir.cc (LocalDirPage::OnNext): Strip trailing slashes.
378
379 2009-12-27 Christopher Faylor <me+cygwin@cgf.cx>
380
381 * main.cc (dyn_AttachConsole): Make static.
382 (dyn_GetLongPathName): New variable.
383 (set_dynaddr): New function.
384 (set_cout): Don't set dyn_AttachConsole here.
385 (set_legacy): Don't attempt to call function which does not exist in
386 older versions of NT.
387 (main): Call set_dynaddr to set dynamic load addresses.
388
389 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
390
391 * ini.h: Use is_legacy to control setup.ini names.
392 * main.cc (set_legacy): New function.
393 (main): Call set_legacy with program name to determine if this is
394 supposed to be an installation of the legacy version of cygwin. Issue
395 a warning on attempt to install legacy on Windows NT class system.
396
397 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
398
399 * package_message (packagemessage::display): Avoid displaying a message
400 when in unattended mode.
401
402 2009-12-22 Corinna Vinschen <corinna@vinschen.de>
403
404 * win32.h (isdirsep): Define to replace local isslash definitions.
405 * UserSettings.cc (UserSettings::open_settings): Remove isslash.
406 Use isdirsep instead of isslash.
407 * filemanip.cc (mklongpath): Ditto.
408 * root.cc (directory_is_rootdir): Ditto.
409 * localdir.cc (LocalDirSetting::save): Avoid consecutive backslashes
410 in setup log file paths.
411 * main.cc (main): Ditto.
412
413 2009-12-21 Christopher Faylor <me+cygwin@cgf.cx>
414
415 * choose.cc (ChooserPage::PlaceDialog): Put *correct* size in
416 WINDOWPLACEMENT length field.
417
418 2009-12-18 Corinna Vinschen <corinna@vinschen.de>
419
420 Throughout, revert prototypes and methods set_mtime_and_mode to
421 set_mtime and only care for the file timestamp.
422
423 Throughout, accommodate additional mode_t parameter in call to
424 io_stream::open.
425
426 * IOStreamProvider.h (IOStreamProvider::open): Add mode_t parameter.
427 * archive.cc (archive::extract_file): Reorder creation of in and tmp
428 to get the file mode from the tar archive earlier. Call io_stream::open
429 with additional mode from tar archive. Accommodate reversion to
430 set_mtime.
431 * filemanip.cc (nt_wfopen): Remove retry loop. Instead initialize
432 OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
433 perms to create correct ACL on file creation. Remove subsequent call
434 to nt_sec.SetPosixPerms.
435 * io_stream.cc (io_stream::open): Take additional mode_t parameter
436 and connect through to IOStreamProvider's open.
437 * io_stream.h (io_stream::open): Add mode_t parameter.
438 * io_stream_cygfile.cc (CygFileProvider::open): Ditto.
439 (io_stream_cygfile::io_stream_cygfile): Ditto. Call nt_wfopen with
440 incoming mode_t parameter. Make sure .exe and .dll files always
441 have execute permissions set.
442 (io_stream_cygfile::set_mtime): Remove retry loop and open file with
443 just GENERIC_WRITE access.
444 * io_stream_cygfile.h (io_stream_cygfile::io_stream_cygfile): Add mode_t
445 parameter.
446 * io_stream_file.cc (FileProvider::open): Ditto.
447 (io_stream_file::io_stream_file): Ditto. Call nt_wfopen with incoming
448 mode_t parameter.
449 * io_stream_file.h (io_stream_file::io_stream_file): Add mode_t
450 parameter.
451 * io_stream_memory.h (class io_stream_memory): Remove mode member.
452 Just return 0 from get_mode.
453 * mkdir.cc (mkdir_p): Remove retry loop. Instead initialize
454 OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
455 perms to create correct ACL on file creation. Remove subsequent call
456 to nt_sec.SetPosixPerms.
457 * mklink2.cc (mkcygsymlink_nt): Remove retry loop. Instead initialize
458 SECURITY_ATTRIBUTES with matching POSIX perms to create correct ACL on
459 file creation.
460 * win32.cc (NTSecurity::GetPosixPerms): New function to generate
461 POSIX ACL. Default to current owner and current primary group for
462 owner/group permissions.
463 (NTSecurity::SetPosixPerms): Let GetPosixPerms create the DACL.
464 (NTSecurity::setAdminGroup): Set groupSID to admins SID if successful.
465 (NTSecurity::setDefaultSecurity): Store user SID in ownerSID member.
466 Default groupSID to original primary group.
467 * win32.h (struct acl_t): Define here.
468 (class NTSecurity): Rename ownerSID and groupSID to cr_ownerSID and
469 cr_groupSID. Change throughout. Add members ownerSID and groupSID.
470 Declare new method GetPosixPerms.
471
472 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
473
474 * filemanip.cc (nt_wfopen): Only call nt_sec.SetPosixPerms if we have
475 WRITE_DAC access.
476 * mkdir.cc (mkdir_p): Ditto.
477
478 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
479
480 * filemanip.cc (nt_wfopen): Fix requested access rights. Retry
481 without WRITE_DAC access on access denied. Add comment.
482 * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode): Ditto.
483 * mkdir.cc (mkdir_p): Ditto.
484 * mklink2.cc (mkcygsymlink_nt): Ditto.
485
486 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
487
488 * localdir.cc (LocalDirSetting::save): Call mkdir_p with isadir set
489 since /var/log is a dir.
490
491 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
492
493 * UserSettings.cc (UserSettings::open_settings): Never add more than
494 one slash.
495 * filemanip.cc (tfx_chars): Align to Cygwin's transformation table.
496 * localdir.cc (LocalDirSetting::save): Call mkdir_p with DOS path.
497
498 2009-12-16 Christopher Faylor <me+cygwin@cgf.cx>
499
500 * package_message.h: New file.
501
502 2009-12-13 Christopher Faylor <me+cygwin@cgf.cx>
503
504 * IniDBBuilder.h (buildMessage): Define for base class.
505 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildMessage): Define.
506 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildMessage): Declare.
507 * PickPackageLine.cc: Pass pointer to package to "pick" throughout,
508 where appropriate.
509 * PickView.cc: Ditto.
510 * install.cc: Ditto.
511 * package_meta.cc: Ditto.
512 * prereq.cc: Ditto.
513 * package_version.cc: Ditto.
514 (packageversion::pick): Add pkg pointer as second argument. Display
515 message where appropriate.
516 * package_version.h (packageversion::pick): Add pkg pointer as second
517 argument.
518 * package_meta.h (packagemeta::mesage): Define.
519 (packagemeta::set_message): Define.
520 * inilex.ll: Properly return MESSAGE token.
521 * iniparse.yy: Handle message: keyword.
522
523 2009-12-08 Dave Korn <dave.korn.cygwin@gmail.com>
524
525 * localdir.cc (offer_to_create): New function.
526 (browse_cb): Handle selection changed and validate failed
527 callbacks, and call offer_to_create where appropriate.
528 (browse): Set new dialog style flags in browser info.
529 (LocalDirPage::OnNext): Replace call to mkdir_p with offer to
530 create or error message dialog display, allow proceeding to
531 chooser even if local dir does not exist in unattend mode or
532 if user insists, and fix small memory leak.
533
534 * res.rc (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define new
535 string resources.
536 * resource.h (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define
537 corresponding resource ID numbers.
538
539 2009-12-03 Corinna Vinschen <corinna@vinschen.de>
540
541 * main.cc (WinMain): Disable running on Windows 9x. Show message box
542 instead and exit.
543
544 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
545
546 (ChooserPage::createListview): When nothing is found in the "All"
547 category, pass an empty static dummy category object to the PickView
548 constructor, instead of trying to dereference not-found iterator.
549
550 2009-11-23 Corinna Vinschen <corinna@vinschen.de>
551
552 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Don't try to
553 close invalid handle.
554 * io_stream_file.cc (io_stream_file::get_size): Ditto
555
556 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
557
558 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Don't loop forever
559 retrying ini file download/parse if it errors in unattended mode.
560
561 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
562
563 * package_meta.cc (CategoryOption): New StringOption for '-C'.
564 (parseNames): New helper subroutine abstracts string parsing from ...
565 (packagemeta::isManuallyWanted): Use it, and check for category names
566 from CategoryOption as well as individual package names.
567 * package_db.cc (packagedb::fillMissingCategory): Don't check for
568 manually-wanted packages until after initialising all the categories.
569
570 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
571
572 * localdir.cc (LocalDirSetting::LocalDirSetting): Restore -l option.
573
574 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
575
576 * site.cc: Add #include of BoolOption header from libgetopt.
577 (OnlySiteOption): New BoolOption for command-line -O option.
578 (get_site_list): Respect BoolOption by not downloading mirror
579 list, nor using nor updating cached mirrors.
580
581 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
582
583 * download.cc (do_download_thread): Only retry an incomplete download
584 a limited number of times in unattended mode.
585
586 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
587
588 * main.cc (main_display): Use apartment-, not multi- threading model
589 when initialiseing COM.
590
591 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
592
593 * localdir.cc (browse): Make title text depend on what we do.
594 (LocalDirPage::OnNext): If we plan to download, try to create directory
595 before cd'ing into it.
596
597 2009-11-03 Corinna Vinschen <corinna@vinschen.de>
598
599 * mkdir.cc: Include sys/stat.h unconditionally.
600 (mkdir_p): Add S_IFDIR flag in call to nt_sec.SetPosixPerms.
601 * win32.cc: Include sys/stat.h.
602 (NTSecurity::SetPosixPerms): Add CREATOR OWNER, CREATOR GROUP, and
603 Everyone inheritance-only entries when setting a directory DACL.
604 (NTSecurity::initialiseWellKnownSIDs): Create SIDs for CREATOR OWNER and
605 CREATOR GROUP.
606 * win32.h (class NTSecurity): Add members ownerSID and groupSID.
607
608 2009-10-03 Andy Koppe <andy.koppe@gmail.com>
609
610 * main.cc (main): Make sure C runtime uses same codepage as GUI.
611
612 2009-09-20 Christopher Faylor <me+cygwin@cgf.cx>
613
614 * main (set_cout): Really do attach to a console if stdout is "bad".
615
616 2009-09-18 Andy Koppe <andy.koppe@gmail.com>
617
618 * root.cc (string orig_root_dir): New variable.
619 (check_if_enable_next): Show warning against installing Cygwin into
620 disk root only if the root directory has actually been changed.
621 * res.rc: Make the root dir warning a bit more meaningful, and refrain
622 from using uppercase.
623
624 2009-09-18 Christopher Faylor <me+cygwin@cgf.cx>
625
626 * choose.cc (ChooserPage::OnBack): Revert to non-maximized when
627 returning to mirror from package selection.
628
629 2009-09-18 Dave Korn <dave.korn.cygwin@gmail.com>
630
631 * site.cc (get_site_list): Use empty string if user settings
632 return NULL pointer for cached mirrors list.
633 (SiteSetting::getSavedSites): Do nothing if user settings return
634 NULL pointer for last mirror URL.
635
636 2009-08-21 Christopher Faylor <me+cygwin@cgf.cx>
637
638 * site.cc (SiteSetting::registerSavedSite): Fix comment.
639
640 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
641
642 * main.cc (set_cout): Don't reset stdout if we already have a stdout.
643
644 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
645
646 * choose.cc (ChooserPage::ChooserPage): Use more specific name for
647 saving window settings.
648 (ChooserPage::~ChooserPage): Ditto.
649
650 2009-07-01 Dave Korn <dave.korn.cygwin@gmail.com>
651
652 * PickView.h (PickView::total_delta_x): New int member.
653 (PickView::set_header_column_order): Add prototype.
654 * PickView.cc (PickView::set_header_column_order): New function,
655 broken out from ...
656 (PickView::set_headers): ... here. Call it.
657 (PickView::init_headers): Apply total_delta_x to last_col width.
658 (PickView::PickView): Initialise new total_delta_x member to zero.
659 (PickView::WindowProc): Use set_header_column_order to find and
660 adjust final column for both sets of headers.
661
662 2009-06-29 Christopher Faylor <me+cygwin@cgf.cx>
663
664 * SourceSetting.cc (SourceSetting::SourceSetting): Restore proper
665 remembrane of last source setting.
666 * choose.cc (ChooserPage::ChooserPage): Potentially retrieve dialog
667 placement info.
668 (ChooserPage::~ChooserPage): Save geometry settings if the user moved
669 or resized the page.
670 (ChooserPage::PlaceDialog): Rename from MaximizeDialog. Accommodate
671 changed user placement settings.
672 (ChooserPage::OnActivate): MaximizeDialog -> PlaceDialog.
673 (ChooserPage::OnNext): Ditto.
674 * choose.h (ChooserPage::~ChooserPage): Define.
675 (ChooserPage::cmd_show): Delete.
676 (ChooserPage::saved_geom): New field.
677 (ChooserPage::window_placement): Ditto.
678 (ChooserPage::pre_chooser_placement): Ditto.
679 (ChooserPage::PlaceDialog): Rename from MaximizeDialog.
680
681 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
682
683 * ConnectionSetting.cc (ConnectionSetting::ConnectionSetting): Remove
684 old code which no longer makes sense when run from a constructor.
685 * SourceSetting.cc (SourceSetting::SourceSetting): Ditto.
686 * localdir.cc (LocalDirSetting::LocalDirSetting): Ditto. Fix typo
687 which caused saved settings to be ignored.
688
689 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
690
691 * UserSettings.cc (UserSettings::UserSettings): settings.rc -> setup.rc.
692
693 2009-06-28 Corinna Vinschen <corinna@vinschen.de>
694
695 * desktop.cc (DesktopSetupPage::OnInit): Drop CoInitialize call here.
696 * main.cc (main_display): Use InitCommonControlsEx rather than
697 InitCommonControls per MSDN. Call CoInitializeEx and create IShellLink
698 instance here to workaround a problem on Windows 7. Release IShellLink
699 instance and call CoUninitialize on exit.
700 * mklink.cc (sl): Change to global variable. Drop call to
701 CoCreateInstance here. Check if sl is valid before using it.
702
703 2009-06-27 Christopher Faylor <me+cygwin@cgf.cx>
704
705 Preliminary option handling revamp.
706 Throughout, change load/save methods to constructors/destructors which
707 use new UserSettings methods. Do not inherit from UserSetting class.
708 * KeysSetting.cc (ExtraKeysSetting *ExtraKeysSetting::global): Define.
709 (ExtraKeysSetting::ExtraKeysSetting): Initialize some class members use
710 new UserSettings methods.
711 (ExtraKeysSetting::~ExtraKeysSetting): Use new UserSettings method.
712 * Makefile.am (setup_SOURCES): Eliminate UserSetting.h and
713 UserSetting.cc.
714 * UserSettings.cc: Complete rewrite. Implements new UserSettings
715 class methods.
716 * UserSettings.h: Complete rewrite. Defines new UserSettings class
717 methods.
718 * crypto.cc (ExtraKeys): Delete.
719 (add_key_from_sexpr): Use ExtraKeysSetting::instance rather than
720 ExtraKeys.
721 (verify_ini_file_sig): Ditto.
722 * io_stream.h (io_stream): Define virtual << operators.
723 * localdir.cc (localDir): Delete.
724 * main.cc: Include headers which declar new dynamically invoked
725 classes.
726 (main_display): New function. Controls order of option setting and
727 property page setup. Add new class invocations to force option setting
728 initializtion.
729 (main): Invoke new UserSettings class constructor to populate new
730 settings class. Call main_display() to do most of the setup work.
731 Call Settings.save () to save all settings.
732 * net.cc (theSetting): Delete.
733 * site.cc (SiteSetting::save): Record whether we've saved the
734 information already.
735 (get_site_list): Just use value returned from new UserSettings method
736 rather than parsing a file.
737 (SiteSetting::getSavedSites): Ditto.
738 (write_cache_list): Use UserSettings operator to store mirror cache.
739 (save_cache_file): Ditto.
740 * source.cc (theSetting): Delete.
741
742 * win32.h: gcc-4 accommodation.
743
744 2009-06-26 Dave Korn <dave.korn.cygwin@gmail.com>
745
746 * res.rc (SETUP_STANDARD_DIALOG_W, SETUP_STANDARD_DIALOG_H,
747 SETUP_SMALL_DIALOG_W, SETUP_SMALL_DIALOG_H): Add constant defines
748 for dialog sizes.
749 (SETUP_STANDARD_DIALOG_DIMS, SETUP_SMALL_DIALOG_DIMS): Add helper
750 macros for (W,H) pairs of dimensions.
751 (SETUP_HEADICON_X): New global constant define.
752 (IDD_SOURCE, IDD_VIRUS, IDD_LOCAL, IDD_ROOT, IDD_SITE, IDD_NET,
753 IDD_INSTATUS, IDD_PROXY_AUTH, IDD_NET_AUTH, IDD_DESKTOP,
754 IDD_FTP_AUTH DIALOG, IDD_DROPPED): Use the above for dialog sizes,
755 horizontal rules and icon positioning.
756 (SETUP_KPCE_W): New define for radio-button size.
757 (SETUP_VIEWCAP_W, SETUP_VIEWCAP_X, SETUP_VIEW_W, SETUP_VIEW_X,
758 SETUP_EXP_X, SETUP_CURR_X, SETUP_PREV_X, SETUP_KEEP_X): Add defines
759 for right-aligned controls.
760 (SETUP_SEARCH_X, SETUP_SEARCH_W, SETUP_SEARCHTEXT_X,
761 SETUP_SEARCHTEXT_W, SETUP_CLEAR_X, SETUP_CLEAR_W): Likewise defines
762 for left-aligned controls.
763 (IDD_CHOOSE): Use all the above, and reformat with whitespace
764 between args for clarity.
765
766 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
767
768 * Makefile.am (setup_LDADD): Add -lshlwapi.
769 * PickView.cc: Include shlwapi.h.
770 (PickView::setViewMode): Compare package name with search string
771 case-insensitive.
772 (PickView::insert_category): Ditto.
773
774 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
775
776 * script.cc (init_run_script): Don't set $HOME to /tmp. It breaks
777 mkpasswd -c.
778
779 2009-06-25 Corinna Vinschen <corinna@vinschen.de>
780
781 * script.cc (init_run_script): Reinstantiate accidentally removed
782 setting of sh.
783
784 2009-06-22 Christopher Faylor <me+cygwin@cgf.cx>
785
786 * script.cc (init_run_script): Revert to initializing cmd based on OS
787 type.
788
789 2009-06-22 Corinna Vinschen <corinna@vinschen.de>
790
791 * script.cc (Script::run): Start bash without -c option.
792
793 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
794
795 * threebar.cc (ThreeBarProgressPage::ins_dialog): Move variable to more
796 appropriate class.
797 (ThreeBarProgressPage::MaximizeDialog): Move function to more
798 appropriate class.
799 (ThreeBarProgressPage::OnMessageApp): Remove MaximizeDialog calls.
800 * threebar.h: Remove maximize handling.
801 * choose.cc (ChooserPage::ins_dialog): New variable.
802 (ChooserPage::MaximizeDialog): New function.
803 (ChooserPage::ChooserPage): Remove unneeded handling of nCmdShow.
804 (ChooserPage::OnActivate): Maximize chooser page via MaximizeDialog.
805 (ChooserPage::OnNext): Revert chooser page to normal before returning.
806 * main.cc (main): Don't pass cmd_show to ChooserPage.
807 * propsheet.cc (PropSheetProc): Accommodate change in class for
808 SetHwndDialog.
809
810 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
811
812 * script.cc (shells): Delete.
813 (cmd): Just assign to "cmd.exe" since we're always running on NT now.
814 (sanitize_PATH ): New function.
815 (init_run_script): Ensure that we're only called once. Strip
816 environment of non-pertinent stuff. Call sanitize_PATH to remove
817 non-standard stuff from the PATH. Set up a few standard environment
818 variables.
819
820 2009-06-16 Corinna Vinschen <corinna@vinschen.de>
821
822 * mount.cc (create_install_root): Don't load mount table again.
823 (read_mounts_nt): Don't break loop, rather continue when not being
824 able to open "Cygwin" registry key.
825
826 2009-06-03 Ralph Hempel <rhempel@bmts.com>
827
828 * source.cc: Add support for both -D and -L on the command line.
829
830 2009-06-03 Corinna Vinschen <corinna@vinschen.de>
831
832 * filemanip.cc (unlink): Rename from DeleteFileW. Take additional
833 parameter to indicate file type to unlink. Use in flags given to
834 NtCreateFile.
835 (DeleteFileW): Just call unlink from here with FILE_NON_DIRECTORY_FILE
836 flag.
837 (RemoveDirectoryW): Ditto with FILE_DIRECTORY_FILE flag.
838
839 2009-05-30 Charles Wilson <cygwin@cwilson.fastmail.fm>
840
841 * script.cc (Script::run): Really start bash with --norc
842 --noprofile options.
843
844 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
845
846 * script.cc (Script::run): Start bash with --norc --noprofile options.
847
848 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
849
850 * filemanip.cc (struct _FILE_RENAME_INFORMATION): Remove definition.
851 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Set
852 default permission for .exe files to 0755.
853 (io_stream_cygfile::mklink): Try to create real hardlink first. Add
854 comment.
855 * mklink2.cc (mkcyghardlink): New function to create real hardlink.
856 * mklink2.h (mkcyghardlink): Declare.
857 * mount.cc (from_fstab_line): Set got_usr_bin and got_usr_lib flags
858 if /usr/bin and /usr/lib mount points exist in /etc/fstab.
859 (add_usr_mnts): Only create mounts if corresponding got_usr_bin and
860 got_usr_lib flags are not set.
861 (read_mounts_nt): Initialize got_usr_bin and got_usr_lib to false.
862 Always call add_usr_mnts, even if from_fstab succeeded.
863 * ntdll.h: Include ddk/ntifs.h.
864
865 2009-05-12 Corinna Vinschen <corinna@vinschen.de>
866
867 * filemanip.cc (GetFileAttributesW): Add accidentally omited
868 OBJ_CASE_INSENSITIVE when creating OBJECT_ATTRIBUTES.
869 (SetFileAttributesW): Ditto.
870 (MoveFileW): Ditto.
871 (DeleteFileW): Ditto.
872 (RemoveDirectoryW): Ditto.
873 (nt_wfopen): Ditto.
874
875 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
876
877 * localdir.cc (load_dialog): Choose description string based on install
878 type.
879 * res.rc (IDD_LOCAL_DIR): Replace static description text with
880 IDC_LOCAL_DIR_DESC.
881 * resource.h (IDS_LOCAL_DIR_DOWNLOAD): New string resource id.
882 (IDS_LOCAL_DIR_INSTALL): Likewise.
883 (IDC_LOCAL_DIR_DESC): New text control resource id.
884
885 2009-05-11 Christopher Faylor <me+cygwin@cgf.cx>
886
887 * main.cc (set_cout): Simplify code a little.
888
889 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
890
891 * choose.cc (ChooserPage::OnMessageCmd): Clear search filter when
892 clear button clicked.
893 * res.rc (IDD_CHOOSE_DIALOG): Add IDC_CHOOSE_CLEAR_SEARCH button.
894 * resource.h (IDC_CHOOSE_CLEAR_SEARCH): New button resource ID.
895
896 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
897
898 * UserSettings.cc (UserSettings::settingFileForLoad): Fix local load
899 path strings.
900 (UserSettings::settingFileForSave): Never store in cwd.
901 * autoload.c (ntdll): Autoload ntdll.dll functions here.
902 * desktop.cc (make_cygwin_bat): Use GetFileAttributesW rather than
903 _waccess. Use nt_wfopen instead of _wfopen.
904 (save_icon): Ditto.
905 * filemanip.cc (get_file_size): Call io_stream::open with empty mode
906 string to avoid opening file twice.
907 (GetFileAttributesW): New function to replace Win32 function with
908 equivalent function opening files with backup intent.
909 (SetFileAttributesW): Ditto.
910 (MoveFileW): Ditto.
911 (DeleteFileW): Ditto.
912 (RemoveDirectoryW): Ditto.
913 (nt_wfopen): New function to replace _wfopen with equivalent function
914 opening files with backup intent.
915 * filemanip.h (nt_wfopen): Declare.
916 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Initalize
917 lasterr to 0. Allow empty mode and don't open file, if so. Call
918 nt_wfopen rather than _wfopen.
919 (io_stream_cygfile::exists): Use GetFileAttributesW rather than
920 _waccess.
921 (io_stream_cygfile::get_size): Use CreateFileW/GetFileSize to get
922 file size on NT.
923 * io_stream_file.cc (io_stream_file::io_stream_file): Initalize lasterr
924 to 0. Allow empty mode and don't open file, if so. Call nt_wfopen
925 rather than _wfopen.
926 (io_stream_file::exists): Use GetFileAttributesW rather than _waccess.
927 (io_stream_file::remove): Don't try to remove non-existant file.
928 (io_stream_file::get_size): Use CreateFileW/GetFileSize to get
929 file size on NT. Add comment to keep track of 2GB border.
930 * mkdir.cc: Remove function pointers for ntdll functions.
931 (init_ntfuncs): Remove function.
932 (mkdir_p): Drop call to init_ntfuncs. Call ntdll functions directly
933 rather than over local function pointers.
934 * ntdll.h: New file.
935 * postinstall.cc (do_postinstall_reflector): Switch to admins group
936 as primary group after postinstall scripts have been written.
937 Explain why.
938 (do_postinstall): Add comment.
939 * res.rc: Bump copyright date.
940 * win32.h (class TokenGroupCollection): Remove.
941 * win32.cc (TokenGroupCollection::populate): Remove.
942 (TokenGroupCollection::find): Remove.
943 (NTSecurity::setDefaultSecurity): Drop reading token groups. Just
944 try to switch to admins group as primary group.
945
946 2009-05-07 Corinna Vinschen <corinna@vinschen.de>
947
948 * package_db.cc (ConnectedLoopFinder::doIt): Revert patch from
949 2008-08-29. Add dumb hardcoded algorithm to make sure base-cygwin
950 and base-passwd are always the first packages in the postinstall
951 executable order.
952
953 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
954
955 * install.cc (Installer::StandardDirs): Add /home with 1777 perms.
956 * main.cc (main): Drop setting $CYGWIN to nontsec.
957
958 2009-04-24 Andrew Punch <andrew@magneticbooks.com.au>
959
960 * PickView.h: Add #include <string>.
961 (PickView::SetPackageFilter): Add new function.
962 (PickView::packageFilterString): Add new string data member.
963 * PickView.cc (PickView::setViewMode): Use it to filter names.
964 (PickView::insert_category): Likewise.
965 (PickView::PickView): Initialise packageFilterString to blank.
966 * res.rc (IDD_CHOOSE): Add IDC_CHOOSE_SEARCH_EDIT and
967 IDC_CHOOSE_SEARCH_LABEL controls.
968 (IDS_SEARCH_TOOLTIP): Add new string resource.
969 * resource.h (IDS_SEARCH_TOOLTIP): New string resource ID.
970 (IDC_CHOOSE_SEARCH_EDIT): New edit control ID.
971 (IDC_CHOOSE_SEARCH_LABEL): Mew static text control ID.
972 * choose.cc (ChooserControlsInfo[]): Add IDC_CHOOSE_SEARCH_LABEL
973 and IDC_CHOOSE_SEARCH_EDIT controls to auto-resize list.
974 (ChooserPage::OnInit): Add tooltip to search edit box.
975 (ChooserPage::OnMessageCmd): Handle EN_CHANGE event from
976 IDC_CHOOSE_SEARCH_EDIT.
977
978 2009-04-24 Dave Korn <dave.korn.cygwin@gmail.com>
979
980 * propsheet.cc (PropSheetWndProc): Re-enable hasMinRect.
981
982 2009-04-23 Corinna Vinschen <corinna@vinschen.de>
983
984 * win32.h (NTSecurity::primaryGroupSID): Convert to a structure for
985 direct usage in GetTokenInformation.
986 (NTSecurity::osid): Remove.
987 (NTSecurity::setAdminGroup): Declare.
988 * win32.cc (NTSecurity::resetPrimaryGroup): Accommodate change to
989 primaryGroupSID. Add log output.
990 (NTSecurity::setAdminGroup): New method.
991 (NTSecurity::setDefaultSecurity): Use local structures for getting
992 TOKEN_USER and setting TOKEN_OWNER information. Accommodate change to
993 primaryGroupSID. Slightly enhance log output.
994 Only set primary group to Administrators group when installing for
995 all users. Call setAdminGroup to do it.
996
997 2009-04-22 Corinna Vinschen <corinna@vinschen.de>
998
999 * mklink2.cc (mkcygsymlink_nt): Allow 4K chars in symlink. Use strncat
1000 rather than strcat.
1001 * postinstall.cc (do_postinstall): Reset user token to original
1002 primary group.
1003 * win32.cc (NTSecurity::resetPrimaryGroup): New method.
1004 (NTSecurity::setDefaultSecurity): Store original primary group in
1005 new NTSecurity member primaryGroupSID. Set primary group in user token
1006 to Administrators group for admin users. Align comment.
1007 * win32.h (class NTSecurity): Add member primaryGroupSID.
1008 (NTSecurity::resetPrimaryGroup): Declare.
1009
1010 2009-04-09 Christopher Faylor <me+cygwin@cgf.cx>
1011
1012 * main.cc (set_cout): Load AttachConsole dynamically to avoid using it
1013 on older Windows which don't support it.
1014
1015 2009-03-21 Christopher Faylor <me+cygwin@cgf.cx>
1016
1017 * LogFile.cc (LogFile::endEntry): Output messages to stdout.
1018 * main.cc (set_cout): New function. Sets stdout to console if one
1019 exists.
1020 (main): Redirect stdout to console if unattended_mode or help option is
1021 specified and no stdout is available.
1022
1023 2009-03-21 Terry Fleming <terrynfleming@gmail.com>
1024 Christopher Faylor <me+cygwin@cgf.cx>
1025
1026 * propsheet.cc (PropSheetWndProc): Detect a Window closing event and
1027 issue an "Are you sure" message.
1028
1029 2008-08-29 Corinna Vinschen <corinna@vinschen.de>
1030
1031 * package_db.cc (ConnectedLoopFinder::doIt): Add code to get a basic
1032 order into the dependency list. Add comment to explain why.
1033
1034 2008-08-22 Brian Dessent <brian@dessent.net>
1035
1036 * KeysSetting.cc: Include string.h for memcpy et al.
1037 * filemanip.cc: Include stdlib.h for for mbstowcs.
1038 * io_stream_cygfile.h: Update cygmkdir_p prototype for mode_t.
1039 * mount.cc (conv_fstab_spaces): Silence gcc 4.3 warning ("parentheses
1040 around assignment used as truth value").
1041
1042 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
1043
1044 * install.cc (Installer::StandardDirs): Additionally create /var/log
1045 dir. Set mode of /var/log and /var/run to 01777.
1046 * localdir.cc (LocalDirSetting::save): Create /var/log with 01777
1047 permissions before creating setup.log files.
1048
1049 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
1050
1051 * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode):
1052 Accommodate SetPosixPerms being method of nt_sec.
1053 * mkdir.cc (mkdir_p): Ditto.
1054 * mklink2.cc (mkcygsymlink_nt): Ditto.
1055 * win32.cc: Slightly rearrange.
1056 (NTSecurity::SetPosixPerms): Make SetPosixPerms method of NTSecurity
1057 rather than stand-alone function. Remove dynamic allocation for
1058 security descriptors in favor of static allocation. Drop out
1059 preliminary if well-known SIDs are not initialized. Slightly change
1060 and rearrange comments. Add creating NULL SID ACE for special
1061 permissions.
1062 (NTSecurity::initialiseWellKnownSIDs): New function, replacing
1063 NTSecurity::initialiseEveryOneSID. Initialize all well-known SIDs
1064 here. Set wellKnownSIDsinitialized to true on success.
1065 (NTSecurity::setDefaultDACL): Don't call initialiseEveryOneSID. Change
1066 comment. Drop setting failed. Don't open process token here.
1067 (NTSecurity::setBackupPrivileges): New function.
1068 (NTSecurity::setDefaultSecurity): Call initialiseWellKnownSIDs.
1069 Open process token here. Disable setting primary group. Add comment
1070 to explain why.
1071 * win32.h (SetPosixPerms): Move to NTSecurity.
1072 (class NTSecurity): Add SetPosixPerms method. Make all SIDs private
1073 again. Make NoteFailedAPI private. Add setBackupPrivileges method.
1074 Rename usid to UsersSID. Remove failed method and _failed member.
1075 Add wellKnownSIDsinitialized accessors and _wellKnownSIDsinitialized
1076 member.
1077
1078 2008-08-19 Corinna Vinschen <corinna@vinschen.de>
1079
1080 * install.cc (struct std_dirs_t): New type.
1081 (class Installer): Change type of StandardDirs to std_dirs_t.
1082 (Installer::StandardDirs): Store filename and mode.
1083 (do_install_thread): Call io_stream::mkpath_p with name and mode from
1084 Installer::StandardDirs.
1085 * main.cc (main): Call setDefaultSecurity on global nt_sec.
1086 * IOStreamProvider.h (IOStreamProvider::mkdir_p): Add mode parameter.
1087 * LogFile.cc (LogFile::log_save): Call io_stream::mkpath_p with 0755
1088 mode.
1089 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
1090 * desktop.cc (make_link): Ditto.
1091 * download.cc (download_one): Ditto.
1092 * ini.cc (do_remote_ini): Ditto.
1093 (do_ini_thread): Ditto.
1094 * package_db.cc (packagedb::flush): Ditto.
1095 * archive.cc (archive::extract_file): Ditto. Call set_mtime_and_mode
1096 with mode from archive. Add code to handle directory permissions as
1097 well.
1098 * archive_tar.cc (archive_tar::get_mtime): Return time_t. Reformat.
1099 (archive_tar::get_mode): New method.
1100 * archive_tar.h (class archive_tar_file): Fix prototypes. Replace
1101 prototype for set_mtime with prototype for set_mtime_and_mode.
1102 (class archive_tar): Ditto.
1103 * archive_tar_file.cc (archive_tar_file::get_mtime): Return time_t.
1104 (archive_tar_file::get_mode): New method returning mode from tar header.
1105 * compress_bz.cc (compress_bz::set_mtime_and_mode): Replace set_mtime.
1106 (compress_bz::get_mtime): Return time_t.
1107 (compress_bz::get_mode): New function.
1108 * compress_gz.cc: Ditto.
1109 * compress_lzma.cc: Ditto.
1110 * io_stream.cc (io_stream::mkpath_p): Take additional file mode.
1111 Call mkdir_p with additional file mode.
1112 * io_stream_cygfile.cc (CygFileProvider::mkdir_p): Take additional file
1113 mode.
1114 (cygmkdir_p): Ditto. Call mkdir_p with additional file mode.
1115 (io_stream_cygfile::set_mtime_and_mode): Replace set_mtime. Call
1116 SetPosixPerms.
1117 * io_stream_file.cc (FileProvider::mkdir_p): Take additional file mode.
1118 (io_stream_file::set_mtime_and_mode): Replace set_mtime.
1119 * mkdir.cc (init_ntfuncs): New function to initialize function pointers
1120 from ntdll.dll.
1121 (mkdir_p): Take additional file mode. On NT, use NT functions to create
1122 directory. Call SetPosixPerms.
1123 * compress_bz.h: Change prototypes accordingly.
1124 * compress_gz.h: Ditto.
1125 * compress_lzma.h: Ditto.
1126 * io_stream.h: Ditto.
1127 * io_stream_cygfile.h: Ditto.
1128 * io_stream_file.h: Ditto.
1129 * io_stream_memory.h: Ditto.
1130 * mkdir.h: Ditto.
1131 * mklink2.cc (mkcygsymlink_nt): Open file with STANDARD_RIGHTS_ALL
1132 access and FILE_FLAG_BACKUP_SEMANTICS flag. Call SetPosixPerms.
1133 * mount.cc (from_fstab): Open file with FILE_FLAG_BACKUP_SEMANTICS.
1134 * script.cc (OutputLog::OutputLog): Call io_stream::mkpath_p with 0755
1135 mode. Open file with FILE_FLAG_BACKUP_SEMANTICS.
1136 * win32.cc (SetPosixPerms): New function to set POSIX-like permissions.
1137 (nt_sec): New global NTSecurity variable.
1138 (NTSecurity::setDefaultDACL): Open token with TOKEN_ADJUST_PRIVILEGES.
1139 (NTSecurity::setDefaultSecurity): Enable SE_BACKUP_NAME and
1140 SE_RESTORE_NAME privileges if available.
1141 * win32.h (SetPosixPerms): Add prototype.
1142 (class NTSecurity): Make everyOneSID and administratorsSID public.
1143 (nt_sec): Declare.
1144
1145 2008-08-14 Corinna Vinschen <corinna@vinschen.de>
1146
1147 * mount.cc (unconvert_slashes): New inline function.
1148 (skip_ws): New inline function.
1149 (find_ws): New inline function.
1150 (conv_fstab_spaces): New inline function.
1151 (from_fstab_line): New function to read single line from fstab file.
1152 (from_fstab): New function to read /etc/fstab file and fill mount
1153 table.
1154 (read_mounts_nt): Call from_fstab after getting setup/rootdir from
1155 registry. Only call add_usr_mnts if no fstab file found.
1156
1157 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1158
1159 * install.cc (Installer::installOne): Skip 46 bytes type tar package
1160 silently.
1161
1162 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1163
1164 * install.cc (Installer::installOne): Use MoveFileExW on NT. Special
1165 case for bug in Windows 2000.
1166 * package_meta.cc (packagemeta::uninstall): Use wide char file functions
1167 on NT.
1168 * win32.h (VersionInfo::major): New method.
1169 (VersionInfo::minor): New method.
1170 (OSMajorVersion): Define.
1171 (OSMinorVersion): Define.
1172
1173 2008-08-12 Corinna Vinschen <corinna@vinschen.de>
1174
1175 Revamp for Cygwin 1.7.
1176 * desktop.cc (make_cygwin_bat): Use wide char file functions on NT.
1177 (save_icon): Ditto.
1178 * filemanip.cc (tfx_chars): New char table for wide char transformation
1179 of reserved FS chars to UNICODE private use area.
1180 (transform_chars): New static function.
1181 (mklongpath): New function to convert multibyte path to wide char
1182 path with long path prefix.
1183 * filemanip.h (mklongpath): Declare.
1184 * ini.h (SETUP_INI_FILENAME): Use setup.ini filenames as defined in
1185 real life (setup-2.ini/setup.ini).
1186 (SETUP_BZ2_FILENAME): Ditto.
1187 * install.cc (do_install_thread): Don't create registry mount points
1188 on NT, rather create setup/rootdir entry.
1189 * io_stream_cygfile.cc: Throughout use wide char file functions on NT.
1190 (io_stream_cygfile::w_str): New method to create wide char path.
1191 * io_stream_cygfile.h (class io_stream_cygfile): Remove lmode member.
1192 Add wname member and w_str method.
1193 * io_stream_file.cc: Throughout use wide char file functions on NT.
1194 (io_stream_file::w_str): New method to create wide char path.
1195 * io_stream_file.h (class io_stream_file): Remove lmode member.
1196 Add wname member and w_str method.
1197 * mkdir.cc (mkdir_p): Use wide char file functions on NT.
1198 * mklink2.cc (mkcygsymlink_9x): Rename from mkcygsymlink. Make static.
1199 (mkcygsymlink_nt): New static function.
1200 (mkcygsymlink): Just call mkcygsymlink_9x or mkcygsymlink_nt dependent
1201 on OS.
1202 * mount.cc (CYGWIN_INFO_CYGWIN_SETUP_REGISTRY_NAME): Define.
1203 (remove1): Move to earlier point in file to avoid declaration.
1204 (remove_mount): Ditto. Make static.
1205 (create_install_root): New function to create setup/rootdir registry
1206 value on NT.
1207 (read_mounts_9x): Rename from read_mounts. Make static. Conditionalize
1208 for OS.
1209 (add_usr_mnts): New static function.
1210 (read_mounts_nt): Ditto, to read mounts on NT.
1211 (read_mounts): Just call read_mounts_nt or read_mounts_9x dependent on
1212 OS.
1213 (set_root_dir): On NT, call read_mounts.
1214 (cygpath): Only add slash for non-root mount to avoid multiple slashes
1215 in resulting path (invalid in long path names).
1216 * mount.h (find_mount): Drop declaration.
1217 (remove_mount): Ditto.
1218 (create_install_root): Add declaration.
1219 (read_mounts): Accommodate new parameter.
1220 * package_db.cc (chosen_db_task): New global variable.
1221 * package_db.h (chosen_db_task): Declare.
1222 * root.cc (check_if_enable_next): Don't use get_root_dir here to
1223 avoid having to call save_dialog in RootPage::OnMessageCmd.
1224 (GetDlgItemRect): New static inline function.
1225 (SetDlgItemRect): Ditto.
1226 (load_dialog): On NT, stretch "Install For" block to full dialog width
1227 and hide "Default Text File Type" block.
1228 (save_dialog): On NT set root_text always to IDC_ROOT_BINARY.
1229 (RootPage::OnMessageCmd): Remove call to save_dialog.
1230 (RootPage::OnNext): Initialize packagedb here the first time, to
1231 avoid fetching wrong data from different previous installation.
1232 * source.cc (save_dialog): Don't initialize packagedb here, rather
1233 just memorize setting in chosen_db_task for the deferred initialization
1234 in RootPage::OnNext.
1235
1236 2008-08-07 Dave Korn <dave.korn.cygwin@gmail.com>
1237
1238 Implement command-line selection of packages to install and make
1239 unattended mode deal with any dialogs that might arise. A joint
1240 effort synthesized from contributions by:
1241
1242 Dr. Frank Lee <rl201@cam.ac.uk>
1243 Bryan Thrall <bryan.thrall@flightsafety.com>
1244 Kohsuke Kawaguchi <kk@kohsuke.org>
1245 Dave Korn <dave.korn.cygwin@gmail.com>
1246
1247 * install.cc (rebootneeded): Don't define statically here.
1248 (do_install_thread): Let exit_msg reflect rebootneeded.
1249 * main.cc (main): If rebootneeded, log it when exiting.
1250 * msg.cc (mbox): In unattended_mode, choose and log default answer.
1251 * package_db.cc (packagedb::fillMissingCategory): Iterate over all
1252 packages adding those selected by packagemeta::isManuallyWanted to
1253 base category so that command-line selections are installed.
1254 * package_meta.cc (PackageOption): Add new StringOption to allow
1255 command-line selection of packages to add to base install.
1256 (packagemeta::isManuallyWanted): New function tests if package was
1257 selected on command-line.
1258 (packagemeta::addToCategoryBase): New function adds package to
1259 "base" category.
1260 * state.cc (rebootneeded): Define here non-static.
1261 * state.h (rebootneeded): Declare here with extern linkage.
1262 * threebar.cc (ThreeBarProgressPage::MaximizeDialog): Don't change
1263 size when running in unattended mode.
1264
1265 2008-08-05 Christopher Faylor <me+cygwin@cgf.cx>
1266
1267 * UserSettings.cc (UserSettings::settingFileForLoad): Look locally for
1268 settings before looking outside of current directory.
1269 * choose.cc (ChooserPage::ChooserPage): Record the property sheet's
1270 current show state via new passed in parameter.
1271 * choose.h (ChooserPage::ChooserPage): Reflect change in argument list.
1272 (ChooserPage::nCmdShow): Define new element.
1273 * main.cc (main): Send current show state to Chooser.
1274 * package_version.cc (packageversion::set_requirements): Increase
1275 recursion check from 5 to 30.
1276 * propsheet.cc (PropSheetWndProc): Register hwndDlg with
1277 ThreeBarProgressPage.
1278 * threebar.cc (ControlAdjuster::ControlInfo): Initialize cmd_show_set.
1279 (ThreeBarProgressPage::MaximizeDialog): New function.
1280 (ThreeBarProgressPage::OnMessageApp): Call MaximizeDialog to maximize
1281 package selection screen and restore when done.
1282 * threebar.h (ThreeBarProgressPage::MaximizeDialog): Declare function.
1283 (ThreeBarProgressPage::cmd_show_set): Declare variable.
1284 (ThreeBarProgressPage::cmd_show): Declare variable.
1285 (ThreeBarProgressPage::ins_dialog): Declare variable.
1286 (ThreeBarProgressPage::SetHwndDialog): Define function.
1287
1288 2008-07-22 Charles Wilson <cygwin@cwilson.fastmail.fm>
1289
1290 Add support for .tar.lzma files (decompress only).
1291
1292 * Makefile.am: Add new files.
1293 * compress.cc (compress::decompress): add support
1294 for compress_lzma.
1295 * compress_lzma.h: new file.
1296 * compress_lzma.cc: new file.
1297 * filemanip.cc (find_tar_ext): add support for
1298 .tar.lzma files.
1299 * install.cc (Installer::installOne): update comments.
1300 * lzma-sdk/LzmaDec.h: new file.
1301 * lzma-sdk/LzmaDec.c: new file.
1302 * lzma-sdk/Types.h: new file.
1303
1304 2008-07-08 Charles Wilson <cygwin@cwilson.fastmail.fm>
1305
1306 * compress.cc (compress::decompress): clean up concrete
1307 decompressor objects on failure -- but in that case, do
1308 NOT destroy original io_stream.
1309 * compress_bz.h (compress_bz::release_original): new method.
1310 (owns_original): new member variable.
1311 * compress_bz.cc (compress_bz::release_original): new method.
1312 (compress_bz::compress_bz): take ownership of parent by default.
1313 (compress_bz::~compress_bz): only delete original if
1314 owns_original is true.
1315 * compress_gz.h (compress_gz::release_original): new method.
1316 (owns_original): new member variable.
1317 * compress_gz.cc (compress_gz::release_original): new method.
1318 (compress_gz::construct): take ownership of parent by default.
1319 (compress_gz::~compress_gz): only delete original if
1320 owns_original is true.
1321
1322 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1323
1324 * configure.in, gpg-error-config-fake: Revert previous removal.
1325
1326 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1327
1328 * net.cc: Correct stray CRLF.
1329
1330 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1331
1332 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Remove nasty hack.
1333 * gpg-error-config-fake: Delete file obsoleted by de-hackification.
1334
1335 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
1336
1337 * configure.in: Disable shared library builds.
1338
1339 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
1340
1341 * Makefile.am: Make and install libraries into common location and use
1342 them from there.
1343 * configure.in: Find gpg-error-config in the libgpg-error/src
1344 subdirectory rather than using the host system's version. Set the
1345 prefix and exec_prefix to a common location for the subdirs so that
1346 useful files will be installed in a common location.
1347
1348 2008-06-22 Dave Korn <dave.korn.cygwin@gmail.com>
1349
1350 Merged across diffs between setup_crypto_branch_branchpoint and
1351 setup_crypto_branch_mergepoint2 from setup_crypto_branch.
1352
1353 * crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
1354 KeysSetting.h, gpg-error-config-fake, cygwin.pub, cyg-pubkey.h,
1355 gpg-key-to-s-expr.sh: New files.
1356 * ini.cc, ini.h, resource.h, res.rc, netio.cc, Makefile.am,
1357 configure.ac, libgetopt++/src/OptionSet.cc: Modified files.
1358
1359 2008-06-21 Dave Korn <dave.korn.cygwin@gmail.com>
1360
1361 * ini.cc (do_remote_ini): Revert misbegotten removal of
1362 not-always-superfluous-after-all added slash in URLs.
1363
1364 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1365
1366 * gpg-packet.h (GPG_KEY_SEXPR_BUF_SIZE): Move from here ...
1367 * crypto.h (GPG_KEY_SEXPR_BUF_SIZE): ... to here.
1368 (GPG_KEY_MAX_COEFF_SIZE): Add related definition.
1369
1370 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1371
1372 * gpg-packet.cc (walk_packets_1): Check packet length field is
1373 valid sane and possible to avoid malicious manipulation.
1374 * ChangeLog: Corrected date on previous commit.
1375
1376 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1377
1378 * crypto.cc (add_key_from_sexpr): Use real buffer size, not debug
1379 constant size.
1380
1381 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1382
1383 * crypto.cc (verify_ini_file_sig): Actually set init-once flag!
1384
1385 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1386
1387 * crypto.cc (KeepUntrustedKeysOption): Fix helpstring punctuation.
1388
1389 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1390
1391 * crypto.cc (verify_ini_file_sig): Fix two minor logic errors.
1392
1393 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1394
1395 * ini.h (current_ini_sig_name): Declare extern.
1396 * ini.cc (current_ini_sig_name): New variable.
1397 (NoVerifyOption): New boolean option.
1398 (do_remote_ini): If sig verification not disabled, attempt to
1399 download the matching sig file for any setup.bz2 or setup.ini
1400 and use it to verify or discard the download.
1401
1402 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1403
1404 * resource.h (IDS_SIG_INVALID, IDS_CRYPTO_ERROR): Reserve IDs for
1405 two new message strings.
1406 * res.rc (IDS_SIG_INVALID, IDS_CRYPTO_ERROR): Define the text.
1407
1408 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1409
1410 * Makefile.am (setup_SOURCES): Add new files crypto.cc, crypto.h,
1411 cyg-pubkey.h, gpg-packet.cc, gpg-packet.h. KeysSetting.cc and
1412 KeysSetting.h to the build.
1413 * crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
1414 KeysSetting.h: New files. Adds gpg sig verification support.
1415
1416 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1417
1418 * Makefile.am (DIST_SUBDIRS, SUBDIRS): Add libgpg-error and
1419 libgcrypt subdirs.
1420 (AM_CPPFLAGS): Add -I paths to generated headers in both and to
1421 shipped headers in libgcrypt.
1422 (setup_LDADD): Add libgpg-error.a and libgcrypt.a to final link.
1423
1424 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Preload into cache
1425 to fake out libgcrypt configure process.
1426 (AC_CONFIG_SUBDIRS): Add libgpg-error/ and libgcrypt/
1427
1428 * gpg-error-config-fake: New shell script to redirect libgcrypt
1429 sub-configure into looking for newly-built libgpg-error.
1430
1431 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1432
1433 * setup/libgpg-error/: Fresh import of upstream sources of
1434 libgpg-error-1.6.tar.bz2 from http://www.gnupg.org/
1435 * setup/libgcrypt/: Fresh import of upstream sources of
1436 libgcrypt-1.4.1.tar.bz2 from http://www.gnupg.org/
1437
1438 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1439
1440 * netio.cc (NetIO::set_url): Avoid double-free bug on delete
1441 by setting path to a strdup of url rather than using the same
1442 pointer value twice.
1443
1444 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1445
1446 * cygwin.pub: Add reference copy of Cygwin setup signing key.
1447 * gpg-key-to-s-expr.sh: New bash script. Outputs textual
1448 representation of public key in s-expr format.
1449 * cyg-pubkey.h: New header generated by the above from Cygwin
1450 setup signing key. Currently needs manual regeneration if key
1451 ever updated.
1452
1453 2008-04-16 Brian Dessent <brian@dessent.net>
1454
1455 * mount.cc: Include malloc.h.
1456 (is_admin): Use alloca instead of a VLA in case
1457 GetTokenInformation is sensitive to alignment.
1458
1459 2008-04-15 Brian Dessent <brian@dessent.net>
1460
1461 * mount.cc (is_admin): Get explicit size of required buffer by
1462 calling GetTokenInformation first with NULL.
1463
1464 2008-04-10 Brian Dessent <brian@dessent.net>
1465
1466 * Makefile.am (setup_LDFLAGS): Make sure static libbz2 and zlib
1467 are used.
1468
1469 2008-04-09 Brian Dessent <brian@dessent.net>
1470
1471 * README: flex and bison are required when building from CVS.
1472
1473 2008-04-08 Brian Dessent <brian@dessent.net>
1474
1475 * Makefile.am (snapshot): Provide default value of ${cygwinsite}
1476 if not set.
1477
1478 2008-04-08 Brian Dessent <brian@dessent.net>
1479
1480 * Makefile.am (release): Use -f so that "make release" works
1481 when existing binaries of the same name exist.
1482
1483 2008-04-08 Brian Dessent <brian@dessent.net>
1484
1485 * res.rc (IDD_SPLASH): Update copyright years on splash page.
1486
1487 2008-04-08 Brian Dessent <brian@dessent.net>
1488
1489 * CHANGES: Update.
1490 * install.cc (Installer::installOne): Cope with compressed
1491 0-byte dummy packages. Fix progress bar update bug introduced
1492 in earlier refactoring.
1493
1494 2008-04-08 Brian Dessent <brian@dessent.net>
1495
1496 * CHANGES: Update.
1497
1498 2008-04-08 Brian Dessent <brian@dessent.net>
1499
1500 Various warning/header cleanups necessary for clean gcc 4.3 build.
1501 * ConnectionSetting.cc: Include stdlib.h.
1502 * LogFile.cc: Ditto.
1503 * Makefile.am: Don't hardcode paths to MinGW libz and libbz2.
1504 * PickView.cc: Include limits.h.
1505 * String++.cc: Include string.h.
1506 * archive_tar.cc (archive_tar::next_file_name): Silence nested-if
1507 warning.
1508 * autoload.c: Switch back to .text section before emiting
1509 autoload_common.
1510 * choose.cc: Include stdlib.h and algorithm.
1511 * compress_gz.cc: Include memory.h and malloc.h.
1512 * filemanip.cc: Include string.h.
1513 (parse_filename): Silence nested-if warning.
1514 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Silence warning.
1515 * package_db.cc: Include algorithm.
1516 * site.cc (get_site_list): Silence warning.
1517 * win32.cc: Include memory.
1518 * csu_util/MD5Sum.cc: Include string.h.
1519
1520 2008-03-02 Dave Korn <dave.korn@artimi.com>
1521
1522 * install.cc (Installer::installOne): Accept new HWND argument
1523 from caller and pass it to MessageBox calls so that MB_TASKMODAL
1524 can work.
1525 (check_for_old_cygwin): Likewise.
1526 (do_install_thread): Pass owner's HWND (from thread context) when
1527 calling them.
1528
1529 2008-02-23 Dave Korn <dave.korn@artimi.com>
1530
1531 * cygpackage.cc (cygpackage::getfirstfile): Guard against trying to
1532 construct std::string from NULL returned by io_stream::gets when the
1533 stream decompressor fails on a corrupt *.lst.gz file.
1534
1535 2008-02-21 Dave Korn <dave.korn@artimi.com>
1536
1537 * geturl.cc (progress): Correct SI unit notation.
1538
1539 2008-02-01 Vincent Privat <vincent.privat@gmail.com>
1540
1541 * net.cc (OnInit): New StringOption (ProxyOption)
1542 This new option (-p) allows to call setup.exe with a proxy
1543 in its command-line arguments.
1544
1545 2007-07-31 Brian Dessent <brian@dessent.net>
1546
1547 * ini.cc (do_remote_ini): Fix crash due to double free of ini_file.
1548
1549 2007-07-30 Brian Dessent <brian@dessent.net>
1550
1551 * CHANGES: Update.
1552 * configure.in (AM_INIT_AUTOMAKE): Enable more automake warnings.
1553 * Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
1554 (CLEANFILES): Add. Minor portability tweaks.
1555 * tests/Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
1556 * archive.cc (archive::extract): Try to be more compatible when
1557 opening tar files.
1558 * compress_bz.cc: Fix whitespace throughout.
1559 (compress_bz::~compress_bz): Ensure that underlying io_stream's dtor is
1560 also run.
1561 * install.cc (Installer::installOne): Refactor.
1562 * package_db.cc (ConnectedLoopFinder::doIt): Move some log spewage into
1563 setup.log.full from setup.log.
1564 (packagedb::connectedBegin): Ditto. Consolidate log output to one line.
1565
1566 2007-07-02 Brian Dessent <brian@dessent.net>
1567
1568 * CHANGES: Update.
1569
1570 2007-06-26 Brian Dessent <brian@dessent.net>
1571
1572 * Makefile.am (release): Drop inconsistent use of $(EXEEXT). Leave an
1573 untouched copy of setup.exe so that later make invocations don't
1574 unnecessarily rebuild it.
1575 (snapshot): Fix typo.
1576 * install.cc (md5_one): Don't try to check packages whose
1577 pkgsource.Cached () is NULL, as with those whose download failed.
1578
1579 2007-06-26 Brian Dessent <brian@dessent.net>
1580
1581 * CHANGES: Update to reflect release branch.
1582
1583 2007-06-26 Brian Dessent <brian@dessent.net>
1584
1585 * CHANGES: Make current.
1586
1587 2007-05-30 Brian Dessent <brian@dessent.net>
1588
1589 * find.h (class Find): Make _start_dir non-const.
1590 * find.cc (Find::Find): Append a trailing slash to _start_dir only if
1591 it does not already contain one.
1592 (Find::accept): Use the previously stored value of _start_dir rather
1593 than unconditionally appending a slash.
1594
1595 2007-05-29 Brian Dessent <brian@dessent.net>
1596
1597 * Makefile.am: No need to specify the default value of --preprocessor
1598 to windres. Rework the automatic version extraction rules so that the
1599 source tarball is generated with the proper name and directory instead
1600 of setup-0. Update snapshot rule to also upload a copy of the binary
1601 with debugging symbols still present.
1602
1603 2007-05-29 Brian Dessent <brian@dessent.net>
1604
1605 This is a general tidying up/modernization of the build infrastructure.
1606 Renaming the lexer and parser to .ll and .yy allows using automake's
1607 builtin support for flex and bison with C++ sources, and libinilex is a
1608 slightly cleaner way of omitting -Werror.
1609
1610 * Makefile.am (AUTOMAKE_OPTIONS): Move to AM_INIT_AUTOMAKE.
1611 (AM_YFLAGS): Define.
1612 (AM_LFLAGS): Define.
1613 (INCLUDES): Remove redundant mingw directory.
1614 (EXTRA_DIST): Adjust for newly named lexer/parser.
1615 (BUILT_SOURCES): Ditto.
1616 (inilint_LDADD): Ditto.
1617 (inilint_SOURCES): Ditto.
1618 (setup_LDADD): Ditto.
1619 (setup_SOURCES): Ditto.
1620 (iniparse.cc): Remove custom rules.
1621 (inilex.cc): Ditto.
1622 * configure.in: Update quoting and use modern form of AC_INIT and
1623 AM_INIT_AUTOMAKE.
1624 * inilex.l: Rename from this ...
1625 * inilex.ll: ... to this.
1626 * iniparse.y: Rename from this ...
1627 * iniparse.yy: ... to this.
1628
1629 2007-05-29 Brian Dessent <brian@dessent.net>
1630
1631 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
1632 Remove error_buf and error_count initializers.
1633 (IniParseFindVisitor::visitFile): Store filename in current_ini_name.
1634 Use yyerror_count and yyerror_messages in place of removed error_count
1635 and error_buf members.
1636 * IniParseFindVisitor.h (class IniParseFindVisitor): Remove error_buf
1637 and error_count members.
1638 * ini.cc: Include io_stream_memory.h. Remove file static variables
1639 error_buf, error_count, and ini_filename.
1640 (GuiParseFeedback::progress): Remove some verbose log spam.
1641 (do_remote_ini): Recode .ini-fetching logic to properly display parse
1642 errors, and to account for corrupt bzip2 files.
1643 (yyerror): Moved elsewhere.
1644 (fprintf): Delete unused function.
1645 * ini.h: Remove useless __cplusplus guard. Declare extern variables
1646 current_ini_name, yyerror_messages, and yyerror_count.
1647 * inilex.l: Add current_ini_name, yyerror_messages, and
1648 yyerror_count.
1649 (ini_init): Initialize new variables.
1650 (yybol): Delete.
1651 (yyerror): Reimplement using std::string and relocate from ini.cc.
1652 * io_stream.cc (io_stream::copy): Add clarifying comment.
1653
1654 2007-05-04 Igor Peshansky <pechtcha@cs.nyu.edu>
1655
1656 * resource.h (IDC_STATIC_HEADER): New control id.
1657 * res.rc (IDD_SPLASH): Adjust the copyright.
1658 (IDD_DESKTOP): Make header text accessible as a separate control.
1659 * desktop.cc (set_status): Use eset() instead of SetWindowText().
1660 (load_dialog): Disable checkboxes and change dialog text in
1661 download-only mode.
1662 (DesktopSetupPage::OnInit): Disable checkboxes in download-only
1663 mode.
1664 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Deprecate the
1665 default fallthrough.
1666 * download.cc (do_download_thread): Explicitly return the next
1667 dialog.
1668
1669 2007-04-19 Max Bowsher <maxb1@ukf.net>
1670
1671 * configure.in: Turn inilint default build off again, since I cannot
1672 get it to work.
1673
1674 2007-04-19 Max Bowsher <maxb1@ukf.net>
1675
1676 * configure.in: Make inilint built by default.
1677
1678 2007-04-19 Max Bowsher <maxb1@ukf.net>
1679
1680 * inilintmain.cc: Fix multiple compile errors.
1681
1682 2007-04-19 Max Bowsher <maxb1@ukf.net>
1683
1684 * Makefile.am: Make inilint use same warnonly-inilex workaround that
1685 setup already does.
1686
1687 2007-03-29 Igor Peshansky <pechtcha@cs.nyu.edu>
1688
1689 * LogFile.cc (LogFile::exit): Write exit_msg directly to log, without
1690 the message box.
1691 * resource.h (IDC_DESKTOP_SEPARATOR,IDC_STATUS_HEADER,IDC_STATUS): New
1692 control ids.
1693 * res.rc (IDD_DESKTOP): Change the caption. Add status information.
1694 * desktop.h (DesktopSetupPage::DesktopSetupPage): Define constructor
1695 in the implementation.
1696 * desktop.cc (DesktopControlsInfo): Position specifiers for status
1697 information items.
1698 (DesktopSetupPage::DesktopSetupPage): Register position specifiers.
1699 (set_status): New static method.
1700 (load_dialog): Set status information, if available.
1701 (DesktopSetupPage::OnInit): Set status header font.
1702
1703 2007-03-01 Brian Dessent <brian@dessent.net>
1704
1705 * ini.h (SETUP_INI_FILENAME): Rename setup_9x.ini to setup_legacy.ini.
1706 (SETUP_BZ2_FILENAME): Likewise.
1707
1708 2007-02-27 Brian Dessent <brian@dessent.net>
1709
1710 * ini.h (SETUP_INI_FILENAME): Add define.
1711 (SETUP_BZ2_FILENAME): Add define.
1712 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use
1713 above macros to parameterize setup.ini filename.
1714 * fromcwd.cc (SetupFindVisitor::visitFile): Ditto.
1715 * ini.cc (do_remote_ini): Ditto.
1716 * Makefile.am (setup_SOURCES): Add win32.cc.
1717 * autoload.c: Include windows.h directly instead of win32.h so that
1718 win32.h can contain C++.
1719 * desktop.cc (verinfo): Delete.
1720 (make_link): Use IsWindowsNT to check for NT instead of verinfo.
1721 (DesktopSetupPage::OnInit): Likewise.
1722 * mount.cc (is_admin): Likewise.
1723 * script.cc (init_run_script): Likewise.
1724 * main.cc (class SIDWrapper, SIDWrapper::SIDWrapper,
1725 SIDWrapper::~SIDWrapper, SIDWrapper::theSID, class HANDLEWrapper,
1726 HANDLEWrapper::HANDLEWrapper, HANDLEWrapper::~HANDLEWrapper,
1727 HANDLEWrapper::theHANDLE, class TokenGroupCollection,
1728 TokenGroupCollection::TokenGroupCollection,
1729 TokenGroupCollection::~TokenGroupCollection,
1730 TokenGroupCollection::populate, TokenGroupCollection::find,
1731 class NTSecurity, set_default_sec, NTSecurity::NoteFailedAPI,
1732 NTSecurity::NTSecurity, NTSecurity::failed,
1733 NTSecurity::initialiseEveryOneSID, NTSecurity::setDefaultDACL,
1734 NTSecurity::setDefaultSecurity): Remove implementation of these
1735 classes from this file and into new file win32.cc and existing win32.h.
1736 (main): Fix whitespace and formatting per GNU coding standards.
1737 * res.rc (IDS_SETUPINI_MISSING): Parameterize filename with %s.
1738 * win32.cc: New file containing methods removed from main.cc as well
1739 as new class VersionInfo methods.
1740 * win32.h: Include <string> for std::string.
1741 (class SIDWrapper, class HANDLEWrapper, class TokenGroupCollection,
1742 class NTSecurity): Add classes removed from main.cc.
1743 (class VersionInfo): Add new class.
1744 (GetVer): Declare.
1745 (IsWindowsNT): Define.
1746
1747 2007-02-20 Brian Dessent <brian@dessent.net>
1748
1749 * README: Modernize list of required packages, and mention doconfigure.
1750
1751 2007-02-17 Cesar Strauss <cstrauss@cea.inpe.br>
1752
1753 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
1754 Initialize the version and operator fields of the newly created
1755 PackageSpecification object, so setup can pick the correct source
1756 version later on.
1757
1758 2007-02-17 Brian Dessent <brian@dessent.net>
1759
1760 * script.cc (Script::run): Check for existance of script file and
1761 return without doing anything if it does not exist.
1762
1763 2006-12-26 Max Bowsher <maxb1@ukf.net>
1764
1765 * IniDBBuilder.h (IniDBBuilder): Make this class abstract.
1766 * IniDBBuilder.cc: Delete file.
1767 * Makefile.am (inilint_SOURCES, setup_SOURCES): Remove IniDBBuilder.cc.
1768
1769 2006-12-26 Max Bowsher <maxb1@ukf.net>
1770
1771 Add a shell script that documents/centralizes the standard configure
1772 command line.
1773
1774 * doconfigure: New file.
1775 * Makefile.am (EXTRA_DIST): Add doconfigure.
1776
1777 2006-11-28 Igor Peshansky <pechtcha@cs.nyu.edu>
1778
1779 * install.cc (Installer::installOne): If file is in use, ask the user
1780 to stop processes and retry.
1781 (MB_RETRYCONTINUE, IDCONTINUE): New macros.
1782 (hMsgBoxHook): New static field.
1783 (CBTProc): New window hook function.
1784 (_custom_MessageBox): New function.
1785 * CHANGES: Update with the above.
1786
1787 2006-10-12 Igor Peshansky <pechtcha@cs.nyu.edu>
1788
1789 * desktop.cc (make_cygwin_bat,save_icon): Capitalize filename.
1790
1791 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1792
1793 * package_version.cc (packageversion::scan): Catch and handle
1794 validation exception.
1795
1796 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1797
1798 * cygpackage.h (filesize): Remove unused field.
1799 (cygpackage::createInstance): Ditto.
1800 * cygpackage.cc (cygpackage::createInstance): Ditto.
1801 * package_db.cc (packagedb::packagedb): Remove unused variables.
1802 Simplify parsing of installed.db.
1803
1804 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1805
1806 * desktop.cc (DesktopSetupPage::OnInit): Remove stray MessageBox.
1807
1808 2006-05-24 Igor Peshansky <pechtcha@cs.nyu.edu>
1809
1810 * PickPackageLine.h (PickPackageLine::DrawIcon): Move to PickView.
1811 * PickView.h (PickView::DrawIcon): Move from PickPackageLine.
1812 (PickView::icon_dc,PickView::bm_icon): New instance field.
1813 (PickView::rect_icon,PickView::bg_fg_brush): Ditto.
1814 * PickCategoryLine.cc (PickCategoryLine::paint): Use
1815 PickView::DrawIcon() instead of BitBlt().
1816 * PickPackageLine.cc (PickPackageLine::DrawIcon): Move to PickView.
1817 (PickPackageLine::paint): Use PickView::DrawIcon().
1818 * PickView.cc (PickView::~PickView): Delete GDI objects.
1819 (PickView::init): Create icon drawing context.
1820 (PickView::DrawIcon): New function. Use system default colors to
1821 draw bitmaps.
1822 (PickView::paint): Set background color instead of using transparent
1823 mode. Create system-colored brush.
1824
1825 2006-04-25 Brian Dessent <brian@dessent.net>
1826
1827 * COPYING: New file (GPL).
1828 * Makfile.am (EXTRA_DIST): Add COPYING.
1829
1830 2006-04-17 Max Bowsher <maxb1@ukf.net>
1831
1832 * String++.cc, String++.h: Finally, it's time for the long-awaited
1833 departure of 'class String' from this world. setup.exe can now
1834 happily claim to follow the sane path of using just one general
1835 purpose string class throughout :-)
1836
1837 2006-04-17 Max Bowsher <maxb1@ukf.net>
1838
1839 * cygpackage.cc, cygpackage.h, package_version.cc, package_version.h:
1840 Do some String to std::string migration.
1841
1842 2006-04-17 Max Bowsher <maxb1@ukf.net>
1843
1844 * package_meta.cc, package_meta.h, package_source.cc,
1845 package_source.h: Do some String to std::string migration.
1846 * package_db.cc: Small tweak to assist with the above.
1847
1848 2006-04-17 Max Bowsher <maxb1@ukf.net>
1849
1850 * PickView.cc, PickView.h, package_db.cc, package_db.h:
1851 Do some String to std::string migration.
1852 * package_meta.h: Change a couple of types to assist with the above.
1853
1854 2006-04-17 Max Bowsher <maxb1@ukf.net>
1855
1856 * IniDBBuilder.cc, IniDBBuilder.h, IniDBBuilderPackage.cc,
1857 IniDBBuilderPackage.h, PickLine.h, PickPackageLine.cc:
1858 Do some String to std::string migration.
1859
1860 2006-04-16 Max Bowsher <maxb1@ukf.net>
1861
1862 * FindVisitor.cc, FindVisitor.h, IniParseFindVisitor.cc,
1863 IniParseFindVisitor.h, ScanFindVisitor.cc, ScanFindVisitor.h, find.cc,
1864 find.h, fromcwd.cc, ini.cc, ini.h, iniparse.y, postinstall.cc:
1865 Do some String to std::string migration.
1866
1867 2006-04-16 Max Bowsher <maxb1@ukf.net>
1868
1869 * IOStreamProvider.h, archive.cc, archive.h, archive_tar.cc,
1870 archive_tar.h, io_stream.cc, io_stream.h, io_stream_cygfile.cc,
1871 io_stream_cygfile.h, io_stream_file.cc, io_stream_file.h:
1872 Do some String to std::string migration.
1873
1874 2006-04-16 Max Bowsher <maxb1@ukf.net>
1875
1876 * desktop.cc, download.cc, install.cc, mount.cc, mount.h, script.cc,
1877 script.h: Do some String to std::string migration.
1878
1879 2006-04-16 Max Bowsher <maxb1@ukf.net>
1880
1881 * category.cc: Remove source file that contained no code!
1882 * category.h: Delete, moving the single useful line to...
1883 * package_meta.h: ...here. Remove category.h include.
1884 * choose.cc, package_db.h, package_meta.cc: Remove category.h include.
1885 * Makefile.am: Remove references to removed files.
1886
1887 2006-04-15 Max Bowsher <maxb1@ukf.net>
1888
1889 * ConnectionSetting.cc, ConnectionSetting.h, Exception.cc,
1890 Exception.h, IniParseFeedback.cc, IniParseFeedback.h, LogFile.cc,
1891 LogFile.h, LogSingleton.h, PackageSpecification.cc,
1892 PackageSpecification.h, SourceSetting.cc, SourceSetting.h,
1893 UserSettings.cc, UserSettings.h, dialog.cc, dialog.h, diskfull.cc,
1894 diskfull.h, filemanip.cc, filemanip.h, inilintmain.cc, localdir.cc,
1895 main.cc, nio-file.cc, nio-http.cc, prereq.cc, prereq.h, proppage.cc,
1896 proppage.h, site.cc, site.h, splash.cc, state.cc, state.h, window.cc,
1897 window.h: Do some String to std::string migration.
1898
1899 2006-04-15 Max Bowsher <maxb1@ukf.net>
1900
1901 * String++.cc, String++.h
1902 (new_cstr_char_array, format_1000s): Migrate String to std::string.
1903 (casecompare_lt_op, std::string operator+): New.
1904
1905 2006-04-06 Max Bowsher <maxb1@ukf.net>
1906
1907 * String++.h, String++.cc
1908 (String::replace): Remove - usused.
1909 (String::find): Remove - semantics do not match std::string.
1910
1911 * root.cc (directory_is_rootdir): Switch to std::string.find().
1912 * script.cc (Script::baseName): Rewrite use of String.find().
1913
1914 2006-03-30 Max Bowsher <maxb1@ukf.net>
1915
1916 * String++.cc (replace): New function to take the place of one form
1917 of String::replace method.
1918 * String++.h (replace): Declare.
1919 (String::replace): Make private.
1920
1921 * desktop.cc (make_cygwin_bat): Use new function.
1922 * filemanip.cc (backslash): Use simple loop in place of
1923 String::replace.
1924 * filemanip.h (backslash): Change signature to use std::string in
1925 place of String.
1926
1927 2006-03-30 Max Bowsher <maxb1@ukf.net>
1928
1929 * String++.cc, String++.h (casecompare): New function replacing
1930 String.casecompare to increase parity with std::string.
1931 (String::casecompare): Make private.
1932
1933 * ConnectionSetting.cc, IniDBBuilderPackage.cc,
1934 IniParseFindVisitor.cc, LogFile.cc, PackageSpecification.cc,
1935 PickView.cc, SourceSetting.cc, String++.cc, String++.h, fromcwd.cc,
1936 io_stream.cc, mount.cc, package_db.cc, package_source.h,
1937 package_version.cc, prereq.h, script.cc:
1938 Use casecompare in place of String::casecompare.
1939
1940 2006-03-30 Max Bowsher <maxb1@ukf.net>
1941
1942 * String++.cc, String++.h: Remove String(int) constructor, which
1943 was causing dangerously bizarre implicit conversions, and was a point
1944 of disparity between String and std::string.
1945 (stringify): New function to replace functionality removed above.
1946
1947 * PickView.cc (PickView::init_headers),
1948 archive_tar.cc (archive_tar::next_file_name),
1949 cygpackage.cc (cygpackage::setCanonicalVersion):
1950 Make explicit and call out with a FIXME some bizarre behaviour.
1951
1952 * ScanFindVisitor.cc (ScanFindVisitor::visitFile),
1953 filemanip.cc (base), iniparse.y,
1954 threebar.cc (ThreeBarProgressPage::SetBar2):
1955 Make simple adaptations to the changed API.
1956
1957 2006-03-14 Igor Peshansky <pechtcha@cs.nyu.edu>
1958
1959 * PickView.cc (PickView::setViewMode): Auto-expand category if
1960 its name starts with a dot.
1961
1962 2006-03-14 Dave Korn <dave.korn@artimi.com>
1963
1964 * String++.cc (new_cstr_char_array): Handle null input correctly.
1965
1966 2006-03-10 Christopher Faylor <cgf@timesys.com>
1967
1968 * res.rc: Update copyright.
1969 (IDS_MIRROR_LST): Use cygwin.com for mirror list, not
1970 sources.redhat.com.
1971 * site.cc (NOSAVE1): Use preferred name of sourceware site.
1972 (NOSAVE2): sourceware.cygnus.com -> sources.redhat.com.
1973 (NOSAVE1_LEN): Use just-defined name to determine length.
1974 (NOSAVE2_LEN): Ditto.
1975 (NOSAVE3_LEN): Ditto.
1976
1977 2006-03-10 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
1978
1979 * res.rc (IDD_DROPPED): New dialog.
1980 * resource.h (IDD_DROPPED): New dialog-id.
1981 (IDC_DROP_MIRRORS, IDC_DROP_NOWARN): New control-ids.
1982 * site.cc: Add enum for response on dropped mirrors.
1983 (cache_is_usable, cache_needs_writing): New bools.
1984 (cache_warn_urls): New string.
1985 (cached_site-list, dropped_site_list): New SiteLists.
1986 (site_list_type::init, site_list_type::site_list_type): Change to four
1987 parameter form.
1988 (site_list_type::site_list_type, site_list_type::operator=) Copy
1989 servername, area and location.
1990 (load_site_list): New function, broken out of get_site_list. Support
1991 four-parameter site_list_type.
1992 (get_site_list): Break out load_site_list. Move reading cache earlier.
1993 Don't write new cache. Set flags to record cache state. Load both
1994 all_site_list and cached_site_list.
1995 (SiteSetting::registerSavedSite): Use four-parameter site_list_type.
1996 (drop_proc, check_dropped_mirrors, write_cache_list, save_cache_file):
1997 New functions.
1998 (SitePage::OnNext): Check for dropped mirrors and save cache as
1999 appropriate.
2000 (SitePage::OnMessageCmd): Use four-parameter site_list_type.
2001 * site.h
2002 (site_list_type::init, site_list_type::site_list_type): Change to four
2003 parameter form.
2004 (site_list_type): Add servername, area and location members.
2005
2006 2006-03-09 Igor Peshansky <pechtcha@cs.nyu.edu>
2007
2008 * script.cc (Script::run): Fix inverted test for abnormal exit.
2009
2010 2006-03-09 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2011 Max Bowsher <maxb1@ukf.net>
2012
2013 Provide indication of site that a file is being downloaded from.
2014
2015 * geturl.cc: Use std::string instead of String throughout.
2016 (init_dialog): Put more information into GUI.
2017 Remove unused 'owner' parameter and change all callers.
2018 (progress): Remove spurious \n characters from GUI.
2019 * geturl.h: Use std::string instead of String throughout.
2020 * res.rc (IDD_INSTATUS): Use SS_ENDELLIPSIS.
2021
2022 2006-03-09 Max Bowsher <maxb1@ukf.net>
2023
2024 * Makefile.am (EXTRA_DIST): Add tree-minus.bmp and tree-plus.bmp.
2025
2026 2006-01-20 Bryan Thrall <bryan.thrall@flightsafety.com>
2027
2028 * source.cc (SourcePage::OnActivate): Command line takes precedence
2029 over last user selection.
2030
2031 2005-11-30 Max Bowsher <maxb1@ukf.net>
2032
2033 * res.rc (IDD_ROOT, IDD_LOCAL_DIR): Rearrange some controls a little,
2034 in response to suggestion from Carl Karsten.
2035
2036 2005-11-30 Max Bowsher <maxb1@ukf.net>
2037
2038 * site.h, site.cc: Use std::string in preference to String.
2039 (site_list_type::init): Convert some painful raw C string work to
2040 STL std::string work. Stop totally ignoring the result of this
2041 calculation, implementing the (somewhat weird) sort order for sites
2042 that was apparently indented for ages.
2043
2044 2005-10-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2045
2046 * io_stream.cc (url_scheme_not_registered): New macro.
2047 (io_stream::open): Better log message on error.
2048 (io_stream::mkpath_p,io_stream::remove,io_stream::mklink): Ditto.
2049 (io_stream::move,io_stream::exists): Ditto.
2050
2051 2005-10-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2052
2053 * site.cc (get_site_list): Default to empty mirror list if
2054 server unavailable and none cached, to allow using preferred
2055 mirrors anyway.
2056
2057 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2058
2059 * package_db.cc (packagedb::packagedb): Remember missing package
2060 database file.
2061
2062 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2063
2064 * site.cc (get_site_list): Store mirror list locally.
2065 Use local copy if unable to download.
2066
2067 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2068
2069 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
2070 Better log message on error.
2071
2072 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2073
2074 * script.cc (Script::isAScript): Fix string comparison.
2075
2076 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2077
2078 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Reconnect on FTP timeout.
2079
2080 2005-09-11 Masayuki FUJII <boochang@m4.kcn.ne.jp>
2081
2082 * package_meta.cc (packagemeta::ScanDownloadedFiles): Don't use an
2083 invalid iterator. Fix whitespace.
2084
2085 2005-09-09 Brian Dessent <brian@dessent.net>
2086
2087 * CHANGES: Document recent updates.
2088 * choose.cc (ChooserPage::OnInit): Add new tooltip.
2089 * res.rc (IDD_CHOOSE): Remove 'administrative' from description.
2090 (IDS_HIDEOBS_TOOLTIP): Add new string for tooltip.
2091 * resource.h (IDS_HIDEOBS_TOOLTIP): Define.
2092 * window.cc (Window::ActivateTooltips): Fix whitespace. Set tooltip
2093 delay to 30 seconds.
2094
2095 2005-09-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2096
2097 * PickView.cc (PickView::paint): Set background mode to transparent.
2098 * PickCategoryLine.cc (PickCategoryLine::paint): Use bitwise AND to
2099 blit bitmaps.
2100 * PickPackageLine.cc (PickPackageLine::paint): Ditto.
2101
2102 2005-09-01 Brian Dessent <brian@dessent.net>
2103
2104 * package_meta.cc (packagemeta::uninstall): Remove support for
2105 undocumented and dangerous postremove script.
2106
2107 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2108
2109 * script.cc (run): Change to return the exit code or negative error.
2110 (Script::run): Ditto.
2111 (try_run_script): Receive both filename and extension and run only
2112 one script. Also return the exit code.
2113 * script.h (try_run_script): Change signature.
2114 (Script::run): Ditto.
2115 * postinstall.cc (RunScript::operator()): Change to return the exit
2116 code or negative error.
2117 * install.cc (Installer::preremoveOne): Pass extension to
2118 try_run_script().
2119
2120 2005-09-01 Eric Blake <ebb9@byu.net>
2121
2122 * script.cc (shells): Use /bin/bash, not sh, to allow upgrades to
2123 /bin/sh.
2124
2125 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2126
2127 * PickView.h (PickView::size_col): New instance variable.
2128 * PickView.cc (pkg_headers, cat_headers): Add size column.
2129 (PickView::set_headers): Initialize size_col.
2130 (PickView::init_headers): Include width of size column.
2131 * PickPackageLine.cc (PickPackageLine::paint): Handle size_col.
2132 * String++.cc (format_1000s): New function.
2133 * String++.h (format_1000s): Declare new function.
2134
2135 2005-09-01 Brian Dessent <brian@dessent.net>
2136
2137 * Makefile.am (BASECXXFLAGS): Add -Wno-uninitialized to work around
2138 spurious warnings with gcc 3.4.4.
2139
2140 2005-05-22 Brian Dessent <brian@dessent.net>
2141
2142 * res.rc (IDD_CHOOSE): Change description to include administrative
2143 packages in addition to obsolete.
2144
2145 2005-05-21 Brian Dessent <brian@dessent.net>
2146
2147 * prereq.cc: New file.
2148 * prereq.h: Ditto.
2149 * tree-minus.bmp: Ditto.
2150 * tree-plus.bmp: Ditto.
2151 * Makefile.am: Add prereq.cc and prereq.h to build.
2152 * PickCategoryLine.cc (PickCategoryLine::paint): Add new parameter and
2153 refactor. Use bitmap for '+' and '-' indicators. Draw package lines
2154 column-wise for better drawing efficiency.
2155 (PickCategoryLine::click): Use previously calculated x value.
2156 * PickCategoryLine.h (PickCategoryLine::paint): Update prototype. Add
2157 'spin_x' member.
2158 * PickLine.h (PickLine:paint): Update prototype.
2159 * PickPackageLine.cc (PickPackageLine::DrawCheck): Remove.
2160 (PickPackageLine::DrawIcon): New function.
2161 (PickPackageLine::paint): Add parameter. Refactor completely for more
2162 efficient painting.
2163 * PickPackageLine.h (PickPackageLine::DrawIcon): Add prototype.
2164 (PickPackageLine::paint): Update prototype.
2165 (PickPackageLine::DrawCheck): Remove.
2166 * PickView.cc (pkg_headers): Remove unused 'slen' field, add new
2167 'needs_clip' field to signify if clipping is necessary for this column.
2168 (PickView::note_width): Fold long line. Refactor slightly for
2169 simplicity.
2170 (PickView::set_view_mode): Remove.
2171 (PickView::cycleViewMode): New function.
2172 (PickView::setViewMode): Refactor completely. Incorporate functionality
2173 of clear_view() here instead. Simplify package selection into a single
2174 'for' loop rather than repeating code for each type.
2175 (isObsolete): New function, with second overloaded version.
2176 (PickView::setObsolete): New function.
2177 (PickView::insert_pkg): Do not show obsolete packages. Move
2178 declaration of 'db' lower. Fix whitespace.
2179 (PickView::insert_category): Do not show obsolete packages.
2180 (PickView::clear_view): Remove. Moved logic into 'setViewMode'.
2181 (PickView::scroll): Add additional parameter 'howmany' with default
2182 value of 1. Scroll by 'howmany' lines for SB_LINEDOWN and SB_LINEUP.
2183 (NUM_CATEGORY_COL_WIDTH): Define.
2184 (PickView::init_headers): Fix whitespace. Add comments. Ignore
2185 obsolete packages in width calculations. Add functionality to size
2186 'Category' column so that at least NUM_CATEGORY_COL_WIDTH categories
2187 are displayed for every package. Ensure that 'new_col' takes into
2188 account all possible labels.
2189 (PickView::PickView): Initialize showObsolete to false.
2190 (PickView::init): Remove unused bitmap bm_rtarrow. Add new bitmaps
2191 bm_treeplus and bm_treeminus. Use a macro for better readability.
2192 Fix whitespace formatting. Remove header computation from here, call
2193 refresh() instead.
2194 (PickView::registerWindowClass): Remove unnecessary background brush.
2195 (PickView::WindowProc): Add support for WM_MOUSEWHEEL message
2196 processing. Fix indentation. Reformat for readability.
2197 (PickView::paint): Get the update region before calling BeginPaint.
2198 Fill the update region with the default colors. Do not do clipping
2199 here. Pass update region to the PickLine paint function instead.
2200 Free the update region when finished.
2201 (PickView::Create): Fix indentation.
2202 (PickView::defaultTrust): Ditto.
2203 (PickView::refresh): Add column recalculation logic here.
2204 * PickView.h: Fix indentation.
2205 (RTARROW_WIDTH): Remove unused define.
2206 (NEW_COL_SIZE_SLOP): Ditto.
2207 (TREE_INDENT): Define.
2208 (PickView::get_view_mode): Remove.
2209 (PickView::set_view_mode): Rename to setViewMode for consistency.
2210 (PickView::cycleViewMode): Add new function.
2211 (PickView::setObsolete): Ditto.
2212 (PickView::clear_view): Remove.
2213 (PickView::bm_treeplus): Define new member.
2214 (PickView::bm_treeminus): Ditto.
2215 (PickView::scroll): Add parameter.
2216 (PickView::Header::slen): Remove unused member.
2217 (PickView::Header::needs_clip): Define new member.
2218 (PickView::showObsolete): Ditto.
2219 (isObsolete): Add prototype, and for overloaded version as well.
2220 * choose.cc: Add include.
2221 (ChooserControlsInfo): Allow new checkbox to be resized.
2222 (ChooserPage::OnInit): Start dialog with 'Hide obsolete' checked.
2223 (ChooserPage::OnNext): Call the dependency checker, act accordingly.
2224 (ChooserPage::changeTrust): Notify dependency checker of current trust
2225 level when it changes.
2226 (ChooserPage::OnMessageCmd): Just call cycleViewMode instead when
2227 changing the view. Update the chooser when the user toggles the
2228 'hide obsolete' checkbox.
2229 (ChooserPage::OnMouseWheel): New function. Pass mouse wheel message
2230 on to chooser.
2231 * choose.h (OnMouseWheel): Add prototype.
2232 * main.cc: Add include.
2233 (main): Define and initialize the PrereqPage object. Add it into
2234 the property sheet list.
2235 * PropPage.cc (PropertyPage::DialogProc): Add support for WM_MOUSEWHEEL
2236 message processing in derived classes.
2237 (PropertyPage::OnMouseWheel): New function.
2238 * PropPage.h (PropertyPage::OnMouseWheel): Add prototype.
2239 * res.rc (IDD_LOCAL_DIR): Shorten edit box so that pushbutton is not
2240 crowded.
2241 (IDD_SITE): Provide static text with an ID so that it can be resized
2242 properly. Move pushbutton slightly to right so that it doesn't crowd
2243 edit box.
2244 (IDD_SPLASH): Change copyright displayed on spash screen to be generic
2245 since the actual list of contributors is long.
2246 (IDD_CHOOSE): Add checkbox. Resize other controls to accomodate.
2247 (IDD_PREREQ): New dialog.
2248 (SPIN): Delete duplicated bitmap resource.
2249 (IDB_RTARROW): Remove unused bitmap resource.
2250 (IDB_TREE_PLUS): Add.
2251 (IDB_TREE_MINUS): Ditto.
2252 (IDS_TRUSTPREV_TOOLTIP): Revise wording to be more concise.
2253 (IDS_TRUSTCURR_TOOLTIP): Ditto.
2254 (IDS_TRUSTEXP_TOOLTIP): Ditto.
2255 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
2256 * resource.h (IDD_PREREQ): Define.
2257 (IDB_RTARROW): Remove.
2258 (IDB_TREE_PLUS): Add, and renumber.
2259 (IDB_TREE_MINUS): Ditto.
2260 (IDC_SITE_USERURL): Define.
2261 (IDC_CHOOSE_HIDE): Ditto.
2262 (IDC_PREREQ_TEXT): Ditto.
2263 (IDC_PREREQ_EDIT): Ditto.
2264 (IDC_PREREQ_CHECK): Ditto.
2265 * site.cc (SiteControlsInfo): Ensure that 'User URL' static text is
2266 properly resized.
2267
2268 2005-05-14 Max Bowsher <maxb@ukf.net>
2269
2270 "Type" field of packageversions was not even being filled in. Fix.
2271
2272 * cygpackage.h, cygpackage.cc (cygpackage::createInstance):
2273 Make "type" a mandatory parameter of the constructor.
2274 * IniDBBuilderPackage.cc: Adjust callers.
2275
2276 2005-05-14 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2277
2278 Fix behaviour of hardlinks in source packages.
2279
2280 * archive.cc (archive::extract_file):
2281 Use prefixPath for link target on hardlinks.
2282
2283 2005-05-14 Max Bowsher <maxb@ukf.net>
2284
2285 Hopefully, solve the "preremove DLL dependency" bug, by running all
2286 preremove scripts before actually removing any files.
2287
2288 * install.cc
2289 (Installer::preremoveOne): New method. Run preremove scripts here.
2290 (Installer::replaceOne): Remove method.
2291 (num_replacements): Remove variable.
2292 (do_install_thread): Significantly rewrite.
2293 * package_meta.cc (packagemeta::uninstall):
2294 Do not run preremove script here.
2295
2296 2005-05-14 Max Bowsher <maxb@ukf.net>
2297
2298 * download.cc (do_download_thread):
2299 Do not use packageversion::changeRequested().
2300 * package_version.cc (packageversion::Type):
2301 Implement declared but previously unimplemented method.
2302 (packageversion::changeRequested, _packageversion::changeRequested):
2303 Remove.
2304 * package_version.h
2305 (packageversion::changeRequested, _packageversion::changeRequested):
2306 Remove.
2307 * install.cc (Installer::replaceOne): Simplify, return void, not int.
2308 (installOneSource): Rename to...
2309 (installOne): ...this. Change arguments and return type. Refactor.
2310 (install_one): Remove.
2311 (do_install_thread): Tidying up.
2312
2313 2005-05-07 Max Bowsher <maxb@ukf.net>
2314
2315 * download.cc (validateCachedPackage): Remove all MD5 checking code.
2316 It is not acceptable to check MD5 sums as part of simply answering
2317 whether a package exists in the local cache or not. It is too slow.
2318 MD5 sums always have been - and will continue to be - checked at
2319 install time.
2320 (NoMD5Option): Remove this option, as the code it controls has been
2321 removed.
2322
2323 2005-05-07 Max Bowsher <maxb@ukf.net>
2324
2325 * install.cc (md5_one): Make the MD5 checking done at install time
2326 display a progess GUI, as the MD5 checking done at other times does.
2327
2328 2005-05-07 Max Bowsher <maxb@ukf.net>
2329
2330 * resource.h, res.rc: Followup to recent de-MSVC-ification of
2331 resource.h, by removing a lot from res.rc, and the last few bits
2332 from resource.h.
2333
2334 2005-05-05 Brian Dessent <brian@dessent.net>
2335
2336 * choose.cc (ChooserPage::OnInit): Initialize tooltips for this
2337 dialog.
2338
2339 * proppage.h (PropertyPage::makeClickable): Update prototype to
2340 reflect same argument name as function.
2341
2342 * proppage.cc (PropertyPage::DialogProc): Remove redundant 'break'
2343 statements that follow 'return's. Add missing braces to case
2344 statements. Call handler for TTN_GETDISPINFO.
2345
2346 * res.rc (IDS_TRUSTKEEP_TOOLTIP): Add new STRINGTABLE entry for
2347 tooltip text.
2348 (IDS_TRUSTPREV_TOOLTIP): Ditto.
2349 (IDS_TRUSTCURR_TOOLTIP): Ditto.
2350 (IDS_TRUSTEXP_TOOLTIP): Ditto.
2351 (IDS_TRUSTPREV_TOOLTIP): Ditto.
2352 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
2353
2354 * resource.h: Likewise, add identifiers for tooltip resources.
2355
2356 * window.h: Add includes.
2357 (Window::TooltipHandle): Add new private data structure.
2358 (Window::TooltipStrings): Ditto.
2359 (Window::ActivateTooltips): Define new function to support tooltip
2360 functionality.
2361 (Window::SetTooltipState): Ditto.
2362 (Window::AddTooltip): Ditto.
2363 (Window::TooltipNotificationHandler): Ditto.
2364
2365 * window.cc (Window::Window): Initialize handle to NULL.
2366 (Window::~Window): Call DestroyWindow on tooltip control if it was
2367 activated.
2368 (Window::ActivateTooltips): New function to activate the tooltip
2369 control.
2370 (Window::SetTooltipState): New function to allow toggling of
2371 tooltips.
2372 (Window::AddTooltip): New function that adds a tooltip to a given
2373 control in a given window. Also implement overloaded versions that
2374 provide simpler interface and the ability to use a string resource.
2375 (Window::TooltipNotificationHandler): New function to handle
2376 TTN_GETDISPINFO notification messages.
2377
2378 2005-05-05 Brian Dessent <brian@dessent.net>
2379
2380 * resource.h: Reorganize. Group by type, and give each its own
2381 range of IDs. Regenerate IDs accordingly.
2382 (IDD_CHOOSER): Remove obsolete and unused symbol.
2383
2384 2005-05-05 Brian Dessent <brian@dessent.net>
2385
2386 * root.h (class RootPage): Add missing virtual to OnMessageCmd.
2387
2388 2005-05-05 Brian Dessent <brian@dessent.net>
2389
2390 * root.cc (dialog_cmd): Remove. Use OnMessageCmd instead.
2391 (RootPage::Create): Accomodate above change.
2392
2393 * root.h (class RootPage): Add prototype for OnMessageCmd.
2394
2395 * res.rc (IDD_ROOT): Fix broken button groups. Correct the order of
2396 the controls and use of WS_GROUP so that the radio buttons act
2397 correctly.
2398
2399 2005-05-05 Max Bowsher <maxb@ukf.net>
2400
2401 Bulk rename of String++ member cstr_oneuse () to c_str () for
2402 similarity to std::string.
2403
2404 * Exception.cc
2405 * IniDBBuilderPackage.cc
2406 * IniParseFindVisitor.cc
2407 * LogFile.cc
2408 * PickCategoryLine.cc
2409 * PickPackageLine.cc
2410 * PickView.cc
2411 * String++.cc
2412 * String++.h
2413 * archive.cc
2414 * cygpackage.cc
2415 * desktop.cc
2416 * dialog.cc
2417 * diskfull.cc
2418 * download.cc
2419 * filemanip.cc
2420 * find.cc
2421 * geturl.cc
2422 * ini.cc
2423 * install.cc
2424 * io_stream.cc
2425 * io_stream_cygfile.cc
2426 * io_stream_file.cc
2427 * localdir.cc
2428 * mount.cc
2429 * nio-http.cc
2430 * package_db.cc
2431 * package_meta.cc
2432 * package_source.h
2433 * postinstall.cc
2434 * proppage.cc
2435 * root.cc
2436 * script.cc
2437 * site.cc
2438 * splash.cc
2439 * threebar.cc
2440 * window.cc
2441
2442 2005-05-05 Max Bowsher <maxb@ukf.net>
2443
2444 Some String++ refactoring, setting out in the general direction of
2445 eventually just using the STL std::string, not our own class.
2446
2447 * String++.cc (String::cstr, String::cstr () const): Remove.
2448 (new_cstr_char_array): New function.
2449 * String++.h: Sync with above.
2450 Remove irrelevant "class io_stream;" declaration.
2451
2452 * cygpackage.h: Add "class io_stream;" declaration, now no longer
2453 being supplied by side-effect.
2454
2455 * filemanip.cc: Remove unneeded includes, add "using namespace std;".
2456 (parse_filename): Exchange some awkward pointer manipulation for
2457 std::string usage. Use new_cstr_char_array ().
2458 * filemanip.h: Sync with above.
2459 (fileparse): Improve style of declaration.
2460
2461 * io_stream_cygfile.cc (io_stream_cygfile::normalise):
2462 Use new_cstr_char_array ().
2463 * site.cc (site_list_type::init, get_site_list): Ditto.
2464
2465 2005-05-05 Brian Dessent <brian@dessent.net>
2466
2467 * ControlAdjuster.h (enum ControlPosition): Declare new resizing
2468 methods CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, and their
2469 TOP/BOTTOM aliases.
2470
2471 * ControlAdjuster.cc (ControlAdjuster::ControlInfo::adjust):
2472 Implement CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, which are
2473 designed to resize elements in a two-column layout.
2474
2475 * localdir.h (class LocalDirPage): Remove constructor implementation
2476 from here...
2477
2478 * localdir.cc (LocalDirPage::LocalDirPage): ...to here, and call
2479 AddControlsInfo on initialization.
2480 (static LocaldirControlsInfo): Add. Define sizing rules for dialog
2481 elements.
2482
2483 * proppage.h: Add includes.
2484 (PropertyPage::ClickableURL):
2485 Declare new storage type for internal use by class.
2486 (PropertyPage::urls): Likewise.
2487 (PropertyPage::urlWinProc): Add declaration.
2488 (PropertyPage::makeClickable): Likewise.
2489
2490 * proppage.cc: Add includes.
2491 (PropertyPage::DialogProc): Implement handler for WM_CTLCOLORSTATIC
2492 message. Supports static controls that have been turned into
2493 clickable hyperlinks.
2494 (static PropertyPage::urls): Declare.
2495 (PropertyPage::makeClickable): Implement new member function that
2496 provides user interface for making text into clickable URLs.
2497 (PropertyPage::urlWinProc): Implement new private member function used
2498 as a windowproc for subclassing a static control.
2499
2500 * resource.h (IDC_SPLASH_URL, IDC_FILEMODES_LINK, IDC_ROOTDIR_GRP,
2501 IDC_INSTALLFOR_GRP, IDC_ALLUSERS_TEXT, IDC_JUSTME_TEXT, IDC_MODE_GRP,
2502 IDC_MODE_TEXT, IDC_MODE_BIN, IDC_LOCALDIR_GRP, IDC_SPLASH_TEXT,
2503 IDC_SPLASH_ICON, IDC_SPLASH_COPYR): Add. Replaces anonymous
2504 IDC_STATIC ids, so that controls can be referenced by the resizer.
2505
2506 * res.rc (IDD_LOCAL_DIR): Rearrange controls to match top-down order
2507 in the dialog. Fold long lines. Replace anonymous IDC_STATIC ids.
2508 (IDD_ROOT): Reorder in same manner. Replace anonymous IDC_STATIC ids.
2509 Add descriptive text of each option, and hyperlink for more
2510 information. Mark suggested choice as "(RECOMMENDED)". Swap order of
2511 'unix'/'dos' radio buttons so that recommended choice is first in both
2512 columns.
2513 (IDD_SPLASH): Reorder elements to match top-down order of dialog, fold
2514 long lines. Add descriptive paragraph, remove anonymous ids. Update
2515 copyright text, replace sources.redhat.com with cygwin.com.
2516
2517 * root.h (class RootPage): Remove constructor implementation from
2518 here...
2519
2520 * root.cc: ...to here, and call AddControlInfo.
2521 (static RootControlsInfo): Add. Populate with resizing data.
2522 (RootPage::OnInit): Make text a clickable hyperlink.
2523
2524 * splash.h (class SplashPage): Likewise, move constructor from
2525 here...
2526
2527 * splash.cc: ...to here. Call AddControlInfo.
2528 (static SplashControlsInfo): Add and populate.
2529 (SplashPage::Create): Make link on splash page a clickable hyperlink.
2530
2531 * window.h: Add include.
2532 (class Window): Store allocated fonts with a vector instead of fixed
2533 array. Change indentation of setParent to be consistent.
2534
2535 * window.cc (Window::Window): Remove FontCounter.
2536 (Window::~Window): Likewise. Iterate over vector of fonts instead.
2537 (Window::SetDlgItemFont): Use vector.
2538
2539 2005-05-05 Max Bowsher <maxb@ukf.net>
2540
2541 * Makefile.am (EXTRA_DIST, inilint_SOURCES):
2542 Sync with several recent changes.
2543
2544 2005-05-05 Brian Dessent <brian@dessent.net>
2545
2546 * res.rc: (CREATEPROCESS_MANIFEST_RESOURCE_ID): Include section
2547 comment.
2548
2549 2005-05-05 Brian Dessent <brian@dessent.net>
2550
2551 * res.rc: (IDC_CHOOSE): Widen 'view' button by 6px horizontally and
2552 4px vertically. Adjust other controls to accomodate.
2553 (CREATEPROCESS_MANIFEST_RESOURCE_ID): Define so that manifest is
2554 included in the binary.
2555
2556 * setup.exe.manifest: New file. Results in common controls with
2557 themed appearance on modern versions of Windows.
2558
2559 2005-05-05 Brian Dessent <brian@dessent.net>
2560
2561 * main.cc (WinMain): Change conditional to avoid spurious error
2562 message on success. Include reason for failure in log message.
2563
2564 2005-05-04 Max Bowsher <maxb@ukf.net>
2565
2566 * state.cc, state.h (net_method, net_proxy_host, net_proxy_port,)
2567 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
2568 Inet_ftp_user, net_ftp_passwd):
2569 Move these global variables to be static variables of the NetIO class.
2570
2571 * netio.h, netio.cc (net_method, net_proxy_host, net_proxy_port,)
2572 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
2573 net_ftp_user, net_ftp_passwd):
2574 As above.
2575
2576 * ConnectionSetting.cc, net.cc:
2577 Change include, refer to variables in new location.
2578
2579 2005-05-04 Max Bowsher <maxb@ukf.net>
2580
2581 * PickLine.cc: Remove file - redundant.
2582 * Makefile.am (setup_SOURCES): Adjust.
2583
2584 2005-05-04 Max Bowsher <maxb@ukf.net>
2585
2586 * package_version.h (packageversion::set_requirements):
2587 Remove deftrust argument default value.
2588
2589 2005-05-04 Max Bowsher <maxb@ukf.net>
2590
2591 * package_version.cc (DependencyProcessor): Remove trivial class.
2592 (select, processOneDependency): Do not use DependencyProcessor, just
2593 pass parameters normally.
2594
2595 2005-05-04 Brian Dessent <brian@dessent.net>
2596
2597 Fix bug #820: Clicking Curr, etc., causes some dependencies to not
2598 be installed.
2599
2600 * choose.cc (ChooserPage::changeTrust):
2601 Add a missing "packagedb.markUnVisited ()".
2602
2603 2005-05-03 Max Bowsher <maxb@ukf.net>
2604
2605 * PickCategoryLine.cc (PickCategoryLine::click):
2606 * PickPackageLine.cc (PickPackageLine::click):
2607 Abandon use of trivial packagemeta::PrepareForVisit() wrapper.
2608
2609 * package_meta.h (packagemeta::PrepareForVisit): Remove.
2610 * package_meta.cc (packagemeta::PrepareForVisit): Remove.
2611
2612 2005-05-03 Max Bowsher <maxb@ukf.net>
2613
2614 * choose.h (ChooserPage::ifChecked): Remove.
2615 (ChooserPage::changeTrust): Convert from template to ordinary function.
2616 * choose.cc (ChooserPage::changeTrust): As above, plus avoid the use
2617 of custom class SetRequirement, when bind2nd(mem_fun(...),...) can
2618 achieve the same effect.
2619 * package_meta.h (SetRequirement): Remove, now unused.
2620
2621 2005-05-03 Max Bowsher <maxb@ukf.net>
2622
2623 * package_meta.h (packagemeta::set_requirements):
2624 Remove default argument which seems inappropriate.
2625 * PickPackageLine.cc (PickPackageLine::click):
2626 Make an argument explicit, and not that it seems like the wrong value.
2627
2628 2005-05-03 Brian Dessent <brian@dessent.net>
2629
2630 Fix part of bug #853 - proxy port not remembered.
2631
2632 * net.cc (doing_loading): New static boolean.
2633 (load_dialog): Use the boolean to prevent save_dialog() from taking
2634 action due to field changes due to initialization.
2635 (save_dialog): Check the boolean and respond appropriately.
2636
2637 2005-04-19 Max Bowsher <maxb@ukf.net>
2638
2639 * postinstall.cc (RunFindVisitor::visitFile): Fix crash on
2640 encountering a postinstall script with a name of 4 characters or less.
2641 Bug introduced on 2004-12-25.
2642
2643 2005-04-05 Max Bowsher <maxb@ukf.net>
2644
2645 The Big Cleanup: Phase "rfc1738"
2646
2647 * rfc1738.cc, rfc1738.h: Delete.
2648 * csu_util/rfc1738.cc: Reimport latest version from upstream source.
2649 Make thread-safe. Rewrite C++ wrapper in terms of std::string.
2650 Document the divergences from the upstream source.
2651 * csu_util/rfc1738.h: Recreate for the std::string version of the
2652 C++ wrapper.
2653
2654 * Makefile.am (setup_SOURCES): Sync with added/removed files.
2655 * IniParseFindVisitor.cc: Modify #includes.
2656 (IniParseFindVisitor::visitFile): Change function name, as the new
2657 C++ wrapper does not contain an irregularity that the old one did.
2658 * download.cc: Modify #includes.
2659 * ini.cc: Modify #includes.
2660
2661 2005-04-05 Max Bowsher <maxb@ukf.net>
2662
2663 Remove setup's internal compression libraries, instead relying on the
2664 mingw-foo packages which have been part of the Cygwin net distribution
2665 for some time now. At the same time, reorganize the README file to
2666 inform about the change, and make some additional tidy-ups there whilst
2667 working there.
2668
2669 * GUIDELINES: Remove, contents transferred to README.
2670 * README: Add build instructions. Delete unconfirmed and fixed bugs
2671 sections. Incorporate the former contents of GUIDELINES.
2672
2673 * bz2lib/: Remove.
2674 * zlib/: Remove.
2675 * Makefile.am (DIST_SUBDIRS, SUBDIRS):
2676 * configure.in: Remove AC_CONFIG_SUBDIRS for removed subdirs.
2677 * compress_bz.h: Remove complex _WIN32 preprocessor conditional.
2678 * compress_gz.h: Fix #include file name.
2679 * archive_tar_file.cc: Remove unused #include.
2680 * install.cc: Remove unused #include.
2681
2682 2005-01-27 Max Bowsher <maxb@ukf.net>
2683
2684 Set CYGWIN=nontsec, for postinstall scripts.
2685
2686 * main.cc (main): putenv("CYGWIN=nontsec").
2687
2688 2005-01-27 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2689
2690 Fix corrupt display of ini parse percentage in log file.
2691
2692 * ini.cc (GuiParseFeedback): Use a sensible data type for lastpct.
2693
2694 2004-12-29 Max Bowsher <maxb@ukf.net>
2695
2696 * site.cc (get_site_list): Filter the incoming mirrors list to contain
2697 only URL schemes that we can read.
2698
2699 2004-12-28 Max Bowsher <maxb@ukf.net>
2700
2701 The Big Cleanup: Phase "hash"
2702
2703 * hash.cc, hash.h: Delete.
2704 * Makefile.am (setup_SOURCES): Sync with deleted files.
2705
2706 * package_mets: Modify includes.
2707 (standard_dirs): Remove.
2708 (hash::add_subdirs): Remove.
2709 (packagemeta::uninstall): Re-implement using STL set instead of
2710 homebrew hash.
2711
2712 2004-12-28 Max Bowsher <maxb@ukf.net>
2713
2714 * String++.h (operator std::string): Take care to never do
2715 std::string((char*)NULL) - it causes a hang!
2716
2717 2004-12-27 Max Bowsher <maxb@ukf.net>
2718
2719 The Big Cleanup: Phase "log"
2720
2721 * log.cc, log.h: Delete old C-style compatibility wrapper around the
2722 logging subsystem.
2723 * Makefile.am (setup_SOURCES): Sync with deleted files.
2724
2725 * AntiVirus.cc, archive_tar_file.cc, ini.cc, install.cc,
2726 * io_stream_cygfile.cc, localdir.cc, msg.cc, net.cc, netio.cc,
2727 * netio.h, nio-ftp.cc, nio-ftp.h, root.cc, source.cc:
2728 Throughout, refine includes, and update code using the old
2729 compatibility wrapper to C++ streams style code.
2730
2731 2004-12-27 Max Bowsher <maxb@ukf.net>
2732
2733 * compress.cc: Refine includes. Remove placeholder function
2734 definitions. Make destructor an empty function.
2735 * compress.h: Refine includes. Make placeholder functions pure
2736 virtual. Add missing const on buffer argument to write function,
2737 to match derived classes.
2738 * compress_bz.cc, compress_gz.cc: Refine includes. Throw exception,
2739 rather than logging and returning an error, when an unimplemented
2740 function is called.
2741 * compress_bz.h, compress_gz.h: Refine includes.
2742
2743 2004-12-26 Max Bowsher <maxb@ukf.net>
2744
2745 The Big Cleanup: Phase "version"
2746
2747 * String++.h (operator std::string): Add.
2748 * desktop.cc, fromcwd.cc: Remove irrelevant include.
2749
2750 * version.cc, version.h: Delete, replacing all functionality in new
2751 files.
2752
2753 * setup_version.h: Add, taking over declaration of generated version
2754 symbol functionality.
2755
2756 * Makefile.am (setup_SOURCES): Sync with new/deleted files.
2757 (setup_version.c): Rename the symbol 'version' to 'setup_version'.
2758 * main.cc: Modify includes.
2759 (main): Adapt to setup_version rename.
2760 * splash.cc: Modify includes.
2761 (SplashPage::OnInit): Adapt to setup_version rename.
2762
2763 * csu_util/version_compare.cc, csu_util/version_compare.h: Add,
2764 containing a completely rewritten replacement for canonical_version().
2765
2766 * IniDBBuilderPackage.cc: Modify includes.
2767 (IniDBBuilderPackage::buildVersion): Use new version_compare API.
2768 * ini.cc: Modify includes.
2769 (setup_version): Rename...
2770 (ini_setup_version): ...to this.
2771 (do_local_ini, do_remote_ini): Adapt to above change.
2772 (do_ini_thread): Adapt to above change. Use new version_compare API.
2773
2774 2004-12-25 Max Bowsher <maxb@ukf.net>
2775
2776 * install.cc (Installer::installOneSource): Remove a stray "break;"
2777 left over from the switch-case -> if-else conversion in the previous
2778 change.
2779
2780 2004-12-25 Max Bowsher <maxb@ukf.net>
2781
2782 The Big Cleanup: Phase "win32"
2783
2784 * win32.h: Major overhaul. Document why we use _WIN32_IE. Move out
2785 fragment dealing with alloca() to the single file in which it is used.
2786 Remove fragment dealing with _MAX_PATH, and convert all uses of it
2787 elsewhere to MAX_PATH. Remove random include of <stdarg.h>. Remove
2788 NOCOMATTRIBUTE, as setup contains no code which it affects. Remove
2789 includes of <wininet.h> and <windowsx.h> - see later in this log.
2790 (IsWindowsNT): New inline function, a much simpler implementation of
2791 Win32::OS().
2792
2793 * win32.cc: Delete.
2794
2795 * Makefile.am (setup_SOURCES): Remove "win32.cc".
2796
2797 * AntiVirus.cc (detect), PickPackageLine.cc (PickPackageLine::paint),
2798 * install.c (Installer::installOneSource):
2799 Use IsWindowsNT(), not Win32::OS().
2800 * main.cc (main): Use IsWindowsNT(), not locally defined iswinnt.
2801
2802 * PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
2803 * proppage.cc (PropertyPage::DialogProc):
2804 Avoid using obfuscating macros from <windowsx.h>.
2805
2806 * archive.cc: Include or #define alloca() in the only file in which
2807 it is used.
2808
2809 * nio-ie5.h: Include <wininet.h> here, where it is actually needed,
2810 rather than in "win32.h" which is included almost everywhere.
2811
2812 * archive_tar.cc, archive_tar.h, cygpackage.cc, cygpackage.h,
2813 * desktop.cc, find.cc, install.cc, main.cc, mklink2.c, mount.cc,
2814 * script.cc: Use MAX_PATH, not _MAX_PATH.
2815
2816 2004-12-25 Max Bowsher <maxb@ukf.net>
2817
2818 Remove some overcomplications.
2819
2820 * Makefile.am (setup_SOURCES): Remove FilterVisitor.{cc,h}.
2821 * FilterVisitor.cc, FilterVisitor.h: Delete.
2822 * String++.cc (strmatch, String::matches): Remove.
2823 * String++.h (String::matches): Remove.
2824 * postinstall.cc: Do not include "FilterVisitor.h".
2825 (RunFindVisitor): Exclude items with the extension ".done".
2826 (do_postinstall_thread): Remove overcomplicated exclusion of items
2827 with the extension ".done".
2828
2829 2004-12-24 Max Bowsher <maxb@ukf.net>
2830
2831 * String++.cc, String++.h: Remove unused and incomplete code.
2832 * LogFile.cc (LogFile::log_save): Don't leak memory.
2833 * filemanip.cc, geturl.cc, root.cc, version.cc:
2834 Don't pointlessly create temporary copies strings.
2835
2836 2004-12-23 Max Bowsher <maxb@ukf.net>
2837
2838 * choose.cc (ChooserPage::OnNext): Relegate some overly verbose
2839 logging to an #ifdef DEBUG section.
2840 * geturl.h (dismiss_url_status_dialog): Remove stale function
2841 declaration, for which there is no definition.
2842 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
2843 Motivated by the recent unexplained hang bug, add some extra logging.
2844
2845 2004-11-22 Max Bowsher <maxb@ukf.net>
2846
2847 * MD5++.cc, MD5++.h: Remove this class.
2848 * csu_util/MD5Sum.cc, csu_util/MD5Sum.h: New more complete MD5 class.
2849 * Makefile.am (setup_SOURCES): Adjust to new files.
2850 * download.cc (validateCachedPackage): Simplify, using the new class.
2851 * install.cc (md5_one): Ditto.
2852 * package_source.h (packagesource::md5): Change to be an object of the
2853 new class.
2854
2855 2004-11-22 Max Bowsher <maxb@ukf.net>
2856
2857 * main.cc (main): Fix bug in one of the 2004-11-19 commits.
2858 Avoid referring to the theLog pointer before it is set.
2859
2860 2004-11-20 Max Bowsher <maxb@ukf.net>
2861
2862 * res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
2863 Re-layout the radio buttons.
2864
2865 2004-11-20 Max Bowsher <maxb@ukf.net>
2866
2867 Repair the broken detection of wrongly-sized package files.
2868
2869 * download.cc (validateCachedPackage): Make static, since not used
2870 elsewhere. Improve logging. Migrate file-size tests to here, alongside
2871 the MD5 tests.
2872 (check_for_cached): Remove broken testing of file-size, now covered by
2873 the above. Code cleanups.
2874
2875 2004-11-19 Max Bowsher <maxb@ukf.net>
2876
2877 * package_version.cc (dumpAndList): Make dependencies much more
2878 readable in full log output.
2879
2880 2004-11-19 Max Bowsher <maxb@ukf.net>
2881
2882 * proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
2883 block, since allowing exceptions to unwind into the guts of Windows is
2884 quite disasterous.
2885
2886 2004-11-19 Max Bowsher <maxb@ukf.net>
2887
2888 * main.cc (main): Move option parsing code earlier - it must execute
2889 before any significant object creations, which might test options in
2890 their initialization.
2891
2892 2004-11-19 Max Bowsher <maxb@ukf.net>
2893
2894 * main.cc (main): Remove some junk code - either commented out, or
2895 contained within unreachable preprocessor conditional sections.
2896
2897 2004-11-19 Max Bowsher <maxb@ukf.net>
2898
2899 * install.cc (Installer::installOneSource): Avoid leaking the open
2900 file handles of every tarball that is installed.
2901
2902 2004-11-19 Max Bowsher <maxb@ukf.net>
2903
2904 * package_source.h (packagesource::Canonical, packagesource::Base)
2905 (packagesource::Filename): Add "const" specification to accessor
2906 methods.
2907
2908 2004-11-18 Max Bowsher <maxb@ukf.net>
2909
2910 * archive.h (archive::~archive): Define a pure virtual destructor to
2911 enforce the abstract nature of this class.
2912 * archive.cc (archive::~archive): Pure virtual destructors require an
2913 implementation! Add one.
2914 * io_stream.h (io_stream::destroyed): Remove this severely
2915 brain-damaged implementation of a weakly-enforced abstract class.
2916 The pure virtual destructor was strongly enforcing the abstract nature
2917 anyway.
2918 * io_stream.cc (io_stream::~io_stream): Empty out horribly pointless
2919 code from the pure virtual destructor.
2920 * archive_tar.cc (archive_tar::~archive_tar): Remove all
2921 reference to the removed "destroyed" member.
2922 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2923 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2924 * compress_gz.cc (compress_gz::~compress_gz): Ditto.
2925 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Ditto.
2926 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2927 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
2928
2929 2004-11-17 Max Bowsher <maxb@ukf.net>
2930
2931 * mount.cc (create_mount): Fix operator precedence error introduced in
2932 first 2004-11-11 commit - warned of by gcc 3.3.3 but not 3.4.1 !
2933
2934 2004-11-13 Max Bowsher <maxb@ukf.net>
2935
2936 Miscellaneous cleanup.
2937
2938 * geturl.cc (getUrlToStream): Make static.
2939 * geturl.h (getUrlToStream): Remove declaration.
2940
2941 * geturl.cc, geturl.h, netio.cc, netio.h, nio-ftp.cc, nio-ftp.h,
2942 nio-http.cc, nio-http.h:
2943 Remove unused "allow_ftp_auth" flag throughout.
2944
2945 2004-11-11 Max Bowsher <maxb@ukf.net>
2946
2947 * libmd5-rfc: New directory, to hold code imported from the libmd5-rfc
2948 project in a clearly delineated fashion.
2949 * libmd5-rfc/README: New file.
2950 * md5.c, md5.h: Delete...
2951 * libmd5-rfc/md5.c, libmd5-rfc/md5.h: ...and replace with pristine
2952 versions from upstream (only change is restoration of upstream CVS
2953 keyword expansions).
2954 * libmd5-rfc/md5main.c: New file.
2955 * Makefile.ami (setup_SOURCES): Edit file paths.
2956 * download.cc, install.cc: Edit include paths.
2957
2958 2004-11-11 Max Bowsher <maxb@ukf.net>
2959
2960 * dialog.cc (fatal): Make capable of handling a passed-in error code,
2961 as an alternative to calling GetLastError().
2962 * dialog.h (fatal): Adjust prototype as above.
2963 * mount.cc (create_mount): Use the above to correctly report errors.
2964
2965 2004-10-28 Max Bowsher <maxb@ukf.net>
2966
2967 * LogFile.cc (LogFile::getFileName), splash.cc (SplashPage::Create),
2968 threebar.cc (ThreeBarProgressPage::SetBar2):
2969 Migrate from cistring and string resources
2970 to String and string literals.
2971 * localdir.cc: Remove unneeded #include of "cistring.h".
2972 * cistring.cc, cistring.h: Remove this now-redundant class.
2973 * Makefile.am: Remove mention of the above removed files.
2974 * res.rc, resource.h: Remove obsolete strings and IDs, both those
2975 obseleted by and obselete before the above changes.
2976 * res.rc: Merge the 2 adjacent STRINGTABLEs.
2977
2978 2004-10-27 Max Bowsher <maxb@ukf.net>
2979
2980 * Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.
2981
2982 2004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
2983
2984 * package_source.cc (packagesource::set_canonical):
2985 Fix one-off in 'base' when ini is in same dir as package.
2986
2987 2004-10-25 Max Bowsher <maxb@ukf.net>
2988
2989 * main.cc (next_dialog): Remove this legacy global variable.
2990 * download.cc (do_download_thread): Return a value instead of setting
2991 a global variable, then returning void.
2992 (do_download_reflector): Look for the next dialog code as a return
2993 value instead of a global variable.
2994
2995 2004-10-25 Max Bowsher <maxb@ukf.net>
2996
2997 * port.h: Remove this redundant file - all contained definitions are
2998 duplicated in "win32.h".
2999 * Makefile.am, UserSetting.cc, UserSettings.cc, archive.cc,
3000 archive_tar.cc, archive_tar_file.cc, choose.cc, compress.cc,
3001 compress_bz.cc, compress_gz.cc, desktop.cc, find.cc, fromcwd.cc,
3002 iniparse.y, install.cc, io_stream_cygfile.cc, io_stream_file.cc,
3003 main.cc, netio.cc, site.cc, version.cc:
3004 Remove all references to "port.h".
3005
3006 2004-10-25 Max Bowsher <maxb@ukf.net>
3007
3008 Fix compilation with w32api 3.1 and later.
3009
3010 * ControlAdjuster.h, RECTWrapper.h, cistring.h, propsheet.h,
3011 window.cc, window.h: Include "win32.h" not <windows.h> directly.
3012 * win32.h (WINBASEAPI): Define to empty string.
3013
3014 2004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3015
3016 * script.cc (run): Kill stdin when running scripts.
3017
3018 2004-09-01 Max Bowsher <maxb@ukf.net>
3019
3020 * Makefile.am: Oops. Unwanted keyword expansion ate the code of the
3021 previous commit. Restore the code, escaped to not look like a keyword.
3022
3023 2004-09-01 Max Bowsher <maxb@ukf.net>
3024
3025 * Makefile.am: Simplify the shell incantation for getting the revision
3026 of ChangeLog from grep-and-sed to just sed.
3027
3028 2004-08-31 Max Bowsher <maxb@ukf.net>
3029
3030 Attain GCC 3.4 compatibility.
3031
3032 * PackageSpecification.h (PackageSpecification): Make the
3033 unnecessarily private copy-constructor public.
3034
3035 2004-08-30 Max Bowsher <maxb@ukf.net>
3036
3037 Rework the implementation of not including -Werror for specific files,
3038 to a way that does not require hardcoding modified automake output back
3039 into its input.
3040
3041 * Makefile.am (AM_CXXFLAGS, BASECXXFLAGS): Seperate out -Werror.
3042 (autoload.o): Drop this rule, -finline-functions is no longer required
3043 and -Werror is acceptable here now we have __attribute__ ((used)).
3044 (WARNONLY_CFLAGS, inilex.o): Drop these.
3045 (EXTRA_PROGRAMS): Add a fake "warnonly" program.
3046 (warnonly_CXXFLAGS): Set to the $(BASECXXFLAGS).
3047 (warnonly_SOURCES): Set to "inilex.cc".
3048 (EXTRA_setup_SOURCES): Set to $(warnonly_SOURCES).
3049 (setup_SOURCES): Remove "inilex.cc".
3050 (setup_LDADD): Add "warnonly-inilex.o".
3051
3052 2004-08-30 Max Bowsher <maxb@ukf.net>
3053
3054 Move closer to GCC 3.4 compatibility.
3055
3056 * IOStreamProvider.h, io_stream_cygfile.cc, io_stream_cygfile.h,
3057 io_stream_file.cc: Do not incorrectly use "enum" after it has been
3058 hidden inside a typedef.
3059 * archive.h: In "virtual func() = 0;", the 0 is a language construct,
3060 not some symbol that might evaluate to 0, and gcc 3.4 enforces this.
3061 * autoload.c (DllInfo.name): Silence warning by making const.
3062 (DLL, autoload_common): __attribute__ ((used)) is now required to
3063 prevent gcc being over-eager in it's optimization, and removing these
3064 seemingly-unused (used only from assembly) functions.
3065 Silences some warnings, too.
3066 * Makefile.am (AM_CXXFLAGS, AM_CFLAGS): The options
3067 -Wstrict-prototypes -Wmissing-prototypes do not apply to C++ and
3068 g++ 3.4 complains about them.
3069
3070 2004-08-29 Max Bowsher <maxb@ukf.net>
3071
3072 * Exception.h: Reformatting, #include more, remove incorrect and
3073 less-than-useful comments.
3074 (TOPLEVEL_CATCH): New preprocessor macro.
3075
3076 * LogFile.cc (LogFile::operator()): Throw an exception object, not a
3077 char* string.
3078
3079 Wrap the top-level of each thread (including the main thread) in a
3080 try...catch block, in order to display a useful error message if an
3081 exception is not caught.
3082 * download.cc (do_download_reflector): Here ...
3083 * ini.cc (do_ini_thread_reflector): ... and here ...
3084 * install.cc (do_install_reflector: ... and here ...
3085 * main.cc (main): ... and here ...
3086 * postinstall.cc (do_postinstall_thread): ... and here ...
3087 * site.cc (do_download_site_info_thread): ... and here!
3088
3089 * msg.h: Include a missing header requirement.
3090 * res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
3091 New strings.
3092 * resource.h (IDS_UNCAUGHT_EXCEPTION)
3093 (IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.
3094
3095 2004-08-28 Max Bowsher <maxb@ukf.net>
3096
3097 * res.rc (IDS_WINDOW_INIT_BADMSG): New string.
3098 * resource.h (IDS_WINDOW_INIT_BADMSG): New string resource ID.
3099 * window.cc (Window::FirstWindowProcReflector): Convert an abort()
3100 into a descriptive error.
3101
3102 2004-08-24 Max Bowsher <maxb@ukf.net>
3103
3104 The Doug Lee replacement malloc was no longer hooked up with the
3105 buildsystem in any way. Pruning the remaining unused file.
3106
3107 * dlmalloc.c: Removed.
3108
3109 2004-08-18 Max Bowsher <maxb@ukf.net>
3110
3111 "librsync is not wire-compatible with rsync 2.x, and is not likely
3112 to be in the future." -- librsync.sourceforge.net
3113
3114 So, it is of no practical use to setup. Therefore, removing all
3115 rsync related files and code from setup.
3116
3117 * rsync: Directory removed.
3118 * Makefile.am: Remove rsync support from the buildsystem.
3119 * configure.in: Ditto.
3120 * README: Since it seems vanishingly unlikely that it will ever happen,
3121 remove rsync support from the wishlist.
3122 * io_stream_rsync.cc: Remove.
3123 * io_stream_rsync.h: Remove.
3124
3125 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3126
3127 * package_meta.cc (packagemeta::set_requirements): fix problem with
3128 libpcre0 not being pulled in automatically.
3129
3130 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3131
3132 * IniDBBuilderPackage.cc (dumpAndList):
3133 Move out to packageversion for reuse.
3134 * package_meta.cc (packagemeta::logAllVersions): log dependencies.
3135 * package_version.cc (packageversion::depends):
3136 provide a const accessor.
3137 (dumpAndList): Moved from INIDBBuilder.cc.
3138 * package_version.h: declare new method and function.
3139
3140 2003-12-21 Robert Collins <rbtcollins@hotmail.com>
3141
3142 * main.cc (main): Update to head libgetopt++ syntax.
3143
3144 2003-11-2 Robert Collins <rbtcollins@hotmail.com>
3145
3146 * ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
3147 CP_CENTERED.
3148 * ControlAdjuster.cc: Ditto.
3149
3150 2003-10-31 Frank Richter <frichter@gmx.li>
3151
3152 * localdir.cc (OnNext): When SelectDirectoryA() fails, display a
3153 message with the error returned from the system instead of just
3154 'could not change dir'. Also, offer the user to 'Retry', 'Ignore' the
3155 error or 'Abort' the directory change.
3156
3157 2003-10-31 Frank Richter <frichter@gmx.li>
3158
3159 * propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
3160 window gets minimized. Otherwise some glitches (e.g. wrong child
3161 sizes) occur.
3162 Added support for WM_GETMINMAXINFO. Prevents the property sheet from
3163 getting smaller than the original size.
3164
3165 2003-11-1 Robert Collins <rbtcollins@hotmail.com>
3166
3167 * ControlAdjuster.h (ControlDimension): Add.
3168 (ControlAdjuster): Factor adjust functionality into ControlInfo.
3169 * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
3170 (ControlAdjuster::ControlInfo::adjust): Ditto.
3171
3172 2003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3173
3174 * ControlAdjuster.h (ControlPosition): New enum type.
3175 (ControlInfo::horizontalPos, ControlInfo::verticalPos): New
3176 instance variables.
3177 (ControlInfo::anchorLeft, ControlInfo::anchorTop,
3178 ControlInfo::anchorRight, ControlInfo::anchorBottom): Remove.
3179 * ControlAdjuster.cc (ControlAdjuster::AdjustControls): Switch to
3180 using position specifiers instead of anchors.
3181 * choose.cc (ChooserControlsInfo): Ditto.
3182 * proppage.cc (DefaultControlsInfo): Ditto.
3183 * propsheet.cc (PropSheetControlsInfo): Ditto.
3184 * site.cc (SiteControlsInfo): Position specifiers for site
3185 selection dialog controls.
3186 * threebar.cc (ThreeBarControlsInfo): Position specifiers for
3187 progress dialog controls.
3188
3189 2003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
3190
3191 * main.cc (HelpOption): New instance.
3192 (main): Added help command line option handling.
3193 * localdir.cc (LocalDirOption): New instance.
3194 (LocalDirSetting::load): allow setting localdir from command line.
3195
3196 2003-10-16 Frank Richter <frichter@gmx.li>
3197
3198 * ControlAdjuster.cc: New file, helper to move elements of a dialog
3199 along when the it's resized.
3200 * ControlAdjuster.h: Ditto.
3201 * Makefile.am: Add new source files.
3202 * proppage.cc (PropertyPage::DialogProc): Adjust some common
3203 controls (Cygwin icon top right, separator below) when a page is
3204 resized.
3205 (PropertyPage::PropertyPage): Dito.
3206 * propsheet.cc (IsDialog): New. Test whether a window is a dialog.
3207 Used internally by resize logic.
3208 (EnumPages): New. Used internally by resize logic: resizes the
3209 property sheet's individual pages.
3210 (PropSheetWndProc): New. Hook for the propery sheet window proc.
3211 (PropSheetProc): More style tweaks, add maximize box and thick border
3212 as well. Hook into the property sheet's window proc.
3213 (PropSheet::AdjustPageSize): New. Adjust the metrics of a single page
3214 to fit nicely into the property sheet. Part of resize logic.
3215 * res.rc (All dialogs): The top-right Cygwin icon and top separator
3216 now have IDs distinct from IDC_STATIC, so their metrics can be
3217 adjusted upon a resize. Also, all those Cygwin icons are at the exact
3218 same spot now.
3219 * choose.cc (ChooserPage::ChooserPage): Now the controls on the
3220 chooser page move/size when the page size is changed.
3221 * choose.h: Dito.
3222
3223 2003-10-23 Jerry D. Hedden <jerry@hedden.us>
3224
3225 * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
3226 (ConnectionSetting::save): Save proxy settings.
3227
3228 2003-10-07 Robert Collins <rbtcollins@hotmail.com>
3229
3230 * proppage.h (PropertyPage::wantsActivation): const correctness fix.
3231
3232 2003-08-19 Max Bowsher <maxb@ukf.net>
3233
3234 * win32.h: Define NOMINMAX only if not already defined - because
3235 libstdc++-v3 3.3.1 defines NOMINMAX itself.
3236
3237 2003-08-03 Max Bowsher <maxb@ukf.net>
3238
3239 * ChangeLog: Fix broken line-wrapping throughout. Clarify that
3240 "Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.
3241
3242 2003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3243
3244 * propsheet.cc (Copyright): Update copyright dates.
3245 (PropSheet::PropSheet): Remove NumPropPages initialization.
3246 (PropSheet::CreatePages): Use PropertyPages.size() instead of
3247 NumPropPages.
3248 (PropSheet::Create): Ditto.
3249 (PropSheet::AddPage): Change to use new PropertyPages std::vector<>.
3250 * propsheet.h (Copyright): Update copyright dates.
3251 (File Scope): Include <vector>.
3252 (PropSheet::PropertyPages): Change from array to vector<>.
3253 (PropSheet::NumPropPages): Remove.
3254
3255 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3256
3257 Changes modified by Max Bowsher <maxb@ukf.net>
3258 * splash.cc (Copyright): Update copyright dates.
3259 (SplashPage::OnInit): Remove call to SetDlgItemFont(). Now handled in
3260 base class.
3261 * proppage.h (PropertyPage::setTitleFont): Declare.
3262 * proppage.cc (Copyright): Update copyright dates.
3263 (PropertyPage::DialogProc WM_INITDIALOG): Move all font setting code,
3264 including that from splash.cc into new function...
3265 (PropertyPage::setTitleFont): Create, using moved code. Change font
3266 "MS Sans Serif" to "MS Shell Dlg" in line with recent res.rc change.
3267 Set font for IDC_STATIC_WELCOME_TITLE here, to allow easy re-use of
3268 style for future "Finished" page.
3269
3270 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3271
3272 * propsheet.cc: Include "resource.h".
3273 (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
3274
3275 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3276
3277 * proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.
3278
3279 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3280
3281 * proppage.h (Copyright): Update copyright dates.
3282 (PropertyPage): Document OnNext and OnBack.
3283
3284 2003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3285
3286 * proppage.cc (PropertyPage::Create): Use more self-documenting
3287 MAKEINTRESOURCE() instead of cast to LPCSTR.
3288
3289 2003-07-31 Robert Collins <rbtcollins@hotmail.com>
3290
3291 * README: Mark completed items complete.
3292
3293 2003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
3294
3295 * main.cc (set_default_sec): Set token owner from token user.
3296 Always try to set the token primary group to Users or Admins.
3297
3298 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3299
3300 * String++.h (String::replace): New instance functions.
3301 * String++.cc (String::replace): Implement.
3302 * filemanip.cc (backslash): Change to use String::replace.
3303 * desktop.cc (make_cygwin_bat): Escape '%' in path.
3304
3305 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3306
3307 * String++.h (TOSTRING): New macro.
3308 * UserSettings.cc (UserSettings::deRegisterSetting): Fix
3309 erroneous __LINE__/__FILE__ usage.
3310 * download.cc (validateCachedPackage, check_for_cached): Ditto.
3311 * geturl.cc (getUrlToStream): Ditto.
3312 * install.cc (md5_one): Ditto.
3313
3314 2003-07-30 Max Bowsher <maxb@ukf.net>
3315
3316 * ini.cc (do_ini_thread): Return bool.
3317 (do_ini_thread_reflector): Put returned bool in lParam.
3318 * threebar.cc (WM_APP_SETUP_INI_DOWNLOAD_COMPLETE): Rework for new
3319 meaning of lParam. Replace erroneous use of do_fromcwd with
3320 SetActivePageByID (IDD_SOURCE).
3321
3322 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3323
3324 * ConnectionSetting.cc: New file, persist connection type selection.
3325 * ConnectionSetting.h: Ditto.
3326 * net.cc: Hold a ConnectionSetting instance to trigger the logic.
3327 (NetPage::OnInit): Don't force net_method to any value.
3328 * Makefile.am: Add new source files.
3329
3330 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3331
3332 * SourceSetting.cc: New file, persist source selection.
3333 * SourceSetting.h: Ditto.
3334 * source.cc: Hold a Source setting instance to trigger the logic.
3335 * Makefile.am: Add new source files.
3336
3337 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3338
3339 * UserSettings.h (UserSettings::settingFileForLoad): Extracted method
3340 from LocalDirSetting::load().
3341 * UserSettings.cc (UserSettings::settingFileForLoad): Ditto.
3342 * UserSettings.h (UserSettings::settingFileForSave): Extracted method
3343 from LocalDirSetting::save().
3344 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
3345 * localdir.cc (LocalDirSetting::load): Extract location logic to
3346 UserSettings.
3347 (LocalDirSetting::save): Extract location logic to UserSettings.
3348 * site.cc (SiteSetting::getSavedSites): Use
3349 UserSettings::settingFileForLoad.
3350 (SiteSetting::save): Use UserSettings::settingFileForSave.
3351
3352 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3353
3354 * PickView.cc: Adjust ::GetClientRect(..) to the inherited one
3355 throughout.
3356
3357 2003-07-29 Max Bowsher <maxb@ukf.net>
3358
3359 Based on a patch by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
3360 * AntiVirus.cc (AntiVirusPage::wantsActivation): Define.
3361 * AntiVirus.h (AntiVirusPage::wantsActivation): Declare.
3362 * localdir.cc (LocalDirPage::OnBack): Remove logic subsumed by
3363 RootPage::wantsActivation.
3364 * proppage.cc (PropertyPage::DialogProc): Call wantsActivation(),
3365 and skip to next page in sequence if activation is refused.
3366 * proppage.h (PropertyPage::wantsActivation): Default implementation.
3367 * root.cc (RootPage::wantsActivation): Define.
3368 * root.h (RootPage::wantsActivation): Declare.
3369 * source.cc: Don't include "AntiVirus.h".
3370 (SourcePage::OnNext): Remove logic subsumed by
3371 RootPage::wantsActivation.
3372 (SourcePage::OnBack): Remove logic subsumed by
3373 AntiVirusPage::wantsActivation.
3374 * splash.cc: Don't include "AntiVirus.h" or "dialog.h".
3375 (SplashPage::OnNext): Remove - subsumed by
3376 AntiVirusPage::wantsActivation.
3377 * splash.h (SplashPage::OnNext): Remove declaration.
3378
3379 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3380
3381 * PickView.h (PickView::refresh): New method.
3382 * PickView.cc (PickView::refresh): Extracted from various
3383 ChooserPage callers.
3384 * choose.cc: Use PickView::refresh wherever possible.
3385
3386 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3387
3388 * choose.h (ChooserPage::createListView): Remove last parameter.
3389 (ChooserPage::getDefaultListViewSize): Extracted method.
3390 * choose.cc (ChooserPage::createListView): Remove last parameter.
3391 (ChooserPage::getDefaultListViewSize): Extracted method.
3392
3393 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3394
3395 * choose.cc (ChooserPage::createListView): Remove unneeded
3396 parameter.
3397 * choose.h: Ditto.
3398
3399 2003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3400
3401 * dialog.h (do_fromcwd): Change function declaration.
3402 * fromcwd.cc (do_fromcwd): Change return type to bool. Eliminate
3403 use of next_dialog, return true or false instead.
3404 * localdir.cc (LocalDirPage::OnNext): Use do_fromcwd()'s return
3405 value instead of next_dialog.
3406
3407 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3408
3409 * package_db.h (packagedb::fillMissingCategory): Move from ChooserPage.
3410 * choose.h (ChooserPage::fillMissingCategory): Delete.
3411 * package_db.cc (packagedb::fillMissingCategory): Move from ChooserPage.
3412 * choose.cc (ChooserPage::fillMissingCategory): Delete and adjust
3413 callers.
3414
3415 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3416
3417 * PickView.h (CATEGORY_EXPANDED): Move from choose.h
3418 (CATEGORY_COLLAPSED): Move from choose.cc.
3419 (PickView::setViewMode): Move from ChooserPage.
3420 * choose.h (CATEGORY_EXPANDED): Delete.
3421 (CATEGORY_COLLAPSED): Delete.
3422 (ChooserPage::setViewMode): Delete.
3423 * PickView.cc (PickView::setViewMode): Move from ChooserPage.
3424 * chooser.cc (ChooserPage::setViewMode): Delete, and adjust callers
3425 throughout.
3426
3427 2003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3428
3429 * AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
3430 page to display next, since it follows in the default page ordering
3431 anyway.
3432
3433 2003-07-28 Max Bowsher <maxb@ukf.net>
3434
3435 * dialog.h: (NEXT): Remove obsolete macro.
3436 * site.cc (save_dialog): Remove use of NEXT(), and non-functional
3437 unnecessary error handler.
3438
3439 2003-07-28 Robert Collins <rbtcollins@hotmail.com>
3440
3441 * package_meta.h (packagemeta::addToCategoryAll): Declare.
3442 * package_meta.cc (packagemeta::addToCategoryAll): New method,
3443 separated to allow clear iteration.
3444 * choose.cc (ChooserPage::fillMissingCategory): BUGFIX: "all" is
3445 meant to be added unconditionally.
3446
3447 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3448
3449 * Generic.h: New file, home for generic programming tools.
3450 (visit_if): Move here from package_meta.cc.
3451 Adjust to be fully parameterised.
3452 * package_meta.h (packagemeta::hasNoCategories): Query for generic
3453 programming.
3454 (packagemeta::setDefaultCategories): set categories for packages
3455 with none.
3456 * package_meta.cc: Move visit_if out. Adjust users for
3457 full paramterised operation.
3458 (packagemeta::hasNoCategories): Implement.
3459 (packagemeta::setDefaultCategories): Implement.
3460 * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to
3461 reduce duplicate code.
3462 (ChooserPage::setExistence): Delete.
3463 * choose.h (ChooserPage::setExistence): Rename to
3464 packagedb::setExistence.
3465 * package_db.h (packagedb::setExistence): Declare.
3466 * package_db.cc (packagedb::setExistence): Copy from choose.cc
3467
3468 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3469
3470 * localdir.h (LocalDirPage::OnInit): Remove.
3471 * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
3472 ::load().
3473 (LocalDirSetting::load): Copied from LocalDirPage::OnInit.
3474 * site.h (SitePage::OnInit): Remove.
3475 (SitePage::getSavedSites): New member, replaces get_saved_sites.
3476 (SitePage::registerSavedSite): New member, replaces
3477 register_saved_site.
3478 * site.cc (SitePage::OnInit): Move to SiteSetting::load().
3479 (SiteSetting::load): Copied from SitePage::OnInit.
3480 (SitePage::getSavedSites): Renamed from get_saved_sites.
3481 (SitePage::registerSavedSite): Renamed from register_saved_site.
3482 (do_download_site_info_thread): Don't look at the list size for
3483 determining if the download was successful.
3484
3485 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3486
3487 * choose.h (ChooserPage::setViewMode): Remove HWND from
3488 signature.
3489 (ChooserPage::defaultTrust): Ditto.
3490 Move to PickView.
3491 (ChooserPage::ifChecked): Use Window helper function
3492 IsButtonChecked.
3493 * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
3494 throughout.
3495 Update all callers with new signature.
3496 (ChooserPage::defaultTrust): Ditto.
3497 Move to PickView.
3498 * PickView.h (PickView::defaultTrust): Declare.
3499 * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.
3500
3501 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3502
3503 * PickView.h (PickView::lv): Eliminate.
3504 * PickView.cc (PickView::init): Replace use of lv with
3505 GetHWND().
3506 (PickView::list_click): Ditto.
3507 * choose.h (ChooserPage::lv): Eliminate.
3508 * choose.cc: Replace lv with chooser->GetHWND()
3509 throughout.
3510
3511 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3512
3513 * PickView.h (PickView::chooser): Eliminate.
3514 (PickView::list_vscroll): Make non-static.
3515 (PickView::list_hscroll): Ditto.
3516 (PickView::list_click): Ditto.
3517 (PickView::paint): Ditto.
3518 * PickView.cc (PickView::list_vscroll): Eliminate use
3519 of PickView::chooser.
3520 (PickView::list_hscroll): Ditto.
3521 (PickView::list_click): Ditto.
3522 (PickView::paint): Ditto.
3523 * choose.cc (Chooser::createListView): Eliminate use
3524 of PickView::chooser.
3525
3526 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3527
3528 * PickView.h (PickView): Inherit from Window.
3529 (PickView::RegisterWindows): Move from ChooserPage.
3530 (PickView::listview_proc): Likewise.
3531 (PickView::paint): Ditto.
3532 (PickView::list_click): Ditto.
3533 (PickView::list_hscroll): Ditto.
3534 (PickView::list_vscroll): Ditto.
3535 (PickView::lv): Ditto.
3536 (PickView::chooser): Ditto.
3537 (PickView::Create): Override Windows::Create as we migrate.
3538 (PickView::registerWindowClass): Renamed RegisterWindows.
3539 (PickView::WindowClassAtom): Prevent double registration.
3540 (PickView::init): Declare.
3541 * PickView.cc: Adjust for new inheritance.
3542 (PickView::RegisterWindows): Move from ChooserPage.
3543 (PickView::listview_proc): Likewise.
3544 (PickView::paint): Ditto.
3545 (PickView::list_click): Ditto.
3546 (PickView::list_hscroll): Ditto.
3547 (PickView::list_vscroll): Ditto.
3548 (PickView::lv): Ditto.
3549 (PickView::chooser): Ditto.
3550 (PickView::Create): Introduce stub.
3551 (PickView::RegisterWindows): Rename
3552 (PickView::init): Extracted from constructor to allow
3553 reordering.
3554 * chooser.h (ChooserPage::registerWindows): Rename to
3555 PickView::RegisterWindows.
3556 (ChooserPage::listview_proc): Likewise.
3557 (ChooserPage::paint): Ditto.
3558 (ChooserPage::list_click): Ditto.
3559 (ChooserPage::list_hscroll): Ditto.
3560 (ChooserPage::list_vscroll): Ditto.
3561 (ChooserPage::lv): Duplicate into PickView, observe
3562 as non-static.
3563 (ChooserPage::chooser): Ditto.
3564 * chooser.cc (ChooserPage::registerWindows): Delete.
3565 (ChooserPage::listview_proc): Ditto.
3566 (ChooserPage::paint): Ditto.
3567 (ChooserPage::list_click): Ditto.
3568 (ChooserPage::list_hscroll): Ditto.
3569 (ChooserPage::list_vscroll): Ditto.
3570 (ChooserPage::createListView): Create() on PickView.
3571 * window.h (Window::RegisterWindowClass): Make virtual
3572 to allow Create to become a Template Method, and rename
3573 to registerWindowClass as it's not static.
3574 * window.cc (Window::registerWindowClass): Ditto.
3575 (Window::FirstWindowProcReflector): BUGFIX: Set window
3576 handle to prevent races with the window procedure.
3577
3578 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3579
3580 * choose.cc (set_view_mode): Rename to ChooserPage::setViewMode.
3581 (default_trust): Rename to ChooserPage::defaultTrust.
3582 (fill_missing_category): Rename to ChooserPage::fillMissingCategory.
3583 (set_existence): Rename to ChooserPage::setExistence.
3584 (register_windows): Rename to ChooserPage::registerWindows.
3585 (listview_proc): Rename to ChooserPage::listview_proc.
3586 (paint): Rename to ChooserPage::paint.
3587 (list_click): Rename to ChooserPage::list_click.
3588 (list_hscroll): Rename to ChooserPage::list_hscroll.
3589 (list_vscroll): Rename to ChooserPage::list_vscroll.
3590 (lv): Rename to ChooserPage::lv.
3591 (chooser): Rename to ChooserPage::chooser.
3592 * choose.h (ChooserPage::setViewMode): Declare.
3593 (ChooserPage::defaultTrust): Declare.
3594 (ChooserPage::fillMissingCategory): Declare.
3595 (ChooserPage::setExistence): Declare.
3596 (ChooserPage::registerWindows): Declare.
3597 (ChooserPage::listview_proc): Declare.
3598 (ChooserPage::paint): Declare.
3599 (ChooserPage::list_click): Declare.
3600 (ChooserPage::list_hscroll): Declare.
3601 (ChooserPage::list_vscroll): Declare.
3602 (ChooserPage::lv): Declare.
3603 (ChooserPage::chooser): Declare.
3604
3605 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3606
3607 * choose.cc (create_listview): Use for_each instead of explicit
3608 iteration.
3609 (create_listview): Rename to ChooserPage::createListview.
3610 * package_meta.h (packagemeta::set_requirements): Explicitly separate
3611 the 1 and 2 parameter versions.
3612
3613 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3614
3615 * String++.h (String::operator !=): Declare for char * and String.
3616 * String++.cc (String::operator !=): Implement.
3617 * package_meta.cc(StringConcatenator): Move above all users.
3618 (_visit_if): Predicate support for visitors.
3619 (packagemeta::getReadableCategoryList): Refactor to use
3620 StringConcatenator with a predicate.
3621 * choose.h: Remove unneeded c++ guards.
3622
3623 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3624
3625 * choose.cc (scan_downloaded_files): Rename to
3626 packagemeta::ScanDownloadedFiles.
3627 (scanAVersion): Rename to packageversion::scan.
3628 (GetParentRect): Rename to ChooserPage::getParentRect.
3629 * choose.h (ChooserPage::getParentRect): Declare.
3630 * package_meta.h (packagemeta::ScanDownloadedFiles): Declare.
3631 * package_version.h (packageversion::scan): Declare.
3632 * package_version.cc (packageversion::scan): Move from choose.cc
3633 * package_meta.cc (packagemeta::ScanDownloadedFiles): Move from
3634 choose.cc
3635
3636 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3637
3638 * choose.cc (ChooserPage::OnNext): log before starting activity threads.
3639 (ChooserPage::OnInit): Remove temporary variable frame.
3640 (ChooserPage::setPrompt): Extract method from OnInit.
3641 (choose_inst_text): Remove unused variable.
3642 * choose.h(ChooserPage::setPrompt): Declare
3643 * res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present
3644 caption.
3645
3646 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3647
3648 Remove package specific code from choose.cc.
3649 Update copyrights where appropriate.
3650 * choose.cc(ChooserPage::OnNext): Extract logging to
3651 packagemeta::logSelectionStatus.
3652 * package_meta.cc(packagemeta::logSelectionStatus): Extract from
3653 ChooserPage::OnNext.
3654 (StringConcatenator): helper for logSelectionStatus.
3655 (action_caption): Make const.
3656 * package_meta.h(packagemeta): Declare logSelectionStatus.
3657 (packagemeta::action_caption): Make const.
3658 * package_version.cc(packageversion::sourcePackage): Make const.
3659 * package_version.h(packageversion::sourcePackage): Make const.
3660
3661 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3662
3663 * choose.cc: Update copyright.
3664 (ChooserPage::keepClicked): Extracted from OnMessageCmd.
3665 (ChooserPage::changeTrust): Ditto.
3666 * choose.h (ChooserPage): Declare keepClicked and changeTrust.
3667 (ChooserPage::ifChecked): Extracted from OnMessageCmd.
3668 * package_meta.h (SetRequirement): Adapter for visiting package
3669 collections.
3670
3671 2003-07-26 Max Bowsher <maxb@ukf.net>
3672
3673 * tests/.cvsignore: New file, listing Makefile.in.
3674
3675 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3676
3677 Save used local cache dir from initial run of setup, so the user doesn't
3678 need to retype it.
3679 * localdir.h (LocalDirSetting): UserSetting class for the local cache
3680 dir.
3681 * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and
3682 update callers.
3683
3684 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3685
3686 Save used site from initial run of setup, so the user doesn't need to
3687 retype it.
3688 * main.cc (main): Load and save all user settings.
3689 * site.cc (SiteSetting::save): Migrate logic from save_site_url.
3690 (SitePage::OnNext): Use ChosenSites.save() to remove uneeded
3691 save_site_url call.
3692 (save_site_url): Delete.
3693 * site.h (save_site_url): Remove declaration.
3694 * .cvsignore: Update autoconf generated files.
3695
3696 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3697
3698 * tests/Makefile.am: Driver for test suite.
3699 * tests/UserSettingTest.cc: Test UserSetting interface.
3700 * tests/UserSettingsTest.cc: Test UserSettings interface.
3701 * Makefile.am: Add the tests dir to recurse into.
3702 * configure.in: Ditto.
3703 * UserSetting.h: Add load and save methods to allow global
3704 serialisation.
3705 Add explicit copy and assignment operators to prevent synthetics.
3706 Make the constructor protected to prevent direct instantiation.
3707 * UserSettings.h (UserSettings::loadAllSettings): New method.
3708 (UserSettings::savedAllSettings): New method.
3709 * UserSettings.cc: Implement new methods.
3710 * site.cc: Implement stubs for new required UserSetting methods.
3711 * site.h (ChosenSite): Ditto.
3712 * bz2lib/: Ran automake.
3713 * zlib/: Ran automake.
3714
3715 2003-07-23 Max Bowsher <maxb@ukf.net>
3716
3717 * desktop.cc (DesktopSetupPage::OnBack): Remove obsolete use of NEXT().
3718 * root.cc (RootPage::OnNext): Ditto.
3719 (RootPage::OnBack): Ditto.
3720 * install.cc (do_install_thread): Remove obsolete use of next_dialog.
3721 * main.cc (main): Ditto.
3722 * postinstall.cc (do_postinstall_thread): Ditto.
3723
3724 2003-07-23 Max Bowsher <maxb@ukf.net>
3725
3726 * dialog.h (do_choose, do_desktop, do_local_dir, do_net, do_other)
3727 (do_root, do_site, do_source, do_splash): Remove declarations, since
3728 these functions no longer exist.
3729
3730 2003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3731
3732 * choose.cc (initialized): Remove obsolete file scope variable.
3733
3734 2003-07-18 Max Bowsher <maxb@ukf.net>
3735
3736 * res.rc: Make caption of every dialog page begin with "Cygwin Setup".
3737 This aids recognition when minimized.
3738 Prompted by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
3739
3740 2003-07-10 Jeremy White <jwhite@codeweavers.com>
3741
3742 * mount.cc, root.cc, site.cc: Make StringOptions required,
3743 thereby making --longopt <parm> behave as a newbie would expect.
3744
3745 2003-07-08 Max Bowsher <maxb@ukf.net>
3746
3747 * LogFile.h, cistring.h, dialog.h, diskfull.h, filemanip.h, geturl.h,
3748 hash.h, log.h, mkdir.h, mklink2.h, mount.h, msg.h, netio.h, nio-file.h,
3749 nio-ftp.h, nio-http.h, nio-ie5.h, port.h, simpsock.h, state.h,
3750 version.h: Add inclusion guard.
3751 * root.h: Standardize naming of inclusion guard.
3752
3753 2003-06-23 Max Bowsher <maxb@ukf.net>
3754
3755 * AntiVirus.h, Exception.h, FilterVisitor.h, FindVisitor.h,
3756 IOStreamProvider.h, IniDBBuilder.h, IniDBBuilderPackage.h,
3757 IniParseFeedback.h, IniParseFindVisitor.h, LogSingleton.h, MD5++.h,
3758 PackageSpecification.h, PackageTrust.h, PickCategoryLine.h, PickLine.h,
3759 PickPackageLine.h, PickView.h, RECTWrapper.h, ScanFindVisitor.h,
3760 String++.h, UserSetting.h, UserSettings.h, archive.h, archive_tar.h,
3761 category.h, choose.h, compress.h, compress_bz.h, compress_gz.h,
3762 cygpackage.h, desktop.h, download.h, find.h, ini.h, io_stream.h,
3763 io_stream_cygfile.h, io_stream_file.h, io_stream_memory.h,
3764 io_stream_rsync.h, localdir.h, net.h, package_db.h, package_meta.h,
3765 package_source.h, package_version.h, proppage.h, propsheet.h, script.h,
3766 site.h, source.h, splash.h, threebar.h, win32.h, window.h:
3767 Standardize naming and placement of inclusion guards.
3768
3769 2003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3770
3771 * res.rc (all dialogs): Change font from "MS Sans Serif" to
3772 "MS Shell Dlg".
3773
3774 2003-06-22 Max Bowsher <maxb@ukf.net>
3775
3776 * Makefile.am: Clarify comment.
3777 Derive AM_CFLAGS from AM_CXXFLAGS, rather than the other way around.
3778 (AM_CXXFLAGS): Remove -Wmissing-declarations - it is a C-only warning.
3779 (AM_CFLAGS): Add -Winline, and -Wmissing-declarations.
3780
3781 2003-06-22 Max Bowsher <maxb@ukf.net>
3782
3783 * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional.
3784
3785 2003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3786
3787 * window.h (SETUP_WINDOW_H): Rename multi-include guard.
3788 (Copyright): Update.
3789 (RECTWrapper): New forward declaration.
3790 (Window::Create): Move.
3791 (Window::MoveWindow): New overload declaration.
3792 * window.cc: (RECTWrapper.h) Include.
3793 (Copyright): Update.
3794 (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead
3795 of C-style casts.
3796 (Window::MoveWindow): New overload.
3797
3798 2003-05-31 Max Bowsher <maxb@ukf.net>
3799
3800 * res.rc: Resize title controls to fully fill available width.
3801
3802 2003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3803
3804 * RECTWrapper.h: New file.
3805
3806 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3807
3808 * script.cc (Script::extension): Extract method from Script::run.
3809 (Script::run): Extract extension generation to Script::extension.
3810 * script.h (Script::extension): Declare.
3811
3812 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3813
3814 * script.cc (run_script): Remove.
3815 (try_run_script): Inline method run_script.
3816 * script.h (run_script): Remove.
3817
3818 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3819
3820 * postinstall.cc (RunScript::operator()): Use new run syntax.
3821 * script.h (Script::run): Eliminate to_log parameter.
3822 * script.cc (Script::run): Ditto.
3823 (run_script): Use new run syntax.
3824
3825 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3826
3827 * script.cc (Script::run): Eliminate temp variable 'f2'.
3828 Rename temp variable 'f2' to 'windowsName' for increased clarity.
3829
3830 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3831
3832 * script.cc (Script::run): Eliminate temp variable 'fname'.
3833
3834 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3835
3836 * script.cc (Script::run): Eliminate temp variable 'dir'.
3837
3838 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3839
3840 * script.cc (run_script): Always pass TRUE to Script::run.
3841 * script.h (run_script): Remove optional to_log parameter.
3842
3843 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3844
3845 * script.cc (run_script): Move functionality into Script.
3846 (Script::run): Absorb run_script.
3847
3848 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3849
3850 * PickCategoryLine.cc (PickCategoryLine::click): Tell packagemeta we
3851 are about to perform a visit.
3852 * PickPackageLine.cc (PickPackageLine::click): Tell packagemeta we
3853 are about to perform a visit.
3854 * package_db.cc (packagedb::markUnVisited): Convenience wrapper -
3855 mark all packages as unvisited.
3856 * package_db.h (packagedb::markUnVisited): Declare.
3857 * package_meta.cc (packagemeta::PrepareForVisit): New static method
3858 to prepare for a loop-free visit.
3859 (packagemeta::packagemeta): Adjust for new member.
3860 (packagemeta::set_requirements): Only visit a node once.
3861 (packagemeta::visited): Get and Set methods for new member visited_.
3862 * package_meta.h (packagemeta::PrepareForVisit): Declare.
3863 (packagemeta::visited): Declare.
3864 (packagemeta::visited_): Declare.
3865
3866 2003-04-07 Max Bowsher <maxb@ukf.net>
3867
3868 * download.cc: Add command line option to suppress MD5 checks.
3869 (validateCachedPackage): Test option and possibly skip.
3870
3871 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3872
3873 Merge in setup-200303-troubleshooting fixes.
3874
3875 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3876
3877 * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code.
3878 (NTSecurity::setDefaultSecurity): Ditto.
3879
3880 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3881
3882 * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL
3883 buffer sizing.
3884
3885 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3886
3887 * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation.
3888
3889 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3890
3891 * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for
3892 auto_ptr use.
3893
3894 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3895
3896 * main.cc (NTSecurity::NoteFailedAPI): Helper function.
3897 Use throughout NTSecurity routines.
3898 (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage.
3899
3900 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3901
3902 * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining
3903 active code.
3904
3905 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3906
3907 * main.cc (NTSecurity::GroupInfo): Extract group query code.
3908 (NTSecurity::setDefaultDACL): Disable ~ 50% of code.
3909
3910 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3911
3912 * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security
3913 code.
3914
3915 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
3916
3917 * main.cc (NTSecurity::setDefaultSecurity): Remove double declaration of
3918 sz. User TokenGroupCollection to abstract token searching logic,
3919 eliminate isadmin and isuser temporary variables.
3920 (TokenGroupCollection): New class for querying token group information.
3921
3922 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
3923
3924 * main.cc (NTSecurity::setDefaultSecurity): Extract esid initialisation.
3925 Move local variables to just before first use.
3926 SetTokenInformationFailures where being handled inconsistently.
3927 Remove assignments from if statements.
3928 (NTSecurity::esid): Rename to everyOneSID.
3929 (NTSecurity::initialiseEveryOneSID): new method.
3930 (NTSecurity::setDefaultDACL): Extract method for default DACL logic.
3931
3932 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
3933
3934 * main.cc (SIDWrapper): Manage SID memory.
3935 (HANDLEWrapper): Likewise for HANDLES.
3936 (NTSecurity): Worker class for set_default_sec().
3937 (set_default_sec): Move body into NTSecurity::setDefaultSecurity().
3938 (NTSecurity::setDefaultSecurity): Eliminate goto out: via memory
3939 managing objects.
3940
3941 2003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3942
3943 * cygwin.ico: Added two new resolutions, 64x64 and 72x72.
3944
3945 2003-03-29 Robert Collins <rbtcollins@hotmail.com>
3946
3947 * GUIDELINES: New file documenting code guidelines.
3948
3949 2003-03-26 Max Bowsher <maxb@ukf.net>
3950
3951 * .cvsignore: Add cfgaux.
3952
3953 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
3954
3955 * package_version.cc (_defaultversion::accessible): Override and make
3956 always false.
3957 (_packageversion::accessible): Fix a couple of logic bugs resulting in
3958 incorrect trues.
3959 * package_version.h (_packageversion::accessible): Make virtual.
3960
3961 2003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3962
3963 * threebar.h (WM_APP_START_POSTINSTALL): New message.
3964 (WM_APP_POSTINSTALL_THREAD_COMPLETE): New message.
3965 * threebar.cc (ThreeBarProgressPage::OnMessageApp):
3966 Add handling for WM_APP_START_POSTINSTALL and
3967 WM_APP_POSTINSTALL_THREAD_COMPLETE.
3968 * install.cc (do_install_thread): Set next_dialog to
3969 IDD_S_POSTINSTALL.
3970 * desktop.cc (DesktopSetupPage::OnFinish): Move the
3971 do_postinstall call to ThreeBarProgressPage::OnMessageApp.
3972 * script.h (Script::fullName): New member function.
3973 (Script::run): New member function.
3974 (Script::ETCPostinstall): New static member constant.
3975 * script.cc (Script::fullName): Implement.
3976 (Script::run): Implement.
3977 (Script::ETCPostinstall): Define.
3978 (Script::isAScript): Use ETCPostinstall instead of a
3979 hardcoded string constant.
3980 (run): Enable "#if 0"'d code.
3981 * postinstall.cc (Progress): New extern variable.
3982 (RunFindVisitor::visitFile): Add script to vector
3983 instead of running.
3984 (RunFindVisitor::_scripts): New member variable.
3985 (RunScript): New helper class for use in for_each.
3986 (do_postinstall_thread): Rename do_postinstall to. Add
3987 Progress bar and text setting. Add package count.
3988 (do_postinstall_reflector): New static function.
3989 (do_postinstall): Rename to do_postinstall_thread.
3990 Create a thread instead.
3991
3992 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3993
3994 * script.cc (run): Add file_out parameter.
3995 Redirect output of subprocess to file, creating the
3996 path if necessary. Minimize the script window.
3997 (run_script): Add optional to_log boolean parameter.
3998 If to_log, redirect output to temporary file and then
3999 import it into LOG_BABBLE.
4000 (OutputLog): New helper class.
4001 (operator<<): New operation on OutputLog.
4002 * script.h (run_script): Add optional to_log parameter.
4003 * postinstall.cc (RunFindVisitor::visitFile): Instruct
4004 run_script() to log script output.
4005 (do_postinstall): Ditto.
4006
4007 2003-03-20 Robert Collins <rbtcollins@hotmail.com>
4008
4009 * package_meta.cc (packagemeta::set_action): The logic
4010 test for the default action was reversed.
4011
4012 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4013
4014 * postinstall.cc (do_postinstall): Filter out '*.done'.
4015 * FilterVisitor.h: New header file. Declare the
4016 FilterVisitor, Filter, and ExcludeNameFilter classes.
4017 * FilterVisitor.cc: New file. Implement FilterVisitor,
4018 Filter, and ExcludeNameFilter.
4019 * String++.h (String::matches): New instance function.
4020 * String++.cc (String::matches): Implement.
4021 (strmatch) Import and adapt for <buf,len> strings.
4022 * Makefile.am (setup_SOURCES): Add FilterVisitor.cc and
4023 FilterVisitor.h to value.
4024
4025 2002-03-18 Max Bowsher <maxb@ukf.net>
4026
4027 * LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess().
4028 Use passed exit_code even if been_here.
4029 Remove incorrect _CYGWIN_ preprocessor conditional.
4030
4031 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
4032
4033 * package_db.h (PackageDBConnectedIterator): Typedef
4034 for connected loop detection collection iterator.
4035 * package_db.cc (ConnectedLoopDetector): An
4036 implementation of R.E. Tarjans strongly connected
4037 set visitor algorithm.
4038 * postinstall.cc (do_postinstall): Use the new iterator
4039 for visiting postinstall scripts.
4040
4041 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
4042
4043 * install.cc: Introduce Installer class.
4044 (init_dialog): Rename to Installer::initDialog.
4045 (progress): Rename to Installer::progress.
4046 (standard_dirs): Rename to Installer::StandardDirs.
4047 (uninstall_one): Rename to Installer::uninstallOne.
4048 (replace_one): Rename to Installer::replaceOne.
4049 (log_ror_failure): Rename to
4050 Installer::replaceOnRebootFailed.
4051 (log_ror_success): Rename to
4052 Installer::replaceOnRebootSucceeded.
4053 (install_one_source): Rename to Installer::installOneSource.
4054 Note script files as they are installed.
4055 * package_version.cc (packageversion::addScript): Implement.
4056 (packageversion::scripts): Implement.
4057 * package_version.h (packageversion::addScript): Record the
4058 presence of a script.
4059 * script.h (Script): New class to track scripts.
4060 * postinstall.cc (do_postinstall): Iterate through the
4061 package listed scripts before searching for scripts.
4062 * String++.cc (String::substr): Second argument needed to
4063 be signed.
4064 * String++.h (String::substr): Second argument needed to
4065 be signed.
4066
4067 2003-03-16 Max Bowsher <maxb@ukf.net>
4068
4069 * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and
4070 autom4te.cache.
4071
4072 2003-03-16 Max Bowsher <maxb@ukf.net>
4073
4074 * UserSettings.cc (UserSettings::Instance): Remove premature return.
4075
4076 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4077
4078 * script.cc (run): Rename variable b to createSucceeded.
4079
4080 2003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4081
4082 * script.cc (run): Close unneeded handles.
4083
4084 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4085
4086 * configure: Remove.
4087 * aclocal.m4: Remove.
4088 * Makefile.in: Remove.
4089 * cfgaux: Remove.
4090 * cfgaux/compile: Remove.
4091 * cfgaux/config.guess: Remove.
4092 * cfgaux/config.sub: Remove.
4093 * cfgaux/depcomp: Remove.
4094 * cfgaux/install-sh: Remove.
4095 * cfgaux/ltmain.sh: Remove.
4096 * cfgaux/missing: Remove.
4097 * cfgaux/mkinstalldirs: Remove.
4098
4099 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4100
4101 * install.cc (replace_one): Clear Text3.
4102
4103 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4104
4105 * install.cc (install_one_source): Add logging for successful
4106 replace-on-reboot scheduling. Factor out duplicate code.
4107 Set rebootneeded on Win9x.
4108 (log_ror_failure): New static function.
4109 (log_ror_success): New static function.
4110
4111 2003-03-14 Robert Collins <rbtcollins@hotmail.com>
4112
4113 * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by
4114 Igor Pechtchanski <pechtcha@cs.nyu.edu>.
4115
4116 2003-03-13 Max Bowsher <maxb@ukf.net>
4117
4118 * Update included zlib to 1.1.4.
4119
4120 2003-03-13 Robert Collins <rbtcollins@hotmail.com>
4121
4122 * install.cc (do_install_thread): Use a query method rather than temp
4123 variable do_skip.
4124
4125 2003-03-09 Pavel Tsekov <ptsekov@gmx.net>
4126
4127 * install.cc (do_install_thread): Use IDS_SKIP_PACKAGE
4128 instead of IDS_CORRUPT_PACKAGE when asking the user to take
4129 action if the hash verification check fails for a source package.
4130 Do not increase the value of 'total_bytes' variable if the
4131 user chooses to skip over a package, which failed the hash
4132 verification.
4133
4134 2003-03-10 Max Bowsher <maxb@ukf.net>
4135
4136 * Makefile.am: Add foreign to AUTOMAKE_OPTIONS.
4137
4138 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4139
4140 * UserSettings.cc (UserSettings::init): Really initialize all members.
4141
4142 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4143
4144 * Exception.h: Add a logic error exception id.
4145 * Makefile.am: Add new sources.
4146 * UserSettings.cc: New file.
4147 * UserSettings.h: New file.
4148 * UserSetting.cc: New file.
4149 * UserSetting.h: New file.
4150 * site.h: Add a SiteSetting as example of a UserSetting.
4151 * site.cc (ChosenSites): Add a instance of SiteSetting to trigger
4152 registration.
4153
4154 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4155
4156 * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of
4157 lasterr.
4158 (compress_bz::error): Return lasterr which will indicate any error.
4159
4160 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4161
4162 * choose.h (ChooserPage): Override OnActivate.
4163 * choose.cc (ChooserPage::OnActivate): Refresh the current view when
4164 activating the dialog.
4165
4166 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4167
4168 * package_version.cc (_defaultversion::pick(bool)): Override this and
4169 do nothing.
4170 (packageversion::pick(bool): Use a mutator function rather than direct
4171 member access.
4172 * package_version.h (_packageversion::pick(bool)): Move method from
4173 _packageversion.
4174
4175 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4176
4177 * install.cc (install_one_source): Remove the MD5 verification
4178 code.
4179 Delay the creation of the package listing file.
4180 (do_install_thread): Check the hashes for packages which need
4181 to be installed before the uninstall step. Allow the user to
4182 skip over packages, which fail the hash verification.
4183 (md5_one): Define new function.
4184 * res.rc (IDS_SKIP_PACKAGE): New string resource.
4185 * resource.h (IDS_SKIP_PACKAGE): New macro definition.
4186
4187 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4188
4189 * Exception.h: Declare new constructor.
4190 (Exception::_message): Change the type from 'const char *' to
4191 'class String'.
4192 (Exception::~Exception): Implement destructor (make gcc shut up).
4193 * Exception.cc: Implement new constructor.
4194 (Exception::what): Use String::cstr_oneuse ().
4195 * download.cc (validateCachedPackage): Use the constructor, which
4196 takes String& as its second argument, when throwing objects
4197 of type Exception.
4198 (check_for_cached): Ditto.
4199 * install.cc (install_one_source): Ditto.
4200
4201 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4202
4203 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
4204 log filename to %s.
4205 (IDS_MISSING_LOG): New string resource.
4206 * resource.h (IDS_MISSING_LOG): New resource.
4207 * LogFile.cc (LogFile::exit): Pass log filename for
4208 LOG_BABBLE to note().
4209 (LogFile::getFileName): New function.
4210 * LogFile.h (LogFile::getFileName): New function.
4211
4212 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4213
4214 * String++.cc: Don't include concat.h.
4215 * Makefile.am: Remove concat.cc and concat.h references.
4216 * concat.h: Remove.
4217 * concat.cc: Remove.
4218
4219 2003-03-09 Max Bowsher <maxb@ukf.net>
4220
4221 * bootstrap.sh: Add sanity check of current directory.
4222 Recurse into libgetopt++ if needed.
4223
4224 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4225
4226 * Update readme of bugs and wishes.
4227
4228 2003-03-05 Max Bowsher <maxb@ukf.net>
4229
4230 * netio.cc (save_dialog): Allocate an empty string if the password is
4231 null, so that an empty password is accepted elsewhere in setup.
4232 (check_if_enable_ok): An empty password is OK.
4233
4234 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
4235
4236 * PickView.cc (PickView::views): Add two new views for Skipped
4237 packages and Installed Packages not requiring update.
4238 (PickView::set_headers () ): Ditto.
4239 (PickView::clear_view (void) ): Ditto.
4240 (PickView::views::caption () ): Add two new captions for the new
4241 views added for Skipped and Installed Packages.
4242 (PickView::scroll () ): Modify Scroll Bar property to Disable
4243 instead of disappearing when there is nothing to Scroll.
4244 * PickView.h: Add two new views for Skipped packages and Installed
4245 packages to public class view.
4246 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
4247 instead of disappearing when there is nothing to Scroll.
4248 (listview_proc () ): Ditto.
4249 (set_view_mode): Add two new views for Skipped Packages and Installed
4250 Packages not requiring update. Modify Scroll Bar property to Disable
4251 instead of disappearing when there is nothing to scroll.
4252 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
4253 Button and View Button Caption to make room for longer captions.
4254
4255 2003-03-04 Max Bowsher <maxb@ukf.net>
4256
4257 * compress_gz.cc (compress_gz::construct):
4258 Fix broken checkin dated 2002-07-03.
4259
4260 2003-02-28 Max Bowsher <maxb@ukf.net>
4261
4262 * main.cc (set_default_sec): Add logging.
4263
4264 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
4265
4266 * main.cc (set_default_dacl): Replace with set_default_sec.
4267 (set_default_sec): Attempt to change the default group to
4268 Users or Administrators if it is None, in addition to setting
4269 Everyone in the default DACL.
4270 (main): Call set_default_sec instead of set_default_dacl.
4271
4272 2003-01-31 Max Bowsher <maxb@ukf.net>
4273
4274 * install.cc (install_one_source): Fix spacing in log message.
4275
4276 2003-01-19 Max Bowsher <maxb@ukf.net>
4277
4278 * resource.h (IDC_CHOOSE_KEEP): Define.
4279 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
4280 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
4281 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
4282
4283 2003-01-15 Max Bowsher <maxb@ukf.net>
4284
4285 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
4286 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
4287 * proppage.h: Include "win32.h" instead of <windows.h>.
4288
4289 2003-01-15 Max Bowsher <maxb@ukf.net>
4290
4291 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
4292
4293 2002-12-11 Abraham Backus <abraham@backus.com>
4294
4295 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
4296 unless non-default.
4297
4298 2002-12-11 Max Bowsher <maxb@ukf.net>
4299
4300 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
4301 * package_version.cc: Ditto.
4302
4303 2002-09-22 Max Bowsher <maxb@ukf.net>
4304
4305 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
4306 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
4307 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
4308 * PickPackageLine.cc (PickPackageLine::paint): Change to use
4309 getReadableCategoryList.
4310 Fix x2 argument to IntersectClipRect.
4311
4312 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4313
4314 * window.h (Window::GetWindowRect): New method declaration.
4315 (Window::GetClientRect): Ditto.
4316 (Window::MoveWindow): Ditto.
4317 (Window::ScreenToClient): Ditto.
4318 * window.cc (REFLECTION_INFO): Remove.
4319 (ReflectionInfo): Remove.
4320 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
4321 of the horrid REFLECTION_INFO hack to hook the Window instance to the
4322 HWND instance.
4323 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
4324 available.
4325 (Window::Create): Change to use new WM_NCCREATE reflection procedure
4326 above.
4327 (Window::GetWindowRect): New method.
4328 (Window::GetClientRect): New method.
4329 (Window::MoveWindow): New method.
4330 (Window::CenterWindow): Use new methods, also specify "::" for some non-
4331 member functions with the same names.
4332 (Window::ScreenToClient): New method.
4333
4334 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4335
4336 * AntiVirus.cc: Change the short option again! It's now 'A'.
4337 * desktop.cc (etc_profile): Remove.
4338 (make_etc_profile): Remove.
4339 (uexists): Remove.
4340 (make_passwd_group): Remove.
4341 (do_desktop_setup): Don't call removed functions.
4342
4343 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4344
4345 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
4346 Marcel's patch.
4347
4348 2002-07-08 Marcel Telka <marcel@telka.sk>
4349
4350 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
4351 reply (code 227) to the PASV command.
4352
4353 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4354
4355 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
4356 Sort the packages db once all the new packages have been added.
4357 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
4358 Declare this.
4359
4360 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4361
4362 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
4363 * package_version.cc (processOneDependency): Return once selecting
4364 a package (bugfix to prevous rework).
4365 Log if the default trust fails the package specification.
4366
4367 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4368
4369 * package_meta.h (packagemeta::logAllVersions): Declare.
4370 (packagemeta::trustLabel): Ditto.
4371 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
4372 versions.
4373 * package_meta.cc (packagemeta::logAllVersions): Implement.
4374 (packagemeta::trustLabel): Ditto.
4375
4376 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4377
4378 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
4379
4380 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4381
4382 * AntiVirus.cc: New file.
4383 * AntiVirus.h: Ditto.
4384 * LogFile.cc: Include AntiVirus.h for class definition.
4385 (LogFile::exit): Trigger AntiVirus::AtExit().
4386 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
4387 * autoload.c: Declare Service Control Manager related API's.
4388 * main.cc: Include AntiVirus.h for class definition.
4389 (main): Add the AntiVirus page in.
4390 * res.rc: Define IDD_VIRUS.
4391 * resource.h: Define IDD_VIRUS related control ID's.
4392 * splash.h: Override OnNext.
4393 * splash.cc: Only show AntiVirus page when one has been detected.
4394 * source.cc: Ditto.
4395
4396 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4397
4398 * package_version.cc (DependencyProcessor): Create convenience class.
4399 (select): Extract version selection method.
4400 (processOneDependency): Check for a satisfactory trusted version
4401 first.
4402
4403 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4404
4405 * main.cc (main): Use the factory for LogFile.
4406 * String++.cc: Update to use sstream.
4407 (String::String): Use a ostringstream for libC++ 3.2.
4408 * LogFile.h (LogFile): Make createLogFile static.
4409
4410 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4411
4412 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
4413
4414 2002-11-04 Max Bowsher <maxb@ukf.net>
4415
4416 * Exception.h (Exception::what): Add throw() specification,
4417 to agree with libstdc++-v3.
4418 * Exception.cc (Exception::what): Ditto.
4419 * IniDBBuilderPackage.h: Add 'std::' where needed.
4420 * PickCategoryLine.h: Ditto.
4421 * category.h: Ditto.
4422 * package_db.h: Ditto.
4423 * package_meta.h: Ditto.
4424 * package_source.h: Ditto.
4425 * package_version.h: Ditto.
4426 * site.h: Ditto.
4427 * win32.h: Define NOMINMAX before including <windows.h>.
4428 * package_meta.cc: Add 'using namespace std;'.
4429 (packagemeta::set_requirements): Remove default parameter values
4430 from definition (gcc3 likes them only in declaration).
4431 * package_version.cc: Add 'using namespace std;'.
4432 (packageversion::set_requirements): Remove default parameter
4433 values from definition (gcc3 likes them only in declaration).
4434
4435 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4436
4437 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
4438 header includes it.
4439
4440 2002-11-04 Max Bowsher <maxb@ukf.net>
4441
4442 * compress_bz.h: #undef small before including bzlib.h - if we are
4443 going to hide the fact that we are _WIN32 from bzlib, then we need
4444 to #undef small for it as well (bad windows.h clash).
4445
4446 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4447
4448 * localdir.cc: Update the extern LogFile to be a pointer.
4449 (save_local_dir): Change . to -> for the above.
4450 * main.cc (theFile): Change from an instance to a pointer.
4451 (main): Change . to -> for the above.
4452
4453 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4454
4455 * LogFile.cc: use 'std::' where needed throughout.
4456 (LogFile::createLogFile): Implement a factory for LogFile.
4457 (LogFile::LogFile): Update for use with the factory, and to
4458 handle the latest g++ library changes.
4459 (LogFile::operator()): Ditto.
4460 (LogFile::endEntry()): Ditto.
4461 * LogFile.h: Ditto.
4462 * LogSingleton.cc: Ditto.
4463 * LogSingleton.h: Ditto.
4464
4465 2002-11-04 Max Bowsher <maxb@ukf.net>
4466
4467 * String++.h: Add 'std::' where needed.
4468
4469 2002-11-04 Max Bowsher <maxb@ukf.net>
4470
4471 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
4472 * IniParseFindVisitor.cc: Ditto.
4473 * LogFile.cc: Ditto.
4474 * LogSingleton.cc: Ditto.
4475 * PickView.cc: Ditto.
4476 * String++.cc: Ditto.
4477 * choose.cc: Ditto.
4478 * download.cc: Ditto.
4479 * find.cc: Ditto.
4480 * install.cc: Ditto.
4481 * io_stream.cc: Ditto.
4482 * io_stream_file.cc: Ditto.
4483 * package_db.cc: Ditto.
4484 * root.cc: Ditto.
4485 * site.cc: Ditto.
4486
4487 2002-11-04 Max Bowsher <maxb@ukf.net>
4488
4489 * LogSingleton.h: Add 'std::' where needed.
4490
4491 2002-11-04 Max Bowsher <maxb@ukf.net>
4492
4493 * archive_tar_file.cc: Include <algorithm>.
4494 Change min(a,b) to std::min(a,b)
4495 * compress_bz.cc: Ditto.
4496 * compress_gz.cc: Ditto.
4497
4498 2002-11-04 Max Bowsher <maxb@ukf.net>
4499
4500 * res.rc: Change a #-comment (invalid) to a //-comment.
4501
4502 2002-11-04 Max Bowsher <maxb@ukf.net>
4503
4504 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
4505 (inilint_LDADD): Remove -lstd++.
4506 (setup_LDADD): Ditto.
4507
4508 2002-09-22 Max Bowsher <maxb@ukf.net>
4509
4510 * IniDBBuilderPackage.cc: Update DEBUG code to current class
4511 layout.
4512
4513 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
4514
4515 * choose.h: Add OnUnattended method.
4516 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
4517 control via command line options.
4518 (DesktopSetupPage::OnUnattended): Implement.
4519 (DesktopSetupPage::OnMessageApp): Implement.
4520 * desktop.h (DesktopSetupPage::OnUnattended): declare.
4521 (DesktopSetupPage::OnMessageApp): Ditto.
4522 * download.cc (do_download_thread): Support unattended mode.
4523 * install.cc (do_install_thread): Ditto.
4524 * localdir.h: Ditto.
4525 * main.cc (main): Ditto.
4526 * net.cc (NetPage::OnUnattended): Ditto.
4527 * net.h (NetPage::OnUnattended): Declare.
4528 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
4529 * proppage.h (PropertyPage::OnUnattended): Declare.
4530 * root.cc (RootPage::OnInit): Support unattended mode.
4531 (RootPage::OnUnattended): Implement.
4532 * root.h (RootPage::OnUnattended): Declare.
4533 * site.cc (register_saved_site): Extract Method from get_saved_sites.
4534 (get_saved_sites): Remove common code for adding a site.
4535 (SitePage::OnInit): Support unattended mode.
4536 (SitePage::OnUnattended): Implement.
4537 * site.h (SitePage::OnUnattended): Declare.
4538 * source.cc (SourcePage::OnActivate): Support unattended mode.
4539 (SourcePage::OnUnattended): Implement.
4540 * source.h (SourcePage::OnUnattended): Declare.
4541 * splash.h (SplashPage::OnUnattended): Declare.
4542 * state.cc (unattended_mode): Declare.
4543 * state.h (unattended_mode): Declare.
4544 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
4545
4546 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
4547
4548 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
4549
4550 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4551
4552 * package_version.cc (packageversion::sources): Implement this.
4553 * download.cc (do_download_thread): Support multiple files per package.
4554
4555 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4556
4557 * package_version.h (packageversion::sources): Support multiple files in
4558 a single package version.
4559 * package_version.cc (_packageversion::accessible): Ditto.
4560 (packageversion::source): Ditto.
4561
4562 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4563
4564 * iniparse.y: Implement support for multiple source files for a source
4565 package.
4566 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
4567 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
4568 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
4569 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
4570 stub as preparation.
4571
4572 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
4573
4574 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
4575 packages under all circumstances - slightly higher overheader, simpler
4576 code.
4577 * download.cc (do_download_thread): Correctly download source
4578 packages.
4579 * package_meta.cc (checkForInstalled): Remove.
4580 (checkForUpgradeable): Ditto.
4581 (checkForSatisfiable): Ditto.
4582 (processOneDependency): Ditto.
4583 (packagemeta::set_requirements): Move guts to packageversion.
4584 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
4585 (checkForUpgradeable): Ditto.
4586 (checkForSatisfiable): Ditto.
4587 (processOneDependency): Ditto.
4588 (packageversion::set_requirements): Ditto.
4589 * package_version.h (packageversion::set_requirements): Declare.
4590
4591 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
4592
4593 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
4594 (IniDBBuilder::buildBeginBinary): Implement.
4595 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
4596 (IniDBBuilder::buildBeginBinary): Ditto.
4597 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
4598 Implement.
4599 (IniDBBuilderPackage::buildBeginBinary): Ditto.
4600 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
4601 Declare.
4602 (IniDBBuilderPackage::buildBeginBinary): Ditto.
4603 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
4604 T_UNKNOWN.
4605 * iniparse.y: Full support for parsing a debian Sources file in-line in
4606 setup.ini.
4607 * package_version.cc (packageversion::binaries): Implement.
4608 * package_version.h (packageversion::binaries): Declare list of what
4609 packages are created from a given source package.
4610 (_packageversion::binaries): Ditto.
4611
4612 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
4613
4614 * iniparse.y: Add basis for support for parsing a debian Sources file.
4615 * inilex.l: Ditto.
4616
4617 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
4618
4619 Change custom container code for packagedb::packages to STL containers
4620 throughout.
4621 * IniDBBuilderPackage.cc: Ditto.
4622 * PickView.cc: Ditto.
4623 * choose.cc: Ditto.
4624 * desktop.cc: Ditto.
4625 * download.cc: Ditto.
4626 * install.cc: Ditto.
4627 * package_db.cc: Ditto.
4628 * package_db.h: Ditto.
4629 * Makefile.am: Remove list.h references.
4630 * list.h: Remove.
4631
4632 2002-07-08 Max Bowsher <maxb@ukf.net>
4633
4634 * PickView.cc (PickView::PickView): Set font of package list header to
4635 the same as used in the rest of the package list.
4636
4637 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
4638
4639 * install.cc (NoReplaceOnReboot): New command line option to prevent
4640 replacing in use files.
4641 (install_one_source): Check the option and use it.
4642 * README: Update TODO lists.
4643
4644 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
4645
4646 * PickCategoryLine.cc: Change bucket to use STL container syntax
4647 throughout.
4648 (PickCategoryLine::paint): Use new Category type syntax.
4649 * PickCategoryLine.h: Use STL vectors rather than custom containers
4650 throughout.
4651 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
4652 Use new add_category syntax.
4653 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
4654 (PickView::insert_category): Ditto.
4655 (PickView::init_headers): Ditto.
4656 * category.cc: Trim obsolete code.
4657 * category.h: Replace interconnecting class with a typedef to
4658 facilitate leveraging STL maps.
4659 * choose.cc (fill_missing_category): Use updated pkg.add_category
4660 syntax.
4661 (default_trust): Use new Category type syntax.
4662 (set_view_mode): Ditto.
4663 (create_listview): Ditto.
4664 * package_db.cc (categories): Ditto.
4665 * package_db.h: Update headers list to include needed headers.
4666 (packagedb::categories): Replace custom list with STL map.
4667 * package_meta.cc: Use new Category type syntax throughout.
4668 (packagemeta::add_category): Implement new syntax.
4669 * package_meta.h: Remove commented out source.
4670 (packagemeta::add_category): Update syntax to decouple interface from
4671 packagedb.
4672
4673 2002-07-06 Christopher Faylor <cgf@redhat.com>
4674
4675 * site.cc (do_download_site_info_thread): Correct spelling error.
4676
4677 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
4678
4679 * PickCategoryLine.h: Include required header list.h.
4680 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
4681 containers for listing of packages per category and vice verca.
4682 * PickView.cc (PickView::insert_pkg): Ditto.
4683 (PickView::insert_category): Ditto.
4684 * String++.h (String::caseless): STL helper to allow trivial containers
4685 of Strings with case insensitive comparisons.
4686 * category.h: Adjust to use STL containers for listing of packages per
4687 category and vice verca.
4688 * choose.cc (fill_missing_category): Ditto.
4689 (default_trust): Ditto.
4690 (ChooserPage::OnNext): Ditto.
4691 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
4692 (packagemeta::packagemeta): Adjust for new category list name.
4693 (packagemeta::~packagemeta): Adjust to use STL containers for listing
4694 of packages per category and vice verca.
4695 (packagemeta::set_action): Ditto.
4696 * package_meta.h (CategoryPackage): Remove.
4697 (packagemeta): Adjust to use STL containers for listing of packages per
4698 category and vice verca.
4699
4700 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4701
4702 * io_stream.cc: Use STL containers rather than custom ones.
4703 (io_stream::registerProvider): Ditto.
4704 (findProvider): Ditto.
4705
4706 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4707
4708 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
4709 Use STL collections for download site collections.
4710 (IniDBBuilderPackage::add_correct_version): Ditto.
4711 (IniDBBuilderPackage::process_src): Ditto.
4712 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
4713 accessible() call to abstract package availability.
4714 * choose.cc (scanAVersion): Use STL collections for download site
4715 collections.
4716 * download.cc (check_for_cached): Ditto.
4717 (download_one): Ditto.
4718 * package_meta.cc (packagemeta::set_action): Use the packageversion
4719 accessible() call to abstract package availability.
4720 * package_source.h: Use STL containers rather than custom containers.
4721 (site): Create a == operator to allow STL container use.
4722 (packagesource::sites): Use STL containers rather than custom
4723 containers.
4724 * package_version.cc (_packageversion::accessible): Use STL containers
4725 for download site containers.
4726
4727 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4728
4729 * LogFile.cc: Use STL containers rather than custom containers.
4730 (filedef): Create == and < operators for STL use.
4731 (files): Convert to an STL set.
4732 (LogFile::setFile): Use STL operations on files.
4733 (LogFile::exit): Ditto.
4734
4735 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4736
4737 * ini.cc (do_remote_ini): Use STL collection for site collection.
4738 * site.cc: Include site.h first to ensure it's parsable standalone.
4739 Use STL algorithms.
4740 (site_list): Convert to an STL container.
4741 (all_site_list): Ditto.
4742 (site_list_type::site_list_type): Implement copy constructor.
4743 (site_list_type::operator=): Implement assignment operator.
4744 (site_list_type::operator ==): Implement.
4745 (site_list_type::operator <): Ditto.
4746 (save_dialog): Use STL collection calls for site collection.
4747 (save_site_url): Ditto.
4748 (get_site_list): Ditto.
4749 (get_saved_sites): Ditto.
4750 (do_download_site_info_thread): Ditto.
4751 (SitePage::OnNext): Ditto.
4752 (SitePage::PopulateListBox): Ditto.
4753 (SitePage::OnMessageCmd): Ditto.
4754 * site.h: Use STL vectors instead of custom code.
4755 (site_list_type::site_list_type): Declare.
4756 (site_list_type::operator=): Ditto.
4757 (site_list_type::operator ==): Ditto.
4758 (site_list_type::operator !=): Ditto.
4759 (site_list_type::operator <): Ditto.
4760 (site_list_type::operator <=): Ditto.
4761 (site_list_type::operator >): Ditto.
4762 (site_list_type::operator >=): Ditto.
4763 (site_list): Convert to an STL container.
4764 (all_site_list): Ditto.
4765
4766 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4767
4768 * choose.cc (default_trust): Check package accessibility before
4769 triggering an install. (Suggested by Pavel).
4770
4771 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
4772
4773 * compress_gz.cc (compress_gz::construct): Always initialize key members
4774 to ensure the destructor does the right thing.
4775
4776 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
4777
4778 * filemanip.cc (parse_filename): Do not try to parse empty
4779 strings (filenames).
4780 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
4781 extracted good package name and filename.
4782
4783 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
4784
4785 * package_meta.cc (packagemeta::set_requirements): Automatically select
4786 version of dependent packages that satisfies the requirements.
4787 Use processOneDependency to trigger the install of those packages.
4788 (checkForInstalled): Check that the package remains installed.
4789 (processOneDependency): Helper function for dependent packages.
4790 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
4791 debug information.
4792 Clear out all current state on new packages.
4793 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
4794 across.
4795
4796 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
4797
4798 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
4799 nb: inilint is still incomplete, as the packageversion code is not
4800 ready for database-less linking.
4801 * site.cc (get_site_list): When the same site is reentered by the user
4802 replace the old one. (Suggested by John Marshall).
4803
4804 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
4805
4806 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
4807 Clear out package selections when generating implicit source packages.
4808 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
4809 (PackageSpecification::_operators::satisfies): Implement.
4810 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
4811 Worker function for testing versions.
4812
4813 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
4814
4815 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
4816 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
4817 * IniDBBuilderPackage.cc: Use the STL algorithms.
4818 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
4819 functions for the same variable throughout.
4820 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
4821 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
4822 and set an empty source package.
4823 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
4824 to record an install package.
4825 (IniDBBuilderPackage::buildPackageSource): Move source package logic
4826 out from process_src, as it now occurs at separate times.
4827 (IniDBBuilderPackage::buildPackageRequirement): Remove.
4828 (IniDBBuilderPackage::buildSourceName): Use renamed package
4829 specifiation accessor for clarity.
4830 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
4831 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
4832 than custom code.
4833 Remove source package references.
4834 (IniDBBuilderPackage::process_src): Remove source package code as it's
4835 now handled separately.
4836 Set Path information before merging versions, to prevent dangling
4837 pointers.
4838 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
4839 Remove.
4840 (IniDBBuilderPackage::cpv): Remove.
4841 (IniDBBuilderPackage::cbpv): New generic binary working variable.
4842 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
4843 (IniDBBuilderPackage::csp): Source package variable for disjoint
4844 source packages.
4845 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
4846 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
4847 * PickPackageLine.cc: Adjust packageversion accessors to the new
4848 reference calls. (i.e. -> to .) throughout.
4849 (PickPackageLine::paint): Use accessible() for clarity.
4850 Use new split out source package logic.
4851 (PickPackageLine::click): Ditto.
4852 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
4853 to the new reference calls. (i.e. -> to .) throughout.
4854 Use new split out source package logic.
4855 * choose.cc: Don't depend on a specific package type.
4856 Adjust packageversion accessors to the new reference calls. (i.e. -> to
4857 .) throughout.
4858 (set_existence): Use accessible () for clarity.
4859 (default_trust): Simplify a little.
4860 (scanAVersion): Factored out code from scan_downloaded_files for
4861 clarity.
4862 (scan_downloaded_files): Factor out inner loop for clarity.
4863 (ChooserPage::OnNext): Don't dump the dependency list,
4864 it's parsing is robust now!.
4865 * cygpackage.cc (createInstance): Use a factory method to create new
4866 objects.
4867 (cygpackage::cygpackage): Make this private for use by the factory.
4868 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
4869 Remove key usage as it's obsolete.
4870 * cygpackage.h (cygpackage): Inherit from _packageversion, not
4871 packageversion.
4872 (cygpackage::createInstance): New factory.
4873 (cygpackage::cygpackage): Make private.
4874 * desktop.cc (make_passwd_group): Use new packageversion reference.
4875 * download.cc (do_download_thread): Use changeRequested() for clarity.
4876 Use new packageversion reference calls.
4877 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
4878 requires code.
4879 * install.cc: Adjust -> to ., and use the new accessor functions for
4880 packageversion throughout.
4881 * package_db.cc: Adjust -> to ., and use the new accessor functions for
4882 packageversion throughout.
4883 (packagedb::packagedb): Use the new cygpackage factory.
4884 (packagedb::flush): Leverage String to remove buffer overflow chance in
4885 sprintf.
4886 (packagedb::findBinary): Find a binary meta package that has a version
4887 matching a given specification.
4888 (packagedb::findSource): Ditto, but for source.
4889 * package_db.h (packagedb::findBinary): Declare.
4890 (packagedb::findSource): Ditto.
4891 * package_meta.cc: Adjust packageversion accessors to the new
4892 reference calls. (i.e. -> to .) throughout.
4893 Include the package_meta header first to ensure it parses standalone.
4894 Use the STL algorithms.
4895 (packagemeta::packagemeta): Create a copy constructor to allowing
4896 cloning binary package metadata to source package metadata.
4897 (packagemeta::~packagemeta): Use the STL coleltion code rather than
4898 custom collection code.
4899 (packagemeta::add_version): Ditto.
4900 (packagemeta::set_installed): Ditto.
4901 (packagemeta::SDesc): Ditto.
4902 (hasSDesc): Helper function for find_if.
4903 (checkForInstalled): Ditto.
4904 (checkForUpgradeable): Ditto.
4905 (checkForSatisfiable): Ditto.
4906 (packagemeta::action_caption): Update for split out source packages.
4907 (packagemeta::set_action): Ditto.
4908 (packagemeta::set_requirements): Support multi-valued dependency
4909 lists - a|b & c|d - with versioned package specifications.
4910 (packagemeta::accessible): Helper member to improve abstraction.
4911 (packagemeta::sourceAccessible): Ditto.
4912 * package_meta.h: Adjust packageversion accessors to the new
4913 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
4914 (packagemeta::packagemeta): Declare copy constructor.
4915 Remove self initialising members.
4916 (packagemeta::set_action): Update parameters for new packageversion.
4917 (packagemeta::trustp): Ditto.
4918 (packagemeta::versions): Becomes an STL set.
4919 * package_source.h (packagesource::Cached): Const correctness change.
4920 * package_version.cc: Rewrite the packageversion interface to remove
4921 the cygpackage nonvirtual members, and provide a copy by value,
4922 pointer semantics reference counting wrapper class to ease use and
4923 comparison of packageversions.
4924 Change existing packageversion class to _packageversion throughout.
4925 (_defaultversion): A trivial concrete class to prevent specialcasing
4926 the default constructor for packageversion;
4927 (packageversion::packageversion): Implement.
4928 (packageversion::~packageversion): Ditto.
4929 (packageversion::operator=): Ditto.
4930 (packageversion::operator !): Ditto.
4931 (packageversion::operator bool): Ditto.
4932 (packageversion::operator ==): Ditto.
4933 (packageversion::operator !=): Ditto.
4934 (packageversion::operator <): Ditto.
4935 (packageversion::Name): Ditto.
4936 (packageversion::Canonical_version): Ditto.
4937 (packageversion::setCanonicalVersion): Ditto.
4938 (packageversion::getfirstfile): Ditto.
4939 (packageversion::getnextfile): Ditto.
4940 (packageversion::SDesc): Ditto.
4941 (packageversion::set_sdesc): Ditto.
4942 (packageversion::LDesc): Ditto.
4943 (packageversion::set_ldesc): Ditto.
4944 (packageversion::sourcePackage): Ditto.
4945 (packageversion::sourcePackageSpecification): Ditto.
4946 (packageversion::setSourcePackageSpecification): Ditto.
4947 (packageversion::depends): Ditto.
4948 (packageversion::predepends): Ditto.
4949 (packageversion::recommends): Ditto.
4950 (packageversion::suggests): Ditto.
4951 (packageversion::replaces): Ditto.
4952 (packageversion::conflicts): Ditto.
4953 (packageversion::provides): Ditto.
4954 (packageversion::picked): Ditto.
4955 (packageversion::pick): Ditto.
4956 (packageversion::changeRequested): Ditto.
4957 (packageversion::uninstall): Ditto.
4958 (packageversion::source): Ditto.
4959 (packageversion::accessible): Ditto.
4960 (_packageversion::sourcePackage): Ditto.
4961 (_packageversion::accessible): Ditto.
4962 (_packageversion::changeRequested): Ditto.
4963 * package_version.h: Rewrite the packageversion interface to remove
4964 the cygpackage nonvirtual members, and provide a copy by value,
4965 pointer semantics reference counting wrapper class to ease use and
4966 comparison of packageversions.
4967 Change existing packageversion class to _packageversion throughout.
4968 (Dependency): Remove.
4969 (packageversion): New wrapper class.
4970 (_packageversion): Renamed from packageversion.
4971 (_packageversion::setCanonicalVersion): New method.
4972 (_packageversion::sourcePackage): Ditto.
4973 (_packageversion::sourcePackageSpecification): Ditto.
4974 (_packageversion::setSourcePackageSpecification): Ditto.
4975 (_packageversion::changeRequested): Ditto.
4976 (_packageversion::bin): Rename to source.
4977 (_packageversion::src): Remove.
4978 (_packageversion::accessible): New method.
4979 (_packageversion::references): Allow reference counting.
4980 (_packageversion::sourceVersion): Cached the best-match source
4981 package version.
4982
4983 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
4984
4985 * compress_bz.h (compress_bz::position): Track how much has been read.
4986 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
4987 (compress_bz::read): Track amount read by the client.
4988 (compress_bz::tell): And report it when asked.
4989
4990 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
4991
4992 * Makefile.am (snapshot): Automate snapshot creation some more.
4993
4994 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
4995
4996 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
4997 (mbox): Ditto.
4998 * ini.cc (fprintf): Ditto.
4999 * log.cc (log): Ditto.
5000 * package_db.cc (packagedb::sourcePackages): Split out source packages
5001 from binary packages.
5002 * package_db.h: Ditto.
5003
5004 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5005
5006 * PackageSpecification.h: New file. Abstracts the ability to refer
5007 to another package, by name, or name and version.
5008 * PackageSpecification.cc: Ditto.
5009 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
5010 (IniDBBuilder::buildPackageSource): Ditto.
5011 (IniDBBuilder::buildBeginDepends): New method for versioned
5012 dependencies.
5013 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
5014 satisfied before pre-install.
5015 (IniDBBuilder::buildPriority): New method, for getting the package
5016 Priority.
5017 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
5018 (IniDBBuilder::buildMaintainer): Who maintains the package?
5019 (IniDBBuilder::buildArchitecture): What platform is it for?
5020 (IniDBBuilder::buildInstallSize): How big is the binary download?
5021 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
5022 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
5023 (IniDBBuilder::buildBeginRecommends): What other packages are
5024 recommended with this one?
5025 (IniDBBuilder::buildBeginSuggests): And suggested?
5026 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
5027 (IniDBBuilder::buildBeginConflicts): And collide with?
5028 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
5029 package names) does this provide?
5030 (IniDBBuilder::buildDescription): Grab a multi line description one
5031 line at a time.
5032 (IniDBBuilder::buildSourceName): What source package should be used to
5033 install the source for this binary package?
5034 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
5035 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
5036 list of package specifications.
5037 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
5038 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
5039 to the current specification.
5040 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
5041 operator act on?
5042 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
5043 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
5044 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
5045 (IniDBBuilderPackage::process_src): Streamline and split out
5046 functionality.
5047 (IniDBBuilderPackage::setSourceSize): From process_src.
5048 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
5049 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
5050 (IniDBBuilderPackage::currentOrList): Track the current Or list.
5051 (IniDBBuilderPackage::currentAndList): Track the current And list.
5052 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
5053 progress on parsing.
5054 (IniParseFeedback::iniName): Tell what ini filename we are currently
5055 processing.
5056 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
5057 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
5058 Make the feedback object non-const to allow mutating methods which are
5059 needed when the object has state.
5060 (IniParseFindVisitor::visitFile): Tell the caller the name of each
5061 .ini found.
5062 Initialise the parser with the feedback object to allow it to tell of
5063 progress.
5064 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
5065 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
5066 (setup_SOURCES): Add the new PackageSpecification sources.
5067 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
5068 builder syntax to setup binary package details.
5069 * choose.cc: Use the LogSingleton calls throughout.
5070 * configure.in: Create the INILINT substitution correctly for recent
5071 autotool configurations.
5072 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
5073 rather than a string built from an int. Thanks to Pavel Tsekov for
5074 identifying the bug.
5075 (cygpackage::getnextfile): Ditto.
5076 * download.cc: Use LogSIngletion calls throughout.
5077 (validateCachedPackage): A refactoring of the
5078 check_for_cached code to eliminate duplciation.
5079 (check_for_cached): Use validateCachedPackage to check packages.
5080 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
5081 parsing progress.
5082 (do_remote_ini): Ditto.
5083 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
5084 progress reporting.
5085 * inilex.l: Identify new symbols - operators, and multi line plain text.
5086 Releases files.
5087 * inilintmain.cc (show_help): Provide basic infomation on inilint.
5088 * iniparse.y: Adjust for the new builder syntax, and process debian
5089 Release files.
5090 * io_stream_file.cc: Always include mkdir.h.
5091 * list.h: Factor index location into a private routine.
5092 (list::findindex): Implement this.
5093 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
5094 builds. NB: This breaks cygwin build functionality still.
5095 * package_meta.cc: Use the LogSingleton calls throughout.
5096 (packagemeta::set_requirements): Adjust for object changes in
5097 dependencies.
5098 * package_meta.h (packagemeta::packagemeta): Initialise new members.
5099 (packagemeta::architecture): What platform does this package run on?
5100 This may need to move in the future to a per packagefile object.
5101 (packagemeta::priority): What priority does this package have?
5102 * package_source.h (packagesource::packagesource): Initialise new
5103 members.
5104 (packagesource::installedSize): How much space does the package need?
5105 (packagesource::setInstalledSize): Tell the amount.
5106 (packagesource::_installedSize): And store it.
5107 * package_version.cc (packageversion::sourcePackage): return the
5108 source package.
5109 (packageversion::setSourcePackage): And set it.
5110 * package_version.h: Declare the package_version.cc changes.
5111 (packageversion::depends): New package specification AND list.
5112 (packageversion::predepends): Ditto.
5113 (packageversion::recommends): Ditto.
5114 (packageversion::suggests): Ditto.
5115 (packageversion::replaces): Ditto.
5116 (packageversion::conflicts): Ditto.
5117 (packageversion::provides): Ditto.
5118 (packageversion::sourcePackage): What source package is needed?
5119 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
5120 the bottom bar.
5121 * threebar.h: Declare the threebar.cc change.
5122
5123 2002-06-27 John Marshall <johnm@falch.net>
5124
5125 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
5126 * site.cc (SitePage::OnMessageCmd): Ditto
5127
5128 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5129
5130 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
5131
5132 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5133
5134 * package_meta.cc (packagemeta::set_action): When installing packages
5135 with no binaries, choose the source package.
5136
5137 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
5138
5139 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
5140 Bowshers fix for the crash with a root level setup.ini.
5141 * README: Update todos.
5142
5143 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
5144
5145 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
5146 GNU long name extension support.
5147
5148 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
5149
5150 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
5151 unescape 0 length strings.
5152
5153 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
5154
5155 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
5156 when local with no cached file, and install the default source if the
5157 default version has no binary.
5158
5159 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5160
5161 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
5162 method.
5163 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
5164 setup version created the ini file.
5165 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
5166 method.
5167 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
5168 feedback strategy.
5169 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
5170 Require a feedback strategy.
5171 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
5172 * Makefile.in: Regenerate.
5173
5174 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5175
5176 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
5177 trick to delete read only files.
5178 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
5179 remove files.
5180 * Makefile.am (release): Tweak to be more helpful.
5181 * Makefile.in: Regenerate.
5182
5183 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5184
5185 * Makefile.am (release): Tweak to be more helpful.
5186 * Makefile.in: Regenerate.
5187
5188 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5189
5190 * Makefile.am (release): Tweak to be more helpful.
5191 * Makefile.in: Regenerate.
5192
5193 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5194
5195 * choose.cc (scan_downloaded_files): When a non-installed version
5196 has neither bin nor src cached files for local installs,
5197 remove the version from availability.
5198
5199 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5200
5201 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
5202
5203 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5204
5205 * rsync: New support library, contains librsync. This is not (yet)
5206 rsync interoperable.
5207 * configure.in: --with-rsync to enable rsync support. (Not complete).
5208 * Makefile.am: Enable building with rsync.
5209 * Makefile.in: Regenerate.
5210 * configure: Ditto.
5211 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
5212 an array.
5213 (IniDBBuilder::buildPackageSource): Ditto.
5214 * IniDBBuilder.h: Ditto.
5215 * IniDBBuilderPackage.cc: Ditto.
5216 * IniDBBuilderPackage.h: Ditto.
5217 * FindVisitor.cc: New file.
5218 * FindVisitor.h: New file, interface for visiting a file system
5219 aggregate.
5220 * IniParseFindVisitor.cc: New file.
5221 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
5222 found setup.ini's.
5223 * README: Update TODO's.
5224 * String++.cc (String::String): New constructor for <string> inter-
5225 operability.
5226 (String::substr): New method.
5227 * String++.h: Ditto.
5228 * choose.cc (scan2): Remove.
5229 (scan_downloaded_files): Simplify.
5230 * dialog.h: Include parsing pre-requirements.
5231 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
5232 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
5233 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
5234 * find.h: Ditto.
5235 * fromcwd.cc: Remove unneeded includes.
5236 (is_test_version): Remove.
5237 (found_file): Remove.
5238 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
5239 (found_ini): Remove.
5240 (do_fromcwd): Remove commented code that has be replaced elsewhere.
5241 * ini.cc (local_ini): Remove.
5242 (findBuilder): Remove.
5243 (find_routine): Remove.
5244 (do_local_ini): Use new IniParseFindVisitor.
5245 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
5246 unsigned char.
5247 * postinstall.cc: Remove non-core includes.
5248 (run_script_in_postinstall): Remove.
5249 (RunFindVisitor): Trivial Visitor, runs each found script.
5250 (do_postinstall): Use new find syntax.
5251
5252 2002-05-14 Christopher Faylor <cgf@redhat.com>
5253
5254 * ini.cc (find_routine): Don't clear buffer it it's NULL.
5255
5256 2002-05-14 Christopher Faylor <cgf@redhat.com>
5257
5258 * filemanip.h (trail): Declare.
5259 * filemanip.cc (trail): New function.
5260 (find_tar_ext): Use trail() instead of strstr().
5261 * fromcwd.cc (check_ini): Ditto.
5262 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
5263 should now be fully qualified. Set ini_filename. Reset error_buf and
5264 error_count for any subsequent ini file parsing.
5265 (ini_filename): New static variable for parse error reporting.
5266 (yyerror): Use full path of setup.ini in error message. Subtract one
5267 from line number if at bol.
5268 * find.cc (found_part): Eliminate.
5269 (find_sub): Call for_each with full path found rather than just file
5270 component.
5271 (find): Don't calculate found_part.
5272 * inilex.l (ini_init): Flush input buffer and reset line number.
5273 (yybol): New function. Exports YY_AT_BOL.
5274 * iniparse.y: Increase stack depth to allow more tokens to be processed.
5275 (yyparse): Remove newline from error condition to allow subsequent
5276 per-line error processing to proceed normally.
5277
5278 2002-05-14 Christopher Faylor <cgf@redhat.com>
5279
5280 * find.cc (find_sub): Be more defensive in preserving trailing parts of
5281 components when doing recursive directory searches or calling user
5282 supplied for_each().
5283 * ini.cc (find_routine): Don't assume that any path name with
5284 "setup.ini" in it is actually a setup.ini file. Only honor trailing
5285 components. Copy path argument to temporary storage when unescaping
5286 to prevent nuking of argument.
5287
5288 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5289
5290 * CONTRIBUTORS: New file.
5291
5292 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
5293
5294 * choose.cc: Run indent.
5295 (nextbutton): Remove static variable.
5296 (default_trust): Remove use of nextbutton.
5297 (set_view_mode): Ditto.
5298 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
5299 rbset() sets the prev/next/curr radio buttons properly.
5300 (dialog_cmd): Delete function.
5301 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
5302 ChooserPage::OnInit.
5303 (do_choose): Delete function. Move pre-DialogBox() code to
5304 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
5305 (WM_APP_START_CHOOSE): Remove define.
5306 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
5307 (do_choose_thread): Delete function.
5308 (ChooserPage::OnActivate): Delete method.
5309 (ChooserPage::OnMessageApp): Delete method.
5310 (ChooserPage::OnInit): New method.
5311 (ChooserPage::OnNext): New method.
5312 (ChooserPage::OnBack): New method.
5313 (ChooserPage::OnMessageCmd): New method.
5314 * choose.h: Run indent.
5315 (ChooserPage::OnMessageApp): Delete declaration.
5316 (ChooserPage::OnActivate): Ditto.
5317 (ChooserPage::OnMessageCmd): New declaration.
5318 (ChooserPage::OnInit): Ditto.
5319 (ChooserPage::OnNext): Ditto.
5320 (ChooserPage::OnBack): Ditto.
5321 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
5322 with IDD_CHOOSE.
5323 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
5324 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
5325 * res.rc (IDD_CHOOSE): Remove dialog template.
5326 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
5327
5328 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5329
5330 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
5331 corrupt log file entries.
5332 * geturl.cc: Convert to the new LogSingleton logging.
5333
5334 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5335
5336 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
5337 setup.ini.
5338
5339 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5340
5341 * geturl.h: Declare getUrlToStream.
5342 * geturl.cc (getUrlToStream): New function.
5343 (get_url_to_membuf): Refactor to use getUrlToStream.
5344
5345 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
5346
5347 * Makefile.am: Add a release target to automate some of the routine
5348 work.
5349 * Makefile.in: Regenerate.
5350
5351 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
5352
5353 * choose.cc (scan_downloaded_files): On local installs remove all
5354 mirror sites if no cached copy of a package is found.
5355
5356 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
5357
5358 * Makefile.in: Regenerate.
5359 * iniparse.y: Use left recursion, not right in the lines rule to
5360 avoid stack overflows.
5361 * README: Update TODO's.
5362 * io_stream_file.cc: Native builds need to include sys/stat.h
5363
5364 2002-05-06 John Marshall <jmarshall@acm.org>
5365
5366 * site.cc (SitePage::OnMessageCmd): recalculate navigation
5367 button activation when "Add" is pressed.
5368 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
5369
5370 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
5371
5372 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
5373 depending on platform.
5374 Add file:// support.
5375 * configure.in: Set conditional MINGWTARGET if compiling against mingw
5376 libraries.
5377 * Makefile.in: Regenerate.
5378 * configure: Ditto.
5379 * io_stream_file.cc: Only use win32 calls when building for mingw.
5380
5381 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
5382
5383 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
5384 * configure.in: Ditto.
5385 Fix incorrect header checking syntax.
5386 * aclocal.m4: Regenerate.
5387 * configure: Regenerate.
5388 * Makefile.in: Regenerate.
5389 * io_stream.cc: Remove platform specific and provider specific code.
5390 (io_stream::registerProvider): New method, registers a Url provider with
5391 the io_stream code.
5392 Make all methods consistently throw invalid_argument exceptions when
5393 a provider that is requested is not present.
5394 (findProvider): New private function, finds a provider.
5395 * io_stream.h: Declare io_stream::registerProvider.
5396 * io_stream_cygfile.cc: Create a Provider class to register with
5397 io_stream.cc.
5398 * io_stream_file.cc: Ditto.
5399 * archive.cc: Remove unneeded includes.
5400 * archive_tar.cc: Remove unneeded includes.
5401 * archive_tar.h: Add required include.
5402 * archive_tar_file.cc: Remove unneded includes.
5403 * choose.cc: Remove unneeded includes:
5404
5405 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5406
5407 * io_stream.cc: Use the new log interface thruout.
5408
5409 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5410
5411 * log.cc (log): Reimplement via LogSingleton.
5412 (log_save): Remove.
5413 (exit_setup): Remove.
5414 * log.h (log_save): Remove.
5415 (exit_setup): Remove.
5416 * LogSingleton.cc: New file.
5417 * LogSingleton.h: New file.
5418 * LogFile.cc: New file.
5419 * LogFile.h: New file.
5420 * Makefile.am (inilint_SOURCES): Add the new log interface.
5421 (setup_SOURCES): Add the new log interface and the concrete File
5422 implementation.
5423 * Makefile.in: Regenerate.
5424 * archive.cc: Use the new log interface thruout.
5425 * archive_tar.cc: Ditto.
5426 * main.cc: Ditto.
5427 * dialog.cc (fatal): Use the new log interface.
5428 * ini.cc (do_ini_thread): Use the log interface to exit.
5429 * isntall.cc (do_install_thread): Ditto.
5430 * netio.cc (auth_cmd): Ditto.
5431 * msg.cc (fatal): Ditto.
5432 * localdir.cc (save_local_dir): Save to different files depending on
5433 the mode, and if a root dir exists.
5434
5435 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5436
5437 * IniDBBuilder.cc: New file.
5438 * IniDBBuilder.h: New file.
5439 * IniDBBuilderPackage.cc: New file.
5440 * IniDBBuilderPackage.h: New file.
5441 * PackageTrust.h: New file.
5442 * IniState.h: Remove, wasn't thought out well enough.
5443 * Makefile.am (inilint_SOURCES): Add more requirements.
5444 (setup_SOURCES): Add new Builder base and concrete classes.
5445 * Makefile.in: Regenerate.
5446 * String++.cc (String::String): Implement int contructor.
5447 * String++.h (String): Declare int constructor.
5448 * archive_tar.cc (archive_tar::next_file_name): Return String() when
5449 no filename exists.
5450 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
5451 it's not needed.
5452 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
5453 (find_routine): Use new IniDBBuilder to configure the parser.
5454 (do_local_ini): Ditto.
5455 (do_remote_ini): Ditto.
5456 * ini.h: Use IniDBBuilder to initialise parsing.
5457 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
5458 swapped.
5459 (ini_init): Use an IniDBBuilder rather than static variables.
5460 * iniparse.y: Hand off all the object creation to a builder, rather
5461 than hardcoding the behaviour. This allows run-time configured
5462 behaviour.
5463 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
5464 method, it's not needed.
5465 * io_stream_file.h (io_stream_file): Ditto.
5466 * mount.cc (cygpath): Return String() for missing mounts.
5467 * package_meta.cc (packagemeta::SDesc): Return String() for blank
5468 descriptions.
5469 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
5470 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
5471 usage.
5472 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
5473 String constructor usage.
5474 * site.h (site_list_type): Ditto.
5475
5476 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
5477
5478 * String++.h: Declare a << operator that accepts String objects.
5479 * String++.cc: We need iostream for..
5480 (operator <<): this. Provide a << operator that accepts String objects.
5481 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
5482 Change from vargs to a String parameter.
5483 * inilintmail.cc: Remove the gui related headers.
5484 (yyerror): Implement this for parsing.
5485 * iniparse.y: Use the new yyerror syntax.
5486
5487 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
5488
5489 * Makefile.am: Add IniState.h.
5490 * Makefile.in: Regenerate.
5491 * IniState.h: New file.
5492 * choose.cc: Don't include ini.h - it's not needed.
5493 * configure: Regenerate.
5494 * desktop.cc: Don't include ini.h - it's not needed.
5495 * download.cc: Ditto.
5496 * fromcwd.cc: Ditto.
5497 * ini.cc: Use IniState.h to track each parsing calling.
5498 (find_routine): Ditto.
5499 (do_remote_ini): Ditto.
5500 (do_ini_thread): Ditto.
5501 * ini.h (ini_init): Adjust parameters to include state object.
5502 * inilex.l: Declare parser state variable.
5503 (ini_init): Adjust parameters to include state object.
5504 * iniparse.y: Remove obsolete setup_timestamp and setup_version
5505 declarations.
5506 (setup_header): Use new state variable to track time and version.
5507 (add_correct_version): Ditto.
5508 * install.cc: Don't include ini.h - it's not needed.
5509
5510 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
5511
5512 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
5513 * io_stream_file.cc: Don't include filemanip.h.
5514 (io_stream_file::get_size): Implement here to remove filemanip
5515 dependency.
5516 * io_stream_cygfile.cc: Don't include filemanip.h.
5517 (io_stream_cygfile::get_size): Implement here to remove filemanip
5518 dependency.
5519 Implement a stat based version for when win32 is not available.
5520 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
5521 * filemanip.cc: Don't include win32.h - be platform independent.
5522 Include strings.h and io_stream.h as part of that.
5523 (get_file_size): Leverage io_streams and remove win32 implementation.
5524 * download.cc (check_for_cached): Use io_stream syntax for
5525 get_file_size.
5526 (download_one): Ditto.
5527
5528 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
5529
5530 * configure.in: Correct a typo in last change.
5531 * configure: Regenerate.
5532 * Makefile.in: Regenerate.
5533
5534 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
5535
5536 * configure.in: Check for string.h and string.
5537 * configure: Regenerate.
5538 * Makefile.in: Regenerate.
5539
5540 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5541
5542 * res.rc (IDD_SPLASH): Remove white box.
5543
5544 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5545
5546 Oops! forgot to list these in the last checkin.
5547 * inilintmain.cc: New file.
5548 * md5.h: New file - imported md5 source, BSD style licence.
5549 * md5.cc: New file - imported md5 source, BSD style licence.
5550 * Exception.cc: New file.
5551 * Exception.h: New file.
5552 * MD5++.cc: New file.
5553 * MD5++.h: New file.
5554
5555 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5556
5557 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
5558 Remove -fno-rtti, we need it for exceptions.
5559 (AM_CXXFLAGS): Ditto.
5560 (WARNONLY_CFLAGS): Ditto.
5561 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
5562 (setup_LDFLAGS): Add and set to -mwindows.
5563 (setup_SOURCES): Add new sources.
5564 * Makefile.in: Regenerate.
5565 * README: Update TODO.
5566 * choose.cc (scan_downloaded_files): Use ini information if it's
5567 available.
5568 * configure: Regenerate.
5569 * download.cc (check_for_cached): Make reusable from elsewhere.
5570 Throw exceptions on errors (as opposed to failures).
5571 Check MD5 sum when it's known.
5572 (download_one): Never force a download.
5573 Handle corrupt package exceptions.
5574 * ini.cc (find_routine): Reverse escape the URL to correctly identify
5575 the site URL.
5576 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
5577 * iniparse.y: Allow calculation of MD5 sums, and allow src only
5578 packages.
5579 (process_src): New helper function.
5580 * isntall.cc (install_one_source): Check MD5 sums when possible.
5581 Throw exceptions on errors.
5582 (do_install_thread): Handle exceptions for installation calls.
5583 * package_source.h: Store MD5 information.
5584 * propsheet.cc (PropSheet::Create): Add a useful comment.
5585 * res.rc (IDS_INSTALL_ERROR): Define.
5586 (IDS_CORRUPT_PACKAGE): Define.
5587 * resource.h (IDS_INSTALL_ERROR): Define.
5588 (IDS_CORRUPT_PACKAGE): Define.
5589 * rfc1738.cc (rfc1738_unescape_part): Implement.
5590 * rfc1738.h (rfc1738_unescape_part): Declare.
5591
5592 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
5593
5594 * Makefile.am: Remove dependecy rules that automake emits.
5595 Correct badly copied dependency info for manually compiled files.
5596 (setup_SOURCES): Add all used headers.
5597 (EXTRA_DIST): Include non compilate but required sources.
5598 (setup_LDADD): Remove mingw32, it is autodetected.
5599 * Makefile.in: Regenerate.
5600 * String++.h: sys/types is a system header.
5601 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
5602 Use ExitThread.
5603 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
5604 portable).
5605 * configure: Regenerate.
5606 * configure.in: Check for mingw32/cygwin specific headers and libraries.
5607 * cygpackage.h: Include the win32.h header to get correct macro
5608 definitions in all situations.
5609 * download.cc (do_download_reflector): Make into a Win32 thread routine.
5610 Use ExitThread.
5611 (do_download): Use Win32 threads.
5612 * ini.cc: Ditto.
5613 * install.cc: Ditto.
5614 * (WinMain): Adjust to build valid command line using application
5615 under both mingw32 and cygwin.
5616 * mount.cc (set)cygdrive_flags): Create new system flags if the
5617 user requests system and the value does not exist.
5618 * nio-http.cc: Define a _strnicmp for cygwin.
5619 * package_db.cc: Include <errno.h> if it exists.
5620 * site.cc (do_download_site_info_thread): Make into a Win32 thread
5621 routine.
5622 Use ExitThread.
5623 (do_download_site-Info): Use Win32 threads.
5624 * state.cc: Explicity declare variables to avoid header conflicts
5625 caused by '#define extern" on cygwin.
5626 * win32.h: Include <alloca.h> if it exists.
5627 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
5628 (_access): Define as access if not defined by windows.h.
5629
5630 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
5631
5632 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
5633
5634 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
5635
5636 * Makefile.am: Add libgetopt++ to the subdirs list.
5637 Search the libgetopt++ header directory.
5638 Link against libgetopt++.la.
5639 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
5640 (setup_LDADD): Explicitly include res.o.
5641 * Makefile.in: Regenerate.
5642 * aclocal.m4: Regenerate.
5643 * bootstrap.sh: Call libtoolize.
5644 * configure: Regenerate.
5645 * configure.in: Add libtool support and configure libgetopt++.
5646 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
5647 (DesktopSetupPage::OnInit): Use the simpler syntax.
5648 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
5649 declaration.
5650 * main.cc: Include getopt++/GetOption.h.
5651 (main): Use simpler syntax.
5652 * cdefs.h: Remove.
5653 * getopt.h: Remove.
5654 * getopt.c: Remove.
5655 * GetOption.h: Remove.
5656 * GetOption.cc: Remove.
5657 * Option.h: Remove.
5658 * Option.cc: Remove.
5659
5660 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5661
5662 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
5663
5664 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5665
5666 * aclocal.m4: New file, cached macros.
5667 * bootstrap.sh: New file, calls required autotools in appropriate
5668 order.
5669 * Makefile.am: New file, input Makefile for automake.
5670 * Makefile,in: Now a generated file - regenerate.
5671 * configure: Regenerate.
5672 * configure.in: Add automake support.
5673 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
5674 automake's VERSION define.
5675 * iniparse.y: Ditto.
5676
5677 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5678
5679 * cdefs.h: New file, imported to allow getopt.c to build without
5680 cygwin headers.
5681 * getopt.h: New file, imported to allow building without cygwin headers.
5682 * getopt.c: Ditto.
5683 * bz2lib: New directory, contains copy of bz2lib.
5684 * cfgaux: New directory, contains autotool helper scripts.
5685 * Makefile,in: Adjust library and target definitions for building
5686 outside the sourceware tree.
5687 * compress_bz.h: Use new bz2lib header location.
5688 * mount.cc: Import key defines and enums to be independent of cygwin
5689 headers.
5690 * configure.in: Update to autoconf 2.53, and to be sourceware
5691 independent.
5692 * configure: Regenerate.
5693
5694 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
5695
5696 * mklink2.cc (make_link_2): Tweak to work with current w32api
5697 headers.
5698
5699 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
5700
5701 * version.cc (canonicalize_version): Fix a call delete[]
5702 to delete the allocated address.
5703
5704 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
5705
5706 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
5707 to Ton van Overbeek for locating the bug area.
5708
5709 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
5710
5711 * PickView.cc (PickView::insert_pkg): Be more generic with
5712 object use.
5713 (PickView::insert_category): Ditto.
5714 (PickView::~PickView): Create.
5715 * PickView.h (PickView::~PickView): Declare.
5716
5717 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
5718
5719 * Makefile.in (OBJS): Add new commandline objects.
5720 * desktop.cc (NoShortCutsOption): New option code.
5721 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
5722 * desktop.h (NoShortCutsOption): New concrete command line option class.
5723 * main.cc (WinMain): Process command line options.
5724 * GetOption.h: New file, singleton command line class.
5725 * GetOption.cc: New file, implementation of the above.
5726 * Option.h : New file, abstract option for GetOption.
5727 * Option.cc: New file, implement constructor and destructor.
5728
5729 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
5730
5731 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
5732
5733 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
5734
5735 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
5736 to textheight, so large fonts work.
5737
5738 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5739
5740 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
5741 symlinks.
5742
5743 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5744
5745 * io_stream_cygfile.cc (cwd): New static for cwd storage.
5746 (io_stream_cygfile::normalise): New method.
5747 (io_stream_cygfile::io_stream_cygfile): Use it.
5748 (io_stream_cygfile::exists): Ditto.
5749 (io_stream_cygfile::remove): Ditto.
5750 (io_stream_cygfile::mklink): And again.
5751 (cygmkdir_p): Yes, again.
5752 (io_stream_cygfile::move): And once more.
5753 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
5754 (io_stream_cygfile::cwd): Ditto.
5755
5756 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5757
5758 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
5759 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
5760 Overbeek for the report).
5761 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
5762 Make g++ compatible.
5763 * mklink2.c: Remove.
5764 * site.cc (site_list_type::init): Delete the correct memory addres.
5765 Thanks to Pavel Tsekov for tracking this down.
5766
5767 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
5768
5769 * win32.h: Only define alloca if it's not already.
5770
5771 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
5772
5773 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave
5774 installed packages alone.
5775 * README: Update with latest requests.
5776 * Various: MTC fixes from setup200202 branch.
5777
5778 2002-03-19 Christopher Faylor <cgf@redhat.com>
5779
5780 * Makefile.in (setup_version.c): Add back magic which allows detection
5781 of setup.exe version number.
5782
5783 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
5784
5785 * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
5786 calculation on win9x systems.
5787
5788 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
5789
5790 * install.cc (install_one_source): Write the correct length of a string
5791 to the lst file (Thanks to Pavel Tsekov for reporting the bug).
5792
5793 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5794
5795 * choose.cc (list_click): Always refresh the entire chooser, as our
5796 package state change mechanism is broken with the new improved list
5797 classes.
5798
5799 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5800
5801 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd
5802 and /etc/group.
5803
5804 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5805
5806 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored
5807 out from paint().
5808 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and
5809 the new bin tickbox.
5810 (PickPackageLine::click): Handle the new bin tickbox.
5811 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
5812 * PickView.cc (pkg_headers): Add a Bin? column.
5813 (cat_headers): Ditto.
5814 (PickView::set_headers): Ditto.
5815 (PickView::init_headers): Ditto.
5816 * PickView.h (PickView): Ditto.
5817 * choose.cc (list_click): Use the new name for src_col to set the clip
5818 rectangle.
5819
5820 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
5821
5822 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
5823 fixup.
5824
5825 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
5826
5827 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
5828 call.
5829 (make_passwd_group): Ditto.
5830 * localdir.cc (save_local_dir): Ditto.
5831 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
5832 Add "cygfile://" prefix to io_stream::open() calls.
5833
5834 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
5835
5836 * log.cc (log_save): Fix creating /var/log.
5837 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
5838
5839 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
5840
5841 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
5842 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
5843 * resource.h: Add IDS_CYGWIN_SETUP and
5844 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
5845
5846 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
5847 operator (::SetWindowText()).
5848
5849 * threebar.cc: Run indent.
5850 (cistring.h): Add include.
5851 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
5852 global scope operator.
5853 (SetBar2): Add logic for writing percent complete into window title.
5854
5855 * window.h: Run indent.
5856 (SetWindowText): New function.
5857 (String): Add forward declaration.
5858 * window.cc: Run indent.
5859 (String++.h): Add include.
5860 (SetWindowText): New function.
5861
5862 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
5863
5864 * README: Update TODO list.
5865 * install.cc (install_one): Fix src package location.
5866 (do_install_thread): Fix creating directories.
5867
5868 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5869
5870 * choose.cc: Include cygpackage.h for scan2 use.
5871 (set_existence): Ignore setup.ini mirrors when installing from cwd.
5872 (scan2): Process any valid file.
5873 Add cache entries when a file matching a setup.ini listed version is
5874 found.
5875 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
5876 * filemanip.h (filemanip::pkgtar): Remove.
5877 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
5878 (packagemeta::~packagemeta): Move from package_meta.h
5879 Remove and delete all version and category information.
5880 * package_meta.h (CategoryPackage): Create a destructor.
5881 (packagemeta::~packagemeta): Move to .cc file.
5882
5883 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5884
5885 * install.cc (install_one_source): Make NULL cached package names cause
5886 errors.
5887
5888 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
5889
5890 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
5891 unnecessarily.
5892
5893 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
5894
5895 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
5896
5897 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5898
5899 * mount.cc (create_mount): Avoid a const char*->char* warning.
5900 (read_mounts): Ditto.
5901
5902 2002-02-05 Jason Tishler <jason@tishler.net>
5903
5904 * download.cc (do_download_thread): Fix off-by-one error.
5905
5906 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5907
5908 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
5909 * configure (CXXFLAGS): Regenerate.
5910 * Makefile.in (iniparse.o): Build via default rules - no errors now.
5911 * README: TODO list updates.
5912
5913 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
5914
5915 * String++.cc (String::concat):: Remove.
5916 (String::vconcat):: Ditto.
5917 * String++.h (String::concat):: Remove.
5918 (String::vconcat):: Ditto.
5919 * archive_tar.cc: Don't include concat.h.
5920 * archive_tar_file.cc: Don't include concat.h.
5921 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
5922 (compress_bz::seek): Ditto.
5923 (compress_bz::~compress_bz): Ditto.
5924 * compress_gz.cc (compress_gz::peek): Ditto.
5925 (compress_gz::error): Ditto.
5926 (compress_gz::~compress_gz): Ditto.
5927 * concat.cc (vconcat): Remove.
5928 (concat): Ditto.
5929 * concat.h (vconcat): Remove.
5930 (concat): Ditto.
5931 * desktop.cc (desktop_icon): Use new cygpath.
5932 (make_etc_profile): Ditto.
5933 (uexists): Ditto.
5934 (make_passwd_group): Ditto.
5935 (save_icon): Ditto.
5936 (check_desktop): Remove concat use.
5937 (check_start_menu): Ditto.
5938 * download.cc (download_one): Use new mkpath_p correctly.
5939 Use LOG_PLAIN.
5940 * fromcwd.cc: Don't include concat.h.
5941 * geturl.cc (get_url_to_membuf): Use String log() call.
5942 (get_url_to_file): Ditto.
5943 * install.cc: Don't include concat.h.
5944 (uninstall_one): Use LOG_PLAIN.
5945 (replace_one): Ditto.
5946 (install_one_source): Ditto.
5947 (install_one): More char to String conversion.
5948 (do_install_thread): Use new cygpath.
5949 Use new create_mount.
5950 * io_stream.cc (io_stream::move): Use new log().
5951 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new
5952 cygpath.
5953 (io_stream_cygfile::exists): Ditto.
5954 (io_stream_cygfile::remove): Ditto.
5955 (io_stream_cygfile::mklink): Ditto.
5956 (io_stream_cygfile::write): Ditto.
5957 (cygmkdir_p): Ditto.
5958 (io_stream_cygfile::move): Ditto.
5959 * io_stream_file.cc: Don't include log.h.
5960 (io_stream_file::write): Don't log unneeded messages.
5961 * localdir.cc: Don't include concat.h.
5962 (LocalDirPage::OnNext): Use LOG_PLAIN.
5963 * log.cc: Don't include log.h.
5964 (exit_setup): Use new cygpath.
5965 * log.h (log_level): Add new level LOG_PLAIN.
5966 * main.cc (WinMain): Use new log().
5967 * mount.cc (SLASH_P): New macro from concat.h.
5968 (cygpath): Make String version globally visible.
5969 Remove varargs version.
5970 * mount,h: Ditto.
5971 * msg.cc (mbox): Use LOG_PLAIN.
5972 * net.cc (NetPage::OnNext): Ditto.
5973 * nio-ftp.cc (ftp_line): Use new log().
5974 * nio-http.cc: Don't include log.h.
5975 (retry_get): Use alternative url variable.
5976 * package_db.cc: Don't include concat.h.
5977 (packagedb::flush): Don't use concat.
5978 * package_meta.cc: Don't include concat.h.
5979 (packagemeta::uninstall): Use new cygpath.
5980 * postinstall.cc (do_postinstall): Ditto.
5981 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
5982 * script.cc: Don't include concat.h.
5983 (init_run_script): Use new cygpath.
5984 (run_script): More char * to String conversion.
5985 (try_run_script): Ditto.
5986 * site.cc: Don't include concat.h.
5987 (SitePage::OnNext): Use LOG_PLAIN.
5988 (SitePage::OnMessageCmd): Use new log().
5989 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
5990
5991 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5992
5993 * Makefile.in (OBJS): Add new object.
5994 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the
5995 name.
5996 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
5997 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
5998 (PickLine::Pickline): Accept a String for the key.
5999 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to
6000 Strings.
6001 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is
6002 automatically initialised now.
6003 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
6004 (PickView::init_header): Move category length checking out of the inner
6005 loop for efficiency.
6006 Convert all char use to Strings.
6007 * PickView.h: Include the String++ header.
6008 (PickView::note_width): Update the prototype.
6009 * String++.cc: New file, implements a reference counting string class.
6010 * String++.h: New file, declares a reference counting string class.
6011 * archive.cc: Include String++ instead of concat.
6012 (archive::extract_file): Convert char * usage to Strings.
6013 * archive.h: Inlude the String++ header.
6014 (archive::extract_file): Update prototype.
6015 (archive::next_file_name): Convert to a String.
6016 (archive::linktarget): Ditto.
6017 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
6018 (archive_tar::linktarget): Ditto.
6019 * arhive_tar.h: Update the copyright.
6020 Explicitly include the relevant headers.
6021 (tar_map_result_type): Convert to String usage.
6022 (archive_tar::next_file_name): Update prototype.
6023 (archive_tar::linktarget): Ditto.
6024 * category.cc (Category::Category): Update initialisers.
6025 Convert to String usage.
6026 (Categorycmp): Update to String usage.
6027 * category.h: Include the String++ header.
6028 (Category::Category): Update to String usage.
6029 (Category::name): Ditto.
6030 (Category::key): Ditto.
6031 * choose.cc: Remove concat.h, it's not needed.
6032 (scan2): Update to String usage.
6033 (do_choose): Ditto.
6034 * cygpackage.cc: Update includes for use of String class.
6035 (cygpackage::cygpackage): Update for String usage.
6036 (cygpackage::set_canonical_version): Ditto.
6037 (cygpackage::destroy): Ditto.
6038 (cygpackage::getfirstfile): Ditto.
6039 (cygpackage::getnextfile): Ditto.
6040 (cygpackage::Name): Ditto.
6041 (cygpackage::Vendor_version): Ditto.
6042 (cygpackage::Package_version): Ditto.
6043 (cygpackage::Canonical_version): Ditto.
6044 (cygpackage::set_sdesc): Ditto.
6045 (cygpackage::set_ldesc): Ditto.
6046 * cygpackage.h: Include String++.h for parsing this file.
6047 (cygpackage::cygpackage): Update for String usage.
6048 (cygpackage::set_canonical_version): Ditto.
6049 (cygpackage::destroy): Ditto.
6050 (cygpackage::getfirstfile): Ditto.
6051 (cygpackage::getnextfile): Ditto.
6052 (cygpackage::Name): Ditto.
6053 (cygpackage::Vendor_version): Ditto.
6054 (cygpackage::Package_version): Ditto.
6055 (cygpackage::Canonical_version): Ditto.
6056 (cygpackage::set_sdesc): Ditto.
6057 (cygpackage::set_ldesc): Ditto.
6058 (cygpackage::name): Ditto.
6059 (cygpackage::vendor): Ditto.
6060 (cygpackage::packagev): Ditto.
6061 (cygpackage::canonical): Ditto.
6062 (cygpackage::fn): Ditto.
6063 (cygpackage::sdesc): Ditto.
6064 (cygpackage::ldesc): Ditto.
6065 * desktop.cc: Update includes for use of String class.
6066 (batname): Update for String usage.
6067 (iconname): Ditto.
6068 (make_link): Ditto.
6069 (start)menu): Ditto.
6070 (desktop_icon): Ditto.
6071 (make_cygwin_bat): Ditto.
6072 (make_etc_profile): Ditto.
6073 (uexists): Ditto.
6074 (make_passwd_group): Ditto.
6075 (save_icon): Ditto.
6076 (check_desktop): Ditto.
6077 (check_startmenu): Ditto.
6078 * dialog.cc (eget): Update for String usage.
6079 (egetString): New function.
6080 (eset): New variant for Strings.
6081 * dialog.h: Include String++.h for parsing this file.
6082 (egetString): New function.
6083 (eset): New variant for Strings.
6084 * diskfull.cc (diskfull): Update for String usage.
6085 * diskfull.h: Include String++.h for parsing this file.
6086 (diskfull): Update for String usage.
6087 * download.cc: Update includes for use of String class.
6088 (check_for_cached): Update for String usage.
6089 (download_one): Ditto.
6090 * filemanip.cc (get_file_size): Ditto.
6091 (base): Ditto.
6092 (parse_filename): Ditto.
6093 (backslash): Ditto.
6094 * filemanip.h: Include String++.h for parsing this file.
6095 (fileparse): Update for String usage.
6096 (base): Ditto.
6097 (parse_filename): Ditto.
6098 Don't consider '_' to be a separator.
6099 (backslash): Ditto.
6100 * find.cc: Update includes for use of String class.
6101 (find_sub): Make more flexible.
6102 (find): Update for String usage.
6103 * find.h (find): Use Strings.
6104 * fromcwd.cc (found_file): Update for String usage.
6105 * geturl.cc: Ditto.
6106 (init_dialog): Ditto.
6107 (get_url_to_membuf): Ditto.
6108 (get_url_to_string): Ditto.
6109 (get_url_to_file): Ditto.
6110 * geturl.h: Ditto.
6111 (get_url_to_membuf): Ditto.
6112 (get_url_to_string): Ditto.
6113 (get_url_to_file): Ditto.
6114 * hash.h: Ditto.
6115 (add_subdirs): Ditto.
6116 * ini.cc: Update includes for String usage.
6117 (find_routine): Update for String usage.
6118 (do_remote_ini): Ditto.
6119 (do_ini_thread): Ditto.
6120 * ini.h (ini_init): Ditto.
6121 * inilex.l: Update includes for String usage.
6122 (ini_init): Update for String usage.
6123 * iniparse.y: Ditto.
6124 (add_correct_version): Ditto.
6125 * install.cc: Update includes for String usage.
6126 (install_one_source): Update for String usage.
6127 (uninstall_one): Ditto.
6128 (replace_one): Ditto.
6129 (install_one_source): Ditto.
6130 (do_install_thread): Ditto.
6131 * io_stream.cc: Update includes for String usage.
6132 (io_stream::open): Update for String usage.
6133 (io_stream::mkpath_p): Ditto.
6134 (io_stream::remove): Ditto.
6135 (io_stream::mklink): Ditto.
6136 (io_stream::move_copy): Ditto.
6137 (io_stream::move): Ditto.
6138 (io_stream::exists): Ditto.
6139 * io_stream.h: Update includes to allow correct parsing.
6140 (io_stream::open): Update for String usage.
6141 (io_stream::mkpath_p): Ditto.
6142 (io_stream::remove): Ditto.
6143 (io_stream::mklink): Ditto.
6144 (io_stream::move_copy): Ditto.
6145 (io_stream::move): Ditto.
6146 (io_stream::exists): Ditto.
6147 * io_stream_cygfile.cc: Update includes for String usage.
6148 (get_root_dir_now): Update for String usage.
6149 (io_stream_cygfile::io_stream_cygfile): Ditto.
6150 (io_stream_cygfile::~io_stream_cygfile): Ditto.
6151 (io_stream_cygfile::exists): Ditto.
6152 (io_stream_cygfile::remove): Ditto.
6153 (io_stream_cygfile::mklink): Ditto.
6154 (cygmkdir_p): Ditto.
6155 (io_stream_cygfile::set_mtime): Ditto.
6156 (io_stream_cygfile::move): Ditto.
6157 (io_stream_cygfile::get_size): Ditto.
6158 * io_stream_cygfile.h: Update includes for String usage.
6159 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
6160 (io_stream_cygfile::~io_stream_cygfile): Ditto.
6161 (io_stream_cygfile::exists): Ditto.
6162 (io_stream_cygfile::remove): Ditto.
6163 (io_stream_cygfile::mklink): Ditto.
6164 (cygmkdir_p): Ditto.
6165 (io_stream_cygfile::set_mtime): Ditto.
6166 (io_stream_cygfile::move): Ditto.
6167 (io_stream_cygfile::get_size): Ditto.
6168 (io_stream_cygfile::fname): Ditto.
6169 (io_stream_cygfile::lmode): Ditto.
6170 * io_stream_file.cc: Update includes for String usage.
6171 (io_stream_file::io_stream_file): Update for String usage.
6172 (io_stream_file::~io_stream_file): Ditto.
6173 (io_stream_file::exists): Ditto.
6174 (io_stream_file::remove): Ditto.
6175 (io_stream_file::mklink): Ditto.
6176 (io_stream_file::set_mtime): Ditto.
6177 (io_stream_file::move): Ditto.
6178 (io_stream_file::get_size): Ditto.
6179 * io_stream_file.h: Update includes for String usage.
6180 * io_stream_file.cc: Update includes for String usage.
6181 (io_stream_file::io_stream_file): Update for String usage.
6182 (io_stream_file::~io_stream_file): Ditto.
6183 (io_stream_file::exists): Ditto.
6184 (io_stream_file::remove): Ditto.
6185 (io_stream_file::mklink): Ditto.
6186 (io_stream_file::set_mtime): Ditto.
6187 (io_stream_file::move): Ditto.
6188 (io_stream_file::get_size): Ditto.
6189 (io_stream_file::fname): Ditto.
6190 (io_stream_file::lmode): Ditto.
6191 * localdir.cc: Update includes for String usage.
6192 (save_local_dir): Update for String usage.
6193 (check_if_enable_next): Ditto.
6194 (load_dialog): Ditto.
6195 (browse_cb): Ditto.
6196 (LocalDirPage::OnInit): Ditto.
6197 (LocalDirPage::OnNext): Ditto.
6198 * log.cc: Update includes for String usage.
6199 (struct LogEnt): Update for String usage.
6200 (log): Ditto.
6201 (log_save): Ditto.
6202 (exit_setup): Ditto.
6203 * log.h: Update includes for String usage.
6204 (log_level): Update for String usage.
6205 (log): Ditto.
6206 (log_save): Ditto.
6207 * main.cc (WinMain): Update for String usage.
6208 * mklink2.c (make_link_2): Update for String usage.
6209 * mklink2.h (make_link_2): Update for String usage.
6210 * mount.cc: Update includes for String usage.
6211 (mount_table): Update for String usage.
6212 (find2): Ditto.
6213 (create_mount): Ditto.
6214 (remove1): Ditto.
6215 (remove_mount): Ditto.
6216 (read_mounts): Ditto.
6217 (set_root_dir): Ditto.
6218 (get_root_dir): Ditto.
6219 (path_prefix_p): Ditto.
6220 (cygpath): Ditto.
6221 * mount.h: Update includes for String usage.
6222 (create_mount): Update for String usage.
6223 (remove_mount): Ditto.
6224 (cygpath): Ditto.
6225 (set_root_dir): Ditto.
6226 (get_root_dir): Ditto.
6227 * msg.cc (mbox): Ditto.
6228 * net.cc (NetPage::OnNext): Ditto.
6229 * package_db.cc (packagedb::flush): Ditto.
6230 (packagedb::packages): Ditto.
6231 (packagedb::categories): Ditto.
6232 * package_db.h: Update includes for String usage.
6233 (packagedb::packages): Update for String usage.
6234 (packagedb::categories): Ditto.
6235 * package_meta.cc: Update includes for String usage.
6236 (hash::add_subdirs): Update for String usage.
6237 (packagemeta::uninstall): Ditto.
6238 (packagemeta::SDesc): Ditto.
6239 (packagemeta::action_caption): Ditto.
6240 * package_meta.h: Update includes for String usage.
6241 (packagemeta::packagemeta): Update for String usage.
6242 (packagemeta::~packagemeta): Ditto.
6243 (packagemeta::uninstall): Ditto.
6244 (packagemeta::SDesc): Ditto.
6245 (packagemeta::action_caption): Ditto.
6246 (package_source.cc site::site): Ditto.
6247 (packagesource::set_canonical): Ditto.
6248 (packagesource::set_cached): Ditto.
6249 * package_source.h: Update includes for String usage.
6250 (site::site): Update for String usage.
6251 (packagesource::set_canonical): Ditto.
6252 (packagesource::set_cached): Ditto.
6253 (packagesource::packagesource): Ditto.
6254 (packagesource::sites): Ditto.
6255 (packagesource::cached): Ditto.
6256 * package_version.h: Update includes for String usage.
6257 (Dependency): Update for String usage.
6258 (packageversion): Ditto.
6259 * postinstall.cc: Update includes for String usage.
6260 (do_postinstall): Update for String usage.
6261 * res.rc (IDD_LOCAL_DIR): Fix typo again!
6262 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
6263 * rfc1738.h: Update includes for String usage.
6264 (rfc1738_escape_part): Update for String usage.
6265 * root.cc: Update includes for String usage.
6266 (check_if_enable_next): Update for String usage.
6267 (save_dialog): Ditto.
6268 (browse_cb): Ditto.
6269 (directory_is_absolute): Ditto.
6270 (directory_is_rootdir): Ditto.
6271 (directory_has_spaces): Ditto.
6272 (RootPage::OnInit): Ditto.
6273 (RootPage::OnNext): Ditto.
6274 * script.cc: Update includes for String usage.
6275 (init_run_script): Update for String usage.
6276 (run): Ditto.
6277 (run_script): Ditto.
6278 (try_run_script): Ditto.
6279 * script.h: Update includes for String usage.
6280 (run_script): Update for String usage.
6281 (try_run_script): Ditto.
6282 * site.cc site_list): Ditto.
6283 (all_site_list): Ditto.
6284 (other_url): Eliminate.
6285 (site_list_type::init): Update for String usage.
6286 (site_list_type::site_list_type): Ditto.
6287 (get_site_list): Ditto.
6288 (get_saved_sites): Ditto.
6289 (do_download_site_info_thread): Ditto.
6290 (SitePage::OnNext): Ditto.
6291 (SitePage::OnActivate): Ditto.
6292 (SitePage::PopulateListBox): Ditto.
6293 (SitePage::OnMessageCmd): Handle empty url's.
6294 * site.h: Update includes for String usage.
6295 (site_list_type::site_list_type): Update for String usage.
6296 (site_list_type::init): Ditto.
6297 (site_list_type::~site_list_type): Ditto.
6298 (site_list_type::url): Ditto.
6299 (site_list_type::displayed_url): Ditto.
6300 (site_list_type::key): Ditto.
6301 * source.cc (SourcePage::OnDeactivate): Ditto.
6302 * state.h: Update includes for String usage.
6303 (local_dir): Update for String usage.
6304 (trust_level): Remove.
6305 * version.cc: Update includes for String usage.
6306 (canonicalize_version): Update for String usage.
6307 * version.h: Update includes for String usage.
6308 (canonicalize_version): Update for String usage.
6309
6310 2002-02-15 Christopher Faylor <cgf@redhat.com>
6311
6312 * filemanip.c (parse_filename): Revert previous change.
6313
6314 2002-02-14 Christopher Faylor <cgf@redhat.com>
6315
6316 * filemanip.c (parse_filename): Don't treat '_' as a version number
6317 introducer.
6318
6319 2002-01-29 Christopher Faylor <cgf@redhat.com>
6320
6321 * configure: Regenerate.
6322
6323 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6324
6325 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
6326 <Hoeck@extern.lrz-muenchen.de>
6327
6328 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6329
6330 * README: Update Todo's.
6331 * list.h: Run indent.
6332 (list): New methods checksize and insert to reduce code duplication.
6333 (list::registerbykey): Use them.
6334 (list::registerbyobject): Ditto.
6335 (list::removebyindex): Copy each object individually - safe for non
6336 trivial objects.
6337 (list::checksize): Implement.
6338 (list::insert): Implement.
6339
6340 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6341
6342 * Makefile.in: Remove the dlmalloc object by default.
6343 * install.cc (do_install_thread): Remove the mallinfo call for 'working
6344 around' the crashing issue.
6345 * package_db.h: Include <string.h> - it's needed to parse this.
6346 * package_source.cc (site::site): Move here from the header file.
6347 * package_source.h (site): Stop the constructor being inlinable.
6348
6349 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
6350
6351 * filemanip.cc (find_tar_ext): Add a descriptive comment.
6352
6353 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
6354
6355 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
6356 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
6357 * install.cc (install_one_source): Add space between words in log()
6358 call.
6359
6360 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6361
6362 * log.cc (exit_setup): When saving to the download dir, explicity
6363 specify the path.
6364
6365 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6366
6367 * archive.cc (extract_file): Separate out the prefix and the URL
6368 scheme.
6369 * archive.h (archive::extract_file): Ditto.
6370 * install.cc (install_one_source): Ditto. Use the new
6371 archive::extract_file syntax.
6372 (replace_one): Use the new syntax.
6373 (io_stream.cc): Add some log info for links.
6374
6375 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6376
6377 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
6378 (PickCategoryLine::paint): Use the new action method.
6379 (PickCategoryLine::click): Set the action for all children.
6380 (PickCategoryLine::set_action): New method.
6381 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
6382 (PickCategoryLine::current_default): Use packagemeta _actions class.
6383 * PickLine.h (PickLine::set_action): New abstract method that requires
6384 including package_meta.h.
6385 * PickPackageLine.cc (PickPackageLine::set_action): New method.
6386 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
6387 * list.h (getbykey): A const correctness fix.
6388 * package_meta.cc: Run indent.
6389 (packagemeta::Default_action): New const.
6390 (packagemeta::Install_action): Ditto.
6391 (packagemeta::Reinstall_action): Ditto.
6392 (packagemeta::Uninstall_action): Ditto.
6393 (packagemeta::_actions::caption): New method.
6394 (packagemeta::_actions::operator++): Ditto.
6395 (packagemeta::set_action): New overload.
6396 * package_meta.h (packagemeta::_actions): New class.
6397 (packagemeta::set_action): Declare this.
6398
6399 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6400
6401 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
6402 * choose.cc: Don't define alloca anymore, it's done in win32.h
6403
6404 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6405
6406 * PickPackageLine.cc: New file.
6407 * PickPackageLine.h: New file.
6408 * PickLine.cc: New file.
6409 * PickLine.h: New file.
6410 * PickCategoryLine.cc: New file.
6411 * PickCategoryLine.h: New file.
6412 * PickView.cc: New file.
6413 * PickView.h: New file.
6414 * Makefile.in: Add new objects to setup.exe.
6415 Backout -fno-exceptions option.
6416 * choose.cc: Include PickView.h.
6417 Remove view related defines and static variables.
6418 (_pkg_headers): Moved to PickView.cc.
6419 (_cat_headers): Ditto.
6420 (view::views::Unknown): Ditto.
6421 (view::views::PackageFull):
6422 (view::views::Package):
6423 (view::views::Category):
6424 (pkgtrustp): Moved to package_meta.cc.
6425 (add_required): Moved to package_meta.cc.
6426 (pick_category_line::empty): Moved to PickCategoryLine.cc
6427 (paint): Adjust for moved static variables.
6428 (view::scroll): Moved to PickView.cc.
6429 (list_vscroll): Adjust for moved static variables.
6430 (list_hscroll): Ditto.
6431 (list_click): Ditto.
6432 (note_width): Moved to PickView.cc.
6433 (view::view): Ditto.
6434 (view::set_view_mode): Ditto.
6435 (view::mode_caption): Ditto.
6436 (view::views::caption): Ditto.
6437 (view::set_headers): Ditto.
6438 (DoInsertItem): Ditto.
6439 (view::init_headers): Ditto.
6440 (view::insert_pkg): Ditto.
6441 (view::insert_category): Ditto.
6442 (view::clear_view): Ditto.
6443 (view::views::operator++): Ditto.
6444 (view::click): Ditto.
6445 (default_trust): Adjust for moved statics.
6446 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
6447 (pick_pkg_line::click): Ditto.
6448 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
6449 (pick_category_line::paint): Ditto.
6450 (pick_category_line::click): Ditto.
6451 (set_view_mode): Adjust for moved statics.
6452 (create_listview): Ditto.
6453 * choose.h: Remove Category and packagemeta forward defines -
6454 not needed.
6455 Don't include unneeded headers list and package_meta.
6456 (_header): Move to PickView.h.
6457 (pick_line): Move to PickLine.h.
6458 (pick_pkg_line): Move to PickPackageLine.h.
6459 (pick_category_line): Move to PickCategoryLine.h.
6460 (view): Move to PickView.h.
6461 * ini.h (trusts): Move to package_meta.h.
6462 * package_meta.h (trusts): New enum.
6463 (packagemeta::set_requirements): New helper method.
6464 (packagemeta::trustp): Ditto.
6465
6466 2002-01-21 Christopher Faylor <cgf@redhat.com>
6467
6468 * choose.h (view): Move forward declaration of views into public area
6469 or g++ v3 will complain.
6470
6471 2002-01-21 Christopher Faylor <cgf@redhat.com>
6472
6473 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
6474 * win32.h (alloca): Define as __builtin_alloca.
6475 * io_stream_memory.cc: Add include file.
6476
6477 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
6478
6479 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as
6480 destroyed.
6481 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
6482 * compress.cc (compress::~compress): Be less verbose.
6483 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
6484 Mark the stream as destroyed.
6485 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as
6486 destroyed.
6487 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not
6488 marked as destroyed.
6489 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
6490 stream as destroyed.
6491 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
6492 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
6493
6494 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
6495
6496 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
6497 (OBJS): Link in malloc objects.
6498 * category.cc (category): Use new char, not strdup.
6499 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
6500 (do_choose): Use new char, not malloc.
6501 * concat.cc (vconcat): Ditto.
6502 * cygpackage.cc (cygpackage): Use new char, not strdup.
6503 (set_canonical_version): Ditto.
6504 (cygpackage::destroy): Use delete[], not free.
6505 * desktop.cc (uexists): Ditto.
6506 * dialog.cc (egest): Use new char, not strdup.
6507 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
6508 * hash.cc (hash::hash): Use delete instead of free.
6509 (hash::add): Use new char, not strdup.
6510 * ini.cc (do_remote_ini): Use delete[] not free.
6511 * inilex.l: Use new char, not strdup.
6512 (ini_init): Ditto.
6513 * iniparse.y: Ditto.
6514 Use a local package_db rather than a static one.
6515 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
6516 (do_install_thread): Call mallinfo to force a consistency check. Appears
6517 to fix a 'inuse' error in -DDEBUG builds.
6518 Use delete[] for strings.
6519 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new
6520 char, not strdup.
6521 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
6522 (io_stream_cygfile::remove): Use new char, not strdup.
6523 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not
6524 strdup.
6525 (io_stream_file::io_stream_file): Use delete[], not free.
6526 (io_stream_file::remove): Use new char, not strdup.
6527 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
6528 * io_stream_memory.h (memblock): Use new char, not malloc.
6529 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
6530 * main.cc (WinMain): Use new char, not strdup.
6531 * mount.cc (find2): Use new char, not malloc.
6532 (read_mounts): Ditto.
6533 (cygpath): Use new char, not strdup.
6534 * netio.cc (NetIO::~NetIO): Use delete[], not free.
6535 (NetIO::set_url): Use new char, not strdup.
6536 (NetIO::get_ftp_auth): Use delete[], not free.
6537 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
6538 Use new char instead of strdup.
6539 * nio-http.cc (base64_encode): Use new char, not malloc.
6540 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
6541 * package_source.h (~ packagesource): Use delete[] instead of delete.
6542 * port.h (strdup): Deprecate the use of strdup.
6543 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
6544 * script.cc (init_run_script): Us delete[], not free.
6545 (run_script): Ditto.
6546 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
6547 (SimpleSocket::invalidate): Use delete[], not free.
6548 * site.cc (site_list_type::init): Use new char instead of strdup.
6549 * site.h (~site_list_type): Use delete[], not free.
6550
6551 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
6552
6553 * Makefile.in (OBJS): Add win32.o - win32 support functions.
6554 * README: Update todos.
6555 * archive.cc (extract_file): Support a suffix for appending to extracted
6556 files.
6557 * archive.h: Ditto.
6558 * choose.cc (set_view_mode): Use the new view::views class.
6559 (view::views::Unknown): New static for defaulting view::views variables.
6560 (view::views::PackageFull): New static for the current view.
6561 (view::views::Package): Ditto.
6562 (view::views::Category): Ditto.
6563 (topbucket::paint): Remove.
6564 (topbucket::empty): Rename to pick_category_line::empty.
6565 (topbucket::~topbucket): Remove.
6566 (paint): Use the new view::views class.
6567 Don't paint 'all' as a category when showing package categoies.
6568 (pick_category_line::actiontext): New method.
6569 (pick_category_line::paint): Make showing the category optional, and
6570 show the 'category action'.
6571 (pick_category_line::click): Make showing the category optional, and
6572 differentiate between the name being clicked, and the action
6573 description.
6574 (view::view): Use the new view::views class.
6575 (view::set_view_mode): Ditto.
6576 (view::mode_caption): Ditto.
6577 (view::views::caption): New method.
6578 (view::set_headers): Use the new view::views class.
6579 (view::clear_view): Ditto.
6580 (viewsplusplus): Replaced by
6581 (view::views::operator++): New operator.
6582 (set_view_mode): Use the new view::views class.
6583 (create_listview): Ditto.
6584 (dialog_cmd): Ditto.
6585 * choose.h (actions): Remove.
6586 (views): Remove.
6587 (pick_line): Add a new convenience constructor.
6588 (top_bucket): Remove.
6589 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
6590 (view::views): New class.
6591 * ini.h: Don't include choose.h
6592 (is_download_action): Remove.
6593 (is_upgrade_action): Remove.
6594 (is_uninstall_action): Remove.
6595 (is_full_action): Remove.
6596 * install.cc (num_replacements): New static.
6597 (rebootneeded): Ditto.
6598 (replace_one): Handle upgrades separate from removal or new installs.
6599 (install_one_source): Handle in use files.
6600 (install_one): Don't repeat upgrades.
6601 (do_install_thread): Initialize new statics.
6602 Order actions as uninstall, replace, install.
6603 Warn about rebooting if needed.
6604 * res.rc (IDS_REBOOT_REQUIRED): New string.
6605 * resource.h (IDS_REBOOT_REQUIRED): Give value.
6606 * win32.h: Declare class Win32, and update copyright and intent message.
6607 * win32.cc: New file.
6608
6609 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
6610
6611 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
6612 * package_meta.cc (packagemeta::uninstall): Check for additional
6613 Windows shortcut. Unset R/O file attribute before trying to delete
6614 file.
6615
6616 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
6617
6618 * choose.cc (pkgtrustp): Fall back to installed if a package is not
6619 present in the current trust level. For prev, fall back via curr.
6620 (set_existence): Allow sources with no sites, but cached files to be
6621 kept.
6622 (pick_category_line::paint): Start drawing clickable categories.
6623 * fromcwd.cc (found_file): Reinstate local file scanning.
6624
6625 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6626
6627 * fromcwd.cc: Run indent.
6628 (do_fromcwd): Reverse sense of comment. Set next_dialog
6629 to IDD_CHOOSER instead of IDD_CHOOSE.
6630 * ini.cc (find_routine): Remove "/" from "/setup.ini".
6631
6632 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
6633
6634 * category.cc (Categorycmp): Add a const safe version.
6635 * category.h (Categorycmp): Add a const safe version.
6636 (Category): Add operator ==.
6637 * choose.cc (fill_missing_category): Add every package to "All".
6638 (pick_category_line::paint): Add support for hidden labels, and a tree
6639 depth.
6640 (pick_category_line::click): Ditto.
6641 (view::view): Pass in a top level category to use.
6642 (view::insert_pkg): Special case - skip category "All".
6643 (view::insert_category): Ditto.
6644 (view::clear_view): Set the contents label state.
6645 (create_listview): Pass in a top level category to view().
6646 * choose.h (topbucket): Make bucket available to derived classes.
6647 (pick_category_line): Add support for hidden labels, and a tree depth.
6648 Remove our second copy of bucket.
6649 (view): Pass in a top level category to the constructor.
6650 Use pick_category_line to allow three level display.
6651
6652 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
6653
6654 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
6655 * iniparse.y (add_correct_version): Copy descriptions across.
6656 * package_meta.cc (SDesc): Iterate through versions, return the first
6657 with a description.
6658 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
6659
6660 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
6661
6662 * script.cc (run_script): Change cygpath:// to cygfile://.
6663 * install.cc (do_install_thread): Fix off-by-one errors.
6664
6665 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
6666
6667 * package_db.cc (packagedb::flush): Fix an off-by-one error.
6668
6669 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
6670
6671 * Makefile.in (realclean): more clean.
6672 (OBJS): Add script.o.
6673 * postinstall.cc (run_script_in_etc_postinstall): New function.
6674 (do_postinstall): Split off new funtion init_run_script ().
6675 (init_run_script):
6676 (run):
6677 (run_script): Move to script.cc. Replace some deprecated remove
6678 and move calls.
6679 * script.h:
6680 * script.cc: New file.
6681 * Forward port cygwin-20010707.jcn3.patch.
6682 * package_meta.cc (uninstall): Run pre- and postremove scripts.
6683 * install.cc: Typo fix.
6684 (do_install): Run script initialisation.
6685
6686 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6687
6688 * cistring.cc: Run d2u.
6689 * cistring.h: Run d2u.
6690
6691 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
6692 from the generated /etc/profile. Bash will source this file
6693 automatically, and having this here merely results in .bashrc being
6694 executed twice. Run d2u.
6695 * desktop.h: Run d2u.
6696
6697 * propsheet.cc: Run d2u.
6698 (PropSheetProc): New function. Add minimize box here instead of in
6699 PropertyPage::DialogProc.
6700 (PropSheet::Create): Change to use creation callback PropSheetProc.
6701 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
6702
6703 * propsheet.h: Run indent, d2u.
6704 * proppage.h: Run indent, d2u.
6705
6706 * proppage.cc: Run d2u.
6707 (PropertyPage::DialogProc): Remove minimize-box-adding
6708 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
6709 Add support for calling virtual OnMessageCmd. Add setting of fonts in
6710 WM_INITDIALOG handler.
6711 (resource.h): New include for resource IDs.
6712
6713 * res.rc: Resize and rearrange property page dialog templates
6714 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
6715 specification. Run d2u.
6716 (IDD_SITE): Add an edit control and an "Add" button in order to
6717 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
6718 (IDD_OTHER_URL): Remove dialog template.
6719 (IDD_DLSTATUS): Remove dialog template.
6720
6721 * site.cc: Run d2u.
6722 (SitePage::OnBack): Remove NEXT() macro invocation.
6723 (SitePage::OnActivate): New member function.
6724 (load_dialog): Remove. Functionality subsumed into
6725 SitePage::OnActivate.
6726 (save_dialog): Change to support both list and user URLs. Remove
6727 OTHER_IDX and mirror_idx logic.
6728 (SitePage::PopulateListBox): New member function.
6729 (SitePage::CheckControlsAndDisableAccordingly): New member function.
6730 (SitePage::OnMessageCmd): New override.
6731 (check_if_enable_next): Remove.
6732 (dialog_cmd): Remove.
6733 (do_download_site_info_thread): Remove calls to NEXT() macro.
6734 (SitePage::Create): Call the single-param PropertyPage::Create
6735 overload.
6736 (other_url): New static taken from other.cc.
6737 (SitePage::OnNext): Remove mirror_idx logic.
6738 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
6739 list box populating code, now handled in SitePage::PopulateListBox.
6740 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
6741 (save_site_url): Fix potential buffer overflow problem. Switched to
6742 TCHAR in grossly premature preparation for multilingual support.
6743 * site.h: Run d2u.
6744 (SitePage::OnActivate): New member function.
6745 (SitePage::CheckControlsAndDisableAccordingly) New member.
6746 (SitePage::OnMessageCmd): New override.
6747 (do_download_site_info_thread): Add MessageBox call on failure to
6748 download site list.
6749
6750 * splash.cc: Run d2u.
6751 (SplashPage::OnInit): Set the font for the title.
6752 * splash.h: Run d2u.
6753
6754 * threebar.cc: Run d2u.
6755 * threebar.h: Run d2u.
6756
6757 * window.h: Run d2u.
6758 (Window::IsButtonChecked): New member function declaration.
6759 (Window::OnMessageCmd): New member function.
6760 (Window::SetDlgItemFont): New member function declaration.
6761 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
6762 members.
6763 * window.cc: Run d2u.
6764 (Window::IsButtonChecked): New member function definition.
6765 (Window::SetDlgItemFont): New member function definition.
6766 (Window::Window): Add initialization for FontCounter.
6767 (Window::~Window): Delete any fonts we created.
6768
6769 * geturl.cc: Run d2u.
6770 (progress): Remove the "3" field width from the "%3d"
6771 percent-complete format indicator. Causes line to not start at
6772 beginning of text box, and does little to help with "jumping", since
6773 the "bytes downloaded so far" field is variable-width anyway. Change
6774 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
6775 painfully slow connections, or temporary slowdowns in faster
6776 connections should such more-instantaneous functionality become
6777 available.
6778
6779 * net.h: Run d2u.
6780 (NetPage::OnMessageCmd): New member function declaration.
6781 (NetPage::CheckIfEnableNext): New member function declaration.
6782 * net.cc: Run d2u.
6783 (NetPage::OnMessageCmd): New member function definition.
6784 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
6785 (check_if_enable_next): Remove.
6786 (NetPage::CheckIfEnableNext): New member function, subsumes
6787 check_if_enable_next.
6788 (propsheet.h): Add include.
6789 (NetPage::Init): Add call to CheckIfEnableNext.
6790 (load_dialog): Remove call to check_if_enable_next.
6791 (NetPage::Create): Call single-template-ID-parameter overload of
6792 PropertyPage::Create instead of three-parameter one.
6793
6794 * Makefile.in (OBJS): Remove other.o.
6795 * other.cc: Remove file.
6796
6797 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
6798
6799 * README: Update TODO's.
6800 * choose.cc (set_existence): Delete non installed packages with no
6801 mirrors.
6802 (fill_missing_category): Fix an off-by-one error.
6803 (default_trust): Ditto. Also delete any unused categories.
6804 (view::init_headers): Fix an off-by-one error.
6805 (set_view_mode): Ditto.
6806 (set_view_mode): Ditto.
6807 (create_listview): Ditto.
6808 (dialog_cmd): Ditto.
6809 (do_choose): Ditto.
6810 * io_stream.cc: Indent.
6811 * io_stream.h: Ditto.
6812 * package_db.cc: Ditto.
6813 * package_meta.h: Const correctness for SDesc ();
6814 * proppage.cc: Run d2u and indent.
6815 * propsheet.cc: Run d2u and indent.
6816 * window.cc: Run d2u and indent.
6817 * window.h: Run d2u and indent.
6818
6819 2001-12-28 Christopher Faylor <cgf@redhat.com>
6820
6821 * Makefile.in (iniparse.o): Accommodate newer bisons.
6822
6823 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6824
6825 * window.h (Window): New file, new class.
6826 * window.cc (Window): New file, new class.
6827
6828 * threebar.h (ThreeBarProgressPage): New file, new class.
6829 * threebar.cc (ThreeBarProgressPage): New file, new class.
6830
6831 * splash.h (SplashPage): New file, new class.
6832 * splash.cc (SplashPage): Replace file with implementation of new
6833 class.
6834
6835 * source.h (SourcePage): New file, new class.
6836 * source.cc: Run indent.
6837 (SourcePage): Add class implementation to this file.
6838 (do_source): Remove, functionality subsumed by SourcePage::Create()
6839 and SourcePage::OnDeactivate().
6840 (dialog_proc): Remove, functionality subsumed by
6841 SourcePage::OnActivate().
6842
6843 * site.h: Run indent.
6844 (SitePage): Add class declaration.
6845 * site.cc: Run indent.
6846 (SitePage): Add class implementation.
6847 (do_download_site_info_thread): New function.
6848 (context): New var. Context info for do_download_site_info_thread().
6849 (do_download_site_info): New function.
6850 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
6851 (SitePage::OnBack): SitePage class implementation..
6852 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
6853 by SitePage members.
6854 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
6855 functionality.
6856 (do_site): Remove, now handled by do_download_site_info_thread() and
6857 SitePage::OnNext functionality.
6858 (get_site_list): Remove dismiss_url_status_dialog() call.
6859
6860 * root.h (RootPage): New file, new class.
6861 * root.cc: Run indent.
6862 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
6863 (dialog_proc): Remove.
6864 (do_root): Remove
6865 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
6866 (RootPage::OnInit): New member function. Move get_root_dir() logic to
6867 here from do_root().
6868 (RootPage::Create): New member function.
6869 (RootPage::OnNext): New member function. Move IDOK logic from
6870 dialog_cmd() to here.
6871 (RootPage::OnBack): New member function.
6872
6873 * propsheet.h (PropSheet): New file, new class.
6874 * propsheet.cc (PropSheet): New file, new class.
6875
6876 * proppage.h (PropertyPage): New file, new class.
6877 * proppage.cc (PropertyPage): New file, new class.
6878
6879 * postinstall.cc (do_postinstall): Add owner parameter.
6880
6881 * other.cc (do_other): Add owner parameter.
6882
6883 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
6884 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
6885 get_ftp_auth().
6886 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
6887 get_proxy_auth(),
6888 and get_ftp_auth().
6889 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
6890 get_auth(), get_proxy_auth().
6891
6892 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
6893 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
6894 NetIO::get_ftp_auth)
6895 (auth_common): Add owner param. Pass owner param to DialogBox.
6896 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
6897 owner param to auth_common().
6898
6899 * net.h (NetPage): New file, new class.
6900 * net.cc: Run indent.
6901 (net.h, threebar.h): Add includes.
6902 (Progress): Add extern.
6903 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
6904 property sheet logic. Saved temporarily for reference.
6905 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
6906 NetPage::OnNext, NetPage::OnBack):
6907 New implementation of NetPage class members.
6908 (do_net): Remove.
6909 (dialog_proc): Remove.
6910
6911 * msg.h (fatal, note, yesno): Add owner param.
6912 * msg.c (fatal, note, yesno, mbox): Add owner param.
6913 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
6914 now that we have a parent.
6915
6916 * main.cc: Run indent.
6917 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
6918 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
6919 headers.
6920 (root_dialog_proc): extern into this file.
6921 (Progress): Progress dialog defined here, used in several other files.
6922 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
6923 Site, Chooser, Desktop pages and MainWindow sheet. Call
6924 InitCommonControls() to make sure Windows is set up for our use of
6925 property sheets. Add pages to sheet.
6926 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
6927 now handled by the PropSheet class.
6928 (root.h): Add include.
6929
6930 * log.cc (log_save): Pass NULL parent to fatal().
6931 (exit_setup): Pass NULL parent to note().
6932
6933 * localdir.h (LocalDirPage): New file, new class.
6934 * localdir.cc: Run indent.
6935 (localdir.h): New include.
6936 (threebar.h): New include.
6937 (Progress): extern into this file.
6938 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
6939 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
6940 LocalDirPage.
6941 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
6942 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
6943 (do_local_dir): Remove.
6944 (dialog_proc): Remove.
6945 (cwd): Remove, not used by anything.
6946
6947 * install.cc: Run indent.
6948 (process.h, threebar.h): New includes.
6949 (Progress): extern into this file.
6950 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
6951 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
6952 ThreeBarProgressPage.
6953 (dialog_cmd, dialog_proc, dialog): Removed, handled in
6954 ThreeBarProgressPage.
6955 (init_dialog): Remove all mention of the above ins_* handles. Now
6956 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
6957 ThreeBarProgressPage instance Progress directly.
6958 (progress): Alter bar update logic to call ThreeBarProgressPage
6959 instance Progress directly.
6960 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
6961 instance Progress directly.
6962 (install_one_source): Alter SetWindowText()s to call
6963 ThreeBarProgressPage
6964 instance Progress directly. Pass NULL parent to note().
6965 (do_install_thread): Rename from do_install(), added owner param.
6966 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
6967 directly.
6968 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
6969 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
6970 fatal().
6971 (do_install_reflector): New function.
6972 (do_install): New function.
6973
6974 * ini.cc (process.h, threebar.h): New includes.
6975 (Progress): externed into this file.
6976 (find_routine): Pass NULL parent to note().
6977 (do_local_ini): Add owner param.
6978 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
6979 and note(). Remove call to dismiss_url_status_dialog().
6980 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
6981 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
6982 to IDD_CHOOSER on exit.
6983 (do_ini_thread_reflector): New function.
6984 (context): New var. Context for do_ini_thread.
6985 (do_ini): New function.
6986
6987 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
6988 owner param.
6989 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
6990 gw_iprogress)
6991 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
6992 Removed.
6993 (threebar.h): New include.
6994 (Progress): externed into this file.
6995 (dialog_cmd, dialog_proc, dialog): Removed, handled by
6996 ThreeBarProgressPage now.
6997 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
6998 SetWindowText()s
6999 and bar setting SendMessage()s to call ThreeBarProgressPage instance
7000 Progress directly. Remove "one bar only" logic, this is now handled
7001 explicitly in the ThreeBarProgressPage class.
7002 (progress): Altered bar and text update logic to call
7003 ThreeBarProgressPage instance Progress directly. Changed kbps
7004 calculation to floating point and now print out a single decimal
7005 place.
7006 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
7007 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
7008 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
7009 update logic to call ThreeBarProgressPage instance Progress directly.
7010 (dismiss_url_status_dialog): Remove.
7011
7012 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
7013 false, was true.
7014
7015 * download.cc: Run indent.
7016 (process.h, threebar.h): New includes.
7017 (Progress): externed into this file.
7018 (download_one): Add owner param. Pass it to get_url_to_file().
7019 (do_download_thread): Renamed from do_download. Add owner param. When
7020 calculating total_download_bytes, take binpicked and srcpicked into
7021 account. Remove call to dismiss_url_status_dialog(), no longer needed.
7022 Pass owner handle to download_one() and yesno().
7023 (do_download_reflector, do_download): New functions.
7024 (context): New var. Context for do_download_thread().
7025
7026 * dialog.h (D(x)): Add owner param.
7027
7028 * desktop.h (DesktopSetupPage): New file, new class.
7029 * desktop.cc: Run indent.
7030 (desktop.h): Add include.
7031 (dialog_proc, do_desktop): Remove, now handled in
7032 DesktopSetupPage::OnInit().
7033 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
7034 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
7035 resp.
7036 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
7037 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
7038 of DesktopSetupPage.
7039
7040 * cistring.h: New file, new class.
7041 * cistring.cc: New file, new class.
7042
7043 * choose.h: Run indent.
7044 (Chooser): New class declaration.
7045 * choose.cc: Run indent.
7046 (do_choose): Add owner param. Pass it to DialogBox() and
7047 fatal().
7048 (Chooser): New class implementation.
7049
7050 * res.rc (IDS_VERSION_INFO): New string.
7051 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
7052 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
7053 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
7054 throughout.
7055 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
7056 TAB control navigation etc. Give the controls a reasonable tab order.
7057 Grouped radio buttons. Something's still not right, can't tab away
7058 from back/next/cancel group reliably.
7059 * resource.h (IDD_CHOOSER): New dialog ID.
7060
7061 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
7062 threebar.o, and window.o.
7063
7064 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
7065
7066 * choose.cc (listview_proc): Update the scrollbar when the headers are
7067 dragged.
7068 (pick_pkg_line::paint): Clip columns to prevent overlap.
7069
7070 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
7071
7072 * Makefile.in: Add libcomctl32.a for setup.exe.
7073 * archive.h (archive): Prevent non-child direct creation of the class.
7074 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and
7075 assignment.
7076 * choose.cc: Include commctrl for the choose header.
7077 (NEW_COL_SIZE_SLOP): Define without magic numbers.
7078 (pkgtrustp): Convert to function.
7079 (set_action): Remove.
7080 (add_required, fill_missing_category,default_trust): Use list syntax for
7081 package list.
7082 Use new set_action.
7083 (choose_caption): Remove.
7084 (topbucket::paint): New method.
7085 (topbucket::empty): Ditto.
7086 (topbucket::click): Ditto.
7087 (topbucket::~topbucket): Ditto.
7088 (paint): Remove i,ii and p as they are obsolete.
7089 Remove header drawing code.
7090 Use new chooser method to paint the chooser.
7091 Use new chooser itemcount method.
7092 (scroll_common): Rename to view::scroll.
7093 Scroll the header window separately.
7094 (list_vscroll, list_hscroll, list_click): Update for new chooser
7095 methods.
7096 (listview_proc): Look for header messages.
7097 (note_width): Accept stringless calls.
7098 (pick_line::set_line): Remove.
7099 (pick_line::paint): Remove.
7100 (pick_pkg_line::paint): Paint this one line, using the header column
7101 widths.
7102 (pick_category_line::paint): Paint this category, and anything in the
7103 bucket.
7104 (pick_line::click): Remove.
7105 (pick_pkg_line::click): Handle a click.
7106 (pick_category_line::click): Handle a click.
7107 (_view): Rename all to view.
7108 (view::view): Initialise the control contents.
7109 (view::set_headers): Work with the header control.
7110 (view::init_headers): Use list syntax for package list.
7111 Rearrange the width logic a little.
7112 (view::insert_pkg): Update to use the hierarchy.
7113 (view::insert_category): Ditto.
7114 (view::insert_at, view::insert_under): Remove.
7115 (view::clear_view): Update to use the hierarchy.
7116 (view::click): Update to use the hierarchy.
7117 (set_view_mode): Use list syntax for package list.
7118 Update for new chooser methods.
7119 (DoInsertItem): New helper function. (Needs a home somewhere).
7120 (create_listview): Remove choose control code and use the constructor
7121 instead.
7122 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
7123 * choose.h: Include newly required headers list and package_meta.
7124 (_voew): Rename to view.
7125 (pick_line): Convert to an ABC.
7126 (pick_pkg_line): New class.
7127 (pick_catgory_line): New class.
7128 (topbucket): New class.
7129 (view::scroll): New method created from listview_scroll function.
7130 * desktop.cc (make_passwd_group): Use list syntax for package list.
7131 * download.cc (do_download): Use list syntax for package list.
7132 * fromcwd.cc (found_file): Use list syntax for package list.
7133 * iniparse.y (pacakges): Use list syntax for package list.
7134 * install.cc (uninstall_one): Use list syntax for package list.
7135 (do_install): Use list syntax for package list.
7136 * io_stream.h (io_stream): Prevent non-child direct creation of the
7137 class.
7138 Prevent inaccurate synthetic copy and assignment.
7139 * list.h: Include required header stdlib.
7140 Work on const correctness.
7141 * package_db.cc (packagedb::getpackagebyname): Remove.
7142 (packagedb::packagedb): Remove custom list code, and make db a local.
7143 (packagedb::getfirstpackage): Remove.
7144 (packagedb::getnextpackage): Remove.
7145 (packagedb::addpackage): Remove.
7146 (flush): Remove custom list code.
7147 (packagedb::registerpackage): Remove.
7148 (packagedb::packages): New static member.
7149 (packagedb::task): New static member.
7150 * package_db.h (PackageDBActions): New enum.
7151 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
7152 addpackage, registerpackage, packages, packagecount, curr_package, db.
7153 Add packages, task.
7154 * pacakge_meta.cc: Include package_db.h.
7155 (packagemeta::action_caption): New method.
7156 (packagemeta::set_action): New method.
7157 * package_meta.h (CategoryPackage): Initialise key.
7158 (packagemeta): Initialise key.
7159 Add set_action and action_caption methods.
7160 Prevent inaccurate synthetic copy and assignment.
7161 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
7162 * source.cc: Include package_db for db manipulation.
7163 (save_dialog): Set the db task.
7164 * win32.h: Tell the w32 include headers what IE version to
7165 expect/require.
7166
7167 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
7168
7169 * README: Wishlist updates.
7170
7171 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7172
7173 * package_db.cc (getnextpackage): Don't overrun the array.
7174
7175 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7176
7177 * Makefile.in (OBJS): Add setup_version.o.
7178 (version.c): Rename to setup_version.
7179 * choose.cc (set_action): Prevent NULL pointer dereference.
7180 (package_sort): Remove.
7181 * fromcwd.cc (canonicalize_version): Moved to version.cc.
7182 (check_ini): New function for use with find to see if there is a cached
7183 setup.ini.
7184 (do_fromcwd): Check for a cached setup.ini from any mirror site.
7185 * ini.cc (find_routine): New function, for finding cached setup.ini's.
7186 (do_local_ini): New function, drives parsing of local ini's.
7187 (do_remote_ini): New function, drives parsing and caching of remote
7188 ini's.
7189 (do_ini): Move guts to do_remote_ini and do_local_ini.
7190 * list.h (removebyindex): New method.
7191 * other.cc (save_dialog): Use new site_list and all_site_list to add the
7192 new site to the site picklist.
7193 (dialog_cmd): Only save the dialog when exiting the dialog.
7194 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
7195 * site.cc (site_list_type): Move to site.h
7196 (site_list): New global, sites chosen by the user.
7197 (all_site_list): New global, all potential sites.
7198 (site_list_type::init): New method, parses a mirror.lst URL string into
7199 a site_list_type object.
7200 (site_list_type::site_list_type): New method.
7201 (check_if_enable_next): Examine the control, not a local variable.
7202 (load_dialog): Select all the user chosen sites by default.
7203 (save_dialog): Adjust for multiple selection semantics.
7204 (save_site_url): Save all user chosen sites.
7205 (dialog_cmd): Don't save the dialog when the listbox recieves a message
7206 - thats not needed.
7207 Remove obsolete other_url reference.
7208 (dialog_proc): Use all_site_list instead of site_list.
7209 (site_sort): Remove.
7210 (get_site_list): Remove malloc use - use list template instead.
7211 Move site_list_type initialisation to site_list_type::init().
7212 (get_initial_list_idx): Renamed to ...
7213 (get_saved_sites): this. Also read in multiple sites to the site_list.
7214 (do_site): Use all_site_list not site_list.
7215 Log all chosen sites.
7216 * site.h: New file, defines site related class, functions and variables.
7217 * state.h: Add comment about use of state.h
7218 (mirror_site): Remove.
7219 (other_url): Remove.
7220 (MIRROR_SITE): Remove.
7221 * version.cc: New file, for version-handling and related functions.
7222
7223 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
7224
7225 * Makefile.in: Add filemanip.o to setup.
7226 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
7227 * archive_tar.h (archive_tar_file): Implement get_size virtual.
7228 (archive_tar): Ditto.
7229 * choose.cc (set_action): Use [] operator instead of getnth - its more
7230 readable.
7231 (paint): Ditto.
7232 (_view::init_headers): Ditto.
7233 (_view::insert_pkg): Ditto.
7234 (set_view_mode): Ditto.
7235 (scan2): Ditto.
7236 (do_choose): Ditto.
7237 (base): Moved to filemanip.cc.
7238 (find_tar_ext): Ditto.
7239 (parse_filename): Ditto.
7240 (_Info::_Info): Remove.
7241 * compress_bz.h (compress_bz): Implement get_size virtual.
7242 * compress_gz.h (compress_gz): Implement get_size virtual.
7243 * cygpackage.cc (cygpackage::destroy): Use array delete for char *
7244 objects.
7245 * download.cc (get_file_size): Move to filemanip.cc.
7246 (check_for_cached): Use [] operator instead of getnth - its more
7247 readable.
7248 (download_one): Ditto.
7249 * filemanip.cc: New file.
7250 * geturl.cc (init_dialog): Make url a pointer to const as it is not
7251 modified.
7252 (get_url_to_membuf): New function - contains get_url_to_string worker
7253 code.
7254 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
7255 * geturl.h: Declare new prototype.
7256 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
7257 Tidy up the error code a little.
7258 * ini.h: Remove __cplusplus protection for ini_init.
7259 (_Info): Remove.
7260 * inilex.l: Remove old globals.
7261 (ini_init): Use an io_stream for getting the characters.
7262 (ini_getchar): Ditto.
7263 * iniparse.y: Declare yylex as a C++ function.
7264 (add_correct_version): Use [] operator instead of getnth - its more
7265 readable.
7266 * io_stream.cc (io_stream::move_copy): Use the copy method.
7267 (io_stream::copy): New method to simply copy from one stream to another.
7268 * io_stream.h (io_stream): New static method copy, and virtual method
7269 get_size.
7270 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
7271 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
7272 * io_stream_file.cc (io_stream_file::get_size): Implement this.
7273 * io_stream_file.h (io_stream_file::get_size): Declare this.
7274 * io_stream_memory.h: Include errno as it's neded to parse the header.
7275 (io_stream_memory::get_size): Implement this.
7276 (io_stream_memory::st_size): Delete this.
7277 * list.h: Change getnth into the [] operator.
7278 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being
7279 modified.
7280 (NetIO::set_url): Ditto.
7281 (NetIO::open): Ditto.
7282 * netio.h: As for netio.cc.
7283 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect
7284 Purl not being modified.
7285 * nio-file.h: Ditto.
7286 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
7287 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
7288 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
7289 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
7290 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
7291 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
7292 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
7293 * package_source.cc (packagesource::set_canonical): Ditto.
7294 (packagesource::set_cached): Ditto.
7295 * package_source.h (site::~site): Ditto.
7296 * site.cc: Change site_list_type to a class, and search and replace
7297 sort_key to key globally.
7298
7299 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
7300
7301 * package_source.cc (packagesource::set_canonical): Filename was out by
7302 one.
7303
7304 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
7305
7306 * Makefile.in (OBJS): Remove category_list - it's not needed.
7307 * README: More wishlist updates.
7308 * category.cc (Category::Category): Initialise new members.
7309 (Categorycmp): New function.
7310 * category.h (Category): New member key for template use.
7311 * category_list.cc: Remove.
7312 * category_list.h: Remove.
7313 (Categorycmp): New function prototype.
7314 * choose.cc: Remove category_list - not needed.
7315 (set_action): Only show the 'source' option when the source is actually
7316 available.
7317 (add_required): Fix recursion limiter to 5.
7318 (fill_missing_category): Use list access.
7319 (default_trust): Ditto.
7320 (pick_line::paint): Ditto.
7321 (_view::init_headers): Ditto.
7322 (_view::insert_pkg): Ditto.
7323 (_view::insert_category): Ditto.
7324 (_view::click): Ditto.
7325 (set_view_mode): Ditto.
7326 (do_choose): Ditto.
7327 * cygpackage.h: Remove category_list - not needed.
7328 * geturl.cc (get_url_to_string): Fix null byte insertion.
7329 * inipatse.y: Remove category_list - not needed.
7330 (categories): Use list access.
7331 * package_db.cc: Ditto.
7332 * package_db.h: Remove category_list - not needed.
7333 (packagedb): Use the list template for categories.
7334 * package_meta.cc (add_category): Ditto.
7335 * package_meta.h (CategoryPackage): Link to the category as well.
7336 (packagemeta): Use a list of CategoryPackages instead of Categories
7337 for more memory efficient cross-referencing.
7338
7339 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
7340
7341 * package_db.cc (packagedb::flush): Write a canonical version for all
7342 packages irrespective of the media they were installed from.
7343
7344 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
7345
7346 * Makefile.in (OBJS): Add package_source and rfc1738.
7347 * README: Wishlist update.
7348 * category_list.cc (register_category): Use references.
7349 * category_list.h (CategoryList): Ditto.
7350 * choose.cc (isinstalled): Remove.
7351 (pkgtrustp): New macro.
7352 (set_action): Use packagemeta.
7353 (add_required): Ditto.
7354 (choose_caption): Example package to choose caption, rather than state
7355 flags.
7356 (check_existence): Remove.
7357 (set_existence): Remove old code.
7358 (fill_missing_category): Use packagemeta.
7359 (keep_or_skip): Remove.
7360 (default_trust): Use packagemeta and set trust values directly.
7361 (pick_line::set_line): Use packagemeta.
7362 (_view::insert_pkg): Ditto.
7363 (_view::insert_category): Ditto.
7364 (_view::click): Ditto.
7365 (set_view_mode): Ditto. Also remove "exclude" code.
7366 (create_listview): Use packagemeta.
7367 (dialog_cmd): Ditto.
7368 (getpkgbyname): Remove
7369 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
7370 (read_installed_db): Remove.
7371 (package_sort): Use packagemeta.
7372 (do_choose): Use packagemeta. Don't sort the packages - the db does
7373 that.
7374 * choose.h: Use packagemeta.
7375 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
7376 (cygpackage::cygpackage): Ditto.
7377 (cygpackage::set_canonical_version): Copy the passed string.
7378 (cygpackage::~cygpackage): Move cleanup code to destroy().
7379 (cygpackage::destroy): New function.
7380 (cygpackage::getfirstfile): Use a separate buffer.
7381 (cygpackage::getnextfile): Ditto.
7382 (cygpackage::Canonical_version): New function.
7383 (cygpackage::set_sdesc): Ditto.
7384 (cygpackage::set_ldesc): Ditto.
7385 * cygpackage.h (cygpackage::Canonical_version): New method.
7386 (cygpackage::set_sdesc): New method.
7387 (cygpackage::set_ldesc): New method.
7388 (cygpackage::SDesc): New method.
7389 (cygpackage::LDesc): New method.
7390 (cygpackage::set_canonical_version): New method.
7391 * desktop.cc: Include packagedb headers.
7392 (make_password_group): Use packagemeta.
7393 * download.cc: Include packagedb headers.
7394 (check_for_cached): New method to find any cached file and fill out the
7395 database info.
7396 (download_one): Take a packagesource, support multiple mirrors.
7397 (do_download): Use packagemeta.
7398 * from cwd.cc: Include packagedb headers.
7399 (found_file): Use packagemeta.
7400 * ini.cc (do_ini): Beginning of multiple-mirror support.
7401 * ini.h (CategoryPackage): Remove.
7402 (Dependency): Remove.
7403 (Package): Remove.
7404 (new_package,getpkgbyname,getpackagecategorybyname,add_category):
7405 Remove.
7406 * inilex.l: Support multiple mirrors.
7407 * iniparse.y: Include packagedb headers.
7408 (parser): Use packagemeta.
7409 (new_package): Remove.
7410 (add_correct_version): New function.
7411 (new_requirement): Remove.
7412 (add_category): Remove.
7413 * install.cc (uninstall_one): Use packagemeta.
7414 (install_one_source): New function.
7415 (install_one): Use packagemeta.
7416 (do_install): Use packagemeta.
7417 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
7418 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the
7419 file after setting the mtime, it makes no sense, and results in 0 length
7420 files.
7421 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
7422 * list.h: New file, template class for a form of list.
7423 * package_db.cc (packagedb::registerpackage): New function.
7424 * package_db.h (packagedb::npackages ()): New method.
7425 * package_meta.cc (packagemeta::add_version): Use list template.
7426 (packagemeta::set_installed): Ditto.
7427 (packagemeta::add_category): New method.
7428 * package_meta.h: Include necessary headers to parse the class.
7429 (CategoryPackage): New class.
7430 (packagemeta): Initialise all members.
7431 (packagemeta::SDesc): New method.
7432 (packagemeta::Categories): New method.
7433 (packagemeta::add_category): Ditto.
7434 (packagemeta::versions): Change to be a list instance.
7435 * package_source.cc (packagesource::set_canonical): New method.
7436 (packagesource::set_cached): New method.
7437 * package_source.h: Include necessary headers to parse the class.
7438 (site): New class.
7439 (packagesource::packagesource): Initialize all members.
7440 (packagesource): Make this class non-abstract.
7441 * package_version.cc (packageversion::packageversion): New method.
7442 * package_version.h (Dependency): New class.
7443 (packageversion::Canonical_vesion): New method.
7444 (packageversion::SDesc): New method.
7445 (packageversion::LDesc): New method.
7446 (packageversion::new_requirement): Ditto.
7447 (packageversion::srcpicked, binpicked): What to install.
7448 (packageversion::src, bin): Installation source data.
7449 * rfc1738.cc: New file. Escapes special characters in URL's.
7450 * rfc1738.h: Ditto.
7451
7452 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
7453
7454 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
7455 SimpleSocket::gets() returns a zero-length string, so that we
7456 don't end up eating the entire stream thinking it's all header info.
7457
7458 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
7459
7460 * install.cc (badrename): Remove.
7461 (do_install): Use packagedb flush method to write
7462 /etc/setup/installed.db.
7463 * io_stream.cc (io_stream::move_copy): New method.
7464 (io_stream::move): New method.
7465 * io_stream.h (io_stream): New methods move and move_copy.
7466 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
7467 * io_stream_cygfile.h (io_stream_cygfile): New method move.
7468 * io_stream_file.cc (io_stream_file::move): New method.
7469 * io_stream_file.h (io_stream_file): New method move.
7470 * package_db.cc (packagedb::flush): New method.
7471 * package_db.h (packagedb): New method flush.
7472
7473 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
7474
7475 * Makefile.in (OBJS): Add package_version.
7476 * ategory.cc (Category::Category): Update constructors.
7477 * category_list.cc (CategoryList::register_category): Insert correctly.
7478 * choose.cc: Include package_version.h, not package.h.
7479 * cygpackage.cc: Ditto.
7480 (cygpackage::uninstall): New method.
7481 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
7482 New method uninstall.
7483 * hash.cc (add, has, enumerate): Change prototype to be accurate.
7484 * hash.h (hash): Change prototypes to be accurate.
7485 * ini.h (_Info): New parameterless constructor.
7486 (CategoryPackage): New constructor.
7487 (Package): Ditto.
7488 * install.cc: Don't include unneeded headers.
7489 Include package database headers.
7490 (hash::add_subdirs): Remove.
7491 (uninstall_one): Use packagemeta->uninstall to perform the
7492 uninstallation. Don't uninstall source packages.
7493 (do_install): Just can uninstall_one once as we ignore source packages
7494 now. Don't copy the installed.old database accross, instead iterate
7495 through the packagedb packages list and write the installed packages
7496 out.
7497 * package_db.cc: Include package_version.h, not package.h.
7498 (packagedb::packagedb): Never let db be undefined.
7499 Record the installation filename, so we can reconstruct installed.db.
7500 (packagedb::addpackage): Insert packages in alpha sorted order.
7501 (packagedb::categories): Initialise correctly.
7502 * package_meta.cc: Include win32 and mount headers as a workaround to
7503 current io_stream limitations. Include a TODO about that.
7504 (standard_dirs): New, from install.cc.
7505 (hash::add_subdirs): New, from install.cc.
7506 (packagemeta::set_installed): Rename genericpackage to packageversion.
7507 (packagemeta::uninstall): New method.
7508 * package_meta.h: Rename genericpackage to packageversion.
7509 (packagemeta): Update constructor.
7510 (add_version, set_installed): Rename genericpackage to packageversion.
7511 (uninstall): New method.
7512 (installed_from): New member.
7513 * package_source.cc: New file.
7514 * package_source.h: New file.
7515 * package_version.cc: New file.
7516 * package_version.h: New file.
7517 * package.cc: Removed.
7518 * package.h: Removed.
7519
7520 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7521
7522 * Makefile.in (OBJS): Add category.o and category_list.o.
7523 * category.h: New file.
7524 * category.cc: New file.
7525 * category_list.h: New file.
7526 * category_list.cc: New file.
7527 * choose.cc: Include category headers.
7528 (fill_missing_category): Use package_db to access global categories.
7529 (_view::insert_pkg): Ditto.
7530 (_view::insert_category): Ditto.
7531 (set_view_mode): Ditto.
7532 (getcategorybyname): Remove.
7533 * cygpackage.h: Include category_list.h to parse this correctly.
7534 (cygpackage): New virtual &Categories.
7535 * ini.h (_CategoryPackage): More C to C++ conversion.
7536 (Category): Remove.
7537 (getcategorybyname): Remove.
7538 (register_category): Remove.
7539 * iniparse.y: Include package db and category headers.
7540 (categories): Use package_db to access global categories.
7541 (category): Remove.
7542 (ncategories): Remove.
7543 (register_category): Remove.
7544 * package.h: New virtual &Categories.
7545 * package_db.cc (packagedb::packagedb): Don't read the installed db
7546 twice.
7547 (packagedb::categories): Declare.
7548 * package_db.h (packagedb): New member categories for global categories
7549 list.
7550
7551 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7552
7553 * choose.h: Don't include ini.h
7554 * ini.h: Allow pure c++ in the header file.
7555
7556 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7557
7558 * install.cc (do_install): Write a version 2 installed.db file.
7559 * package_db.cc (packagedb::packagedb): Read version 1 and 2
7560 installed.db files.
7561
7562 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7563
7564 * Makefile.in (OBJS): Add package abstraction objects.
7565 * choose.cc: Include package abstraction headers.
7566 (read_installed_db): Use packagedb class and ignore installed sources.
7567 * cygpackage.cc: New file.
7568 * cygpackage.h: New file.
7569 * filemanip.h (get_file_size): Use unixy types.
7570 * package.h: New file.
7571 * package.cc: New file.
7572 * package_db.cc: New file.
7573 * package_db.h: New file.
7574 * package_meta.cc: New file.
7575 * package_meta.h: New file.
7576
7577 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7578
7579 * REAME: Updates to wishlist.
7580
7581 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
7582
7583 * README: Updated and added my list of wishlist and todo items.
7584
7585 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
7586
7587 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
7588 * archive_tar.cc (archive_tar::write): New prototype.
7589 (archive_tar::seek): New method.
7590 * archive.h (archive_tar_file): Update write() and add seek().
7591 (archive_tar): Ditto.
7592 * archive_tar_file.cc (archive_tar_file::write): New prototype.
7593 (archive_tar_file::seek): New method.
7594 * compress_bz.cc (compress_bz::write): New prototype.
7595 (compress_bz::seek): New function.
7596 * compress_bz.h (compress_bz): Update write() and add seek().
7597 * compress_gz.cc (compress_gz::write): New prototype.
7598 (compress_gz::seek): New function.
7599 * compress_gz.h (compress_gz): Update write() and add seek().
7600 * geturl.cc: Include io_stream headers.
7601 (GUBuf): Remove.
7602 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
7603 * io_stream.h (io_stream_seek_t): New enum.
7604 (io_stream): Update write() and add seek().
7605 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
7606 (io_stream_cygfile::seek): New function.
7607 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add
7608 seek().
7609 * io_stream_file.cc (io_stream_file::write): New prototype.
7610 (io_stream_file::seek): New function.
7611 * io_stream_file.h (io_stream_file): Update write() and add seek().
7612
7613 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
7614
7615 * localdir.cc: Add headers unistd.h and port.h.
7616 (save_local_dir): Expand search logic to include local directory for
7617 location of file last-cache.
7618 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
7619 (do_local_dir): Expand search logic to include local directory for file
7620 last-cache.
7621 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
7622 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
7623 Internet.
7624 (do_source): Default to Install from Internet on first entry or
7625 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
7626
7627 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
7628
7629 * choose.cc (find_tar_ext): Only match at the end of the string.
7630 (getpkgbyname): Prevent NULL pointer dereference.
7631
7632 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
7633
7634 * Makefile.in (CFLAGS): Add warnings and -Werr.
7635 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter
7636 what.
7637 (OBJS): Add io_stream class' objects.
7638 (autoload.o): Use WARNONLY_FLAGS.
7639 (inilex.o): Ditto.
7640 (iniparse.o): Ditto.
7641 * archive.cc: New file.
7642 * archive.h: New file.
7643 * archive_tar.cc: New file.
7644 * archive_tar.h: New file.
7645 * archive_tar_file.cc: New file.
7646 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
7647 * choose.cc: Use io_stream.h, not mount.h.
7648 Run indent.
7649 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an
7650 extension.
7651 (read_installed_db): Use io_streams.
7652 * choose.h: Run indent.
7653 * compress.cc: New file.
7654 * compress.h: New file.
7655 * compress_bz.cc: New file.
7656 * compress_bz.h: New file.
7657 * compress_gz.cc: New file.
7658 * compress_gz.h: New file.
7659 * concat.cc: Run indent.
7660 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7661 * concat.h: Run indent.
7662 * desktop.cc: Run indent.
7663 Include mklink2.h rather than redefining by hand.
7664 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7665 (etc_profile): Fix compiler warning (deprecated conversion).
7666 (make_link): Fix compiler warning (deprecated conversion).
7667 Tidy up use of args variable - consolidate into argbuf.
7668 (start_menu): Fix compiler warning (deprecated conversion).
7669 (desktop_icon): Fix compiler warning (deprecated conversion).
7670 (make_etc_profile): Fix compiler warning (deprecated conversion).
7671 (uexists): Fix compiler warning (deprecated conversion).
7672 (check_desktop): Fix compiler warning (deprecated conversion).
7673 (check_startmenu): Fix compiler warning (deprecated conversion).
7674 * dialog.cc: Run indent.
7675 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7676 (fatal): Fix compiler warning (deprecated conversion).
7677 * dialog.h: Run indent.
7678 * diskfull.cc: Run indent.
7679 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7680 * download.cc: Run indent.
7681 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7682 (download_one): Fix compiler warning (signed vs unsigned comparison).
7683 * filemanip.h: Run indent.
7684 * find.cc: Run indent.
7685 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7686 (find): Fix compiler warning (deprecated conversion).
7687 * find.h: Run indent.
7688 * fromcwd.cc: Run indent.
7689 * geturl.cc: Run indent.
7690 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7691 (dialog_cmd): Return a value.
7692 (dialog_proc): Remove unused variables.
7693 Return a value.
7694 (get_url_to_file): Fix compiler warning (deprecated conversion).
7695 * geturl.h: Run indent.
7696 * hash.cc: Run indent.
7697 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7698 * hash.h: Run indent.
7699 * ini.cc: Run indent.
7700 Use io_streams.
7701 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7702 (do_ini): Use io_streams for local io.
7703 * ini.h: Run indent.
7704 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
7705 Fix compiler warning (brackets for truth assignment).
7706 * install.cc: Run indent.
7707 Fix compiler warning (/* in comment).
7708 Use io_streams.
7709 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7710 (dialog_cmd): Return a value.
7711 (dialog_proc): Return a value.
7712 (start_tics): Deleted - was unused.
7713 (badrename): Fix compiler warnings (unused, deprecated conversion).
7714 (standard_dirs): Fix compiler warning (deprecated conversion).
7715 (exists): Remove.
7716 (uninstall_one): Convert to io_streams.
7717 (install_one): Convert to io_streams.
7718 (do_install): Convert to io_streans.
7719 Fix compiler warning (deprecated conversion).
7720 * io_stream.cc: New file.
7721 * io_stream.h: New file.
7722 * io_stream_cygfile.cc: New file.
7723 * io_stream_cygfile.h: New file.
7724 * io_stream_file.cc: New file.
7725 * io_stream_file.h: New file.
7726 * localdir.cc: Run indent.
7727 Use io_streams.
7728 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7729 (get_root_dir_now): Remove.
7730 (save_local_dir): Convert to io_streams.
7731 (dialog_cmd): Return a value.
7732 (do_local_dir): Convert to io_streams.
7733 (log.cc): Run indent.
7734 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7735 (log): Fix compiler warning (deprecated conversion).
7736 (log_save): Fix compiler warning (deprecated conversion).
7737 * log.h: Run indent.
7738 (log): Fix compiler warning (deprecated conversion).
7739 (log_save): Fix compiler warning (deprecated conversion).
7740 * main.cc: Run indent.
7741 Don't include "netio.h".
7742 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7743 (netio_test): Remove.
7744 (sid_auth): Fix compiler warning (partially bracketed initialiser).
7745 (WinMain): Return a value.
7746 * mkdir.cc: Run indent.
7747 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7748 * mklink2.c: Run indent.
7749 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7750 (mkcygsymlink): New function.
7751 * mklink2.h: New file.
7752 * mount.cc: Run indent.
7753 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7754 (create_mount): Remove unused variables.
7755 (cygpath): Fix compiler warning (signed vs unsigned comparison).
7756 * mount.h: Run indent.
7757 * msg.cc: Run indent.
7758 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7759 (msg): Fix compiler warning (deprecated conversion).
7760 (mbox): Fix compiler warning (deprecated conversion).
7761 * msg.h: Run indent.
7762 (msg): Fix compiler warning (deprecated conversion).
7763 * net.cc: Run indent.
7764 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7765 (dialog_cmd): Return a value.
7766 * netio.cc: Run indent.
7767 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7768 (auth_cmd): Return a value.
7769 * netio.h: Run indent.
7770 * nio-file.cc: Run indent.
7771 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7772 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
7773 * nio-file.h: Run indent.
7774 * nio-ftp.cc: Run indent.
7775 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7776 * nio-ftp.h: Run indent.
7777 * nio-http.cc: Run indent.
7778 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7779 * nio-http.h: Run indent.
7780 * nio-ie5.cc: Run indent.
7781 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7782 * nio-ie5.h: Run indent.
7783 * other.cc: Run indent.
7784 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7785 (dialog_cmd): Return a value.
7786 * port.h: Run indent.
7787 * postinstall.cc: Run indent.
7788 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7789 (cmd): Fix compiler warning (deprecated conversion).
7790 (eun): Fix compiler warning (deprecated conversion).
7791 * root.cc: Run indent.
7792 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7793 * simpsock.cc: Run indent.
7794 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7795 * simpsock.h: Run indent.
7796 * site.cc: Run indent.
7797 Use io_streams.
7798 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7799 (get_root_dir_now): Remove.
7800 (save_site_url): Convert to io_streams.
7801 (dialog_cmd): Return 0.
7802 (get_initial_list_idx): Convert to io_streans.
7803 * source.cc: Run indent.
7804 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7805 (check_if_enable_next): Remove.
7806 (load_dialog): Remove unused variables.
7807 (save_dialog): Ditto.
7808 (dialog_cmd): Return a value.
7809 * splash.cc: Return a value.
7810 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7811 (dialog_cmd): Return a value.
7812 * state.cc: Run indent.
7813 (cvsid): Fix compiler warnings (unused, deprecated conversion).
7814 * state.h: Run indent.
7815 * tar.h: Remove.
7816 * tar.cc: Remove.
7817
7818 2001-11-12 Christopher Faylor <cgf@redhat.com>
7819
7820 * desktop.cc (start_menu): Change start menu name to "Cygwin".
7821 (check_startmenu): Ditto.
7822
7823 2001-11-11 Christopher Faylor <cgf@redhat.com>
7824
7825 * choose.cc (parse_filename): Finish reorganization by correctly
7826 decrementing p in memmove.
7827
7828 2001-11-11 Christopher Faylor <cgf@redhat.com>
7829
7830 * choose.cc (parse_filename): Reorganize code to work around gcc
7831 optimization problem.
7832
7833 2001-11-09 Gareth Pearce <tilps@hotmail.com>
7834
7835 * choose.cc (set_action): Allow skip as an option for installed
7836 packages that have version number not listed in setup.ini.
7837
7838 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7839
7840 * choose.cc (set_cation): Backout last change.
7841 (choose_caption): Ditto.
7842
7843 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7844
7845 * ini.h (actions): Remove - transferred to choose.h.
7846 (views): Ditto.
7847 * choose.h: Protect class's from "C" compilers.
7848 (actions): New enum, from ini.h. This may not be the 'right' place
7849 but that place doesn't exist yet.
7850 (_views): New enum, from ini.h.
7851 * choose.cc (set_action): Handle installed packages with a version not
7852 in setup.ini.
7853 (choose_caption): Ditto.
7854 * iniparse.y: Rearrange header order to handle new ini.h.
7855
7856 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7857
7858 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
7859 (registry_category): Fix compiler warning (deprecated conversion).
7860 * iniparse.y (registry_category): Ditto.
7861 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated
7862 conversion).
7863 (add_requried): Remove unused variable.
7864 (choose_caption): Handle all enumeration values via a default.
7865 (paint): Fix compiler warnings (unused, deprecated conversion).
7866 (scroll_common): Fix compiler warnings (unused, signed vs unsigned
7867 comparison).
7868 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
7869 (note_width): Fix compiler warnings (deprecated conversion).
7870 (keep_or_skip): Fix compiler warnings (unused).
7871 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
7872 (set_view_mode): Fix compiler warnings (unused).
7873 (create_listview): Fix compiler warnings (unused, incorrect format,
7874 reaches end of function).
7875 (dialog_proc): Fix compiler warnings (unused).
7876 (read_installed_db): Fix compiler warnings (unused, deprecated
7877 conversion).
7878 * choose.h (_header): Fix compiler warnings (deprecated conversion).
7879 (_view): Ditto.
7880
7881 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
7882
7883 * simpsock.h (SimpleSocket::invalidate): Declare new method.
7884 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
7885 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
7886 memory for buf in the constructor.
7887 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
7888 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
7889 (SimpleSocket::write): Check object consistency - return -1 on error.
7890 invalidate() the object on socket write error.
7891 (SimpleSocket::fill): Check object consistency - return -1 on error.
7892 invalidate() the object if socket read error is encountered and there
7893 is no more data available in the internal read buffer.
7894 Allocate memory for the internal read buffer.
7895 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
7896 during fill() and no more data is available in the internal read buffer.
7897 (SimpleSocket::read): Check object consistency - return -1 on error.
7898 invalidate() the object if socket read error is encountered.
7899 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
7900 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
7901 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
7902 (NetIO_FTP::read): Use NetIO_FTP::ok().
7903 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
7904 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
7905
7906 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
7907
7908 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated
7909 conversion).
7910 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated
7911 conversion).
7912 (SimpleSocket::printf): Ditto.
7913 (SimpleSocket::write): Ditto.
7914 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
7915 printf and write.
7916 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated
7917 conversion).
7918 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
7919 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated
7920 conversion).
7921
7922 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
7923
7924 * geturl.cc (get_url_to_string): clean up memory leak
7925 (get_url_to_file): ditto
7926
7927 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
7928
7929 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
7930 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
7931
7932 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
7933
7934 * fromcwd.cc (found_file): Free() memory containing the version and
7935 filepath information for a given package, before replacing the pointers
7936 which reference this memory.
7937
7938 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
7939
7940 * fromcwd: Fix compiler warnings for cvsid.
7941 (canonicalize_version): Fix compilter warnings.
7942 (do_fromcwd): Ditto.
7943 * version.h: Fix compiler warnings for canonicalize_version.
7944
7945 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
7946
7947 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
7948
7949 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7950
7951 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
7952
7953 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7954
7955 * choose.cc (set_action): Correctly allow skip for any uninstalled
7956 package.
7957
7958 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7959
7960 * choose.cc (default_trust): Change the "Required" forced install
7961 category to "Base".
7962
7963 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7964
7965 * choose.cc: Ran indent.
7966 (set_action): When the requested trust level is missing and the level
7967 was not user requested, set the action to ACTION_SAME_CURR.
7968
7969 2001-11-01 Christopher Faylor <cgf@redhat.com>
7970
7971 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
7972
7973 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7974
7975 * choose.cc (_view::init_headers): Resync with the paint logic.
7976
7977 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7978
7979 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently
7980 installed packages.
7981
7982 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7983
7984 * choose.cc (default_trust): Autoset currently installed packages per
7985 the user's selection of prev/curr/exp.
7986
7987 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7988
7989 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
7990
7991 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
7992
7993 * geturl.cc (is_showing): Remove.
7994 (is_local_install): New static variable. Controls whether the
7995 progress dialog and the supporting thread will be created.
7996 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32
7997 API.
7998 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
7999 This prevents the progress dialog to gain control over the
8000 application and fixes the "setup.exe going to background" problem.
8001 (progress): Use is_local_install.
8002 (get_url_to_string): Set is_local_install.
8003 (dismiss_url_status_dialog): Use is_local_install.
8004 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
8005 (init_dialog): Remove usage of SetForegroundWindow.
8006 This prevents the progress dialog to gain control over the
8007 application and fixes the "setup.exe going to background" problem.
8008
8009 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8010
8011 * choose.cc (list_click): Change r to row for clarity.
8012 When we shrink the list below 1 page, scroll to the top of the list.
8013 (_view::click): Return the actual change for contractions.
8014 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32
8015 API.
8016
8017 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8018
8019 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir
8020 selection order.
8021 * localdir.cc: Ran indent.
8022 (get_root_dir_now): New function.
8023 (save_local_dir): New function.
8024 (dialog_cmd): Use it and swap cygwin root selection and local dir
8025 selection order.
8026 (do_local_dir): If there is a saved local dir, read it in.
8027 * net.cc (dialog_cmd): Swap cygwin root selection and local dir
8028 selection order.
8029 * root.cc (dialog_cmd): Ditto.
8030 * source.cc (dialog_cmd): Ditto.
8031
8032 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8033
8034 * choose.cc(list_vscroll): Return 0 as required by win32.
8035 (list_hscroll): Ditto.
8036 (list_click): Ditto.
8037
8038 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8039
8040 * argv.cc: Remove.
8041 * argv.h: Remove.
8042 * main.cc(WinMain): Use __argv to retrieve command line parameters.
8043 * Makefile,in: Remove argv.o.
8044
8045 2001-11-01 Matt Hargett <matt@use.net>
8046
8047 * geturl.cc (progress): Change int to unsigned int to eliminate
8048 lint warnings.
8049 * (get_url_to_string): Check for NULL pointer.
8050 * mount.cc (find2): Use free instead of delete for malloc'd
8051 memory.
8052 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
8053
8054 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8055
8056 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen]
8057 with neither a package nor a category. The lines[linen] bug was reported
8058 by Matt (matt@usa.net).
8059 (read_installed_db): Bugfix for testing whether a package has a source
8060 tarball. Reported by Matt (matt@usa.net).
8061 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid
8062 programmer confusion and lint errors. Reported by Matt (matt@usa.net).
8063
8064 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8065
8066 * argv.cc: New file, converts arguments for -mwindows
8067 programs. (Simplified derivation from dcrt0.cc.)
8068 * argv.h: New file.
8069 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
8070 Add mingw_getopt.o build rule.
8071 * main.cc(WinMain): Initialise argv and argc for use by getopt.
8072
8073 2001-10-27 Christopher Faylor <cgf@redhat.com>
8074
8075 * res.rc: Rearrange info on top line slightly.
8076
8077 2001-10-27 Christopher Faylor <cgf@redhat.com>
8078
8079 * desktop.cc (make_passwd_group): Move file creation earlier in the
8080 process to ensure that passwd-grp.bat reflects desired operation.
8081
8082 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
8083
8084 * postinstall.cc (each): Remove "*.done" file else rename will fail.
8085
8086 2001-10-16 Christopher Faylor <cgf@redhat.com>
8087
8088 * res.rc: Oops. Take 640x480 screen size into account.
8089
8090 2001-10-16 Christopher Faylor <cgf@redhat.com>
8091
8092 * res.rc: Enlarge chooser screen.
8093
8094 2001-10-12 Christopher Faylor <cgf@redhat.com>
8095
8096 * Makefile.in: Accomodate changes to w32api_include macro.
8097
8098 2001-10-12 Christopher Faylor <cgf@redhat.com>
8099
8100 * Makefile.in: Use correct flags for windres.
8101
8102 2001-10-12 Christopher Faylor <cgf@redhat.com>
8103
8104 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
8105
8106 2001-10-12 Christopher Faylor <cgf@redhat.com>
8107
8108 * choose.cc (pick_line::paint): Reorganize after botched patch.
8109
8110 2001-10-12 Christopher Faylor <cgf@redhat.com>
8111
8112 * choose.cc (pick_line::paint): Add missing declaration.
8113
8114 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
8115
8116 * choose.cc (pick_line::paint): Add package name to sdesc for display.
8117
8118 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
8119
8120 * choose.cc (_view::insert_pkg): Correctly exit loop.
8121 * iniparse.y (register_category): Always insert new categories.
8122
8123 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
8124
8125 * inilex.l (yylex): For comments, eat all characters up to, but not
8126 including newline.
8127
8128 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
8129
8130 * fromcwd.cc (found_file): Use correct package name when adding an
8131 unknown package rather than random stack garbage.
8132
8133 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
8134
8135 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
8136
8137 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
8138
8139 * desktop.cc (etc_profile): Leave environment variables untouched.
8140
8141 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
8142
8143 * autoload.c: Add dynamic load statements for NT/W2K
8144 advapi32 functions not available in 9x/ME.
8145 * main.cc (set_default_dacl): New function.
8146 (WinMain): Call `set_default_dacl' if running on NT/W2K.
8147
8148 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
8149
8150 * ini.h (_CategoryPackage): Change pkg field to pkgname for
8151 consistency.
8152 * choose.cc: Use pkgname field when referencing _CategoryPackage
8153 throughout.
8154 (fill_missing_category): Don't add excluded packages.
8155 (default_trust): Ditto.
8156 (_view::insert_pkg): Ditto.
8157 * iniparse.y (register_category): Use consistent variable name.
8158
8159 2001-07-09 Egor Duda <deo@logos-m.ru>
8160
8161 * choose.cc: Use system foreground color for text output.
8162
8163 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
8164
8165 * choose.cc (set_action): Use default trust for determining reinstall
8166 and source only.
8167 (default_trust): Set default trust.
8168 (pick_line::paint): Allow source selection when reinstalling or
8169 retrieving.
8170
8171 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
8172
8173 * choose.cc (isinstalled): Modify to properly accomodate special case
8174 of "download only".
8175 (set_action): Check downloaded components, not installed components if
8176 "download only".
8177 (set_existence): Always include full list of files when "download
8178 only".
8179
8180 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
8181
8182 * choose.cc (pick_line::paint): Properly display "na" field when no
8183 source exists.
8184
8185 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
8186
8187 * choose.cc (scan2): Ensure that older versions do not show up in
8188 "Test" slot.
8189
8190 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
8191
8192 * choose.cc (set_action): Allow "Skip" action if trust != installed.
8193 * res.rc: Fix copyright.
8194
8195 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
8196
8197 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
8198 boxes.
8199 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
8200
8201 * choose.cc: Restore some more changes from 2001-06-25, throughout.
8202 (paint): Wrap some excessively long lines.
8203 (pick_line::paint): Ditto. Move the arrow in the "Current" column
8204 right to where it belongs. Move the source checkbox slightly to the
8205 right.
8206 (do_choose): List categories and required packages in setup.log.full.
8207
8208 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
8209
8210 * choose.cc (scan2): Restore source scanning eliminated by previous
8211 checkin.
8212
8213 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
8214
8215 * ini.h (struct _Info): Add "derived" element.
8216 * choose.cc (scan2): Try to place unknown tar files into proper slot
8217 when package exists in setup.ini but tar file does not.
8218
8219 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
8220
8221 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
8222 (do_choose): Log the first category name.
8223
8224 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
8225
8226 *ini.h: Reapply 2001-06-25 changes.
8227 * choose.cc (add_required): Ditto. Default to "Keep" state if
8228 UNINSTALL and product is installed. Default to curr state if SKIP,
8229 etc.
8230 (keep_or_skip): New function. Returns skip or keep state depending on
8231 installed state of package.
8232 (default_trust): Use keep_or_skip to set state.
8233 (_view::insert_pkg): Use calloc to allocate lines.
8234 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
8235
8236 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
8237
8238 * choose.cc: Remove globals full_list, headers, package_indexes and
8239 nindexes.
8240 Add globals cat_headers, pkg_headers and chooser.
8241 (add_required): New function.
8242 (paint): Use the chooser for header details.
8243 Call into the chooser to paint each line.
8244 (list_click): Use new global variables.
8245 Call into the chooser to handle the click.
8246 Repaint the entire view if packages have been added or removed.
8247 (note_width): Get passed a headers struct rather than using a global
8248 variable.
8249 (fill_missing_category): New function.
8250 (default_trust): Skip non-"Required" or "Misc" packages.
8251 (pick_line::set_line (Package *)): New function.
8252 (pick_line::set_line (Category *)): New function.
8253 (pick_line::paint): New function.
8254 (pick_line::click): New function.
8255 (_view::_view): New function.
8256 (_view::set_view_mode): New function.
8257 (_view::mode_caption): New function.
8258 (_view::set_headers): New function.
8259 (_view::init_header): New function.
8260 (_view::insert_pkg): New function.
8261 (_view::insert_category): New function.
8262 (_view::insert_at): New function.
8263 (_view::insert_under): New function.
8264 (_view::clear_view): New function.
8265 (viewsplusplus): New function.
8266 (_view::client): New function.
8267 (set_view_mode): Use new chooser functionality.
8268 (set_full_list): Use new global variables.
8269 (create_listview): Instantiate chooser.
8270 Remove all hardcoded headers[] code.
8271 (dialog_cmd): On trust changes, check dependencies.
8272 (getcategorybyname): New function.
8273 (getpackagecategorybyname): New function.
8274 (scan2): Use case-insensitive package comparison.
8275 (do_choose): Use fill_missing_category ().
8276 Show some category data.
8277 * ini.h: Protect against multiple inclusion.
8278 (views) New enum.
8279 (_CategoryPackage): New struct.
8280 (_Category): New struct.
8281 (_Package): Change category to Category * from char *.
8282 (extern Category category): New global variable.
8283 (extern in ncategories): Ditto.
8284 (getcategorybyname): New prototype.
8285 (catpackagecategorybyname): New prototype.
8286 (register_category): New prototype.
8287 (add_category): New prototype.
8288 * iniparse.y: Parse multiple categories per package.
8289 (category): New global variable.
8290 (ncategories): New global variable.
8291 (new_package): Compare package against NULL, not 0.
8292 (new_requirement): Source formatting fix.
8293 (register_category): New function.
8294 (add_category): New function.
8295 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
8296 IDC_CHOOSE_VIEWCAPTION: New control.
8297 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
8298 IDC_CHOOSE_VIEWCAPTION: New control.
8299 Increment _APS_NEXT_CONTROL_VALUE.
8300
8301 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
8302
8303 * choose.cc (paint): Wrap excessively long lines.
8304 (list_click): Ditto.
8305 (create_listview): Ditto.
8306 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
8307 setup.log.full. Allow "Yes" for source exists in setup.log.full when
8308 installing from local directories.
8309
8310 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
8311
8312 * choose.cc (set_action): Only clear srcpicked when moving to next
8313 state. Allow source installation if it exists in the current "trust"
8314 state. Don't move to skip state when package is installed.
8315 (list_click): Don't allow source clicking when no source is available.
8316 (set_full_list): Display package when not is_full_action.
8317 * ini.h (is_full_action): Define.
8318
8319 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
8320
8321 * install.cc (check_for_old_cygwin): New function. First stab at
8322 checking for old cygwin versions.
8323 (do_install): Call check_for_old_cygwin if there were no errors during
8324 the install.
8325
8326 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
8327
8328 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
8329 than zeroed "source" element.
8330
8331 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
8332
8333 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
8334 the highest available "hole" in the trust array.
8335
8336 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
8337
8338 * choose.cc (set_existence): Use pointer method for indexing in trust
8339 array.
8340 (create_listview): Ditto.
8341 (scan2): Ditto. Also, use consistent variable name for indexing into
8342 trust array.
8343 * ini.h (Package): Reorganize info array for easier scanning.
8344
8345 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
8346
8347 * choose.cc (isinstalled): Eliminate special download only test.
8348 (set_action): Don't move to next state if in ACTION_SAME range and not
8349 incrementing.
8350 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
8351 downloading.
8352 (do_choose): Sort packages after all packages have been read.
8353 Accomodate the fact that first element in trust array is empty so that
8354 log files don't report the wrong trust value.
8355 * iniparse.y (new_package): Malloc space for package name or suffer
8356 memory corruption.
8357
8358 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
8359
8360 * ini.h (Dependency): New structure. Declare new function.
8361 * inilex.l (yylex): Detect new setup.ini options - category and
8362 requires.
8363 * iniparse.y: Declare new setup.ini token values.
8364 (yyparse): Parse new token values.
8365 (new_requirement): New function.
8366
8367 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
8368
8369 * choose.cc (read_installed_db): Eliminate obsolete code.
8370
8371 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
8372
8373 * choose.cc (set_action): Set trust on "redo".
8374 (_Info::_Info): New constructor.
8375 (read_installed_db): Use new constructor. Use trusts type for
8376 iterator.
8377 * ini.h (struct _Info): Label struct, add constructor.
8378 (Package): Make installed_ix a type 'trusts.'
8379 * install.cc (uninstall_one): Unset any installed info for current
8380 package.
8381 (install_one): Allocate new Info struct for installed reflecting new
8382 installed info.
8383 (do_install): Don't output line to installed.db if package is being
8384 uninstalled.
8385
8386 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
8387
8388 * choose.cc (getpkgbyname): Use consistent method for scanning package
8389 array.
8390
8391 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
8392
8393 * choose.cc: Add some comments.
8394 (getpkgbyname): Use strcasecmp for comparisons.
8395
8396 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
8397
8398 * install.cc (do_install): Avoid checking for download action if
8399 package wasn't currently retrieved.
8400
8401 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
8402
8403 * choose.cc: Eliminate extra array throughout. Use element in package
8404 structure instead. Use pointers rather than array indexes where
8405 appropriate.
8406 (set_action): New function to set next action based on current.
8407 (choose_caption): New function. Returns display caption.
8408 (check_existence): Change arguments. Use pointer to 'info' structure.
8409 (set_existence): Use pointer rather than array index.
8410 (default_trust): Use trusts enum for second argument.
8411 (set_full_list): Honor exclude element in package structure.
8412 (build_labels): Eliminate.
8413 (base): Make global. Use const char * argument.
8414 (get_package_version): Eliminate.
8415 (getpkgbyname): New function.
8416 (read_installed_db): Use parse_filename to get version info.
8417 * desktop.cc (make_passwd_group): Use getpkgbyname function.
8418 * download.cc (get_file_size): const argument.
8419 (do_download): Use is_download_action to determine when something
8420 should be downloaded.
8421 * filemanip.h: Add some functions.
8422 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
8423 * ini.h: Use enums for actions and trusts.
8424 (is_download_action): New macro.
8425 (is_upgrade_action): Ditto.
8426 (is_uninstall_action): Ditto.
8427 (struct Package): Add new fields.
8428 * inilex.l (yylex): Detect new setup.ini options.
8429 * iniparse.y: Declare new tokens.
8430 (yyparse): Detect exclude keyword. Fill out version field even if
8431 version == 0.
8432 (new_package): Use greater granularity when allocating package array to
8433 avoid repeated calls to realloc.
8434 * install.cc (exists): const argument.
8435 (uninstall_one): Take pkg argument.
8436 (install_one): Ditto. Eliminate unneeded arguments which can be
8437 derived from package info.
8438 (do_install): Iterate over package array using a pointer. Use
8439 is_download_action to control when package should be downloaded.
8440 * tar.cc (tar_open): const argument.
8441 * tar.h: Refloect const argument.
8442
8443 2001-05-31 Michael Chase mchase@ix.netcom.com
8444
8445 * main.cc (WinMain): Add setup version to starting setup.log entry
8446
8447 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
8448
8449 * inilex.l: Add + to list of valid string characters.
8450
8451 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
8452
8453 * Makefile.in: Remove more stuff in the clean target.
8454
8455 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
8456
8457 * Makefile.in: Correctly generate iniparse.h.
8458
8459 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
8460
8461 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
8462 * geturl.h: Change declaration of `get_url_to_file' accordingly.
8463 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
8464 Set member `ftp_auth'.
8465 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
8466 to constructors of derived classes.
8467 (NetIO::get_ftp_auth): New method.
8468 * netio.h: Change class definition accordingly.
8469 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
8470 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
8471 Add code for ftp authentication retry.
8472 * nio-ftp.h: Change class definition accordingly.
8473 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
8474 Add code for ftp authentication retry in case of proxy connection.
8475 * nio-http.h: Change class definition accordingly.
8476 * res.rc: Add FTP authentication dialog.
8477 * resource.h: Add new constants used in res.rc.
8478 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
8479
8480 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
8481
8482 * res.rc (IDD_SPLASH): Add a copyright year.
8483
8484 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
8485
8486 * Makefile.in: Make iniparse.y produce a c++ file.
8487 * choose.cc (set_existence): Revert 2001-05-27 change.
8488 * ini.cc: Remove "C" from declaration of yyparse.
8489 * iniparse.y (yyparse): Fill out version field by default when a binary
8490 install is detected and no version has been set yet.
8491 * install.cc (do_install): Mount things earlier so that we can use
8492 proper mount table settings. Don't remove mounts since they are now
8493 honored.
8494 * mount.cc (create_mount): Reread the mount table after establishing a
8495 new mount.
8496 (read_mounts): Explicitly clear root_here to allow multiple uses of
8497 this function. Ensure that there is no garbage in the table when we've
8498 exhausted all of the mounts in the registry.
8499 (cygpath): Accomodate ./ in path.
8500
8501 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
8502
8503 Use parse_filename method to parse filenames throughout. Use
8504 get_root_dir to retrieve the current root directory throughout. Set
8505 const in argument list, where appropriate, throughout.
8506 * choose.cc (set_existence): Detect case of uninstalled package with no
8507 version.
8508 (parse_filename): New function.
8509 * filemanip.h (fileparse): New structure.
8510 * mount.cc (read_mounts): Remember where we found the root mount.
8511 (set_root_dir): New function.
8512 (get_root_dir): Ditto.
8513 * mount.h: Declare new functions.
8514 * site.cc (get_root_dir_now): Renamed from get_root_dir.
8515 (save_site_url): Use new function name.
8516 (get_initial_list_idx): Ditto.
8517
8518 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
8519
8520 * choose.cc: Use a constant throughout to deal with chooser icon
8521 length.
8522 * res.rc (IDD_CHOOSE): Increase size of chooser box.
8523
8524 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
8525
8526 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
8527 use when Redownload or Sources Only selected.
8528
8529 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
8530
8531 Reformat file after botched patch formatting.
8532 * choose.cc (which_trust): Eliminate variable.
8533 (default_trust): Don't set which_trust.
8534 (do_choose): Use selected trust when reinstalling or installing source.
8535
8536 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
8537
8538 Change concat to cygpath throughout.
8539 Change map_filename to cygpath throughout.
8540 * concat.cc (vconcat): New function.
8541 (concat): Use vconcat.
8542 * concat.h: Reflect above.
8543 * install.cc (map_filename): Eliminate.
8544 (install_one): Free dest_file.
8545 * mount.cc (find2): Expect input key to be pointing to mount record.
8546 (in_table): New function.
8547 (is_admin): Move from root.cc.
8548 (read_mounts): New function.
8549 (path_prefix_p): New function.
8550 (cygpath): New function.
8551 * mount.h: Define new functions and structure.
8552 * root.cc (in_table): Move to mount.cc.
8553 (do_root): Call read_mounts to initialize root stuff and mount table.
8554 * site.cc (get_root_dir): Ditto.
8555
8556 2001-05-09 Matt Hargett <matt@use.net>
8557
8558 * Makefile.in: Remove *.rc from clean.
8559
8560 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
8561
8562 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
8563 TRUST_PREV which produced "0" versions.
8564
8565 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
8566
8567 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
8568 _APS_NEXT_CONTROL_VALUE to account for addition of
8569 IDC_CHOOSE_INST_TEXT.
8570 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
8571 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
8572 hot keys to select Prev, Curr, Exp.
8573 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
8574 define for LOOP_PACKAGES to include new actions ACTION_REDO and
8575 ACTION_SRC_ONLY.
8576 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
8577 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
8578 source Checkbox to use.
8579 (build_labels): Add logic to allow for selection of Source only
8580 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
8581 current version binary.
8582 (dialog_proc): Add conditional display for file selection prompt based
8583 on download vs install using IDC_CHOOSE_INST_TEXT.
8584 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
8585 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
8586 handle the instance where Source Download/Install was selected. Modify
8587 log file to store appropriate information regarding Action selected and
8588 the new actions that were added (I.E.: ACTION_REDO and
8589 ACTION_SRC_ONLY).
8590 * download.cc: Add include for <unistd.h> and "port.h".
8591 (download_one): Modify parameter list to include the selected action
8592 for the file to be downloaded. Modify size check against expected size
8593 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
8594 .tmp file to also remove the destination file if exists due to ability
8595 to redownload source and binary now.
8596 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
8597 calculation of Download Bytes. Modify to also use ACTION_REDO and
8598 ACTION_SRC_ONLY in determining files selected for download.
8599 * install.cc (uninstall_one): Add check to treat a Reinstall like an
8600 upgrade so current version will be uninstalled prior to reinstall.
8601 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
8602 uninstalling and installing binary and source packages.
8603 * desktop.cc (make_passwd_group): Modify logic to account for a Source
8604 only cygwin install when checking for cygwin to determine need for
8605 mkpasswd and mkgroup.
8606
8607 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8608
8609 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
8610 Removed WS_DISABLED from "OK" buttons to accomodate default focus
8611 changes in net.cc and source.cc.
8612 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
8613 a default is selected.
8614 * winsup/cinstall/source.cc (dialog_proc): Ditto.
8615 (check_if_enable_next): Removed. No longer needed since a radio button
8616 will always be selected.
8617 (load_dialog): Removed call to check_if_enable_next.
8618 (dialog_cmd): Ditto. Also added default to switch.
8619
8620 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
8621
8622 * res.rc: Resize affected text.
8623
8624 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
8625
8626 * net.cc (do_net): Default to direct download.
8627 * res.rc: Move default selections to the top.
8628
8629 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
8630
8631 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
8632 Must now include <windows.h> and not the pieces.
8633 * choose.cc (create_listview): Clean up type mismatch problems.
8634 * dialog.h (NEXT(id)): Ditto.
8635 * geturl.cc (dialog): Ditto.
8636 * install.cc (dialog): Ditto.
8637 * splash.cc (load_dialog): Ditto.
8638
8639 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
8640
8641 * tar.cc (class gzbz): Define dummy virtual functions.
8642
8643 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
8644
8645 * Makefile.in: Add bz2 include/library support.
8646 * filemanip.h: New file.
8647 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
8648 .tar.bz2 found.
8649 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
8650 (read_installed_db): Ditto.
8651 (do_choose): Ditto.
8652 * fromcwd.cc (found_file): Ditto.
8653 (do_fromcwd): Ditto.
8654 * tar.cc (class gzbz): New super class for uncompression support.
8655 (gz): New class for gzip support.
8656 (bz): New class for bzip2 support.
8657 (tar_open): Use gzbz class to control file opening.
8658 (tar_ftell): Ditto for returning position in file.
8659 (skip_file): Ditto for reading file.
8660 (tar_next_file): Ditto.
8661 (tar_read_file): Ditto.
8662 (tar_close): Ditto for close.
8663
8664 * zlib/configure.in: Force NM substitution.
8665
8666 * source.cc (do_source): Default to "Install from Internet".
8667
8668 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
8669
8670 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
8671 `stat'.
8672 * choose.cc (list_click): Correct inability to select source code for
8673 download.
8674 (scan2): Modify to skip source tarballs when scanning disk for
8675 installable packages.
8676
8677 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
8678
8679 * install.cc: install sources into /usr/src instead
8680 of /, also include the sizes of source tarballs
8681 in total_bytes.
8682 * download.cc: include sizes of source tarballs in
8683 total_download_bytes.
8684
8685 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
8686
8687 * download.cc (get_file_size): Remove `static'.
8688
8689 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
8690
8691 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
8692
8693 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
8694
8695 * choose.cc (paint): Modify message for nothing to download vs
8696 nothing to install/update based on installation method.
8697 (list_click): Modify to skip versions in selection process if
8698 installing from local directory and installation file does not exist.
8699 Also leaves Source Action set to N/A if the source file does not exist
8700 and installing from local directory.
8701 (check_existence): New method to check current existence of installation
8702 files based on selected installation method.
8703 (set_existence): New method to set the current existence of installation
8704 files based on selected installation method.
8705 (best_trust): Modify decision process for best trust to base decision on
8706 current trust selected (IE: Prev, Curr, or Test), existence of file and
8707 installation method selected.
8708 (default_trust): Add logic to capture the current trust level and the
8709 trust selected for the given package.
8710 (set_full_list): Expand decision criteria for displaying a package in
8711 the selection list to include file existence/non-existence and selected
8712 installation method.
8713 (build_labels): Modify criteria for label addition to include
8714 installation method and file existence/non-existence.
8715 (create_listview): Modify to establish package trust level for each
8716 package before setting up the display list. Also modification to set
8717 current trust button as the default.
8718 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
8719 a reset of the selection list in addition to setting the default trust.
8720 (get_package_version): New method to provide reusable code for
8721 determining the package version from the file name for a specified
8722 trust.
8723 (scan2): Modify to use new method get_package_version and
8724 also enhance handling of the build for the structures package and
8725 extra.
8726 (read_installed_db): Modify to use the new method
8727 get_package_version and also enhance handling of the build for the
8728 structures package and extra.
8729 (do_choose): Add additional initialization of package and extra
8730 structures. Modify to use read_installed_db all the time despite
8731 install method. Modify output to setup.log.full log file to increase
8732 readability by adding additional spacing, expanded code and available
8733 versions.
8734 * ini.h: Add new fields install_exists, source_exists and
8735 partial_list_display to the structure definition for package.
8736 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
8737 pushbuttons by replacing with Radio Buttons thus allowing the
8738 operator to better determine which is selected.
8739
8740 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
8741
8742 * download.cc (do_download): Add new variables total_download_bytes and
8743 total_download_bytes_sofar for download progress meter. Add loop
8744 to accumulate the total bytes to download from the selected packages.
8745 * geturl.cc: Add state.h and diskfull.h to include list. Add new
8746 variables gw_iprogress, gw_pprogress, gw_progress_text,
8747 gw_pprogress_text, and gw_iprogress_text to allow for addition of
8748 total packages download progress meter and disk full percent
8749 progress meter. Add variables total_download_bytes and
8750 total_download_bytes_sofar for use by progress meters.
8751 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
8752 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
8753 allow for addition of total packages download progress meter and disk
8754 full percent progress meter.
8755 (init_dialog): Ditto.
8756 (progress): Ditto.
8757 (get_url_to_file): Ditto.
8758 * geturl.h: Add external definition for total_download_bytes and
8759 total_download_bytes_sofar.
8760 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
8761 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
8762 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
8763 download meters.
8764 * resource.h: Add new fields for progress meters and text and update
8765 _APS_NEXT_CONTROL_VALUE.
8766
8767 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
8768
8769 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
8770 for NULL.
8771
8772 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
8773
8774 * download.cc (download_one): Add missing parenthesis.
8775
8776 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
8777
8778 * download.cc (get_file_size): New function. Eliminates the need
8779 to call `stat'.
8780 (download_one): Call `get_file_size' instead of `stat'. This
8781 workarounds a problem with mingw's `stat' call.
8782
8783 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
8784
8785 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
8786 This is to allow cinstall to build with 2.95.2-7 and to make the
8787 use of headers consistent.
8788
8789 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
8790
8791 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
8792
8793 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
8794
8795 * winsup/cinstall/res.rc: Added accelerators and improved focus
8796 order.
8797
8798 2000-12-10 Egor Duda <deo@logos-m.ru>
8799
8800 * choose.cc (paint): Use system background color for text output.
8801
8802 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
8803
8804 * Makefile.in: Use CXX for linking and for compiling .cc files.
8805 * configure.in: Find correct c++ compiler.
8806 * configure: Regenerate.
8807
8808 2000-11-17 DJ Delorie <dj@redhat.com>
8809
8810 * splash.cc (load_dialog): Make message more obvious.
8811 * res.rc: Ditto.
8812
8813 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
8814
8815 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
8816 necessary for newer compilers.
8817
8818 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
8819
8820 * desktop.cc: Include "ini.h" and "version.h".
8821 (make_passwd_group): Skip the function on 9x/ME boxes when an
8822 older version of Cygwin has been installed which doesn't
8823 support mkpasswd/mkgroup on 9x/ME.
8824 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
8825 * ini.h: ...here.
8826
8827 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
8828
8829 * desktop.cc (make_passwd_group): Don't exit when started
8830 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
8831
8832 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
8833
8834 * install.cc (do_install): Add call to set_cygdrive_flags to sync
8835 the mount modes.
8836 * mount.cc (set_cygdrive_flags): New function.
8837 (get_cygdrive_flags): Ditto.
8838 (default_cygdrive): Ditto.
8839 (set_cygdrive_flags): Ditto.
8840 * mount.h: Add prototype for set_cygdrive_flags.
8841
8842 2000-10-23 DJ Delorie <dj@redhat.com>
8843
8844 * ini.h: add source actions
8845 * fromcwd.cc: check for available sources
8846 * res.rc: add checkbox bitmaps
8847 * resource.h: ditto
8848 * check-*.bmp: new
8849 * choose.cc: add source column
8850 * download.cc: download sources if called for
8851 * install.cc: [un]install sources too
8852
8853 2000-10-22 DJ Delorie <dj@redhat.com>
8854
8855 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
8856 ignore it wrt full_list if there's already a version installed.
8857 (do_choose): Sort the list.
8858 (package_sort): New.
8859
8860 2000-10-12 DJ Delorie <dj@redhat.com>
8861
8862 * res.rc: Add more error strings.
8863 * resource.h: Ditto.
8864 * iniparse.y (new_package): re-initialize if needed.
8865 * download.cc (do_download): Keep track of errors; notify and
8866 allow retry.
8867 * install.cc (do_install): Ditto.
8868
8869 2000-10-05 DJ Delorie <dj@redhat.com>
8870
8871 * Makefile.in: fix %.cc rule
8872
8873 2000-10-04 DJ Delorie <dj@redhat.com>
8874
8875 * desktop.cc: quote HOME and USER, don't . ./.profile
8876
8877 * choose.cc (build_labels): don't include in partial list just
8878 because there's a *previous* version available.
8879
8880 * install.cc (do_install): if installing from local directory with
8881 setup.ini and the file isn't found, look in "." also. Note errors.
8882
8883 2000-10-02 DJ Delorie <dj@redhat.com>
8884
8885 * ini.cc (do_ini): save setup.ini locally
8886
8887 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
8888
8889 * desktop.cc: quote escapes in prompt
8890
8891 2000-10-02 Jason Tishler <jt@dothill.com>
8892
8893 * root.cc (is_admin): New function.
8894 (read_mount_table): Check for administrative priviledges and set
8895 installation scope as appropriate.
8896
8897 2000-09-28 DJ Delorie <dj@redhat.com>
8898
8899 * nio-ftp.cc (ftp_line): handle continuations more robustly
8900
8901 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
8902
8903 * res.rc: increased the size of the site dialog (IDD_SITE) & the
8904 corresponding list box to provide for more URL's to be listed.
8905 Modified the position of the Back, Next and Cancel buttons to
8906 correspond to the new size of the dialog.
8907
8908 2000-09-13 DJ Delorie <dj@redhat.com>
8909
8910 * install.cc (do_install): update disk fullness once per package
8911 to improve performance
8912
8913 * choose.cc (create_listview): call ReleaseDC
8914
8915 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
8916
8917 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
8918 returned, as it seems Samba 2.0.6+ returns this instead of
8919 ERROR_PATH_NOT_FOUND
8920
8921 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
8922
8923 * site.cc (get_initial_list_idx): Don't default to saved URL if it
8924 refers to sources.
8925
8926 2000-09-07 DJ Delorie <dj@redhat.com>
8927
8928 * splash.cc: use version.h, not local decl
8929 * res.rc: add "old version" message
8930 * resource.h: ditto
8931 * version.h: new
8932 * fromcwd.cc (canonicalize_version): make global
8933 * iniparse.y: add setup-version support, fix bug in blank line
8934 handling
8935
8936 * inilex.l: add [exp] as alias for [test], add setup-version
8937 * Makefile.in (version.c): add setup-version tag
8938
8939 * desktop.cc (do_desktop): remove 1.1 version number
8940 (do_desktop_setup): ditto
8941
8942 * ini.cc (do_ini): zero out package list just in case we redo it.
8943
8944 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
8945
8946 * choose.cc (list_click): Check for nindexes==0; if so, return.
8947
8948 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8949
8950 * localdir.cc: new, local package directory selection dialog; cd
8951 into selected directory
8952 * Makefile.in (OBJS): add localdir.o
8953 * dialog.h: add prototype for do_local_dir
8954 * main.cc (WinMain): initialize local_dir to cwd; add call to
8955 do_local_dir
8956 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
8957 * source.cc (dialog_cmd): ditto
8958 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
8959 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
8960 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
8961 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
8962 * state.h: add local_dir variable
8963
8964 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
8965
8966 * desktop.cc: added logic to handle to the new dialog and to
8967 default the setting for the new checkboxes based on whether the
8968 desktop icon or start menu link already exist.
8969 (desktop_icon): correction to desktop directories for desktop icon
8970 creation. Additional logic added for Win95 which does not appear
8971 to have Common Directories so if Common selected and null uses
8972 normal directory.
8973 (start_menu): Additional logic added for Win95 which does not
8974 appear to have Common Directories so if Common selected and null
8975 uses normal directory.
8976 (do_desktop_setup): moved the saving of the icon, creation of the
8977 bat file, profile, passwd, Start Menu link and desktop shortcut to
8978 this method from do_desktop. Made the creation of the desktop
8979 icon and start menu link conditional on settings of new dialog
8980 created for desktop.
8981 * install.cc (do_install): changed next from IDD_S_DESKTOP to
8982 IDD_DESKTOP.
8983 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
8984 * res.rc: added new resource to create a desktop dialog with 2
8985 checkboxes for creating the desktop icon and start menu link.
8986 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
8987 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
8988 * state.h: added root_menu and root_desktop for use in dialog.
8989
8990 2000-08-29 DJ Delorie <dj@redhat.com>
8991
8992 * choose.cc (scan_downloaded_files): scan for existing files, so
8993 that the user only sees new downloads.
8994
8995 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
8996 * site.cc (do_site): if we can't download the mirror list, go back
8997 to the net setup box to choose another transport.
8998 * autoload.c: add more functions
8999 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
9000 * resource.h: add WININET message
9001
9002 * net.cc (do_net): no longer default to IE5
9003 * simpsock.h (class SimpleSocket): new, simplify socket operations
9004 * simpsock.cc: ditto
9005 * nio-http.h: new, for direct http protocol
9006 * nio-http.cc: ditto
9007 * nio-ftp.h: new, for direct http protocol
9008 * nio-ftp.cc: ditto
9009 * netio.cc (set_url): move initialization here to handle redirections
9010 (open): add direct http/ftp
9011 * netio.h (NetIO::set_url): new
9012
9013 * log.cc (log_save): create directory for log if needed
9014
9015 * hash.cc, hash.h: new
9016 * Makefile: add hash.o
9017 * choose.cc: enable "uninstall" option
9018 * download.cc: invert action test to accomodate uninstalling
9019 * ini.h: add ACTION_UNINSTALL
9020 * install.cc: add uninstall functionality
9021 * res.rc: make install tag changeable
9022 * resource.h: add uninstall resources
9023
9024 * res.rc: update mirror list URL
9025
9026 2000-08-24 DJ Delorie <dj@redhat.com>
9027
9028 * log.cc, log.h: new files
9029 * Makefile.in (OBJS): add log.o
9030 * tar.cc: use exit_setup instead of exit
9031 * dialog.cc (fatal): use exit_setup instead of ExitProcess
9032 * msg.cc (fatal): ditto
9033 * install.cc (dialog_cmd): ditto
9034 * ini.cc (do_ini): ditto
9035 * main.cc (main): add logging
9036 * source.cc (do_source): ditto
9037 * root.cc (do_source): ditto
9038 * site.cc (do_site): ditto
9039 * other.cc (do_other): ditto
9040 * net.cc (do_net): ditto
9041 * choose.cc (do_choose): ditto
9042 * download.cc (do_download): ditto
9043 * install.cc (do_install): ditto
9044 * msg.cc (fatal): ditto
9045
9046 * res.rc: mark password boxes as *being* password boxes.
9047
9048 * fromcwd.cc (canonicalize_version): use multiple buffers so that
9049 multiple calls won't use the same buffer.
9050 * choose.cc (create_listview): don't default to full list if no changes
9051 (base): return computed value, not temporary :-(
9052 (do_choose): don't use installed.db if we're only downloading.
9053
9054 2000-08-23 DJ Delorie <dj@redhat.com>
9055
9056 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
9057 * nio-ie5.h (flush_io): new
9058 * netio.cc (load_dialog): note when we're initializing the dialog
9059 box, and ignore changes to the edit fields then.
9060
9061 2000-08-21 DJ Delorie <dj@redhat.com>
9062
9063 * README: Update
9064
9065 * fromcwd.cc (found_file): don't remember the canonicalized version
9066
9067 * choose.cc (paint): print "nothing to do" message when list is empty.
9068 (build_labels): Use version "0.0" if no version is available.
9069 (create_listview): default to full list if nothing to install/update.
9070 (base): new, returns basename of file
9071 (read_installed_db): compare base names, not full paths
9072
9073 2000-08-11 DJ Delorie <dj@redhat.com>
9074
9075 * choose.cc: add new chooser dialog
9076 * fromcwd.cc: use IDD_CHOOSE
9077 * ini.cc: use IDD_CHOOSE
9078 * main.cc: use IDD_CHOOSE
9079 * ini.h: cosmetic changes
9080 * res.rc: add choose dialog, bitmaps
9081 * choose-spin.bmp: new
9082 * choose-rtarrow.bmp: new
9083 * resource.h: add choose dialog controls
9084
9085 * mount.cc: remove debug statement
9086
9087 2000-08-08 DJ Delorie <dj@redhat.com>
9088
9089 * Makefile.in (version.c): make version checking more robust
9090 * splash.cc (load_dialog): handle case where there's no version
9091
9092 2000-08-07 DJ Delorie <dj@redhat.com>
9093
9094 * (all): add cvsid tags
9095 * Makefile.in: generate version.c from ChangeLog, add splash.o
9096 * splash.o: new
9097 * res.rc: add splash screen
9098
9099 2000-08-02 DJ Delorie <dj@redhat.com>
9100
9101 * net.cc: remove proxy password code
9102 * res.rc: remove proxy user/pass from net, add auth dialogs
9103 * netio.cc,h: add sys/proxy auth methods
9104 * nio-ie5: use them, check for http status codes
9105 * state.h: add system authorization
9106
9107 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
9108 meaning an url)
9109
9110 2000-08-02 Norman Vine <nhv@yahoo,com>
9111
9112 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
9113
9114 2000-08-01 DJ Delorie <dj@redhat.com>
9115
9116 * postinstall.cc (each): don't rename files we ignore
9117 (do_postinstall): set CYGWINROOT to root_dir, chdir there
9118
9119 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
9120
9121 2000-07-31 DJ Delorie <dj@redhat.com>
9122
9123 * desktop.cc: reverse PATH so /usr/bin precedes /bin
9124
9125 2000-07-18 DJ Delorie <dj@redhat.com>
9126
9127 * autoload.c: new, autoload dlls that might not be available.
9128 * Makefile.in (OBJS): add autoload.o
9129
9130 * res.rc: rewrite root options (text/binary, system/user) to be
9131 more obvious.
9132
9133 * site.cc (get_site_list): trim displayed URL, sort by domain
9134
9135 * net.cc (do_net): make IE5 default to checked, for now
9136
9137 * choose.cc (do_choose): sort packages correctly
9138 * ini.cc (do_ini): handle parse errors more gracefully
9139 (yyerror): ditto
9140 (fprintf): line buffer output
9141 (do_ini): if we can't load setup.ini, go back to the site list.
9142 * ini.h: add "unknown" trust level
9143 * inilex.l: absorb unknown trust levels and key/value pairs,
9144 add line number logic
9145 * iniparse.y: handle parse errors more gracefully.
9146 * install.cc: skip packages with no valid install entry
9147
9148 2000-07-17 DJ Delorie <dj@cygnus.com>
9149
9150 * coding standards fixups, many files
9151 * mkdir.cc: warn about deletions *before* deleting them
9152
9153 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
9154
9155 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
9156
9157 * other.cc (dialog_cmd): save download site URL
9158 * site.cc (get_root_dir): new
9159 (save_mirror_site): new
9160 (dialog_cmd): save download site URL
9161 (get_site_list): make list big enough to add prev site
9162 (get_initial_list_idx): new, read last-used URL from file and
9163 append it to site_list
9164 (do_site): call get_initial_list_idx
9165
9166 * concat.cc (concat): avoid segfault when first parm is null
9167
9168 2000-07-13 DJ Delorie <dj@cygnus.com>
9169
9170 * postinstall.cc: new
9171 * Makefile.in: add postinstall.o
9172 * concat.h: add backslash ()
9173 * concat.cc: ditto
9174 * desktop.cc (etc_profile): don't do postinstall
9175 (backslash): moved to concat.cc
9176 (uexists): new
9177 (make_postinstall_script): run directly
9178 (do_desktop): chain to do_postinstall
9179 * dialog.h: add exit_msg, do_postinstall
9180 * download.cc: use exit_msg
9181 * install.cc: ditto
9182 * main.cc: add postinstall, exit_msg
9183 * resource.h: add postinstall
9184 * README: add more to-do items
9185
9186 2000-07-12 DJ Delorie <dj@cygnus.com>
9187
9188 * desktop.cc: add /etc/postinstall/ support
9189 * install.cc: add more "standard" directories
9190
9191 2000-07-11 DJ Delorie <dj@cygnus.com>
9192
9193 * desktop.cc: create /etc/profile
9194 * desktop.cc: fix include syntax
9195 * Makefile.in: add auto-dependencies
9196 * root.cc: support system vs user
9197 * desktop.cc: ditto
9198 * mount.h: ditto
9199 * mount.cc: ditto
9200 * install.cc: ditto
9201 * res.rc: ditto
9202 * resource.h: ditto
9203 * state.h: ditto
9204 * desktop.cc: make sure we use backslashes, not slashes.
9205 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
9206 * geturl.cc: change math for percentage to avoid overflow
9207 * install.cc: ditto
9208 * download.cc: post "download complete" message.
9209 * root.cc: pre-fill in defaults if needed, don't start
9210 browse at root_dir unless it's set.
9211 * desktop.cc: quote $PATH in case it has spaces in it
9212
9213 2000-07-10 DJ Delorie <dj@cygnus.com>
9214
9215 * Makefile.in: add desktop.o and mklink2.o
9216 * dialog.h: add do_desktop
9217 * install.cc: create standard directories, call do_desktop
9218 * res.rc: add cygwin.ico as a file also
9219 * desktop.cc: new, do shortcuts, batch files, and icons
9220 * mklink2.c: new, for COM
9221 * README: update to-do list
9222
9223 2000-07-10 DJ Delorie <dj@cygnus.com>
9224
9225 * ini.cc (do_ini): don't worry about timestamps if we're not
9226 actually installing.
9227
9228 2000-07-09 DJ Delorie <dj@cygnus.com>
9229
9230 * Makefile.in: add -I$(srcdir) for ini.h
9231
9232 2000-07-06 DJ Delorie <dj@cygnus.com>
9233
9234 * Replace everything with a new GUI version
9235 * zlib/gzio.c: add gzctell() for progress displays
9236
9237 2000-06-22 DJ Delorie <dj@cygnus.com>
9238
9239 * setup.c (tarx): re-add call to write_pkg()
9240
9241 2000-06-07 DJ Delorie <dj@cygnus.com>
9242
9243 * cygcalls.c: new, call cygwin1.dll functions directly
9244 * cygcalls.h: header for same
9245 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
9246 exes, fix cinstall.rc dependencies.
9247 * path.c: remove unneeded code
9248 * setup.c: use cygcalls instead of xcreate_process.
9249 uncompress embedded files with zlib
9250 add "-d" for "download only"
9251 add "-h" for help
9252 postpone mount changes until very end
9253 add download progress indicators
9254 pack multi-column listings more
9255 auto-delete temp files
9256 customize banner message according to options
9257 prompt user for text/binary mounts
9258 add warnings about empty setup directory, root installs, etc
9259
9260 2000-05-24 DJ Delorie <dj@cygnus.com>
9261
9262 * tar.c: New file; built-in tar using zlib.
9263 * tar.h: New file; header for same.
9264 * ctar.c: New file; test program for same.
9265 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
9266 * path.c (pathcat): convert slashes and canonicalize, instead of
9267 aborting
9268 * setup.c (tarx): add support for built-in tar
9269 (main): accept unix-style slashes, check root dir for drive letters,
9270 warn about installing in /, make sure cwd is empty for internet
9271 installs, defer mounts to end of install, support built-in tar.
9272
9273 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
9274
9275 Fix compiler warnings throughout.
9276 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
9277 get_pkg_stuff.
9278 * setup.c: Make 'root' global.
9279 (istargz): Return pointer to "stem" of matched .tar.gz file.
9280 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
9281 bogus check_for_installed check.
9282 (recurse_dirs): Add preliminary support for .bat file execution.
9283 (create_uninstall): Eliminate unneeded parameter.
9284 (do_start_menu): Ditto.
9285 (mkmount): Ditto.
9286 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
9287 scanning for the version number. Eliminate unneeded argument to
9288 create_uninstall.
9289 (getdownloadsource): Add 'name' to list of names rather than url.
9290 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
9291 unneeded argument in mkmount and do_start_menu.
9292
9293 2000-05-18 DJ Delorie <dj@cygnus.com>
9294
9295 * setup.c (optionprompt): allow multi-column, clean up message
9296 about more options, be more robust about user input.
9297 (getdownloadsource): make the mirror URL a macro.
9298 (main): do mounts after done prompting user.
9299
9300 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
9301
9302 * setup.c (cleanup): Inverse order of deletion stands a better chance
9303 of deleting cygpath.exe. Still seems to suffer from occasional races,
9304 though.
9305 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
9306 w2k.
9307 (output_file): Defend against an unlikely handle leak.
9308 (main): Don't set up signal handling until we have something special to
9309 do.
9310
9311 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
9312
9313 * path.c (kill_cygpath): Delete function.
9314 (exit_cygpath): Make more defensive so that it can be called at any
9315 time.
9316 (cygpath_pipe): Don't set up signal here. Do it in main().
9317 * setup.c (istargz): New function.
9318 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
9319 inexplicably fails on samba mounted partitions. Use istargz to match
9320 tar.gz tail.
9321 (processdirlisting) Use istargz to match tar.gz tail.
9322 (cleanup): Renamed from filedel.
9323 (cleanup_on_signal): New function. Called on CTRL-C.
9324 (main): Record handle of main thread so that it can be suspended when
9325 CTRL-C occurs. Set up cleanup_on_signal signal handler.
9326
9327 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
9328
9329 * setup.c (do_start_menu): Don't concatenate paths to already built
9330 paths.
9331
9332 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
9333
9334 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
9335 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
9336 that.
9337 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
9338 root"-specific.
9339 * setup.c (filedel): Call exit_cygpath here so that we can be assured
9340 that cygpath subprocess has died. This allows us to delete cygpath.exe
9341 and cygwin1.dll.
9342 (optionprompt): Initialize response to -1 so that second screen of
9343 mirrors will appear.
9344 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
9345 * setup.h: Reflect init_pkgs prototype change.
9346
9347 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
9348
9349 * pkg.c (init_pkgs): Accept an argument to control what root registry
9350 key should be used.
9351 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
9352 * setup.h: Reflect init_pkgs prototype change.
9353
9354 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
9355
9356 * error.c (winerror): Respond to gcc warning.
9357 * path.c (cygpath_pipe): Ditto.
9358 * setup.c (filedel): Call sa_cleanup on deleteme.
9359 (create_shortcut): Coerce argument to eliminate compiler warning.
9360 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
9361 (refmatches): New function. Tests if ref is contained in a list of
9362 packages to install.
9363 (filematches): New function. Tests if filename matches one of a list
9364 of packages to install.
9365 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
9366 test to accomodate _tar.gz.
9367 (prompt): Ensure that stdout is flushed prior to asking for input.
9368 (findhref): Initialize variables to quiet a compiler warning.
9369 (processdirlisting): Accept list of packages to install. Special case
9370 cygwin tar file version number.
9371 (downloaddir): Accept list of packages to install.
9372 (downloadfrom): Ditto.
9373 (create_uninstall): Eliminate unneeded variables. Quote arguments to
9374 regtool.
9375 (do_start_menu): Don't create uninstall bat file if updating or user
9376 specified a list of packages.
9377 (mkmount): Eliminate unneeded variables.
9378 (get_pkg_stuff): New function. Checks for previous unversioned
9379 installation.
9380 (main): Accept -u and -f options and package names on the command line.
9381 Use get_pkg_stuff to initialize package information. Umount /etc.
9382 Call recurse_dirs and downloadfrom with list of package to install.
9383 Ensure that all /usr/local directories are created. Output
9384 installation time to setup.log.
9385 * setup.h: Add some prototypes.
9386 * xsystem.c (xcreate_process): Eliminate unneeded variable.
9387
9388 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
9389
9390 * setup.c (optionprompt): Don't overlap display of already seen options
9391 on next page.
9392 (geturl): Print name of site which we're connecting to rather than "ftp
9393 site".
9394 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
9395 test too simplistic?
9396 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
9397 problems when user chooses x:\ as their root.
9398 (main): For now, default to "non-update" mode. Allow -u option to
9399 signify an update.
9400
9401 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
9402
9403 * pkg.c: New file.
9404 * setup.c (tarx): Skip already installed or older packages. Report
9405 when a package has been updated.
9406 (processdirlisting): Skip already installed or older packages.
9407 (main): Detect -f option for forced installation. Initialize pkg stuff
9408 if appropriate.
9409 * setup.h: Add pkg definitions.
9410
9411 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
9412
9413 * setup.c (findhref): Return NULL on empty string. Eat any trailing
9414 ";something".
9415 (processdirlisting): Attempt to limit recursively processing the same
9416 directory.
9417
9418 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
9419
9420 * setup.c (filedel): New function.
9421 (output_file): Keep track of files extracted from setup.exe for
9422 subsequent deletion.
9423 (tarx): Close process handle of child tar process or suffer handle
9424 leak.
9425 (getdownloadsource): Close mirror file so that it can be unlinked.
9426 (processdirlisting): Return total number of files extracted.
9427 (main): Initialize array of files to delete. Ensure that files are
9428 closed on exit. Make the directory that setup.exe is started from ==
9429 the directory where temporary files are placed. Issue an error if no
9430 files were found to download.
9431 * xsystem.c (xcreate_process): Close the thread handle. Close the
9432 process handle if we waited for it to exit.
9433
9434 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
9435
9436 * setup.c (main): Change version number output.
9437
9438 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
9439
9440 * setup.c (tarx): Use full path name to tar executable.
9441 (main): Build full pathname to tar executable. Create /usr/local/etc
9442 by default.
9443
9444 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
9445
9446 * setup.c (findhref): Change method for scanning for href= to choose
9447 the last one on the line. This is still not foolproof and probably
9448 will need to be changed eventually. Don't abort if no "size" field is
9449 evident.
9450 (processdirlisting): Fix boolean algebra.
9451
9452 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
9453
9454 * main.c (tarx): Add some code for future task of unmounting
9455 directories encountered in tar file.
9456
9457 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
9458
9459 * setup.c (findhref): Decode file size, when appropriate.
9460 (needfile): New function. Returns 1 when file should be
9461 downloaded.
9462 (processdirlisting): Always download if file size does not
9463 match. Prompt when download fails for some reason.
9464 (getdownloadsource): Accomodate findhref argument changes.
9465
9466 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
9467
9468 Throughout, use global session handle rather than reinitializing for
9469 each connect. Don't pass session as an argument to setup.c functions.
9470 * setup.c (geturl): Only issue "Connecting to.." message when using
9471 http or first time for ftp since subsequent connections will be fast.
9472 (processdirlisting): Allocate space for "N" when user has specified
9473 "N"ever option so that it can be subsequently freed.
9474 (main): Abort if we can't get the list of mirrors.
9475
9476 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
9477
9478 * setup.c (main): Umount /bin and /lib.
9479
9480 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
9481
9482 * setup.c (main): Create an empty /var/run/utmp.
9483
9484 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
9485
9486 * Makefile.in: Add umount to list of files to include in setup.exe.
9487 * setup.c (xumount): New function for unmounting directories.
9488 (main): Unmount /usr.
9489 (mkmount): Unmount "unix directory" before trying to figure out where
9490 to create the directory.
9491
9492 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
9493
9494 * setup.c (mkmount): Use xcreate_process to start mount process,
9495 avoiding the shell.
9496 (main): Don't do buffering on stdout or prompts won't be displayed
9497 correctly if running in a cygwin shell with CYGWIN=tty.
9498
9499 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
9500
9501 * setup.c (main): Remove the CYGWIN environment variable before
9502 starting any cygwin programs.
9503
9504 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
9505
9506 * setup.c (geturl): Use alternative method for finding filename part of
9507 a URL.
9508 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
9509 (downloaddir): Unlink file containing dir listing.
9510 (downloadfrom): Ditto.
9511
9512 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
9513
9514 * setup.c (main): Disallow running setup.exe from the "root".
9515
9516 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
9517
9518 Use "warning" function, where appropriate, to output warnings.
9519 * setup.c (warning): New function -- outputs warning to console and log
9520 file.
9521 (tarx): Fix index used to reset file protection.
9522 (main): Open the log file earlier so that more stuff can be sent to it.
9523
9524 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
9525
9526 * setup.c (processdirlisting): Make "N" option a little less aggressive.
9527
9528 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
9529
9530 * setup.c (tarx): Wait to after tar has completed to reset protections
9531 or suffer races with tar process.
9532
9533 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
9534
9535 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
9536 * setup.c (create_uninstall): Create the uninstall .bat file in the
9537 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
9538 list of files to be deleted. Fix directory detection for determining
9539 when to use 'rmdir'.
9540 (do_start_menu): Add /usr/local/bin to the path.
9541 (main): Add slop to files.array allocation so that we don't have to
9542 worry about reallocating the array when it grows too large when doing
9543 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
9544 files.
9545
9546 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
9547
9548 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
9549 download.
9550
9551 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
9552
9553 * path.c (kill_cygpath): New cleanup function.
9554 (exit_cygpath): New cleanup function.
9555 (cygpath_pipe): New function. Sets up cygpath in the background for
9556 translating filenames.
9557 (pathcvt): Use background cygpath for file translation.
9558 * setup.c (tarx): New function. Called to extract tar files, capture
9559 logging output, and translate it to Windows format.
9560 (recurse_dirs): Use 'tarx' function to extract files.
9561 (create_uninstall): Use file list built up by tarx rather than reading
9562 the log file.
9563 (mkmount): Add ability to mount root.
9564 (main): Track elapsed install time. Mount root.
9565 * starry.h: Add index field to strarry for tracking of tarx's usage of
9566 this structure.
9567 * xsystem.c (xcreate_process): Return proces handle when not waiting.
9568
9569 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
9570
9571 * path.c: New file.
9572 (pathfp): New function. Preliminary work for new -f cygpath
9573 functionality.
9574 * Makefile.in: Add new file.
9575 (pathcvt): Move to new file.
9576 (dtoupath): Ditto.
9577 (utodpath): Ditto.
9578 (pathcat): Ditto.
9579 * setup.c (processdirlisting): Always open file in text mode.
9580 (create_uninstall): Ditto.
9581 (getdownloadsource): Ditto.
9582 (main): Ditto.
9583
9584 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
9585
9586 * xsystem.c: New file.
9587 * Makefile.in: Accomodate new file.
9588 * setup.c (xsystem): Move to new file.
9589 (recurse_dirs): Accept handle to output log file. Don't use ">"
9590 redirection to trap tar output. Use supplied handle instead.
9591 (create_uninstall): Accept FILE pointer to opened log file. Don't
9592 unlink log file here.
9593 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
9594 (main): Open log file here and pass it to various functions. Unlink
9595 when done.
9596
9597 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
9598
9599 Change occurrences of .usr.bin to .bin throughout.
9600 * setup.c (geturl): Increase number of retries to 20. Let user know
9601 what's going on during long connects.
9602 (processdirlisting): Accept "A"lways and "N"ever as update options.
9603 (create_uninstall): Load cygwin1.dll from the current directory rather
9604 than \bin.
9605 (main): Add some expository text.
9606
9607 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
9608
9609 * Makefile.in: Change method for compressing cygwin1.dll to avoid
9610 creating a cygwin1.dll in the current directory. Ensure the addition
9611 of -nostdinc to MINGW_CFLAGS.
9612
9613 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
9614
9615 * Makefile.in: Augment clean target.
9616
9617 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
9618
9619 * README: Added info about non-working mingw implementation
9620 * gzip.exe.gz: Replace with a version from the same build as the other
9621 tools.
9622 * tar.exe.gz: Replace with a version from the same build as the other
9623 tools.
9624 * mount.exe.gz: Add to repository until, mingw can build setup.
9625 * cygpath.exe.gz: ditto
9626 * cygwin1.dll.gz: ditto
9627 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
9628 for Win9x. Display only a screenfull of options at a time. Call all
9629 tools with an absolute path.
9630 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
9631 them.
9632 * setup.dsw: ditto
9633 * zlib.dsw: ditto
9634
9635 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
9636
9637 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
9638 cygwin1.dll from ../cygwin subdirectory.
9639 * gzip.exe.gz: Update.
9640 * tar.exe.gz: Update.
9641
9642 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
9643
9644 * Makefile.in: Use ZLIB variable as a target.
9645
9646 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
9647
9648 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
9649 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
9650 sources.
9651 * configure.in: Locate correct objcopy.
9652 * configure: Regenerate.
9653
9654 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
9655
9656 * Makefile.in: New file.
9657 * configure.in: New file.
9658 * configure: New file.
9659 * zlib/Makefile.am: New file.
9660 * zlib/configure.in: New file.
9661 * zlib/aclocal.m4: New file.
9662 * zlib/acinclude.m4: New file.
9663 * zlib/configure: Regenerate from configure.in.
9664 * zlib/Makefile.in: Regenerate from Makefile.am
9665
9666 %%% $Id$
9667 $Revision$
This page took 0.430441 seconds and 4 git commands to generate.