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