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