1 2010-04-08 Christopher Faylor <me+cygwin@cgf.cx>
3 * bootstrap.sh: Always reconfigure in libgetopt++.
5 * Makefile.am: Remove old code for direct copying to sourceware. Add
6 -src to source tarball.
8 2010-04-07 Matthias Andree <matthias.andree@gmx.de>
10 * README (HOW TO BUILD): Mention mingw-lib{gcrypt,lzma}-devel.
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
19 2010-04-07 Corinna Vinschen <corinna@vinschen.de>
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.
26 2010-03-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
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.
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.
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.
265 2010-03-17 Corinna Vinschen <corinna@vinschen.de>
267 * autoload.cc (Auto): Create autoload code in an executable section
268 called .autoload_text to avoid problems with DEP.
270 2010-03-14 Christopher Faylor <me+cygwin@cgf.cx>
272 * Makefile.am: Add a setup-src target.
274 2010-03-14 Charles Wilson <cygwin@cwilson.fastmail.fm>
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
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.
292 2010-03-13 DJ Delorie <dj@redhat.com>
294 * nio-ftp.c (read): Read RETR status code on EOF to avoid
297 2010-03-01 Corinna Vinschen <corinna@vinschen.de>
299 * filemanip.cc (mklongpath): Skip "." and ".." path components to
300 avoid error messages.
302 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
304 * filemanip.cc (mklongpath): Simplify backslash folding.
306 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
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.
313 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
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.
329 2010-02-04 Corinna Vinschen <corinna@vinschen.de>
331 * win32.cc (NTSecurity::GetPosixPerms): Return NULL security descriptor
333 (NTSecurity::SetPosixPerms): Remove.
334 * win32.h (NTSecurity::GetPosixPerms): Remove declaration.
336 2010-02-02 Corinna Vinschen <corinna@vinschen.de>
338 * desktop.cc (make_link): Use 0 default permissions when creating files
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
345 * mkdir.cc (mkdir_p): Ditto if mode is set to 0.
347 2010-01-29 Christopher Faylor <me+cygwin@cgf.cx>
349 * mount.cc (read_mounts_9x): Preserve old way of doing things when
352 2010-01-28 Christopher Faylor <me+cygwin@cgf.cx>
354 * desktop.cc (make_link): Preserve old way of doing things when
356 (make_cygwin_bat): 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
369 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
371 * archive_tar.c (archive_tar_file::read): Always set read_something
372 even for zero-length files.
374 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
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.
382 2010-01-13 Christopher Faylor <me+cygwin@cgf.cx>
384 * localdir.cc (LocalDirPage::OnNext): Strip trailing slashes.
386 2009-12-27 Christopher Faylor <me+cygwin@cgf.cx>
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.
396 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
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.
404 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
406 * package_message (packagemessage::display): Avoid displaying a message
407 when in unattended mode.
409 2009-12-22 Corinna Vinschen <corinna@vinschen.de>
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.
420 2009-12-21 Christopher Faylor <me+cygwin@cgf.cx>
422 * choose.cc (ChooserPage::PlaceDialog): Put *correct* size in
423 WINDOWPLACEMENT length field.
425 2009-12-18 Corinna Vinschen <corinna@vinschen.de>
427 Throughout, revert prototypes and methods set_mtime_and_mode to
428 set_mtime and only care for the file timestamp.
430 Throughout, accommodate additional mode_t parameter in call to
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
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
453 * io_stream_file.cc (FileProvider::open): Ditto.
454 (io_stream_file::io_stream_file): Ditto. Call nt_wfopen with incoming
456 * io_stream_file.h (io_stream_file::io_stream_file): Add mode_t
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
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.
479 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
481 * filemanip.cc (nt_wfopen): Only call nt_sec.SetPosixPerms if we have
483 * mkdir.cc (mkdir_p): Ditto.
485 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
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.
493 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
495 * localdir.cc (LocalDirSetting::save): Call mkdir_p with isadir set
496 since /var/log is a dir.
498 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
500 * UserSettings.cc (UserSettings::open_settings): Never add more than
502 * filemanip.cc (tfx_chars): Align to Cygwin's transformation table.
503 * localdir.cc (LocalDirSetting::save): Call mkdir_p with DOS path.
505 2009-12-16 Christopher Faylor <me+cygwin@cgf.cx>
507 * package_message.h: New file.
509 2009-12-13 Christopher Faylor <me+cygwin@cgf.cx>
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,
516 * PickView.cc: Ditto.
518 * package_meta.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
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.
530 2009-12-08 Dave Korn <dave.korn.cygwin@gmail.com>
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.
541 * res.rc (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define new
543 * resource.h (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define
544 corresponding resource ID numbers.
546 2009-12-03 Corinna Vinschen <corinna@vinschen.de>
548 * main.cc (WinMain): Disable running on Windows 9x. Show message box
551 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
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.
557 2009-11-23 Corinna Vinschen <corinna@vinschen.de>
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
563 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
565 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Don't loop forever
566 retrying ini file download/parse if it errors in unattended mode.
568 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
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.
577 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
579 * localdir.cc (LocalDirSetting::LocalDirSetting): Restore -l option.
581 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
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.
588 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
590 * download.cc (do_download_thread): Only retry an incomplete download
591 a limited number of times in unattended mode.
593 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
595 * main.cc (main_display): Use apartment-, not multi- threading model
596 when initialiseing COM.
598 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
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.
604 2009-11-03 Corinna Vinschen <corinna@vinschen.de>
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
613 * win32.h (class NTSecurity): Add members ownerSID and groupSID.
615 2009-10-03 Andy Koppe <andy.koppe@gmail.com>
617 * main.cc (main): Make sure C runtime uses same codepage as GUI.
619 2009-09-20 Christopher Faylor <me+cygwin@cgf.cx>
621 * main (set_cout): Really do attach to a console if stdout is "bad".
623 2009-09-18 Andy Koppe <andy.koppe@gmail.com>
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.
631 2009-09-18 Christopher Faylor <me+cygwin@cgf.cx>
633 * choose.cc (ChooserPage::OnBack): Revert to non-maximized when
634 returning to mirror from package selection.
636 2009-09-18 Dave Korn <dave.korn.cygwin@gmail.com>
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.
643 2009-08-21 Christopher Faylor <me+cygwin@cgf.cx>
645 * site.cc (SiteSetting::registerSavedSite): Fix comment.
647 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
649 * main.cc (set_cout): Don't reset stdout if we already have a stdout.
651 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
653 * choose.cc (ChooserPage::ChooserPage): Use more specific name for
654 saving window settings.
655 (ChooserPage::~ChooserPage): Ditto.
657 2009-07-01 Dave Korn <dave.korn.cygwin@gmail.com>
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,
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.
669 2009-06-29 Christopher Faylor <me+cygwin@cgf.cx>
671 * SourceSetting.cc (SourceSetting::SourceSetting): Restore proper
672 remembrane of last source setting.
673 * choose.cc (ChooserPage::ChooserPage): Potentially retrieve dialog
675 (ChooserPage::~ChooserPage): Save geometry settings if the user moved
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.
688 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
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.
696 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
698 * UserSettings.cc (UserSettings::UserSettings): settings.rc -> setup.rc.
700 2009-06-28 Corinna Vinschen <corinna@vinschen.de>
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.
710 2009-06-27 Christopher Faylor <me+cygwin@cgf.cx>
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
721 * UserSettings.cc: Complete rewrite. Implements new UserSettings
723 * UserSettings.h: Complete rewrite. Defines new UserSettings class
725 * crypto.cc (ExtraKeys): Delete.
726 (add_key_from_sexpr): Use ExtraKeysSetting::instance rather than
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
733 (main_display): New function. Controls order of option setting and
734 property page setup. Add new class invocations to force option setting
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
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.
749 * win32.h: gcc-4 accommodation.
751 2009-06-26 Dave Korn <dave.korn.cygwin@gmail.com>
753 * res.rc (SETUP_STANDARD_DIALOG_W, SETUP_STANDARD_DIALOG_H,
754 SETUP_SMALL_DIALOG_W, SETUP_SMALL_DIALOG_H): Add constant defines
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.
773 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
775 * Makefile.am (setup_LDADD): Add -lshlwapi.
776 * PickView.cc: Include shlwapi.h.
777 (PickView::setViewMode): Compare package name with search string
779 (PickView::insert_category): Ditto.
781 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
783 * script.cc (init_run_script): Don't set $HOME to /tmp. It breaks
786 2009-06-25 Corinna Vinschen <corinna@vinschen.de>
788 * script.cc (init_run_script): Reinstantiate accidentally removed
791 2009-06-22 Christopher Faylor <me+cygwin@cgf.cx>
793 * script.cc (init_run_script): Revert to initializing cmd based on OS
796 2009-06-22 Corinna Vinschen <corinna@vinschen.de>
798 * script.cc (Script::run): Start bash without -c option.
800 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
802 * threebar.cc (ThreeBarProgressPage::ins_dialog): Move variable to more
804 (ThreeBarProgressPage::MaximizeDialog): Move function to more
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
817 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
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
827 2009-06-16 Corinna Vinschen <corinna@vinschen.de>
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.
833 2009-06-03 Ralph Hempel <rhempel@bmts.com>
835 * source.cc: Add support for both -D and -L on the command line.
837 2009-06-03 Corinna Vinschen <corinna@vinschen.de>
839 * filemanip.cc (unlink): Rename from DeleteFileW. Take additional
840 parameter to indicate file type to unlink. Use in flags given to
842 (DeleteFileW): Just call unlink from here with FILE_NON_DIRECTORY_FILE
844 (RemoveDirectoryW): Ditto with FILE_DIRECTORY_FILE flag.
846 2009-05-30 Charles Wilson <cygwin@cwilson.fastmail.fm>
848 * script.cc (Script::run): Really start bash with --norc
851 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
853 * script.cc (Script::run): Start bash with --norc --noprofile options.
855 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
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
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.
872 2009-05-12 Corinna Vinschen <corinna@vinschen.de>
874 * filemanip.cc (GetFileAttributesW): Add accidentally omited
875 OBJ_CASE_INSENSITIVE when creating OBJECT_ATTRIBUTES.
876 (SetFileAttributesW): Ditto.
878 (DeleteFileW): Ditto.
879 (RemoveDirectoryW): Ditto.
882 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
884 * localdir.cc (load_dialog): Choose description string based on install
886 * res.rc (IDD_LOCAL_DIR): Replace static description text with
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.
892 2009-05-11 Christopher Faylor <me+cygwin@cgf.cx>
894 * main.cc (set_cout): Simplify code a little.
896 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
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.
903 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
905 * UserSettings.cc (UserSettings::settingFileForLoad): Fix local load
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.
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.
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
928 (io_stream_cygfile::get_size): Use CreateFileW/GetFileSize to get
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
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.
942 * postinstall.cc (do_postinstall_reflector): Switch to admins group
943 as primary group after postinstall scripts have been written.
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.
953 2009-05-07 Corinna Vinschen <corinna@vinschen.de>
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
960 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
962 * install.cc (Installer::StandardDirs): Add /home with 1777 perms.
963 * main.cc (main): Drop setting $CYGWIN to nontsec.
965 2009-04-24 Andrew Punch <andrew@magneticbooks.com.au>
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.
985 2009-04-24 Dave Korn <dave.korn.cygwin@gmail.com>
987 * propsheet.cc (PropSheetWndProc): Re-enable hasMinRect.
989 2009-04-23 Corinna Vinschen <corinna@vinschen.de>
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.
1004 2009-04-22 Corinna Vinschen <corinna@vinschen.de>
1006 * mklink2.cc (mkcygsymlink_nt): Allow 4K chars in symlink. Use strncat
1008 * postinstall.cc (do_postinstall): Reset user token to original
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.
1017 2009-04-09 Christopher Faylor <me+cygwin@cgf.cx>
1019 * main.cc (set_cout): Load AttachConsole dynamically to avoid using it
1020 on older Windows which don't support it.
1022 2009-03-21 Christopher Faylor <me+cygwin@cgf.cx>
1024 * LogFile.cc (LogFile::endEntry): Output messages to stdout.
1025 * main.cc (set_cout): New function. Sets stdout to console if one
1027 (main): Redirect stdout to console if unattended_mode or help option is
1028 specified and no stdout is available.
1030 2009-03-21 Terry Fleming <terrynfleming@gmail.com>
1031 Christopher Faylor <me+cygwin@cgf.cx>
1033 * propsheet.cc (PropSheetWndProc): Detect a Window closing event and
1034 issue an "Are you sure" message.
1036 2008-08-29 Corinna Vinschen <corinna@vinschen.de>
1038 * package_db.cc (ConnectedLoopFinder::doIt): Add code to get a basic
1039 order into the dependency list. Add comment to explain why.
1041 2008-08-22 Brian Dessent <brian@dessent.net>
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").
1049 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
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.
1056 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
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
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
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
1085 2008-08-19 Corinna Vinschen <corinna@vinschen.de>
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
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
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
1121 (cygmkdir_p): Ditto. Call mkdir_p with additional file mode.
1122 (io_stream_cygfile::set_mtime_and_mode): Replace set_mtime. Call
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
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.
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.
1152 2008-08-14 Corinna Vinschen <corinna@vinschen.de>
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
1161 (read_mounts_nt): Call from_fstab after getting setup/rootdir from
1162 registry. Only call add_usr_mnts if no fstab file found.
1164 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1166 * install.cc (Installer::installOne): Skip 46 bytes type tar package
1169 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
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
1175 * win32.h (VersionInfo::major): New method.
1176 (VersionInfo::minor): New method.
1177 (OSMajorVersion): Define.
1178 (OSMinorVersion): Define.
1180 2008-08-12 Corinna Vinschen <corinna@vinschen.de>
1182 Revamp for Cygwin 1.7.
1183 * desktop.cc (make_cygwin_bat): Use wide char file functions on NT.
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
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
1214 (read_mounts_9x): Rename from read_mounts. Make static. Conditionalize
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
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.
1243 2008-08-07 Dave Korn <dave.korn.cygwin@gmail.com>
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:
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>
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
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.
1272 2008-08-05 Christopher Faylor <me+cygwin@cgf.cx>
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.
1295 2008-07-22 Charles Wilson <cygwin@cwilson.fastmail.fm>
1297 Add support for .tar.lzma files (decompress only).
1299 * Makefile.am: Add new files.
1300 * compress.cc (compress::decompress): add support
1302 * compress_lzma.h: new file.
1303 * compress_lzma.cc: new file.
1304 * filemanip.cc (find_tar_ext): add support for
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.
1311 2008-07-08 Charles Wilson <cygwin@cwilson.fastmail.fm>
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.
1329 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1331 * configure.in, gpg-error-config-fake: Revert previous removal.
1333 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1335 * net.cc: Correct stray CRLF.
1337 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
1339 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Remove nasty hack.
1340 * gpg-error-config-fake: Delete file obsoleted by de-hackification.
1342 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
1344 * configure.in: Disable shared library builds.
1346 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
1348 * Makefile.am: Make and install libraries into common location and use
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.
1355 2008-06-22 Dave Korn <dave.korn.cygwin@gmail.com>
1357 Merged across diffs between setup_crypto_branch_branchpoint and
1358 setup_crypto_branch_mergepoint2 from setup_crypto_branch.
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.
1366 2008-06-21 Dave Korn <dave.korn.cygwin@gmail.com>
1368 * ini.cc (do_remote_ini): Revert misbegotten removal of
1369 not-always-superfluous-after-all added slash in URLs.
1371 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
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.
1377 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
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.
1383 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
1385 * crypto.cc (add_key_from_sexpr): Use real buffer size, not debug
1388 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1390 * crypto.cc (verify_ini_file_sig): Actually set init-once flag!
1392 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1394 * crypto.cc (KeepUntrustedKeysOption): Fix helpstring punctuation.
1396 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1398 * crypto.cc (verify_ini_file_sig): Fix two minor logic errors.
1400 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
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.
1409 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
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.
1415 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
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.
1423 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
1425 * Makefile.am (DIST_SUBDIRS, SUBDIRS): Add libgpg-error and
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.
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/
1435 * gpg-error-config-fake: New shell script to redirect libgcrypt
1436 sub-configure into looking for newly-built libgpg-error.
1438 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
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/
1445 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
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.
1451 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
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
1460 2008-04-16 Brian Dessent <brian@dessent.net>
1462 * mount.cc: Include malloc.h.
1463 (is_admin): Use alloca instead of a VLA in case
1464 GetTokenInformation is sensitive to alignment.
1466 2008-04-15 Brian Dessent <brian@dessent.net>
1468 * mount.cc (is_admin): Get explicit size of required buffer by
1469 calling GetTokenInformation first with NULL.
1471 2008-04-10 Brian Dessent <brian@dessent.net>
1473 * Makefile.am (setup_LDFLAGS): Make sure static libbz2 and zlib
1476 2008-04-09 Brian Dessent <brian@dessent.net>
1478 * README: flex and bison are required when building from CVS.
1480 2008-04-08 Brian Dessent <brian@dessent.net>
1482 * Makefile.am (snapshot): Provide default value of ${cygwinsite}
1485 2008-04-08 Brian Dessent <brian@dessent.net>
1487 * Makefile.am (release): Use -f so that "make release" works
1488 when existing binaries of the same name exist.
1490 2008-04-08 Brian Dessent <brian@dessent.net>
1492 * res.rc (IDD_SPLASH): Update copyright years on splash page.
1494 2008-04-08 Brian Dessent <brian@dessent.net>
1497 * install.cc (Installer::installOne): Cope with compressed
1498 0-byte dummy packages. Fix progress bar update bug introduced
1499 in earlier refactoring.
1501 2008-04-08 Brian Dessent <brian@dessent.net>
1505 2008-04-08 Brian Dessent <brian@dessent.net>
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
1515 * autoload.c: Switch back to .text section before emiting
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.
1527 2008-03-02 Dave Korn <dave.korn@artimi.com>
1529 * install.cc (Installer::installOne): Accept new HWND argument
1530 from caller and pass it to MessageBox calls so that MB_TASKMODAL
1532 (check_for_old_cygwin): Likewise.
1533 (do_install_thread): Pass owner's HWND (from thread context) when
1536 2008-02-23 Dave Korn <dave.korn@artimi.com>
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.
1542 2008-02-21 Dave Korn <dave.korn@artimi.com>
1544 * geturl.cc (progress): Correct SI unit notation.
1546 2008-02-01 Vincent Privat <vincent.privat@gmail.com>
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.
1552 2007-07-31 Brian Dessent <brian@dessent.net>
1554 * ini.cc (do_remote_ini): Fix crash due to double free of ini_file.
1556 2007-07-30 Brian Dessent <brian@dessent.net>
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
1565 * compress_bz.cc: Fix whitespace throughout.
1566 (compress_bz::~compress_bz): Ensure that underlying io_stream's dtor is
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.
1573 2007-07-02 Brian Dessent <brian@dessent.net>
1577 2007-06-26 Brian Dessent <brian@dessent.net>
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.
1586 2007-06-26 Brian Dessent <brian@dessent.net>
1588 * CHANGES: Update to reflect release branch.
1590 2007-06-26 Brian Dessent <brian@dessent.net>
1592 * CHANGES: Make current.
1594 2007-05-30 Brian Dessent <brian@dessent.net>
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.
1602 2007-05-29 Brian Dessent <brian@dessent.net>
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.
1610 2007-05-29 Brian Dessent <brian@dessent.net>
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.
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.
1629 * configure.in: Update quoting and use modern form of AC_INIT and
1631 * inilex.l: Rename from this ...
1632 * inilex.ll: ... to this.
1633 * iniparse.y: Rename from this ...
1634 * iniparse.yy: ... to this.
1636 2007-05-29 Brian Dessent <brian@dessent.net>
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
1656 (ini_init): Initialize new variables.
1658 (yyerror): Reimplement using std::string and relocate from ini.cc.
1659 * io_stream.cc (io_stream::copy): Add clarifying comment.
1661 2007-05-04 Igor Peshansky <pechtcha@cs.nyu.edu>
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
1669 (DesktopSetupPage::OnInit): Disable checkboxes in download-only
1671 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Deprecate the
1672 default fallthrough.
1673 * download.cc (do_download_thread): Explicitly return the next
1676 2007-04-19 Max Bowsher <maxb1@ukf.net>
1678 * configure.in: Turn inilint default build off again, since I cannot
1681 2007-04-19 Max Bowsher <maxb1@ukf.net>
1683 * configure.in: Make inilint built by default.
1685 2007-04-19 Max Bowsher <maxb1@ukf.net>
1687 * inilintmain.cc: Fix multiple compile errors.
1689 2007-04-19 Max Bowsher <maxb1@ukf.net>
1691 * Makefile.am: Make inilint use same warnonly-inilex workaround that
1694 2007-03-29 Igor Peshansky <pechtcha@cs.nyu.edu>
1696 * LogFile.cc (LogFile::exit): Write exit_msg directly to log, without
1698 * resource.h (IDC_DESKTOP_SEPARATOR,IDC_STATUS_HEADER,IDC_STATUS): New
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
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.
1710 2007-03-01 Brian Dessent <brian@dessent.net>
1712 * ini.h (SETUP_INI_FILENAME): Rename setup_9x.ini to setup_legacy.ini.
1713 (SETUP_BZ2_FILENAME): Likewise.
1715 2007-02-27 Brian Dessent <brian@dessent.net>
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.
1752 (IsWindowsNT): Define.
1754 2007-02-20 Brian Dessent <brian@dessent.net>
1756 * README: Modernize list of required packages, and mention doconfigure.
1758 2007-02-17 Cesar Strauss <cstrauss@cea.inpe.br>
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
1765 2007-02-17 Brian Dessent <brian@dessent.net>
1767 * script.cc (Script::run): Check for existance of script file and
1768 return without doing anything if it does not exist.
1770 2006-12-26 Max Bowsher <maxb1@ukf.net>
1772 * IniDBBuilder.h (IniDBBuilder): Make this class abstract.
1773 * IniDBBuilder.cc: Delete file.
1774 * Makefile.am (inilint_SOURCES, setup_SOURCES): Remove IniDBBuilder.cc.
1776 2006-12-26 Max Bowsher <maxb1@ukf.net>
1778 Add a shell script that documents/centralizes the standard configure
1781 * doconfigure: New file.
1782 * Makefile.am (EXTRA_DIST): Add doconfigure.
1784 2006-11-28 Igor Peshansky <pechtcha@cs.nyu.edu>
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.
1794 2006-10-12 Igor Peshansky <pechtcha@cs.nyu.edu>
1796 * desktop.cc (make_cygwin_bat,save_icon): Capitalize filename.
1798 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1800 * package_version.cc (packageversion::scan): Catch and handle
1801 validation exception.
1803 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
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.
1811 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
1813 * desktop.cc (DesktopSetupPage::OnInit): Remove stray MessageBox.
1815 2006-05-24 Igor Peshansky <pechtcha@cs.nyu.edu>
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
1829 (PickView::paint): Set background color instead of using transparent
1830 mode. Create system-colored brush.
1832 2006-04-25 Brian Dessent <brian@dessent.net>
1834 * COPYING: New file (GPL).
1835 * Makfile.am (EXTRA_DIST): Add COPYING.
1837 2006-04-17 Max Bowsher <maxb1@ukf.net>
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 :-)
1844 2006-04-17 Max Bowsher <maxb1@ukf.net>
1846 * cygpackage.cc, cygpackage.h, package_version.cc, package_version.h:
1847 Do some String to std::string migration.
1849 2006-04-17 Max Bowsher <maxb1@ukf.net>
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.
1855 2006-04-17 Max Bowsher <maxb1@ukf.net>
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.
1861 2006-04-17 Max Bowsher <maxb1@ukf.net>
1863 * IniDBBuilder.cc, IniDBBuilder.h, IniDBBuilderPackage.cc,
1864 IniDBBuilderPackage.h, PickLine.h, PickPackageLine.cc:
1865 Do some String to std::string migration.
1867 2006-04-16 Max Bowsher <maxb1@ukf.net>
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.
1874 2006-04-16 Max Bowsher <maxb1@ukf.net>
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.
1881 2006-04-16 Max Bowsher <maxb1@ukf.net>
1883 * desktop.cc, download.cc, install.cc, mount.cc, mount.h, script.cc,
1884 script.h: Do some String to std::string migration.
1886 2006-04-16 Max Bowsher <maxb1@ukf.net>
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.
1894 2006-04-15 Max Bowsher <maxb1@ukf.net>
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.
1906 2006-04-15 Max Bowsher <maxb1@ukf.net>
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.
1912 2006-04-06 Max Bowsher <maxb1@ukf.net>
1914 * String++.h, String++.cc
1915 (String::replace): Remove - usused.
1916 (String::find): Remove - semantics do not match std::string.
1918 * root.cc (directory_is_rootdir): Switch to std::string.find().
1919 * script.cc (Script::baseName): Rewrite use of String.find().
1921 2006-03-30 Max Bowsher <maxb1@ukf.net>
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.
1928 * desktop.cc (make_cygwin_bat): Use new function.
1929 * filemanip.cc (backslash): Use simple loop in place of
1931 * filemanip.h (backslash): Change signature to use std::string in
1934 2006-03-30 Max Bowsher <maxb1@ukf.net>
1936 * String++.cc, String++.h (casecompare): New function replacing
1937 String.casecompare to increase parity with std::string.
1938 (String::casecompare): Make private.
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.
1947 2006-03-30 Max Bowsher <maxb1@ukf.net>
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.
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.
1959 * ScanFindVisitor.cc (ScanFindVisitor::visitFile),
1960 filemanip.cc (base), iniparse.y,
1961 threebar.cc (ThreeBarProgressPage::SetBar2):
1962 Make simple adaptations to the changed API.
1964 2006-03-14 Igor Peshansky <pechtcha@cs.nyu.edu>
1966 * PickView.cc (PickView::setViewMode): Auto-expand category if
1967 its name starts with a dot.
1969 2006-03-14 Dave Korn <dave.korn@artimi.com>
1971 * String++.cc (new_cstr_char_array): Handle null input correctly.
1973 2006-03-10 Christopher Faylor <cgf@timesys.com>
1975 * res.rc: Update copyright.
1976 (IDS_MIRROR_LST): Use cygwin.com for mirror list, not
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.
1984 2006-03-10 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
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
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):
2005 (SitePage::OnNext): Check for dropped mirrors and save cache as
2007 (SitePage::OnMessageCmd): Use four-parameter site_list_type.
2009 (site_list_type::init, site_list_type::site_list_type): Change to four
2011 (site_list_type): Add servername, area and location members.
2013 2006-03-09 Igor Peshansky <pechtcha@cs.nyu.edu>
2015 * script.cc (Script::run): Fix inverted test for abnormal exit.
2017 2006-03-09 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2018 Max Bowsher <maxb1@ukf.net>
2020 Provide indication of site that a file is being downloaded from.
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.
2029 2006-03-09 Max Bowsher <maxb1@ukf.net>
2031 * Makefile.am (EXTRA_DIST): Add tree-minus.bmp and tree-plus.bmp.
2033 2006-01-20 Bryan Thrall <bryan.thrall@flightsafety.com>
2035 * source.cc (SourcePage::OnActivate): Command line takes precedence
2036 over last user selection.
2038 2005-11-30 Max Bowsher <maxb1@ukf.net>
2040 * res.rc (IDD_ROOT, IDD_LOCAL_DIR): Rearrange some controls a little,
2041 in response to suggestion from Carl Karsten.
2043 2005-11-30 Max Bowsher <maxb1@ukf.net>
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.
2051 2005-10-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
2058 2005-10-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2060 * site.cc (get_site_list): Default to empty mirror list if
2061 server unavailable and none cached, to allow using preferred
2064 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2066 * package_db.cc (packagedb::packagedb): Remember missing package
2069 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2071 * site.cc (get_site_list): Store mirror list locally.
2072 Use local copy if unable to download.
2074 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2076 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
2077 Better log message on error.
2079 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2081 * script.cc (Script::isAScript): Fix string comparison.
2083 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2085 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Reconnect on FTP timeout.
2087 2005-09-11 Masayuki FUJII <boochang@m4.kcn.ne.jp>
2089 * package_meta.cc (packagemeta::ScanDownloadedFiles): Don't use an
2090 invalid iterator. Fix whitespace.
2092 2005-09-09 Brian Dessent <brian@dessent.net>
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.
2102 2005-09-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2104 * PickView.cc (PickView::paint): Set background mode to transparent.
2105 * PickCategoryLine.cc (PickCategoryLine::paint): Use bitwise AND to
2107 * PickPackageLine.cc (PickPackageLine::paint): Ditto.
2109 2005-09-01 Brian Dessent <brian@dessent.net>
2111 * package_meta.cc (packagemeta::uninstall): Remove support for
2112 undocumented and dangerous postremove script.
2114 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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
2127 2005-09-01 Eric Blake <ebb9@byu.net>
2129 * script.cc (shells): Use /bin/bash, not sh, to allow upgrades to
2132 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
2142 2005-09-01 Brian Dessent <brian@dessent.net>
2144 * Makefile.am (BASECXXFLAGS): Add -Wno-uninitialized to work around
2145 spurious warnings with gcc 3.4.4.
2147 2005-05-22 Brian Dessent <brian@dessent.net>
2149 * res.rc (IDD_CHOOSE): Change description to include administrative
2150 packages in addition to obsolete.
2152 2005-05-21 Brian Dessent <brian@dessent.net>
2154 * prereq.cc: New file.
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
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
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
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
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
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
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
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
2275 2005-05-14 Max Bowsher <maxb@ukf.net>
2277 "Type" field of packageversions was not even being filled in. Fix.
2279 * cygpackage.h, cygpackage.cc (cygpackage::createInstance):
2280 Make "type" a mandatory parameter of the constructor.
2281 * IniDBBuilderPackage.cc: Adjust callers.
2283 2005-05-14 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2285 Fix behaviour of hardlinks in source packages.
2287 * archive.cc (archive::extract_file):
2288 Use prefixPath for link target on hardlinks.
2290 2005-05-14 Max Bowsher <maxb@ukf.net>
2292 Hopefully, solve the "preremove DLL dependency" bug, by running all
2293 preremove scripts before actually removing any files.
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.
2303 2005-05-14 Max Bowsher <maxb@ukf.net>
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):
2312 (packageversion::changeRequested, _packageversion::changeRequested):
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.
2320 2005-05-07 Max Bowsher <maxb@ukf.net>
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
2327 (NoMD5Option): Remove this option, as the code it controls has been
2330 2005-05-07 Max Bowsher <maxb@ukf.net>
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.
2335 2005-05-07 Max Bowsher <maxb@ukf.net>
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
2341 2005-05-05 Brian Dessent <brian@dessent.net>
2343 * choose.cc (ChooserPage::OnInit): Initialize tooltips for this
2346 * proppage.h (PropertyPage::makeClickable): Update prototype to
2347 reflect same argument name as function.
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.
2353 * res.rc (IDS_TRUSTKEEP_TOOLTIP): Add new STRINGTABLE entry for
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.
2361 * resource.h: Likewise, add identifiers for tooltip resources.
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
2368 (Window::SetTooltipState): Ditto.
2369 (Window::AddTooltip): Ditto.
2370 (Window::TooltipNotificationHandler): Ditto.
2372 * window.cc (Window::Window): Initialize handle to NULL.
2373 (Window::~Window): Call DestroyWindow on tooltip control if it was
2375 (Window::ActivateTooltips): New function to activate the tooltip
2377 (Window::SetTooltipState): New function to allow toggling of
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.
2385 2005-05-05 Brian Dessent <brian@dessent.net>
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.
2391 2005-05-05 Brian Dessent <brian@dessent.net>
2393 * root.h (class RootPage): Add missing virtual to OnMessageCmd.
2395 2005-05-05 Brian Dessent <brian@dessent.net>
2397 * root.cc (dialog_cmd): Remove. Use OnMessageCmd instead.
2398 (RootPage::Create): Accomodate above change.
2400 * root.h (class RootPage): Add prototype for OnMessageCmd.
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
2406 2005-05-05 Max Bowsher <maxb@ukf.net>
2408 Bulk rename of String++ member cstr_oneuse () to c_str () for
2409 similarity to std::string.
2412 * IniDBBuilderPackage.cc
2413 * IniParseFindVisitor.cc
2415 * PickCategoryLine.cc
2416 * PickPackageLine.cc
2432 * io_stream_cygfile.cc
2449 2005-05-05 Max Bowsher <maxb@ukf.net>
2451 Some String++ refactoring, setting out in the general direction of
2452 eventually just using the STL std::string, not our own class.
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.
2459 * cygpackage.h: Add "class io_stream;" declaration, now no longer
2460 being supplied by side-effect.
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.
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.
2472 2005-05-05 Brian Dessent <brian@dessent.net>
2474 * ControlAdjuster.h (enum ControlPosition): Declare new resizing
2475 methods CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, and their
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.
2482 * localdir.h (class LocalDirPage): Remove constructor implementation
2485 * localdir.cc (LocalDirPage::LocalDirPage): ...to here, and call
2486 AddControlsInfo on initialization.
2487 (static LocaldirControlsInfo): Add. Define sizing rules for dialog
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.
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.
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.
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
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.
2524 * root.h (class RootPage): Remove constructor implementation from
2527 * root.cc: ...to here, and call AddControlInfo.
2528 (static RootControlsInfo): Add. Populate with resizing data.
2529 (RootPage::OnInit): Make text a clickable hyperlink.
2531 * splash.h (class SplashPage): Likewise, move constructor from
2534 * splash.cc: ...to here. Call AddControlInfo.
2535 (static SplashControlsInfo): Add and populate.
2536 (SplashPage::Create): Make link on splash page a clickable hyperlink.
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.
2542 * window.cc (Window::Window): Remove FontCounter.
2543 (Window::~Window): Likewise. Iterate over vector of fonts instead.
2544 (Window::SetDlgItemFont): Use vector.
2546 2005-05-05 Max Bowsher <maxb@ukf.net>
2548 * Makefile.am (EXTRA_DIST, inilint_SOURCES):
2549 Sync with several recent changes.
2551 2005-05-05 Brian Dessent <brian@dessent.net>
2553 * res.rc: (CREATEPROCESS_MANIFEST_RESOURCE_ID): Include section
2556 2005-05-05 Brian Dessent <brian@dessent.net>
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.
2563 * setup.exe.manifest: New file. Results in common controls with
2564 themed appearance on modern versions of Windows.
2566 2005-05-05 Brian Dessent <brian@dessent.net>
2568 * main.cc (WinMain): Change conditional to avoid spurious error
2569 message on success. Include reason for failure in log message.
2571 2005-05-04 Max Bowsher <maxb@ukf.net>
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.
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):
2583 * ConnectionSetting.cc, net.cc:
2584 Change include, refer to variables in new location.
2586 2005-05-04 Max Bowsher <maxb@ukf.net>
2588 * PickLine.cc: Remove file - redundant.
2589 * Makefile.am (setup_SOURCES): Adjust.
2591 2005-05-04 Max Bowsher <maxb@ukf.net>
2593 * package_version.h (packageversion::set_requirements):
2594 Remove deftrust argument default value.
2596 2005-05-04 Max Bowsher <maxb@ukf.net>
2598 * package_version.cc (DependencyProcessor): Remove trivial class.
2599 (select, processOneDependency): Do not use DependencyProcessor, just
2600 pass parameters normally.
2602 2005-05-04 Brian Dessent <brian@dessent.net>
2604 Fix bug #820: Clicking Curr, etc., causes some dependencies to not
2607 * choose.cc (ChooserPage::changeTrust):
2608 Add a missing "packagedb.markUnVisited ()".
2610 2005-05-03 Max Bowsher <maxb@ukf.net>
2612 * PickCategoryLine.cc (PickCategoryLine::click):
2613 * PickPackageLine.cc (PickPackageLine::click):
2614 Abandon use of trivial packagemeta::PrepareForVisit() wrapper.
2616 * package_meta.h (packagemeta::PrepareForVisit): Remove.
2617 * package_meta.cc (packagemeta::PrepareForVisit): Remove.
2619 2005-05-03 Max Bowsher <maxb@ukf.net>
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.
2628 2005-05-03 Max Bowsher <maxb@ukf.net>
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.
2635 2005-05-03 Brian Dessent <brian@dessent.net>
2637 Fix part of bug #853 - proxy port not remembered.
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.
2644 2005-04-19 Max Bowsher <maxb@ukf.net>
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.
2650 2005-04-05 Max Bowsher <maxb@ukf.net>
2652 The Big Cleanup: Phase "rfc1738"
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
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.
2668 2005-04-05 Max Bowsher <maxb@ukf.net>
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
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.
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.
2689 2005-01-27 Max Bowsher <maxb@ukf.net>
2691 Set CYGWIN=nontsec, for postinstall scripts.
2693 * main.cc (main): putenv("CYGWIN=nontsec").
2695 2005-01-27 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2697 Fix corrupt display of ini parse percentage in log file.
2699 * ini.cc (GuiParseFeedback): Use a sensible data type for lastpct.
2701 2004-12-29 Max Bowsher <maxb@ukf.net>
2703 * site.cc (get_site_list): Filter the incoming mirrors list to contain
2704 only URL schemes that we can read.
2706 2004-12-28 Max Bowsher <maxb@ukf.net>
2708 The Big Cleanup: Phase "hash"
2710 * hash.cc, hash.h: Delete.
2711 * Makefile.am (setup_SOURCES): Sync with deleted files.
2713 * package_mets: Modify includes.
2714 (standard_dirs): Remove.
2715 (hash::add_subdirs): Remove.
2716 (packagemeta::uninstall): Re-implement using STL set instead of
2719 2004-12-28 Max Bowsher <maxb@ukf.net>
2721 * String++.h (operator std::string): Take care to never do
2722 std::string((char*)NULL) - it causes a hang!
2724 2004-12-27 Max Bowsher <maxb@ukf.net>
2726 The Big Cleanup: Phase "log"
2728 * log.cc, log.h: Delete old C-style compatibility wrapper around the
2730 * Makefile.am (setup_SOURCES): Sync with deleted files.
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.
2738 2004-12-27 Max Bowsher <maxb@ukf.net>
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
2748 * compress_bz.h, compress_gz.h: Refine includes.
2750 2004-12-26 Max Bowsher <maxb@ukf.net>
2752 The Big Cleanup: Phase "version"
2754 * String++.h (operator std::string): Add.
2755 * desktop.cc, fromcwd.cc: Remove irrelevant include.
2757 * version.cc, version.h: Delete, replacing all functionality in new
2760 * setup_version.h: Add, taking over declaration of generated version
2761 symbol functionality.
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.
2770 * csu_util/version_compare.cc, csu_util/version_compare.h: Add,
2771 containing a completely rewritten replacement for canonical_version().
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.
2781 2004-12-25 Max Bowsher <maxb@ukf.net>
2783 * install.cc (Installer::installOneSource): Remove a stray "break;"
2784 left over from the switch-case -> if-else conversion in the previous
2787 2004-12-25 Max Bowsher <maxb@ukf.net>
2789 The Big Cleanup: Phase "win32"
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
2802 * Makefile.am (setup_SOURCES): Remove "win32.cc".
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.
2809 * PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
2810 * proppage.cc (PropertyPage::DialogProc):
2811 Avoid using obfuscating macros from <windowsx.h>.
2813 * archive.cc: Include or #define alloca() in the only file in which
2816 * nio-ie5.h: Include <wininet.h> here, where it is actually needed,
2817 rather than in "win32.h" which is included almost everywhere.
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.
2823 2004-12-25 Max Bowsher <maxb@ukf.net>
2825 Remove some overcomplications.
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".
2836 2004-12-24 Max Bowsher <maxb@ukf.net>
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.
2843 2004-12-23 Max Bowsher <maxb@ukf.net>
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.
2852 2004-11-22 Max Bowsher <maxb@ukf.net>
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
2862 2004-11-22 Max Bowsher <maxb@ukf.net>
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.
2867 2004-11-20 Max Bowsher <maxb@ukf.net>
2869 * res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
2870 Re-layout the radio buttons.
2872 2004-11-20 Max Bowsher <maxb@ukf.net>
2874 Repair the broken detection of wrongly-sized package files.
2876 * download.cc (validateCachedPackage): Make static, since not used
2877 elsewhere. Improve logging. Migrate file-size tests to here, alongside
2879 (check_for_cached): Remove broken testing of file-size, now covered by
2880 the above. Code cleanups.
2882 2004-11-19 Max Bowsher <maxb@ukf.net>
2884 * package_version.cc (dumpAndList): Make dependencies much more
2885 readable in full log output.
2887 2004-11-19 Max Bowsher <maxb@ukf.net>
2889 * proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
2890 block, since allowing exceptions to unwind into the guts of Windows is
2893 2004-11-19 Max Bowsher <maxb@ukf.net>
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.
2899 2004-11-19 Max Bowsher <maxb@ukf.net>
2901 * main.cc (main): Remove some junk code - either commented out, or
2902 contained within unreachable preprocessor conditional sections.
2904 2004-11-19 Max Bowsher <maxb@ukf.net>
2906 * install.cc (Installer::installOneSource): Avoid leaking the open
2907 file handles of every tarball that is installed.
2909 2004-11-19 Max Bowsher <maxb@ukf.net>
2911 * package_source.h (packagesource::Canonical, packagesource::Base)
2912 (packagesource::Filename): Add "const" specification to accessor
2915 2004-11-18 Max Bowsher <maxb@ukf.net>
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
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.
2936 2004-11-17 Max Bowsher <maxb@ukf.net>
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 !
2941 2004-11-13 Max Bowsher <maxb@ukf.net>
2943 Miscellaneous cleanup.
2945 * geturl.cc (getUrlToStream): Make static.
2946 * geturl.h (getUrlToStream): Remove declaration.
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.
2952 2004-11-11 Max Bowsher <maxb@ukf.net>
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.
2965 2004-11-11 Max Bowsher <maxb@ukf.net>
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.
2972 2004-10-28 Max Bowsher <maxb@ukf.net>
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.
2985 2004-10-27 Max Bowsher <maxb@ukf.net>
2987 * Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.
2989 2004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
2991 * package_source.cc (packagesource::set_canonical):
2992 Fix one-off in 'base' when ini is in same dir as package.
2994 2004-10-25 Max Bowsher <maxb@ukf.net>
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.
3002 2004-10-25 Max Bowsher <maxb@ukf.net>
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".
3013 2004-10-25 Max Bowsher <maxb@ukf.net>
3015 Fix compilation with w32api 3.1 and later.
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.
3021 2004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3023 * script.cc (run): Kill stdin when running scripts.
3025 2004-09-01 Max Bowsher <maxb@ukf.net>
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.
3030 2004-09-01 Max Bowsher <maxb@ukf.net>
3032 * Makefile.am: Simplify the shell incantation for getting the revision
3033 of ChangeLog from grep-and-sed to just sed.
3035 2004-08-31 Max Bowsher <maxb@ukf.net>
3037 Attain GCC 3.4 compatibility.
3039 * PackageSpecification.h (PackageSpecification): Make the
3040 unnecessarily private copy-constructor public.
3042 2004-08-30 Max Bowsher <maxb@ukf.net>
3044 Rework the implementation of not including -Werror for specific files,
3045 to a way that does not require hardcoding modified automake output back
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".
3059 2004-08-30 Max Bowsher <maxb@ukf.net>
3061 Move closer to GCC 3.4 compatibility.
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.
3077 2004-08-29 Max Bowsher <maxb@ukf.net>
3079 * Exception.h: Reformatting, #include more, remove incorrect and
3080 less-than-useful comments.
3081 (TOPLEVEL_CATCH): New preprocessor macro.
3083 * LogFile.cc (LogFile::operator()): Throw an exception object, not a
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!
3096 * msg.h: Include a missing header requirement.
3097 * res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
3099 * resource.h (IDS_UNCAUGHT_EXCEPTION)
3100 (IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.
3102 2004-08-28 Max Bowsher <maxb@ukf.net>
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.
3109 2004-08-24 Max Bowsher <maxb@ukf.net>
3111 The Doug Lee replacement malloc was no longer hooked up with the
3112 buildsystem in any way. Pruning the remaining unused file.
3114 * dlmalloc.c: Removed.
3116 2004-08-18 Max Bowsher <maxb@ukf.net>
3118 "librsync is not wire-compatible with rsync 2.x, and is not likely
3119 to be in the future." -- librsync.sourceforge.net
3121 So, it is of no practical use to setup. Therefore, removing all
3122 rsync related files and code from setup.
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.
3132 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3134 * package_meta.cc (packagemeta::set_requirements): fix problem with
3135 libpcre0 not being pulled in automatically.
3137 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
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.
3147 2003-12-21 Robert Collins <rbtcollins@hotmail.com>
3149 * main.cc (main): Update to head libgetopt++ syntax.
3151 2003-11-2 Robert Collins <rbtcollins@hotmail.com>
3153 * ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
3155 * ControlAdjuster.cc: Ditto.
3157 2003-10-31 Frank Richter <frichter@gmx.li>
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.
3164 2003-10-31 Frank Richter <frichter@gmx.li>
3166 * propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
3167 window gets minimized. Otherwise some glitches (e.g. wrong child
3169 Added support for WM_GETMINMAXINFO. Prevents the property sheet from
3170 getting smaller than the original size.
3172 2003-11-1 Robert Collins <rbtcollins@hotmail.com>
3174 * ControlAdjuster.h (ControlDimension): Add.
3175 (ControlAdjuster): Factor adjust functionality into ControlInfo.
3176 * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
3177 (ControlAdjuster::ControlInfo::adjust): Ditto.
3179 2003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3181 * ControlAdjuster.h (ControlPosition): New enum type.
3182 (ControlInfo::horizontalPos, ControlInfo::verticalPos): New
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.
3196 2003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
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.
3203 2003-10-16 Frank Richter <frichter@gmx.li>
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
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
3226 * choose.cc (ChooserPage::ChooserPage): Now the controls on the
3227 chooser page move/size when the page size is changed.
3230 2003-10-23 Jerry D. Hedden <jerry@hedden.us>
3232 * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
3233 (ConnectionSetting::save): Save proxy settings.
3235 2003-10-07 Robert Collins <rbtcollins@hotmail.com>
3237 * proppage.h (PropertyPage::wantsActivation): const correctness fix.
3239 2003-08-19 Max Bowsher <maxb@ukf.net>
3241 * win32.h: Define NOMINMAX only if not already defined - because
3242 libstdc++-v3 3.3.1 defines NOMINMAX itself.
3244 2003-08-03 Max Bowsher <maxb@ukf.net>
3246 * ChangeLog: Fix broken line-wrapping throughout. Clarify that
3247 "Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.
3249 2003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3251 * propsheet.cc (Copyright): Update copyright dates.
3252 (PropSheet::PropSheet): Remove NumPropPages initialization.
3253 (PropSheet::CreatePages): Use PropertyPages.size() instead of
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.
3262 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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
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.
3277 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3279 * propsheet.cc: Include "resource.h".
3280 (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
3282 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3284 * proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.
3286 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3288 * proppage.h (Copyright): Update copyright dates.
3289 (PropertyPage): Document OnNext and OnBack.
3291 2003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3293 * proppage.cc (PropertyPage::Create): Use more self-documenting
3294 MAKEINTRESOURCE() instead of cast to LPCSTR.
3296 2003-07-31 Robert Collins <rbtcollins@hotmail.com>
3298 * README: Mark completed items complete.
3300 2003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
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.
3305 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
3312 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
3321 2003-07-30 Max Bowsher <maxb@ukf.net>
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).
3329 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
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.
3337 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
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.
3344 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
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
3354 (LocalDirSetting::save): Extract location logic to UserSettings.
3355 * site.cc (SiteSetting::getSavedSites): Use
3356 UserSettings::settingFileForLoad.
3357 (SiteSetting::save): Use UserSettings::settingFileForSave.
3359 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
3361 * PickView.cc: Adjust ::GetClientRect(..) to the inherited one
3364 2003-07-29 Max Bowsher <maxb@ukf.net>
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.
3386 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
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.
3393 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
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.
3400 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
3402 * choose.cc (ChooserPage::createListView): Remove unneeded
3406 2003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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.
3414 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
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
3422 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
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
3434 2003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3436 * AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
3437 page to display next, since it follows in the default page ordering
3440 2003-07-28 Max Bowsher <maxb@ukf.net>
3442 * dialog.h: (NEXT): Remove obsolete macro.
3443 * site.cc (save_dialog): Remove use of NEXT(), and non-functional
3444 unnecessary error handler.
3446 2003-07-28 Robert Collins <rbtcollins@hotmail.com>
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.
3454 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
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
3461 (packagemeta::setDefaultCategories): set categories for packages
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
3475 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3477 * localdir.h (LocalDirPage::OnInit): Remove.
3478 * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
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.
3492 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3494 * choose.h (ChooserPage::setViewMode): Remove HWND from
3496 (ChooserPage::defaultTrust): Ditto.
3498 (ChooserPage::ifChecked): Use Window helper function
3500 * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
3502 Update all callers with new signature.
3503 (ChooserPage::defaultTrust): Ditto.
3505 * PickView.h (PickView::defaultTrust): Declare.
3506 * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.
3508 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3510 * PickView.h (PickView::lv): Eliminate.
3511 * PickView.cc (PickView::init): Replace use of lv with
3513 (PickView::list_click): Ditto.
3514 * choose.h (ChooserPage::lv): Eliminate.
3515 * choose.cc: Replace lv with chooser->GetHWND()
3518 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
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.
3533 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
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
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
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.
3585 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
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.
3612 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
3614 * choose.cc (create_listview): Use for_each instead of explicit
3616 (create_listview): Rename to ChooserPage::createListview.
3617 * package_meta.h (packagemeta::set_requirements): Explicitly separate
3618 the 1 and 2 parameter versions.
3620 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
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.
3630 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
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
3643 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
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
3653 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
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.
3668 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
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
3678 2003-07-26 Max Bowsher <maxb@ukf.net>
3680 * tests/.cvsignore: New file, listing Makefile.in.
3682 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3684 Save used local cache dir from initial run of setup, so the user doesn't
3686 * localdir.h (LocalDirSetting): UserSetting class for the local cache
3688 * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and
3691 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
3693 Save used site from initial run of setup, so the user doesn't need to
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
3699 (save_site_url): Delete.
3700 * site.h (save_site_url): Remove declaration.
3701 * .cvsignore: Update autoconf generated files.
3703 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
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
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.
3722 2003-07-23 Max Bowsher <maxb@ukf.net>
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.
3731 2003-07-23 Max Bowsher <maxb@ukf.net>
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.
3737 2003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3739 * choose.cc (initialized): Remove obsolete file scope variable.
3741 2003-07-18 Max Bowsher <maxb@ukf.net>
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>.
3747 2003-07-10 Jeremy White <jwhite@codeweavers.com>
3749 * mount.cc, root.cc, site.cc: Make StringOptions required,
3750 thereby making --longopt <parm> behave as a newbie would expect.
3752 2003-07-08 Max Bowsher <maxb@ukf.net>
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.
3760 2003-06-23 Max Bowsher <maxb@ukf.net>
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.
3776 2003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3778 * res.rc (all dialogs): Change font from "MS Sans Serif" to
3781 2003-06-22 Max Bowsher <maxb@ukf.net>
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.
3788 2003-06-22 Max Bowsher <maxb@ukf.net>
3790 * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional.
3792 2003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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
3803 (Window::MoveWindow): New overload.
3805 2003-05-31 Max Bowsher <maxb@ukf.net>
3807 * res.rc: Resize title controls to fully fill available width.
3809 2003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3811 * RECTWrapper.h: New file.
3813 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
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.
3819 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3821 * script.cc (run_script): Remove.
3822 (try_run_script): Inline method run_script.
3823 * script.h (run_script): Remove.
3825 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
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.
3832 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3834 * script.cc (Script::run): Eliminate temp variable 'f2'.
3835 Rename temp variable 'f2' to 'windowsName' for increased clarity.
3837 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3839 * script.cc (Script::run): Eliminate temp variable 'fname'.
3841 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3843 * script.cc (Script::run): Eliminate temp variable 'dir'.
3845 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3847 * script.cc (run_script): Always pass TRUE to Script::run.
3848 * script.h (run_script): Remove optional to_log parameter.
3850 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
3852 * script.cc (run_script): Move functionality into Script.
3853 (Script::run): Absorb run_script.
3855 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
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.
3873 2003-04-07 Max Bowsher <maxb@ukf.net>
3875 * download.cc: Add command line option to suppress MD5 checks.
3876 (validateCachedPackage): Test option and possibly skip.
3878 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3880 Merge in setup-200303-troubleshooting fixes.
3882 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3884 * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code.
3885 (NTSecurity::setDefaultSecurity): Ditto.
3887 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3889 * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL
3892 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3894 * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation.
3896 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3898 * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for
3901 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3903 * main.cc (NTSecurity::NoteFailedAPI): Helper function.
3904 Use throughout NTSecurity routines.
3905 (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage.
3907 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3909 * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining
3912 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3914 * main.cc (NTSecurity::GroupInfo): Extract group query code.
3915 (NTSecurity::setDefaultDACL): Disable ~ 50% of code.
3917 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
3919 * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security
3922 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
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.
3929 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
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.
3939 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
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
3948 2003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3950 * cygwin.ico: Added two new resolutions, 64x64 and 72x72.
3952 2003-03-29 Robert Collins <rbtcollins@hotmail.com>
3954 * GUIDELINES: New file documenting code guidelines.
3956 2003-03-26 Max Bowsher <maxb@ukf.net>
3958 * .cvsignore: Add cfgaux.
3960 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
3962 * package_version.cc (_defaultversion::accessible): Override and make
3964 (_packageversion::accessible): Fix a couple of logic bugs resulting in
3966 * package_version.h (_packageversion::accessible): Make virtual.
3968 2003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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
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
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.
3999 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
4014 2003-03-20 Robert Collins <rbtcollins@hotmail.com>
4016 * package_meta.cc (packagemeta::set_action): The logic
4017 test for the default action was reversed.
4019 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
4032 2002-03-18 Max Bowsher <maxb@ukf.net>
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.
4038 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
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.
4048 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
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
4071 * String++.h (String::substr): Second argument needed to
4074 2003-03-16 Max Bowsher <maxb@ukf.net>
4076 * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and
4079 2003-03-16 Max Bowsher <maxb@ukf.net>
4081 * UserSettings.cc (UserSettings::Instance): Remove premature return.
4083 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4085 * script.cc (run): Rename variable b to createSucceeded.
4087 2003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4089 * script.cc (run): Close unneeded handles.
4091 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4093 * configure: Remove.
4094 * aclocal.m4: Remove.
4095 * Makefile.in: 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.
4106 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4108 * install.cc (replace_one): Clear Text3.
4110 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
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.
4118 2003-03-14 Robert Collins <rbtcollins@hotmail.com>
4120 * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by
4121 Igor Pechtchanski <pechtcha@cs.nyu.edu>.
4123 2003-03-13 Max Bowsher <maxb@ukf.net>
4125 * Update included zlib to 1.1.4.
4127 2003-03-13 Robert Collins <rbtcollins@hotmail.com>
4129 * install.cc (do_install_thread): Use a query method rather than temp
4132 2003-03-09 Pavel Tsekov <ptsekov@gmx.net>
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
4141 2003-03-10 Max Bowsher <maxb@ukf.net>
4143 * Makefile.am: Add foreign to AUTOMAKE_OPTIONS.
4145 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4147 * UserSettings.cc (UserSettings::init): Really initialize all members.
4149 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
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
4161 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4163 * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of
4165 (compress_bz::error): Return lasterr which will indicate any error.
4167 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4169 * choose.h (ChooserPage): Override OnActivate.
4170 * choose.cc (ChooserPage::OnActivate): Refresh the current view when
4171 activating the dialog.
4173 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4175 * package_version.cc (_defaultversion::pick(bool)): Override this and
4177 (packageversion::pick(bool): Use a mutator function rather than direct
4179 * package_version.h (_packageversion::pick(bool)): Move method from
4182 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4184 * install.cc (install_one_source): Remove the MD5 verification
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.
4194 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4196 * Exception.h: Declare new constructor.
4197 (Exception::_message): Change the type from 'const char *' to
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
4205 (check_for_cached): Ditto.
4206 * install.cc (install_one_source): Ditto.
4208 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4210 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
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.
4219 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4221 * String++.cc: Don't include concat.h.
4222 * Makefile.am: Remove concat.cc and concat.h references.
4224 * concat.cc: Remove.
4226 2003-03-09 Max Bowsher <maxb@ukf.net>
4228 * bootstrap.sh: Add sanity check of current directory.
4229 Recurse into libgetopt++ if needed.
4231 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4233 * Update readme of bugs and wishes.
4235 2003-03-05 Max Bowsher <maxb@ukf.net>
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.
4241 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
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.
4262 2003-03-04 Max Bowsher <maxb@ukf.net>
4264 * compress_gz.cc (compress_gz::construct):
4265 Fix broken checkin dated 2002-07-03.
4267 2003-02-28 Max Bowsher <maxb@ukf.net>
4269 * main.cc (set_default_sec): Add logging.
4271 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
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.
4279 2003-01-31 Max Bowsher <maxb@ukf.net>
4281 * install.cc (install_one_source): Fix spacing in log message.
4283 2003-01-19 Max Bowsher <maxb@ukf.net>
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.
4290 2003-01-15 Max Bowsher <maxb@ukf.net>
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>.
4296 2003-01-15 Max Bowsher <maxb@ukf.net>
4298 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
4300 2002-12-11 Abraham Backus <abraham@backus.com>
4302 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
4305 2002-12-11 Max Bowsher <maxb@ukf.net>
4307 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
4308 * package_version.cc: Ditto.
4310 2002-09-22 Max Bowsher <maxb@ukf.net>
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.
4319 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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
4330 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
4332 (Window::Create): Change to use new WM_NCCREATE reflection procedure
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.
4341 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4343 * AntiVirus.cc: Change the short option again! It's now 'A'.
4344 * desktop.cc (etc_profile): Remove.
4345 (make_etc_profile): Remove.
4347 (make_passwd_group): Remove.
4348 (do_desktop_setup): Don't call removed functions.
4350 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4352 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
4355 2002-07-08 Marcel Telka <marcel@telka.sk>
4357 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
4358 reply (code 227) to the PASV command.
4360 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4362 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
4363 Sort the packages db once all the new packages have been added.
4364 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
4367 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
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.
4374 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
4376 * package_meta.h (packagemeta::logAllVersions): Declare.
4377 (packagemeta::trustLabel): Ditto.
4378 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
4380 * package_meta.cc (packagemeta::logAllVersions): Implement.
4381 (packagemeta::trustLabel): Ditto.
4383 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4385 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
4387 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
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.
4403 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
4405 * package_version.cc (DependencyProcessor): Create convenience class.
4406 (select): Extract version selection method.
4407 (processOneDependency): Check for a satisfactory trusted version
4410 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
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.
4417 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4419 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
4421 2002-11-04 Max Bowsher <maxb@ukf.net>
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.
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).
4442 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
4444 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
4447 2002-11-04 Max Bowsher <maxb@ukf.net>
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).
4453 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
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.
4460 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
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.
4469 * LogSingleton.cc: Ditto.
4470 * LogSingleton.h: Ditto.
4472 2002-11-04 Max Bowsher <maxb@ukf.net>
4474 * String++.h: Add 'std::' where needed.
4476 2002-11-04 Max Bowsher <maxb@ukf.net>
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.
4485 * download.cc: Ditto.
4487 * install.cc: Ditto.
4488 * io_stream.cc: Ditto.
4489 * io_stream_file.cc: Ditto.
4490 * package_db.cc: Ditto.
4494 2002-11-04 Max Bowsher <maxb@ukf.net>
4496 * LogSingleton.h: Add 'std::' where needed.
4498 2002-11-04 Max Bowsher <maxb@ukf.net>
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.
4505 2002-11-04 Max Bowsher <maxb@ukf.net>
4507 * res.rc: Change a #-comment (invalid) to a //-comment.
4509 2002-11-04 Max Bowsher <maxb@ukf.net>
4511 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
4512 (inilint_LDADD): Remove -lstd++.
4513 (setup_LDADD): Ditto.
4515 2002-09-22 Max Bowsher <maxb@ukf.net>
4517 * IniDBBuilderPackage.cc: Update DEBUG code to current class
4520 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
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.
4553 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
4555 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
4557 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4559 * package_version.cc (packageversion::sources): Implement this.
4560 * download.cc (do_download_thread): Support multiple files per package.
4562 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
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.
4569 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
4571 * iniparse.y: Implement support for multiple source files for a source
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.
4579 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
4581 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
4582 packages under all circumstances - slightly higher overheader, simpler
4584 * download.cc (do_download_thread): Correctly download source
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.
4598 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
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):
4606 (IniDBBuilderPackage::buildBeginBinary): Ditto.
4607 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
4609 (IniDBBuilderPackage::buildBeginBinary): Ditto.
4610 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
4612 * iniparse.y: Full support for parsing a debian Sources file in-line in
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.
4619 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
4621 * iniparse.y: Add basis for support for parsing a debian Sources file.
4624 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
4626 Change custom container code for packagedb::packages to STL containers
4628 * IniDBBuilderPackage.cc: Ditto.
4629 * PickView.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.
4639 2002-07-08 Max Bowsher <maxb@ukf.net>
4641 * PickView.cc (PickView::PickView): Set font of package list header to
4642 the same as used in the rest of the package list.
4644 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
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.
4651 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
4653 * PickCategoryLine.cc: Change bucket to use STL container syntax
4655 (PickCategoryLine::paint): Use new Category type syntax.
4656 * PickCategoryLine.h: Use STL vectors rather than custom containers
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
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
4680 2002-07-06 Christopher Faylor <cgf@redhat.com>
4682 * site.cc (do_download_site_info_thread): Correct spelling error.
4684 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
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.
4707 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4709 * io_stream.cc: Use STL containers rather than custom ones.
4710 (io_stream::registerProvider): Ditto.
4711 (findProvider): Ditto.
4713 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
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
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
4731 * package_version.cc (_packageversion::accessible): Use STL containers
4732 for download site containers.
4734 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
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.
4742 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
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.
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.
4773 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
4775 * choose.cc (default_trust): Check package accessibility before
4776 triggering an install. (Suggested by Pavel).
4778 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
4780 * compress_gz.cc (compress_gz::construct): Always initialize key members
4781 to ensure the destructor does the right thing.
4783 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
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.
4790 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
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
4799 Clear out all current state on new packages.
4800 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
4803 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
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).
4811 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
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.
4820 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
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
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
4845 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
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
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
4865 (set_existence): Use accessible () for clarity.
4866 (default_trust): Simplify a little.
4867 (scanAVersion): Factored out code from scan_downloaded_files for
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
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
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
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
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
4990 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
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.
4997 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
4999 * Makefile.am (snapshot): Automate snapshot creation some more.
5001 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5003 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
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.
5011 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
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
5020 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
5021 satisfied before pre-install.
5022 (IniDBBuilder::buildPriority): New method, for getting the package
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
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
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
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
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
5069 Initialise the parser with the feedback object to allow it to tell of
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
5089 (do_remote_ini): Ditto.
5090 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
5092 * inilex.l: Identify new symbols - operators, and multi line plain text.
5094 * inilintmain.cc (show_help): Provide basic infomation on inilint.
5095 * iniparse.y: Adjust for the new builder syntax, and process debian
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
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
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
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
5128 * threebar.h: Declare the threebar.cc change.
5130 2002-06-27 John Marshall <johnm@falch.net>
5132 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
5133 * site.cc (SitePage::OnMessageCmd): Ditto
5135 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5137 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
5139 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5141 * package_meta.cc (packagemeta::set_action): When installing packages
5142 with no binaries, choose the source package.
5144 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
5146 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
5147 Bowshers fix for the crash with a root level setup.ini.
5148 * README: Update todos.
5150 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
5152 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
5153 GNU long name extension support.
5155 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
5157 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
5158 unescape 0 length strings.
5160 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
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.
5166 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5168 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
5170 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
5171 setup version created the ini file.
5172 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
5174 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
5176 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
5177 Require a feedback strategy.
5178 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
5179 * Makefile.in: Regenerate.
5181 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
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
5187 * Makefile.am (release): Tweak to be more helpful.
5188 * Makefile.in: Regenerate.
5190 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5192 * Makefile.am (release): Tweak to be more helpful.
5193 * Makefile.in: Regenerate.
5195 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5197 * Makefile.am (release): Tweak to be more helpful.
5198 * Makefile.in: Regenerate.
5200 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
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.
5206 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5208 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
5210 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
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.
5218 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
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
5227 * IniParseFindVisitor.cc: New file.
5228 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
5230 * README: Update TODO's.
5231 * String++.cc (String::String): New constructor for <string> inter-
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.
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
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.
5259 2002-05-14 Christopher Faylor <cgf@redhat.com>
5261 * ini.cc (find_routine): Don't clear buffer it it's NULL.
5263 2002-05-14 Christopher Faylor <cgf@redhat.com>
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
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.
5285 2002-05-14 Christopher Faylor <cgf@redhat.com>
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.
5295 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5297 * CONTRIBUTORS: New file.
5299 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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
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.
5335 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
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.
5341 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5343 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
5346 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
5348 * geturl.h: Declare getUrlToStream.
5349 * geturl.cc (getUrlToStream): New function.
5350 (get_url_to_membuf): Refactor to use getUrlToStream.
5352 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
5354 * Makefile.am: Add a release target to automate some of the routine
5356 * Makefile.in: Regenerate.
5358 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
5360 * choose.cc (scan_downloaded_files): On local installs remove all
5361 mirror sites if no cached copy of a package is found.
5363 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
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
5371 2002-05-06 John Marshall <jmarshall@acm.org>
5373 * site.cc (SitePage::OnMessageCmd): recalculate navigation
5374 button activation when "Add" is pressed.
5375 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
5377 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
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
5384 * Makefile.in: Regenerate.
5386 * io_stream_file.cc: Only use win32 calls when building for mingw.
5388 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
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
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
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:
5412 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5414 * io_stream.cc: Use the new log interface thruout.
5416 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
5418 * log.cc (log): Reimplement via LogSingleton.
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
5430 * Makefile.in: Regenerate.
5431 * archive.cc: Use the new log interface thruout.
5432 * archive_tar.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.
5442 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
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
5457 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
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
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
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
5476 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
5477 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
5479 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
5480 String constructor usage.
5481 * site.h (site_list_type): Ditto.
5483 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
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.
5494 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
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
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.
5517 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
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
5523 * io_stream_cygfile.cc: Don't include filemanip.h.
5524 (io_stream_cygfile::get_size): Implement here to remove filemanip
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
5533 (download_one): Ditto.
5535 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
5537 * configure.in: Correct a typo in last change.
5538 * configure: Regenerate.
5539 * Makefile.in: Regenerate.
5541 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
5543 * configure.in: Check for string.h and string.
5544 * configure: Regenerate.
5545 * Makefile.in: Regenerate.
5547 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
5549 * res.rc (IDD_SPLASH): Remove white box.
5551 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
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.
5562 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
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
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
5583 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
5584 * iniparse.y: Allow calculation of MD5 sums, and allow src only
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.
5599 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
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.
5610 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
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.
5618 (do_download): Use Win32 threads.
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
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.
5637 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
5639 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
5641 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
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
5657 * main.cc: Include getopt++/GetOption.h.
5658 (main): Use simpler syntax.
5662 * GetOption.h: Remove.
5663 * GetOption.cc: Remove.
5665 * Option.cc: Remove.
5667 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5669 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
5671 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5673 * aclocal.m4: New file, cached macros.
5674 * bootstrap.sh: New file, calls required autotools in appropriate
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.
5684 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
5686 * cdefs.h: New file, imported to allow getopt.c to build without
5688 * getopt.h: New file, imported to allow building without cygwin headers.
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
5697 * configure.in: Update to autoconf 2.53, and to be sourceware
5699 * configure: Regenerate.
5701 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
5703 * mklink2.cc (make_link_2): Tweak to work with current w32api
5706 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
5708 * version.cc (canonicalize_version): Fix a call delete[]
5709 to delete the allocated address.
5711 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
5713 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
5714 to Ton van Overbeek for locating the bug area.
5716 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
5718 * PickView.cc (PickView::insert_pkg): Be more generic with
5720 (PickView::insert_category): Ditto.
5721 (PickView::~PickView): Create.
5722 * PickView.h (PickView::~PickView): Declare.
5724 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
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.
5736 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
5738 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
5740 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
5742 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
5743 to textheight, so large fonts work.
5745 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
5747 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
5750 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
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.
5763 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
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.
5774 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
5776 * win32.h: Only define alloca if it's not already.
5778 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
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.
5785 2002-03-19 Christopher Faylor <cgf@redhat.com>
5787 * Makefile.in (setup_version.c): Add back magic which allows detection
5788 of setup.exe version number.
5790 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
5792 * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
5793 calculation on win9x systems.
5795 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
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).
5800 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5802 * choose.cc (list_click): Always refresh the entire chooser, as our
5803 package state change mechanism is broken with the new improved list
5806 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5808 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd
5811 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
5813 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored
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
5827 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
5829 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
5832 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
5834 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
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.
5841 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
5843 * log.cc (log_save): Fix creating /var/log.
5844 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
5846 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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.
5853 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
5854 operator (::SetWindowText()).
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.
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.
5869 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
5871 * README: Update TODO list.
5872 * install.cc (install_one): Fix src package location.
5873 (do_install_thread): Fix creating directories.
5875 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
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
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.
5890 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5892 * install.cc (install_one_source): Make NULL cached package names cause
5895 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
5897 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
5900 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
5902 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
5904 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
5906 * mount.cc (create_mount): Avoid a const char*->char* warning.
5907 (read_mounts): Ditto.
5909 2002-02-05 Jason Tishler <jason@tishler.net>
5911 * download.cc (do_download_thread): Fix off-by-one error.
5913 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
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.
5920 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
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.
5936 * concat.h (vconcat): Remove.
5938 * desktop.cc (desktop_icon): Use new cygpath.
5939 (make_etc_profile): Ditto.
5941 (make_passwd_group): Ditto.
5943 (check_desktop): Remove concat use.
5944 (check_start_menu): Ditto.
5945 * download.cc (download_one): Use new mkpath_p correctly.
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
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.
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.
5998 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6000 * Makefile.in (OBJS): Add new object.
6001 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the
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
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.
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.
6076 (start)menu): Ditto.
6077 (desktop_icon): Ditto.
6078 (make_cygwin_bat): Ditto.
6079 (make_etc_profile): Ditto.
6081 (make_passwd_group): 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.
6099 (parse_filename): Ditto.
6101 * filemanip.h: Include String++.h for parsing this file.
6102 (fileparse): Update for String usage.
6104 (parse_filename): Ditto.
6105 Don't consider '_' to be a separator.
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.
6113 (init_dialog): Ditto.
6114 (get_url_to_membuf): Ditto.
6115 (get_url_to_string): Ditto.
6116 (get_url_to_file): Ditto.
6118 (get_url_to_membuf): Ditto.
6119 (get_url_to_string): Ditto.
6120 (get_url_to_file): 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.
6203 (LocalDirPage::OnInit): Ditto.
6204 (LocalDirPage::OnNext): Ditto.
6205 * log.cc: Update includes for String usage.
6206 (struct LogEnt): Update for String usage.
6209 (exit_setup): Ditto.
6210 * log.h: Update includes for String usage.
6211 (log_level): Update for String usage.
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.
6220 (create_mount): Ditto.
6222 (remove_mount): Ditto.
6223 (read_mounts): Ditto.
6224 (set_root_dir): Ditto.
6225 (get_root_dir): Ditto.
6226 (path_prefix_p): Ditto.
6228 * mount.h: Update includes for String usage.
6229 (create_mount): Update for String usage.
6230 (remove_mount): 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.
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.
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.
6317 2002-02-15 Christopher Faylor <cgf@redhat.com>
6319 * filemanip.c (parse_filename): Revert previous change.
6321 2002-02-14 Christopher Faylor <cgf@redhat.com>
6323 * filemanip.c (parse_filename): Don't treat '_' as a version number
6326 2002-01-29 Christopher Faylor <cgf@redhat.com>
6328 * configure: Regenerate.
6330 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
6332 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
6333 <Hoeck@extern.lrz-muenchen.de>
6335 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
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
6344 (list::checksize): Implement.
6345 (list::insert): Implement.
6347 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
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.
6356 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
6358 * filemanip.cc (find_tar_ext): Add a descriptive comment.
6360 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
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()
6367 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6369 * log.cc (exit_setup): When saving to the download dir, explicity
6372 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6374 * archive.cc (extract_file): Separate out the prefix and the URL
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.
6382 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
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.
6406 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
6408 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
6409 * choose.cc: Don't define alloca anymore, it's done in win32.h
6411 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
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 -
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.
6473 2002-01-21 Christopher Faylor <cgf@redhat.com>
6475 * choose.h (view): Move forward declaration of views into public area
6476 or g++ v3 will complain.
6478 2002-01-21 Christopher Faylor <cgf@redhat.com>
6480 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
6481 * win32.h (alloca): Define as __builtin_alloca.
6482 * io_stream_memory.cc: Add include file.
6484 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
6486 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as
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
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.
6501 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
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.
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
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
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.
6558 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
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
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
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.
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.
6616 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
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
6623 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
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
6629 (pick_category_line::paint): Start drawing clickable categories.
6630 * fromcwd.cc (found_file): Reinstate local file scanning.
6632 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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".
6639 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
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
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.
6659 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
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
6665 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
6667 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
6669 * script.cc (run_script): Change cygpath:// to cygfile://.
6670 * install.cc (do_install_thread): Fix off-by-one errors.
6672 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
6674 * package_db.cc (packagedb::flush): Fix an off-by-one error.
6676 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
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 ().
6684 (run_script): Move to script.cc. Replace some deprecated remove
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.
6693 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6695 * cistring.cc: Run d2u.
6696 * cistring.h: Run d2u.
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.
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.
6710 * propsheet.h: Run indent, d2u.
6711 * proppage.h: Run indent, d2u.
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.
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.
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
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.
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
6757 * splash.cc: Run d2u.
6758 (SplashPage::OnInit): Set the font for the title.
6759 * splash.h: Run d2u.
6761 * threebar.cc: Run d2u.
6762 * threebar.h: Run d2u.
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
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.
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
6787 (NetPage::OnMessageCmd): New member function declaration.
6788 (NetPage::CheckIfEnableNext): New member function declaration.
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.
6801 * Makefile.in (OBJS): Remove other.o.
6802 * other.cc: Remove file.
6804 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
6806 * README: Update TODO's.
6807 * choose.cc (set_existence): Delete non installed packages with no
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.
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.
6826 2001-12-28 Christopher Faylor <cgf@redhat.com>
6828 * Makefile.in (iniparse.o): Accommodate newer bisons.
6830 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6832 * window.h (Window): New file, new class.
6833 * window.cc (Window): New file, new class.
6835 * threebar.h (ThreeBarProgressPage): New file, new class.
6836 * threebar.cc (ThreeBarProgressPage): New file, new class.
6838 * splash.h (SplashPage): New file, new class.
6839 * splash.cc (SplashPage): Replace file with implementation of new
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().
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
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.
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.
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.
6880 * propsheet.h (PropSheet): New file, new class.
6881 * propsheet.cc (PropSheet): New file, new class.
6883 * proppage.h (PropertyPage): New file, new class.
6884 * proppage.cc (PropertyPage): New file, new class.
6886 * postinstall.cc (do_postinstall): Add owner parameter.
6888 * other.cc (do_other): Add owner parameter.
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
6893 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
6896 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
6897 get_auth(), get_proxy_auth().
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().
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.
6916 (dialog_proc): Remove.
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.
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
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.
6937 * log.cc (log_save): Pass NULL parent to fatal().
6938 (exit_setup): Pass NULL parent to note().
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
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.
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
6975 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
6976 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
6978 (do_install_reflector): New function.
6979 (do_install): New function.
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.
6994 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
6996 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
6998 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
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
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
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.
7019 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
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().
7033 * dialog.h (D(x)): Add owner param.
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
7043 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
7044 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
7045 of DesktopSetupPage.
7047 * cistring.h: New file, new class.
7048 * cistring.cc: New file, new class.
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
7055 (Chooser): New class implementation.
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
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.
7068 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
7069 threebar.o, and window.o.
7071 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
7073 * choose.cc (listview_proc): Update the scrollbar when the headers are
7075 (pick_pkg_line::paint): Clip columns to prevent overlap.
7077 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
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
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
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
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
7109 (pick_category_line::paint): Paint this category, and anything in the
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
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
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.
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
7174 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
7176 * README: Wishlist updates.
7178 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7180 * package_db.cc (getnextpackage): Don't overrun the array.
7182 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
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
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
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
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.
7230 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
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
7239 (_view::init_headers): Ditto.
7240 (_view::insert_pkg): Ditto.
7241 (set_view_mode): 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 *
7252 * download.cc (get_file_size): Move to filemanip.cc.
7253 (check_for_cached): Use [] operator instead of getnth - its more
7255 (download_one): Ditto.
7256 * filemanip.cc: New file.
7257 * geturl.cc (init_dialog): Make url a pointer to const as it is not
7259 (get_url_to_membuf): New function - contains get_url_to_string worker
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.
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
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
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
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.
7306 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
7308 * package_source.cc (packagesource::set_canonical): Filename was out by
7311 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
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
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.
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.
7346 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
7348 * package_db.cc (packagedb::flush): Write a canonical version for all
7349 packages irrespective of the media they were installed from.
7351 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
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
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
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
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.
7411 (new_package,getpkgbyname,getpackagecategorybyname,add_category):
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
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.
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.
7459 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
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.
7465 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
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.
7480 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
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.
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
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.
7527 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
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.
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.
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
7554 (packagedb::categories): Declare.
7555 * package_db.h (packagedb): New member categories for global categories
7558 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7560 * choose.h: Don't include ini.h
7561 * ini.h: Allow pure c++ in the header file.
7563 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7565 * install.cc (do_install): Write a version 2 installed.db file.
7566 * package_db.cc (packagedb::packagedb): Read version 1 and 2
7569 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
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.
7584 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
7586 * REAME: Updates to wishlist.
7588 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
7590 * README: Updated and added my list of wishlist and todo items.
7592 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
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.
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
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().
7620 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
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
7628 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
7629 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
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.
7634 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
7636 * choose.cc (find_tar_ext): Only match at the end of the string.
7637 (getpkgbyname): Prevent NULL pointer dereference.
7639 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
7641 * Makefile.in (CFLAGS): Add warnings and -Werr.
7642 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter
7644 (OBJS): Add io_stream class' objects.
7645 (autoload.o): Use WARNONLY_FLAGS.
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.
7656 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an
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.
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.
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).
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).
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.
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.
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.
7825 2001-11-12 Christopher Faylor <cgf@redhat.com>
7827 * desktop.cc (start_menu): Change start menu name to "Cygwin".
7828 (check_startmenu): Ditto.
7830 2001-11-11 Christopher Faylor <cgf@redhat.com>
7832 * choose.cc (parse_filename): Finish reorganization by correctly
7833 decrementing p in memmove.
7835 2001-11-11 Christopher Faylor <cgf@redhat.com>
7837 * choose.cc (parse_filename): Reorganize code to work around gcc
7838 optimization problem.
7840 2001-11-09 Gareth Pearce <tilps@hotmail.com>
7842 * choose.cc (set_action): Allow skip as an option for installed
7843 packages that have version number not listed in setup.ini.
7845 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7847 * choose.cc (set_cation): Backout last change.
7848 (choose_caption): Ditto.
7850 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
7852 * ini.h (actions): Remove - transferred to choose.h.
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
7860 (choose_caption): Ditto.
7861 * iniparse.y: Rearrange header order to handle new ini.h.
7863 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
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
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
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
7885 * choose.h (_header): Fix compiler warnings (deprecated conversion).
7888 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
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().
7913 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
7915 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated
7917 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated
7919 (SimpleSocket::printf): Ditto.
7920 (SimpleSocket::write): Ditto.
7921 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
7923 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated
7925 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
7926 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated
7929 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
7931 * geturl.cc (get_url_to_string): clean up memory leak
7932 (get_url_to_file): ditto
7934 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
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.
7939 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
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.
7945 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
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.
7952 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
7954 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
7956 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7958 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
7960 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7962 * choose.cc (set_action): Correctly allow skip for any uninstalled
7965 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7967 * choose.cc (default_trust): Change the "Required" forced install
7970 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
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.
7976 2001-11-01 Christopher Faylor <cgf@redhat.com>
7978 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
7980 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7982 * choose.cc (_view::init_headers): Resync with the paint logic.
7984 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7986 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently
7989 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7991 * choose.cc (default_trust): Autoset currently installed packages per
7992 the user's selection of prev/curr/exp.
7994 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
7996 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
7998 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
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
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.
8016 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
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
8024 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8026 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir
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
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
8036 * root.cc (dialog_cmd): Ditto.
8037 * source.cc (dialog_cmd): Ditto.
8039 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8041 * choose.cc(list_vscroll): Return 0 as required by win32.
8042 (list_hscroll): Ditto.
8043 (list_click): Ditto.
8045 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8049 * main.cc(WinMain): Use __argv to retrieve command line parameters.
8050 * Makefile,in: Remove argv.o.
8052 2001-11-01 Matt Hargett <matt@use.net>
8054 * geturl.cc (progress): Change int to unsigned int to eliminate
8056 * (get_url_to_string): Check for NULL pointer.
8057 * mount.cc (find2): Use free instead of delete for malloc'd
8059 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
8061 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
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).
8071 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8073 * argv.cc: New file, converts arguments for -mwindows
8074 programs. (Simplified derivation from dcrt0.cc.)
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.
8080 2001-10-27 Christopher Faylor <cgf@redhat.com>
8082 * res.rc: Rearrange info on top line slightly.
8084 2001-10-27 Christopher Faylor <cgf@redhat.com>
8086 * desktop.cc (make_passwd_group): Move file creation earlier in the
8087 process to ensure that passwd-grp.bat reflects desired operation.
8089 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
8091 * postinstall.cc (each): Remove "*.done" file else rename will fail.
8093 2001-10-16 Christopher Faylor <cgf@redhat.com>
8095 * res.rc: Oops. Take 640x480 screen size into account.
8097 2001-10-16 Christopher Faylor <cgf@redhat.com>
8099 * res.rc: Enlarge chooser screen.
8101 2001-10-12 Christopher Faylor <cgf@redhat.com>
8103 * Makefile.in: Accomodate changes to w32api_include macro.
8105 2001-10-12 Christopher Faylor <cgf@redhat.com>
8107 * Makefile.in: Use correct flags for windres.
8109 2001-10-12 Christopher Faylor <cgf@redhat.com>
8111 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
8113 2001-10-12 Christopher Faylor <cgf@redhat.com>
8115 * choose.cc (pick_line::paint): Reorganize after botched patch.
8117 2001-10-12 Christopher Faylor <cgf@redhat.com>
8119 * choose.cc (pick_line::paint): Add missing declaration.
8121 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
8123 * choose.cc (pick_line::paint): Add package name to sdesc for display.
8125 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
8127 * choose.cc (_view::insert_pkg): Correctly exit loop.
8128 * iniparse.y (register_category): Always insert new categories.
8130 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
8132 * inilex.l (yylex): For comments, eat all characters up to, but not
8135 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
8137 * fromcwd.cc (found_file): Use correct package name when adding an
8138 unknown package rather than random stack garbage.
8140 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
8142 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
8144 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
8146 * desktop.cc (etc_profile): Leave environment variables untouched.
8148 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
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.
8155 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
8157 * ini.h (_CategoryPackage): Change pkg field to pkgname for
8159 * choose.cc: Use pkgname field when referencing _CategoryPackage
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.
8166 2001-07-09 Egor Duda <deo@logos-m.ru>
8168 * choose.cc: Use system foreground color for text output.
8170 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
8172 * choose.cc (set_action): Use default trust for determining reinstall
8174 (default_trust): Set default trust.
8175 (pick_line::paint): Allow source selection when reinstalling or
8178 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
8180 * choose.cc (isinstalled): Modify to properly accomodate special case
8182 (set_action): Check downloaded components, not installed components if
8184 (set_existence): Always include full list of files when "download
8187 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
8189 * choose.cc (pick_line::paint): Properly display "na" field when no
8192 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
8194 * choose.cc (scan2): Ensure that older versions do not show up in
8197 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
8199 * choose.cc (set_action): Allow "Skip" action if trust != installed.
8200 * res.rc: Fix copyright.
8202 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
8204 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
8206 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
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
8213 (do_choose): List categories and required packages in setup.log.full.
8215 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
8217 * choose.cc (scan2): Restore source scanning eliminated by previous
8220 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
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.
8226 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
8228 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
8229 (do_choose): Log the first category name.
8231 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
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,
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.
8243 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
8245 * choose.cc: Remove globals full_list, headers, package_indexes and
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
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.
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.
8308 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
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.
8317 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
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.
8326 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
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
8333 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
8335 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
8336 than zeroed "source" element.
8338 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
8340 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
8341 the highest available "hole" in the trust array.
8343 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
8345 * choose.cc (set_existence): Use pointer method for indexing in trust
8347 (create_listview): Ditto.
8348 (scan2): Ditto. Also, use consistent variable name for indexing into
8350 * ini.h (Package): Reorganize info array for easier scanning.
8352 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
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
8357 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
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
8365 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
8367 * ini.h (Dependency): New structure. Declare new function.
8368 * inilex.l (yylex): Detect new setup.ini options - category and
8370 * iniparse.y: Declare new setup.ini token values.
8371 (yyparse): Parse new token values.
8372 (new_requirement): New function.
8374 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
8376 * choose.cc (read_installed_db): Eliminate obsolete code.
8378 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
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
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
8388 (install_one): Allocate new Info struct for installed reflecting new
8390 (do_install): Don't output line to installed.db if package is being
8393 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
8395 * choose.cc (getpkgbyname): Use consistent method for scanning package
8398 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
8400 * choose.cc: Add some comments.
8401 (getpkgbyname): Use strcasecmp for comparisons.
8403 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
8405 * install.cc (do_install): Avoid checking for download action if
8406 package wasn't currently retrieved.
8408 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
8410 * choose.cc: Eliminate extra array throughout. Use element in package
8411 structure instead. Use pointers rather than array indexes where
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
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.
8450 2001-05-31 Michael Chase mchase@ix.netcom.com
8452 * main.cc (WinMain): Add setup version to starting setup.log entry
8454 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
8456 * inilex.l: Add + to list of valid string characters.
8458 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
8460 * Makefile.in: Remove more stuff in the clean target.
8462 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
8464 * Makefile.in: Correctly generate iniparse.h.
8466 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
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'.
8487 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
8489 * res.rc (IDD_SPLASH): Add a copyright year.
8491 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
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
8501 * mount.cc (create_mount): Reread the mount table after establishing a
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.
8508 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
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
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.
8525 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
8527 * choose.cc: Use a constant throughout to deal with chooser icon
8529 * res.rc (IDD_CHOOSE): Increase size of chooser box.
8531 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
8533 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
8534 use when Redownload or Sources Only selected.
8536 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
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.
8543 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
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.
8563 2001-05-09 Matt Hargett <matt@use.net>
8565 * Makefile.in: Remove *.rc from clean.
8567 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
8569 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
8570 TRUST_PREV which produced "0" versions.
8572 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
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
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
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.
8614 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
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.
8627 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
8629 * res.rc: Resize affected text.
8631 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
8633 * net.cc (do_net): Default to direct download.
8634 * res.rc: Move default selections to the top.
8636 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
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.
8646 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
8648 * tar.cc (class gzbz): Define dummy virtual functions.
8650 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
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
8656 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
8657 (read_installed_db): 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.
8671 * zlib/configure.in: Force NM substitution.
8673 * source.cc (do_source): Default to "Install from Internet".
8675 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
8677 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
8679 * choose.cc (list_click): Correct inability to select source code for
8681 (scan2): Modify to skip source tarballs when scanning disk for
8682 installable packages.
8684 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
8686 * install.cc: install sources into /usr/src instead
8687 of /, also include the sizes of source tarballs
8689 * download.cc: include sizes of source tarballs in
8690 total_download_bytes.
8692 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
8694 * download.cc (get_file_size): Remove `static'.
8696 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
8698 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
8700 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
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
8730 (scan2): Modify to use new method get_package_version and
8731 also enhance handling of the build for the structures package and
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
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.
8747 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
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.
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
8771 * resource.h: Add new fields for progress meters and text and update
8772 _APS_NEXT_CONTROL_VALUE.
8774 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
8776 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
8779 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
8781 * download.cc (download_one): Add missing parenthesis.
8783 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
8785 * download.cc (get_file_size): New function. Eliminates the need
8787 (download_one): Call `get_file_size' instead of `stat'. This
8788 workarounds a problem with mingw's `stat' call.
8790 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
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.
8796 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
8798 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
8800 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
8802 * winsup/cinstall/res.rc: Added accelerators and improved focus
8805 2000-12-10 Egor Duda <deo@logos-m.ru>
8807 * choose.cc (paint): Use system background color for text output.
8809 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
8811 * Makefile.in: Use CXX for linking and for compiling .cc files.
8812 * configure.in: Find correct c++ compiler.
8813 * configure: Regenerate.
8815 2000-11-17 DJ Delorie <dj@redhat.com>
8817 * splash.cc (load_dialog): Make message more obvious.
8820 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
8822 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
8823 necessary for newer compilers.
8825 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
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...
8834 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
8836 * desktop.cc (make_passwd_group): Don't exit when started
8837 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
8839 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
8841 * install.cc (do_install): Add call to set_cygdrive_flags to sync
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.
8849 2000-10-23 DJ Delorie <dj@redhat.com>
8851 * ini.h: add source actions
8852 * fromcwd.cc: check for available sources
8853 * res.rc: add checkbox bitmaps
8856 * choose.cc: add source column
8857 * download.cc: download sources if called for
8858 * install.cc: [un]install sources too
8860 2000-10-22 DJ Delorie <dj@redhat.com>
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.
8867 2000-10-12 DJ Delorie <dj@redhat.com>
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
8874 * install.cc (do_install): Ditto.
8876 2000-10-05 DJ Delorie <dj@redhat.com>
8878 * Makefile.in: fix %.cc rule
8880 2000-10-04 DJ Delorie <dj@redhat.com>
8882 * desktop.cc: quote HOME and USER, don't . ./.profile
8884 * choose.cc (build_labels): don't include in partial list just
8885 because there's a *previous* version available.
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.
8890 2000-10-02 DJ Delorie <dj@redhat.com>
8892 * ini.cc (do_ini): save setup.ini locally
8894 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
8896 * desktop.cc: quote escapes in prompt
8898 2000-10-02 Jason Tishler <jt@dothill.com>
8900 * root.cc (is_admin): New function.
8901 (read_mount_table): Check for administrative priviledges and set
8902 installation scope as appropriate.
8904 2000-09-28 DJ Delorie <dj@redhat.com>
8906 * nio-ftp.cc (ftp_line): handle continuations more robustly
8908 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
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.
8915 2000-09-13 DJ Delorie <dj@redhat.com>
8917 * install.cc (do_install): update disk fullness once per package
8918 to improve performance
8920 * choose.cc (create_listview): call ReleaseDC
8922 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
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
8928 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
8930 * site.cc (get_initial_list_idx): Don't default to saved URL if it
8933 2000-09-07 DJ Delorie <dj@redhat.com>
8935 * splash.cc: use version.h, not local decl
8936 * res.rc: add "old version" message
8939 * fromcwd.cc (canonicalize_version): make global
8940 * iniparse.y: add setup-version support, fix bug in blank line
8943 * inilex.l: add [exp] as alias for [test], add setup-version
8944 * Makefile.in (version.c): add setup-version tag
8946 * desktop.cc (do_desktop): remove 1.1 version number
8947 (do_desktop_setup): ditto
8949 * ini.cc (do_ini): zero out package list just in case we redo it.
8951 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
8953 * choose.cc (list_click): Check for nindexes==0; if so, return.
8955 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
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
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
8971 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
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
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
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.
8997 2000-08-29 DJ Delorie <dj@redhat.com>
8999 * choose.cc (scan_downloaded_files): scan for existing files, so
9000 that the user only sees new downloads.
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
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
9016 * netio.cc (set_url): move initialization here to handle redirections
9017 (open): add direct http/ftp
9018 * netio.h (NetIO::set_url): new
9020 * log.cc (log_save): create directory for log if needed
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
9031 * res.rc: update mirror list URL
9033 2000-08-24 DJ Delorie <dj@redhat.com>
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
9053 * res.rc: mark password boxes as *being* password boxes.
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.
9061 2000-08-23 DJ Delorie <dj@redhat.com>
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.
9068 2000-08-21 DJ Delorie <dj@redhat.com>
9072 * fromcwd.cc (found_file): don't remember the canonicalized version
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
9080 2000-08-11 DJ Delorie <dj@redhat.com>
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
9092 * mount.cc: remove debug statement
9094 2000-08-08 DJ Delorie <dj@redhat.com>
9096 * Makefile.in (version.c): make version checking more robust
9097 * splash.cc (load_dialog): handle case where there's no version
9099 2000-08-07 DJ Delorie <dj@redhat.com>
9101 * (all): add cvsid tags
9102 * Makefile.in: generate version.c from ChangeLog, add splash.o
9104 * res.rc: add splash screen
9106 2000-08-02 DJ Delorie <dj@redhat.com>
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
9114 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
9117 2000-08-02 Norman Vine <nhv@yahoo,com>
9119 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
9121 2000-08-01 DJ Delorie <dj@redhat.com>
9123 * postinstall.cc (each): don't rename files we ignore
9124 (do_postinstall): set CYGWINROOT to root_dir, chdir there
9126 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
9128 2000-07-31 DJ Delorie <dj@redhat.com>
9130 * desktop.cc: reverse PATH so /usr/bin precedes /bin
9132 2000-07-18 DJ Delorie <dj@redhat.com>
9134 * autoload.c: new, autoload dlls that might not be available.
9135 * Makefile.in (OBJS): add autoload.o
9137 * res.rc: rewrite root options (text/binary, system/user) to be
9140 * site.cc (get_site_list): trim displayed URL, sort by domain
9142 * net.cc (do_net): make IE5 default to checked, for now
9144 * choose.cc (do_choose): sort packages correctly
9145 * ini.cc (do_ini): handle parse errors more gracefully
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
9155 2000-07-17 DJ Delorie <dj@cygnus.com>
9157 * coding standards fixups, many files
9158 * mkdir.cc: warn about deletions *before* deleting them
9160 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
9162 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
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
9173 * concat.cc (concat): avoid segfault when first parm is null
9175 2000-07-13 DJ Delorie <dj@cygnus.com>
9177 * postinstall.cc: new
9178 * Makefile.in: add postinstall.o
9179 * concat.h: add backslash ()
9181 * desktop.cc (etc_profile): don't do postinstall
9182 (backslash): moved to concat.cc
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
9189 * main.cc: add postinstall, exit_msg
9190 * resource.h: add postinstall
9191 * README: add more to-do items
9193 2000-07-12 DJ Delorie <dj@cygnus.com>
9195 * desktop.cc: add /etc/postinstall/ support
9196 * install.cc: add more "standard" directories
9198 2000-07-11 DJ Delorie <dj@cygnus.com>
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
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
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
9220 2000-07-10 DJ Delorie <dj@cygnus.com>
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
9230 2000-07-10 DJ Delorie <dj@cygnus.com>
9232 * ini.cc (do_ini): don't worry about timestamps if we're not
9233 actually installing.
9235 2000-07-09 DJ Delorie <dj@cygnus.com>
9237 * Makefile.in: add -I$(srcdir) for ini.h
9239 2000-07-06 DJ Delorie <dj@cygnus.com>
9241 * Replace everything with a new GUI version
9242 * zlib/gzio.c: add gzctell() for progress displays
9244 2000-06-22 DJ Delorie <dj@cygnus.com>
9246 * setup.c (tarx): re-add call to write_pkg()
9248 2000-06-07 DJ Delorie <dj@cygnus.com>
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"
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
9267 2000-05-24 DJ Delorie <dj@cygnus.com>
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
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.
9280 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
9282 Fix compiler warnings throughout.
9283 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
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.
9293 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
9294 scanning for the version number. Eliminate unneeded argument to
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.
9300 2000-05-18 DJ Delorie <dj@cygnus.com>
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.
9307 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
9309 * setup.c (cleanup): Inverse order of deletion stands a better chance
9310 of deleting cygpath.exe. Still seems to suffer from occasional races,
9312 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
9314 (output_file): Defend against an unlikely handle leak.
9315 (main): Don't set up signal handling until we have something special to
9318 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
9320 * path.c (kill_cygpath): Delete function.
9321 (exit_cygpath): Make more defensive so that it can be called at any
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
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.
9334 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
9336 * setup.c (do_start_menu): Don't concatenate paths to already built
9339 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
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
9344 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
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
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.
9354 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
9356 * pkg.c (init_pkgs): Accept an argument to control what root registry
9358 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
9359 * setup.h: Reflect init_pkgs prototype change.
9361 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
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
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
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.
9395 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
9397 * setup.c (optionprompt): Don't overlap display of already seen options
9399 (geturl): Print name of site which we're connecting to rather than "ftp
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
9408 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
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
9416 * setup.h: Add pkg definitions.
9418 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
9420 * setup.c (findhref): Return NULL on empty string. Eat any trailing
9422 (processdirlisting): Attempt to limit recursively processing the same
9425 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
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
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.
9441 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
9443 * setup.c (main): Change version number output.
9445 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
9447 * setup.c (tarx): Use full path name to tar executable.
9448 (main): Build full pathname to tar executable. Create /usr/local/etc
9451 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
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
9457 (processdirlisting): Fix boolean algebra.
9459 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
9461 * main.c (tarx): Add some code for future task of unmounting
9462 directories encountered in tar file.
9464 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
9466 * setup.c (findhref): Decode file size, when appropriate.
9467 (needfile): New function. Returns 1 when file should be
9469 (processdirlisting): Always download if file size does not
9470 match. Prompt when download fails for some reason.
9471 (getdownloadsource): Accomodate findhref argument changes.
9473 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
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.
9483 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
9485 * setup.c (main): Umount /bin and /lib.
9487 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
9489 * setup.c (main): Create an empty /var/run/utmp.
9491 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
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.
9499 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
9501 * setup.c (mkmount): Use xcreate_process to start mount process,
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.
9506 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
9508 * setup.c (main): Remove the CYGWIN environment variable before
9509 starting any cygwin programs.
9511 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
9513 * setup.c (geturl): Use alternative method for finding filename part of
9515 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
9516 (downloaddir): Unlink file containing dir listing.
9517 (downloadfrom): Ditto.
9519 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
9521 * setup.c (main): Disallow running setup.exe from the "root".
9523 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
9525 Use "warning" function, where appropriate, to output warnings.
9526 * setup.c (warning): New function -- outputs warning to console and log
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.
9531 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
9533 * setup.c (processdirlisting): Make "N" option a little less aggressive.
9535 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
9537 * setup.c (tarx): Wait to after tar has completed to reset protections
9538 or suffer races with tar process.
9540 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
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
9553 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
9555 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
9558 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
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
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
9574 * xsystem.c (xcreate_process): Return proces handle when not waiting.
9576 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
9579 (pathfp): New function. Preliminary work for new -f cygpath
9581 * Makefile.in: Add new file.
9582 (pathcvt): Move to new file.
9586 * setup.c (processdirlisting): Always open file in text mode.
9587 (create_uninstall): Ditto.
9588 (getdownloadsource): Ditto.
9591 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
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
9604 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
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
9612 (main): Add some expository text.
9614 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
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.
9620 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
9622 * Makefile.in: Augment clean target.
9624 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
9626 * README: Added info about non-working mingw implementation
9627 * gzip.exe.gz: Replace with a version from the same build as the other
9629 * tar.exe.gz: Replace with a version from the same build as the other
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
9642 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
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.
9649 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
9651 * Makefile.in: Use ZLIB variable as a target.
9653 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
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
9658 * configure.in: Locate correct objcopy.
9659 * configure: Regenerate.
9661 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
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