]>
Commit | Line | Data |
---|---|---|
31f0ccce RC |
1 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
2 | ||
3 | * Generic.h: New file, home for generic programming tools. | |
4 | (visit_if): Move here from package_meta.cc. | |
5 | Adjust to be fully parameterised. | |
6 | * package_meta.h (packagemeta::hasNoCategories): Query for generic | |
7 | programming. | |
8 | (packagemeta::setDefaultCategories): set categories for packages | |
9 | with none. | |
10 | * package_meta.cc: Move visit_if out. Adjust users for | |
11 | full paramterised operation. | |
12 | (packagemeta::hasNoCategories): Implement. | |
13 | (packagemeta::setDefaultCategories): Implement. | |
14 | * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to | |
15 | reduce duplicate code. | |
16 | (ChooserPage::setExistence): Delete. | |
17 | * choose.h (ChooserPage::setExistence): Rename to | |
18 | packagedb::setExistence. | |
19 | * package_db.h (packagedb::setExistence): Declare. | |
20 | * package_db.cc (packagedb::setExistence): Copy from choose.cc | |
21 | ||
dbdc1d9d RC |
22 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
23 | ||
24 | * localdir.h (LocalDirPage::OnInit): Remove. | |
25 | * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting | |
26 | ::load(). | |
27 | (LocalDirSetting::load): Copied from LocalDirPage::OnInit. | |
28 | * site.h (SitePage::OnInit): Remove. | |
29 | (SitePage::getSavedSites): New member, replaces get_saved_sites. | |
30 | (SitePage::registerSavedSite): New member, replaces | |
31 | register_saved_site. | |
32 | * site.cc (SitePage::OnInit): Move to SiteSetting::load(). | |
33 | (SiteSetting::load): Copied from SitePage::OnInit. | |
34 | (SitePage::getSavedSites): Renamed from get_saved_sites. | |
35 | (SitePage::registerSavedSite): Renamed from register_saved_site. | |
36 | (do_download_site_info_thread): Don't look at the list size for | |
37 | determining if the download was successful. | |
38 | ||
22120c90 RC |
39 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
40 | ||
41 | * choose.h (ChooserPage::setViewMode): Remove HWND from | |
42 | signature. | |
43 | (ChooserPage::defaultTrust): Ditto. | |
44 | Move to PickView. | |
45 | (ChooserPage::ifChecked): Use Window helper function | |
46 | IsButtonChecked. | |
47 | * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND() | |
48 | throughout. | |
49 | Update all callers with new signature. | |
50 | (ChooserPage::defaultTrust): Ditto. | |
51 | Move to PickView. | |
52 | * PickView.h (PickView::defaultTrust): Declare. | |
53 | * PickView.cc (PickView::defaultTrust): Copy from chooser.cc. | |
54 | ||
9c9cfce7 RC |
55 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
56 | ||
57 | * PickView.h (PickView::lv): Eliminate. | |
58 | * PickView.cc (PickView::init): Replace use of lv with | |
59 | GetHWND(). | |
60 | (PickView::list_click): Ditto. | |
61 | * choose.h (ChooserPage::lv): Eliminate. | |
62 | * choose.cc: Replace lv with chooser->GetHWND() | |
63 | throughout. | |
64 | ||
d2be933d RC |
65 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
66 | ||
67 | * PickView.h (PickView::chooser): Eliminate. | |
68 | (PickView::list_vscroll): Make non-static. | |
69 | (PickView::list_hscroll): Ditto. | |
70 | (PickView::list_click): Ditto. | |
71 | (PickView::paint): Ditto. | |
72 | * PickView.cc (PickView::list_vscroll): Eliminate use | |
73 | of PickView::chooser. | |
74 | (PickView::list_hscroll): Ditto. | |
75 | (PickView::list_click): Ditto. | |
76 | (PickView::paint): Ditto. | |
77 | * choose.cc (Chooser::createListView): Eliminate use | |
78 | of PickView::chooser. | |
79 | ||
693916f8 RC |
80 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
81 | ||
82 | * PickView.h (PickView): Inherit from Window. | |
83 | (PickView::RegisterWindows): Move from ChooserPage. | |
84 | (PickView::listview_proc): Likewise. | |
85 | (PickView::paint): Ditto. | |
86 | (PickView::list_click): Ditto. | |
87 | (PickView::list_hscroll): Ditto. | |
88 | (PickView::list_vscroll): Ditto. | |
89 | (PickView::lv): Ditto. | |
90 | (PickView::chooser): Ditto. | |
91 | (PickView::Create): Override Windows::Create as we migrate. | |
92 | (PickView::registerWindowClass): Renamed RegisterWindows. | |
93 | (PickView::WindowClassAtom): Prevent double registration. | |
94 | (PickView::init): Declare. | |
95 | * PickView.cc: Adjust for new inheritance. | |
96 | (PickView::RegisterWindows): Move from ChooserPage. | |
97 | (PickView::listview_proc): Likewise. | |
98 | (PickView::paint): Ditto. | |
99 | (PickView::list_click): Ditto. | |
100 | (PickView::list_hscroll): Ditto. | |
101 | (PickView::list_vscroll): Ditto. | |
102 | (PickView::lv): Ditto. | |
103 | (PickView::chooser): Ditto. | |
104 | (PickView::Create): Introduce stub. | |
105 | (PickView::RegisterWindows): Rename | |
106 | (PickView::init): Extracted from constructor to allow | |
107 | reordering. | |
108 | * chooser.h (ChooserPage::registerWindows): Rename to | |
109 | PickView::RegisterWindows. | |
110 | (ChooserPage::listview_proc): Likewise. | |
111 | (ChooserPage::paint): Ditto. | |
112 | (ChooserPage::list_click): Ditto. | |
113 | (ChooserPage::list_hscroll): Ditto. | |
114 | (ChooserPage::list_vscroll): Ditto. | |
115 | (ChooserPage::lv): Duplicate into PickView, observe | |
116 | as non-static. | |
117 | (ChooserPage::chooser): Ditto. | |
118 | * chooser.cc (ChooserPage::registerWindows): Delete. | |
119 | (ChooserPage::listview_proc): Ditto. | |
120 | (ChooserPage::paint): Ditto. | |
121 | (ChooserPage::list_click): Ditto. | |
122 | (ChooserPage::list_hscroll): Ditto. | |
123 | (ChooserPage::list_vscroll): Ditto. | |
124 | (ChooserPage::createListView): Create() on PickView. | |
125 | * window.h (Window::RegisterWindowClass): Make virtual | |
126 | to allow Create to become a Template Method, and rename | |
127 | to registerWindowClass as it's not static. | |
128 | * window.cc (Window::registerWindowClass): Ditto. | |
129 | (Window::FirstWindowProcReflector): BUGFIX: Set window | |
130 | handle to prevent races with the window procedure. | |
131 | ||
724c2956 RC |
132 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
133 | ||
134 | * choose.cc (set_view_mode): Rename to ChooserPage::setViewMode. | |
135 | (default_trust): Rename to ChooserPage::defaultTrust. | |
136 | (fill_missing_category): Rename to ChooserPage::fillMissingCategory. | |
137 | (set_existence): Rename to ChooserPage::setExistence. | |
138 | (register_windows): Rename to ChooserPage::registerWindows. | |
139 | (listview_proc): Rename to ChooserPage::listview_proc. | |
140 | (paint): Rename to ChooserPage::paint. | |
141 | (list_click): Rename to ChooserPage::list_click. | |
142 | (list_hscroll): Rename to ChooserPage::list_hscroll. | |
143 | (list_vscroll): Rename to ChooserPage::list_vscroll. | |
144 | (lv): Rename to ChooserPage::lv. | |
145 | (chooser): Rename to ChooserPage::chooser. | |
146 | * choose.h (ChooserPage::setViewMode): Declare. | |
147 | (ChooserPage::defaultTrust): Declare. | |
148 | (ChooserPage::fillMissingCategory): Declare. | |
149 | (ChooserPage::setExistence): Declare. | |
150 | (ChooserPage::registerWindows): Declare. | |
151 | (ChooserPage::listview_proc): Declare. | |
152 | (ChooserPage::paint): Declare. | |
153 | (ChooserPage::list_click): Declare. | |
154 | (ChooserPage::list_hscroll): Declare. | |
155 | (ChooserPage::list_vscroll): Declare. | |
156 | (ChooserPage::lv): Declare. | |
157 | (ChooserPage::chooser): Declare. | |
158 | ||
d05ae76a RC |
159 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> |
160 | ||
161 | * choose.cc (create_listview): Use for_each instead of explicit | |
162 | iteration. | |
163 | (create_listview): Rename to ChooserPage::createListview. | |
164 | * package_meta.h (packagemeta::set_requirements): Explicitly separate | |
165 | the 1 and 2 parameter versions. | |
166 | ||
167 | 2003-07-27 Robert Collins <rbtcollins@hotmail.com> | |
69711722 RC |
168 | |
169 | * String++.h (String::operator !=): Declare for char * and String. | |
170 | * String++.cc (String::operator !=): Implement. | |
171 | * package_meta.cc(StringConcatenator): Move above all users. | |
172 | (_visit_if): Predicate support for visitors. | |
173 | (packagemeta::getReadableCategoryList): Refactor to use | |
174 | StringConcatenator with a predicate. | |
175 | * choose.h: Remove unneeded c++ guards. | |
176 | ||
cda26207 RC |
177 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
178 | ||
179 | * choose.cc (scan_downloaded_files): Rename to packagemeta::ScanDownloadedFiles. | |
180 | (scanAVersion): Rename to packageversion::scan. | |
181 | (GetParentRect): Rename to ChooserPage::getParentRect. | |
182 | * choose.h (ChooserPage::getParentRect): Declare. | |
183 | * package_meta.h (packagemeta::ScanDownloadedFiles): Declare. | |
184 | * package_version.h (packageversion::scan): Declare. | |
185 | * package_version.cc (packageversion::scan): Move from choose.cc | |
186 | * package_meta.cc (packagemeta::ScanDownloadedFiles): Move from choose.cc | |
187 | ||
edc3c6fc RC |
188 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
189 | ||
190 | * choose.cc (ChooserPage::OnNext): log before starting activity threads. | |
191 | (ChooserPage::OnInit): Remove temporary variable frame. | |
192 | (ChooserPage::setPrompt): Extract method from OnInit. | |
193 | (choose_inst_text): Remove unused variable. | |
194 | * choose.h(ChooserPage::setPrompt): Declare | |
195 | * res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present | |
196 | caption. | |
197 | ||
d55e14fe RC |
198 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
199 | ||
200 | Remove package specific code from choose.cc. | |
201 | Update copyrights where appropriate. | |
202 | * choose.cc(ChooserPage::OnNext): Extract logging to | |
203 | packagemeta::logSelectionStatus. | |
204 | * package_meta.cc(packagemeta::logSelectionStatus): Extract from | |
205 | ChooserPage::OnNext. | |
206 | (StringConcatenator): helper for logSelectionStatus. | |
207 | (action_caption): Make const. | |
208 | * package_meta.h(packagemeta): Declare logSelectionStatus. | |
209 | (packagemeta::action_caption): Make const. | |
210 | * package_version.cc(packageversion::sourcePackage): Make const. | |
211 | * package_version.h(packageversion::sourcePackage): Make const. | |
212 | ||
12f8ac69 RC |
213 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
214 | ||
215 | * choose.cc: Update copyright. | |
216 | (ChooserPage::keepClicked): Extracted from OnMessageCmd. | |
217 | (ChooserPage::changeTrust): Ditto. | |
218 | * choose.h (ChooserPage): Declare keepClicked and changeTrust. | |
219 | (ChooserPage::ifChecked): Extracted from OnMessageCmd. | |
220 | * package_meta.h (SetRequirement): Adapter for visiting package collections. | |
221 | ||
93d7e783 MB |
222 | 2003-07-26 Max Bowsher <maxb@ukf.net> |
223 | ||
224 | * tests/.cvsignore: New file, listing Makefile.in. | |
225 | ||
dea6cc21 RC |
226 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
227 | ||
228 | Save used local cache dir from initial run of setup, so the user doesn't | |
229 | need to retype it. | |
230 | * localdir.h (LocalDirSetting): UserSetting class for the local cache dir. | |
231 | * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and update callers. | |
232 | ||
0df9be37 RC |
233 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
234 | ||
235 | Save used site from initial run of setup, so the user doesn't need to | |
236 | retype it. | |
237 | * main.cc (main): Load and save all user settings. | |
238 | * site.cc (SiteSetting::save): Migrate logic from save_site_url. | |
239 | (SitePage::OnNext): Use ChosenSites.save() to remove uneeded save_site_url call. | |
240 | (save_site_url): Delete. | |
241 | * site.h (save_site_url): Remove declaration. | |
242 | * .cvsignore: Update autoconf generated files. | |
243 | ||
bf137801 RC |
244 | 2003-07-26 Robert Collins <rbtcollins@hotmail.com> |
245 | ||
246 | * tests/Makefile.am: Driver for test suite. | |
247 | * tests/UserSettingTest.cc: Test UserSetting interface. | |
248 | * tests/UserSettingsTest.cc: Test UserSettings interface. | |
249 | * Makefile.am: Add the tests dir to recurse into. | |
250 | * configure.in: Ditto. | |
251 | * UserSetting.h: Add load and save methods to allow global serialisation. | |
252 | Add explicit copy and assignment operators to prevent synthetics. | |
253 | Make the constructor protected to prevent direct instantiation. | |
254 | * UserSettings.h (UserSettings::loadAllSettings): New method. | |
255 | (UserSettings::savedAllSettings): New method. | |
256 | * UserSettings.cc: Implement new methods. | |
257 | * site.cc: Implement stubs for new required UserSetting methods. | |
258 | * site.h (ChosenSite): Ditto. | |
259 | * Ran automake. | |
260 | ||
3d5a4f16 MB |
261 | 2003-07-23 Max Bowsher <maxb@ukf.net> |
262 | ||
263 | * desktop.cc (DesktopSetupPage::OnBack): Remove obsolete use of NEXT(). | |
264 | * root.cc (RootPage::OnNext): Ditto. | |
265 | (RootPage::OnBack): Ditto. | |
266 | * install.cc (do_install_thread): Remove obsolete use of next_dialog. | |
267 | * main.cc (main): Ditto. | |
268 | * postinstall.cc (do_postinstall_thread): Ditto. | |
269 | ||
7108d406 MB |
270 | 2003-07-23 Max Bowsher <maxb@ukf.net> |
271 | ||
272 | * dialog.h (do_choose, do_desktop, do_local_dir, do_net, do_other) | |
273 | (do_root, do_site, do_source, do_splash): Remove declarations, since | |
274 | these functions no longer exist. | |
275 | ||
b1c23913 MB |
276 | 2003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
277 | ||
278 | * choose.cc (initialized): Remove obsolete file scope variable. | |
279 | ||
d52a6cc8 MB |
280 | 2003-07-18 Max Bowsher <maxb@ukf.net> |
281 | ||
282 | * res.rc: Make caption of every dialog page begin with "Cygwin Setup". | |
283 | This aids recognition when minimized. | |
284 | Prompted by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>. | |
285 | ||
9d53f045 MB |
286 | 2003-07-10 Jeremy White <jwhite@codeweavers.com> |
287 | ||
288 | * mount.cc, root.cc, site.cc: Make StringOptions required, | |
289 | thereby making --longopt <parm> behave as a newbie would expect. | |
290 | ||
12e726c4 MB |
291 | 2003-07-08 Max Bowsher <maxb@ukf.net> |
292 | ||
293 | * LogFile.h, cistring.h, dialog.h, diskfull.h, filemanip.h, geturl.h, | |
294 | hash.h, log.h, mkdir.h, mklink2.h, mount.h, msg.h, netio.h, nio-file.h, | |
295 | nio-ftp.h, nio-http.h, nio-ie5.h, port.h, simpsock.h, state.h, | |
296 | version.h: Add inclusion guard. | |
297 | * root.h: Standardize naming of inclusion guard. | |
298 | ||
c93bc6d0 MB |
299 | 2003-06-23 Max Bowsher <maxb@ukf.net> |
300 | ||
301 | * AntiVirus.h, Exception.h, FilterVisitor.h, FindVisitor.h, | |
302 | IOStreamProvider.h, IniDBBuilder.h, IniDBBuilderPackage.h, | |
303 | IniParseFeedback.h, IniParseFindVisitor.h, LogSingleton.h, MD5++.h, | |
304 | PackageSpecification.h, PackageTrust.h, PickCategoryLine.h, PickLine.h, | |
305 | PickPackageLine.h, PickView.h, RECTWrapper.h, ScanFindVisitor.h, | |
306 | String++.h, UserSetting.h, UserSettings.h, archive.h, archive_tar.h, | |
307 | category.h, choose.h, compress.h, compress_bz.h, compress_gz.h, | |
308 | cygpackage.h, desktop.h, download.h, find.h, ini.h, io_stream.h, | |
309 | io_stream_cygfile.h, io_stream_file.h, io_stream_memory.h, | |
310 | io_stream_rsync.h, localdir.h, net.h, package_db.h, package_meta.h, | |
311 | package_source.h, package_version.h, proppage.h, propsheet.h, script.h, | |
312 | site.h, source.h, splash.h, threebar.h, win32.h, window.h: | |
313 | Standardize naming and placement of inclusion guards. | |
314 | ||
4a2af5fb MB |
315 | 2003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> |
316 | ||
317 | * res.rc (all dialogs): Change font from "MS Sans Serif" to | |
318 | "MS Shell Dlg". | |
319 | ||
8b726ef6 MB |
320 | 2003-06-22 Max Bowsher <maxb@ukf.net> |
321 | ||
322 | * Makefile.am: Clarify comment. | |
323 | Derive AM_CFLAGS from AM_CXXFLAGS, rather than the other way around. | |
324 | (AM_CXXFLAGS): Remove -Wmissing-declarations - it is a C-only warning. | |
325 | (AM_CFLAGS): Add -Winline, and -Wmissing-declarations. | |
326 | ||
1e9ebf8a MB |
327 | 2003-06-22 Max Bowsher <maxb@ukf.net> |
328 | ||
329 | * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional. | |
330 | ||
0a539fe4 MB |
331 | 2003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
332 | ||
333 | * window.h (SETUP_WINDOW_H): Rename multi-include guard. | |
334 | (Copyright): Update. | |
335 | (RECTWrapper): New forward declaration. | |
336 | (Window::Create): Move. | |
337 | (Window::MoveWindow): New overload declaration. | |
338 | * window.cc: (RECTWrapper.h) Include. | |
339 | (Copyright): Update. | |
340 | (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead | |
341 | of C-style casts. | |
342 | (Window::MoveWindow): New overload. | |
343 | ||
3c0ca7aa MB |
344 | 2003-05-31 Max Bowsher <maxb@ukf.net> |
345 | ||
346 | * res.rc: Resize title controls to fully fill available width. | |
347 | ||
e0d021d0 MB |
348 | 2003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
349 | ||
350 | * RECTWrapper.h: New file. | |
351 | ||
1e3b2ad4 RC |
352 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
353 | ||
354 | * script.cc (Script::extension): Extract method from Script::run. | |
355 | (Script::run): Extract extension generation to Script::extension. | |
356 | * script.h (Script::extension): Declare. | |
357 | ||
2533f348 RC |
358 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
359 | ||
360 | * script.cc (run_script): Remove. | |
361 | (try_run_script): Inline method run_script. | |
362 | * script.h (run_script): Remove. | |
363 | ||
34ea5b6d RC |
364 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
365 | ||
366 | * postinstall.cc (RunScript::operator()): Use new run syntax. | |
367 | * script.h (Script::run): Eliminate to_log parameter. | |
368 | * script.cc (Script::run): Ditto. | |
369 | (run_script): Use new run syntax. | |
370 | ||
9f27ab95 RC |
371 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
372 | ||
373 | * script.cc (Script::run): Eliminate temp variable 'f2'. | |
374 | Rename temp variable 'f2' to 'windowsName' for increased clarity. | |
375 | ||
783ed9c5 RC |
376 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
377 | ||
378 | * script.cc (Script::run): Eliminate temp variable 'fname'. | |
379 | ||
0900bd5b RC |
380 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
381 | ||
382 | * script.cc (Script::run): Eliminate temp variable 'dir'. | |
383 | ||
294e5067 RC |
384 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
385 | ||
386 | * script.cc (run_script): Always pass TRUE to Script::run. | |
387 | * script.h (run_script): Remove optional to_log parameter. | |
388 | ||
a0e56f67 RC |
389 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
390 | ||
391 | * script.cc (run_script): Move functionality into Script. | |
392 | (Script::run): Absorb run_script. | |
393 | ||
8c242540 RC |
394 | 2003-04-12 Robert Collins <rbtcollins@hotmail.com> |
395 | ||
396 | * PickCategoryLine.cc (PickCategoryLine::click): Tell packagemeta we | |
397 | are about to perform a visit. | |
398 | * PickPackageLine.cc (PickPackageLine::click): Tell packagemeta we | |
399 | are about to perform a visit. | |
400 | * package_db.cc (packagedb::markUnVisited): Convenience wrapper - | |
401 | mark all packages as unvisited. | |
402 | * package_db.h (packagedb::markUnVisited): Declare. | |
403 | * package_meta.cc (packagemeta::PrepareForVisit): New static method | |
404 | to prepare for a loop-free visit. | |
405 | (packagemeta::packagemeta): Adjust for new member. | |
406 | (packagemeta::set_requirements): Only visit a node once. | |
407 | (packagemeta::visited): Get and Set methods for new member visited_. | |
408 | * package_meta.h (packagemeta::PrepareForVisit): Declare. | |
409 | (packagemeta::visited): Declare. | |
410 | (packagemeta::visited_): Declare. | |
411 | ||
5f4b0e57 MB |
412 | 2003-04-07 Max Bowsher <maxb@ukf.net> |
413 | ||
414 | * download.cc: Add command line option to suppress MD5 checks. | |
415 | (validateCachedPackage): Test option and possibly skip. | |
416 | ||
e46e15bf RC |
417 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> |
418 | ||
419 | Merge in setup-200303-troubleshooting fixes. | |
420 | ||
421 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
422 | ||
423 | * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code. | |
424 | (NTSecurity::setDefaultSecurity): Ditto. | |
425 | ||
426 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
427 | ||
428 | * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL | |
429 | buffer sizing. | |
430 | ||
431 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
432 | ||
433 | * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation. | |
434 | ||
435 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
436 | ||
437 | * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for auto_ptr use. | |
438 | ||
439 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
440 | ||
441 | * main.cc (NTSecurity::NoteFailedAPI): Helper function. | |
442 | Use throughout NTSecurity routines. | |
443 | (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage. | |
444 | ||
445 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
446 | ||
447 | * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining active code. | |
448 | ||
449 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
450 | ||
451 | * main.cc (NTSecurity::GroupInfo): Extract group query code. | |
452 | (NTSecurity::setDefaultDACL): Disable ~ 50% of code. | |
453 | ||
454 | 2003-04-02 Robert Collins <rbtcollins@hotmail.com> | |
455 | ||
456 | * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security code. | |
457 | ||
458 | 2003-04-01 Robert Collins <rbtcollins@hotmail.com> | |
459 | ||
460 | * main.cc (NTSecurity::setDefaultSecurity): Remove double declaration of sz. | |
461 | User TokenGroupCollection to abstract token searching logic, eliminate isadmin | |
462 | and isuser temporary variables. | |
463 | (TokenGroupCollection): New class for querying token group information. | |
464 | ||
465 | 2003-04-01 Robert Collins <rbtcollins@hotmail.com> | |
466 | ||
467 | * main.cc (NTSecurity::setDefaultSecurity): Extract esid initialisation. | |
468 | Move local variables to just before first use. | |
469 | SetTokenInformationFailures where being handled inconsistently. | |
470 | Remove assignments from if statements. | |
471 | (NTSecurity::esid): Rename to everyOneSID. | |
472 | (NTSecurity::initialiseEveryOneSID): new method. | |
473 | (NTSecurity::setDefaultDACL): Extract method for default DACL logic. | |
474 | ||
475 | 2003-04-01 Robert Collins <rbtcollins@hotmail.com> | |
476 | ||
477 | * main.cc (SIDWrapper): Manage SID memory. | |
478 | (HANDLEWrapper): Likewise for HANDLES. | |
479 | (NTSecurity): Worker class for set_default_sec(). | |
480 | (set_default_sec): Move body into NTSecurity::setDefaultSecurity(). | |
481 | (NTSecurity::setDefaultSecurity): Eliminate goto out: via memory managing objects. | |
482 | ||
da0b54f3 MB |
483 | 2003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
484 | ||
485 | * cygwin.ico: Added two new resolutions, 64x64 and 72x72. | |
486 | ||
3baca7c9 RC |
487 | 2003-03-29 Robert Collins <rbtcollins@hotmail.com> |
488 | ||
489 | * GUIDELINES: New file documenting code guidelines. | |
490 | ||
11e37aca MB |
491 | 2003-03-26 Max Bowsher <maxb@ukf.net> |
492 | ||
493 | * .cvsignore: Add cfgaux. | |
494 | ||
18a3405d RC |
495 | 2003-03-26 Robert Collins <rbtcollins@hotmail.com> |
496 | ||
11e37aca MB |
497 | * package_version.cc (_defaultversion::accessible): Override and make |
498 | always false. | |
499 | (_packageversion::accessible): Fix a couple of logic bugs resulting in | |
500 | incorrect trues. | |
18a3405d RC |
501 | * package_version.h (_packageversion::accessible): Make virtual. |
502 | ||
39ba3555 MB |
503 | 2003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
504 | ||
505 | * threebar.h (WM_APP_START_POSTINSTALL): New message. | |
506 | (WM_APP_POSTINSTALL_THREAD_COMPLETE): New message. | |
507 | * threebar.cc (ThreeBarProgressPage::OnMessageApp): | |
508 | Add handling for WM_APP_START_POSTINSTALL and | |
509 | WM_APP_POSTINSTALL_THREAD_COMPLETE. | |
510 | * install.cc (do_install_thread): Set next_dialog to | |
511 | IDD_S_POSTINSTALL. | |
512 | * desktop.cc (DesktopSetupPage::OnFinish): Move the | |
513 | do_postinstall call to ThreeBarProgressPage::OnMessageApp. | |
514 | * script.h (Script::fullName): New member function. | |
515 | (Script::run): New member function. | |
516 | (Script::ETCPostinstall): New static member constant. | |
517 | * script.cc (Script::fullName): Implement. | |
518 | (Script::run): Implement. | |
519 | (Script::ETCPostinstall): Define. | |
520 | (Script::isAScript): Use ETCPostinstall instead of a | |
521 | hardcoded string constant. | |
522 | (run): Enable "#if 0"'d code. | |
523 | * postinstall.cc (Progress): New extern variable. | |
524 | (RunFindVisitor::visitFile): Add script to vector | |
525 | instead of running. | |
526 | (RunFindVisitor::_scripts): New member variable. | |
527 | (RunScript): New helper class for use in for_each. | |
528 | (do_postinstall_thread): Rename do_postinstall to. Add | |
529 | Progress bar and text setting. Add package count. | |
530 | (do_postinstall_reflector): New static function. | |
531 | (do_postinstall): Rename to do_postinstall_thread. | |
532 | Create a thread instead. | |
533 | ||
1069407c MB |
534 | 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
535 | ||
536 | * script.cc (run): Add file_out parameter. | |
537 | Redirect output of subprocess to file, creating the | |
538 | path if necessary. Minimize the script window. | |
539 | (run_script): Add optional to_log boolean parameter. | |
540 | If to_log, redirect output to temporary file and then | |
541 | import it into LOG_BABBLE. | |
542 | (OutputLog): New helper class. | |
543 | (operator<<): New operation on OutputLog. | |
544 | * script.h (run_script): Add optional to_log parameter. | |
545 | * postinstall.cc (RunFindVisitor::visitFile): Instruct | |
546 | run_script() to log script output. | |
547 | (do_postinstall): Ditto. | |
548 | ||
84fd41a9 RC |
549 | 2003-03-20 Robert Collins <rbtcollins@hotmail.com> |
550 | ||
551 | * package_meta.cc (packagemeta::set_action): The logic | |
552 | test for the default action was reversed. | |
553 | ||
864a5ec1 MB |
554 | 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
555 | ||
556 | * postinstall.cc (do_postinstall): Filter out '*.done'. | |
557 | * FilterVisitor.h: New header file. Declare the | |
558 | FilterVisitor, Filter, and ExcludeNameFilter classes. | |
559 | * FilterVisitor.cc: New file. Implement FilterVisitor, | |
560 | Filter, and ExcludeNameFilter. | |
561 | * String++.h (String::matches): New instance function. | |
562 | * String++.cc (String::matches): Implement. | |
563 | (strmatch) Import and adapt for <buf,len> strings. | |
564 | * Makefile.am (setup_SOURCES): Add FilterVisitor.cc and | |
565 | FilterVisitor.h to value. | |
566 | ||
560ac5e2 MB |
567 | 2002-03-18 Max Bowsher <maxb@ukf.net> |
568 | ||
569 | * LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess(). | |
570 | Use passed exit_code even if been_here. | |
571 | Remove incorrect _CYGWIN_ preprocessor conditional. | |
572 | ||
ad646f43 RC |
573 | 2003-03-16 Robert Collins <rbtcollins@hotmail.com> |
574 | ||
e0312c44 RC |
575 | * package_db.h (PackageDBConnectedIterator): Typedef |
576 | for connected loop detection collection iterator. | |
577 | * package_db.cc (ConnectedLoopDetector): An | |
578 | implementation of R.E. Tarjans strongly connected | |
579 | set visitor algorithm. | |
580 | * postinstall.cc (do_postinstall): Use the new iterator | |
581 | for visiting postinstall scripts. | |
ad646f43 RC |
582 | |
583 | 2003-03-16 Robert Collins <rbtcollins@hotmail.com> | |
584 | ||
585 | * install.cc: Introduce Installer class. | |
586 | (init_dialog): Rename to Installer::initDialog. | |
587 | (progress): Rename to Installer::progress. | |
588 | (standard_dirs): Rename to Installer::StandardDirs. | |
589 | (uninstall_one): Rename to Installer::uninstallOne. | |
590 | (replace_one): Rename to Installer::replaceOne. | |
e0312c44 RC |
591 | (log_ror_failure): Rename to |
592 | Installer::replaceOnRebootFailed. | |
593 | (log_ror_success): Rename to | |
594 | Installer::replaceOnRebootSucceeded. | |
ad646f43 RC |
595 | (install_one_source): Rename to Installer::installOneSource. |
596 | Note script files as they are installed. | |
597 | * package_version.cc (packageversion::addScript): Implement. | |
598 | (packageversion::scripts): Implement. | |
e0312c44 RC |
599 | * package_version.h (packageversion::addScript): Record the |
600 | presence of a script. | |
ad646f43 | 601 | * script.h (Script): New class to track scripts. |
e0312c44 RC |
602 | * postinstall.cc (do_postinstall): Iterate through the |
603 | package listed scripts before searching for scripts. | |
604 | * String++.cc (String::substr): Second argument needed to | |
605 | be signed. | |
606 | * String++.h (String::substr): Second argument needed to | |
607 | be signed. | |
ad646f43 | 608 | |
c0a46d04 MB |
609 | 2003-03-16 Max Bowsher <maxb@ukf.net> |
610 | ||
611 | * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and | |
612 | autom4te.cache. | |
613 | ||
3d7ae5a2 MB |
614 | 2003-03-16 Max Bowsher <maxb@ukf.net> |
615 | ||
616 | * UserSettings.cc (UserSettings::Instance): Remove premature return. | |
617 | ||
92f9402a RC |
618 | 2003-03-15 Robert Collins <rbtcollins@hotmail.com> |
619 | ||
620 | * script.cc (run): Rename variable b to createSucceeded. | |
621 | ||
622 | 2003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu> | |
623 | ||
624 | * script.cc (run): Close unneeded handles. | |
625 | ||
b49f570f RC |
626 | 2003-03-15 Robert Collins <rbtcollins@hotmail.com> |
627 | ||
628 | * configure: Remove. | |
629 | * aclocal.m4: Remove. | |
630 | * Makefile.in: Remove. | |
631 | * cfgaux: Remove. | |
632 | * cfgaux/compile: Remove. | |
633 | * cfgaux/config.guess: Remove. | |
634 | * cfgaux/config.sub: Remove. | |
635 | * cfgaux/depcomp: Remove. | |
636 | * cfgaux/install-sh: Remove. | |
637 | * cfgaux/ltmain.sh: Remove. | |
638 | * cfgaux/missing: Remove. | |
639 | * cfgaux/mkinstalldirs: Remove. | |
640 | ||
b6001c0d MB |
641 | 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
642 | ||
643 | * install.cc (replace_one): Clear Text3. | |
644 | ||
46ccc05f MB |
645 | 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
646 | ||
647 | * install.cc (install_one_source): Add logging for successful | |
648 | replace-on-reboot scheduling. Factor out duplicate code. | |
649 | Set rebootneeded on Win9x. | |
650 | (log_ror_failure): New static function. | |
651 | (log_ror_success): New static function. | |
652 | ||
c27b09ba RC |
653 | 2003-03-14 Robert Collins <rbtcollins@hotmail.com> |
654 | ||
655 | * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by | |
656 | Igor Pechtchanski <pechtcha@cs.nyu.edu>. | |
657 | ||
a081d4ff MB |
658 | 2003-03-13 Max Bowsher <maxb@ukf.net> |
659 | ||
660 | * Update included zlib to 1.1.4. | |
661 | ||
f430003c RC |
662 | 2003-03-13 Robert Collins <rbtcollins@hotmail.com> |
663 | ||
46ccc05f MB |
664 | * install.cc (do_install_thread): Use a query method rather than temp |
665 | variable do_skip. | |
f430003c | 666 | |
46ccc05f | 667 | 2003-03-09 Pavel Tsekov <ptsekov@gmx.net> |
f430003c RC |
668 | |
669 | * install.cc (do_install_thread): Use IDS_SKIP_PACKAGE | |
670 | instead of IDS_CORRUPT_PACKAGE when asking the user to take | |
671 | action if the hash verification check fails for a source package. | |
672 | Do not increase the value of 'total_bytes' variable if the | |
673 | user chooses to skip over a package, which failed the hash | |
674 | verification. | |
675 | ||
48c7d667 MB |
676 | 2003-03-10 Max Bowsher <maxb@ukf.net> |
677 | ||
678 | * Makefile.am: Add foreign to AUTOMAKE_OPTIONS. | |
679 | ||
aaeee283 RC |
680 | 2003-03-10 Robert Collins <rbtcollins@hotmail.com> |
681 | ||
682 | * UserSettings.cc (UserSettings::init): Really initialize all members. | |
683 | ||
ead15931 RC |
684 | 2003-03-10 Robert Collins <rbtcollins@hotmail.com> |
685 | ||
686 | * Exception.h: Add a logic error exception id. | |
687 | * Makefile.am: Add new sources. | |
688 | * UserSettings.cc: New file. | |
689 | * UserSettings.h: New file. | |
690 | * UserSetting.cc: New file. | |
691 | * UserSetting.h: New file. | |
692 | * site.h: Add a SiteSetting as example of a UserSetting. | |
46ccc05f MB |
693 | * site.cc (ChosenSites): Add a instance of SiteSetting to trigger |
694 | registration. | |
ead15931 | 695 | |
c1754473 RC |
696 | 2003-03-10 Robert Collins <rbtcollins@hotmail.com> |
697 | ||
46ccc05f MB |
698 | * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of |
699 | lasterr. | |
c1754473 RC |
700 | (compress_bz::error): Return lasterr which will indicate any error. |
701 | ||
52620058 RC |
702 | 2003-03-10 Robert Collins <rbtcollins@hotmail.com> |
703 | ||
704 | * choose.h (ChooserPage): Override OnActivate. | |
46ccc05f MB |
705 | * choose.cc (ChooserPage::OnActivate): Refresh the current view when |
706 | activating the dialog. | |
52620058 | 707 | |
6e754226 RC |
708 | 2003-03-09 Robert Collins <rbtcollins@hotmail.com> |
709 | ||
46ccc05f MB |
710 | * package_version.cc (_defaultversion::pick(bool)): Override this and |
711 | do nothing. | |
712 | (packageversion::pick(bool): Use a mutator function rather than direct | |
713 | member access. | |
714 | * package_version.h (_packageversion::pick(bool)): Move method from | |
715 | _packageversion. | |
6e754226 | 716 | |
970149e8 RC |
717 | 2003-02-16 Pavel Tsekov <ptsekov@gmx.net> |
718 | ||
719 | * install.cc (install_one_source): Remove the MD5 verification | |
720 | code. | |
721 | Delay the creation of the package listing file. | |
722 | (do_install_thread): Check the hashes for packages which need | |
723 | to be installed before the uninstall step. Allow the user to | |
724 | skip over packages, which fail the hash verification. | |
725 | (md5_one): Define new function. | |
726 | * res.rc (IDS_SKIP_PACKAGE): New string resource. | |
727 | * resource.h (IDS_SKIP_PACKAGE): New macro definition. | |
728 | ||
f37b36a3 RC |
729 | 2003-02-16 Pavel Tsekov <ptsekov@gmx.net> |
730 | ||
731 | * Exception.h: Declare new constructor. | |
732 | (Exception::_message): Change the type from 'const char *' to | |
733 | 'class String'. | |
734 | (Exception::~Exception): Implement destructor (make gcc shut up). | |
735 | * Exception.cc: Implement new constructor. | |
736 | (Exception::what): Use String::cstr_oneuse (). | |
737 | * download.cc (validateCachedPackage): Use the constructor, which | |
738 | takes String& as its second argument, when throwing objects | |
739 | of type Exception. | |
740 | (check_for_cached): Ditto. | |
741 | * install.cc (install_one_source): Ditto. | |
742 | ||
eef9ea26 RC |
743 | 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
744 | ||
745 | * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded | |
746 | log filename to %s. | |
747 | (IDS_MISSING_LOG): New string resource. | |
748 | * resource.h (IDS_MISSING_LOG): New resource. | |
749 | * LogFile.cc (LogFile::exit): Pass log filename for | |
750 | LOG_BABBLE to note(). | |
751 | (LogFile::getFileName): New function. | |
752 | * LogFile.h (LogFile::getFileName): New function. | |
753 | ||
514b100e RC |
754 | 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu> |
755 | ||
756 | * String++.cc: Don't include concat.h. | |
757 | * Makefile.am: Remove concat.cc and concat.h references. | |
758 | * concat.h: Remove. | |
759 | * concat.cc: Remove. | |
760 | ||
56c60dcc MB |
761 | 2003-03-09 Max Bowsher <maxb@ukf.net> |
762 | ||
763 | * bootstrap.sh: Add sanity check of current directory. | |
764 | Recurse into libgetopt++ if needed. | |
765 | ||
4f4b9def RC |
766 | 2003-03-09 Robert Collins <rbtcollins@hotmail.com> |
767 | ||
768 | * Update readme of bugs and wishes. | |
769 | ||
ed6137e5 MB |
770 | 2003-03-05 Max Bowsher <maxb@ukf.net> |
771 | ||
772 | * netio.cc (save_dialog): Allocate an empty string if the password is | |
773 | null, so that an empty password is accepted elsewhere in setup. | |
774 | (check_if_enable_ok): An empty password is OK. | |
775 | ||
e0aec95e MB |
776 | 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com> |
777 | ||
ed6137e5 | 778 | * PickView.cc (PickView::views): Add two new views for Skipped |
e0aec95e MB |
779 | packages and Installed Packages not requiring update. |
780 | (PickView::set_headers () ): Ditto. | |
781 | (PickView::clear_view (void) ): Ditto. | |
782 | (PickView::views::caption () ): Add two new captions for the new | |
783 | views added for Skipped and Installed Packages. | |
784 | (PickView::scroll () ): Modify Scroll Bar property to Disable | |
ed6137e5 | 785 | instead of disappearing when there is nothing to Scroll. |
e0aec95e MB |
786 | * PickView.h: Add two new views for Skipped packages and Installed |
787 | packages to public class view. | |
788 | * choose.cc (list_click () ): Modify Scroll Bar property to Disable | |
ed6137e5 | 789 | instead of disappearing when there is nothing to Scroll. |
e0aec95e MB |
790 | (listview_proc () ): Ditto. |
791 | (set_view_mode): Add two new views for Skipped Packages and Installed | |
792 | Packages not requiring update. Modify Scroll Bar property to Disable | |
793 | instead of disappearing when there is nothing to scroll. | |
794 | * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection | |
795 | Button and View Button Caption to make room for longer captions. | |
796 | ||
c7fb2f36 MB |
797 | 2003-03-04 Max Bowsher <maxb@ukf.net> |
798 | ||
799 | * compress_gz.cc (compress_gz::construct): | |
800 | Fix broken checkin dated 2002-07-03. | |
801 | ||
d5be1d23 MB |
802 | 2003-02-28 Max Bowsher <maxb@ukf.net> |
803 | ||
804 | * main.cc (set_default_sec): Add logging. | |
805 | ||
adaa168a MB |
806 | 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org> |
807 | ||
808 | * main.cc (set_default_dacl): Replace with set_default_sec. | |
809 | (set_default_sec): Attempt to change the default group to | |
810 | Users or Administrators if it is None, in addition to setting | |
811 | Everyone in the default DACL. | |
812 | (main): Call set_default_sec instead of set_default_dacl. | |
813 | ||
3a8d1127 MB |
814 | 2003-01-31 Max Bowsher <maxb@ukf.net> |
815 | ||
816 | * install.cc (install_one_source): Fix spacing in log message. | |
817 | ||
c7230a28 MB |
818 | 2003-01-19 Max Bowsher <maxb@ukf.net> |
819 | ||
820 | * resource.h (IDC_CHOOSE_KEEP): Define. | |
821 | * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP. | |
822 | * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[]. | |
823 | (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button. | |
824 | ||
ac949c48 MB |
825 | 2003-01-15 Max Bowsher <maxb@ukf.net> |
826 | ||
827 | * mkdir.cc [_CYGWIN_]: Implement what was pseudocode. | |
828 | * io_stream.h [__CYGWIN__]: Don't typedef ssize_t. | |
829 | * proppage.h: Include "win32.h" instead of <windows.h>. | |
830 | ||
4f618d88 MB |
831 | 2003-01-15 Max Bowsher <maxb@ukf.net> |
832 | ||
833 | * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option. | |
834 | ||
1606c4e9 MB |
835 | 2002-12-11 Abraham Backus <abraham@backus.com> |
836 | ||
837 | * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header, | |
838 | unless non-default. | |
839 | ||
c4e25cde MB |
840 | 2002-12-11 Max Bowsher <maxb@ukf.net> |
841 | ||
842 | * package_meta.cc: Change 'endl' to 'endLog' as appropriate. | |
843 | * package_version.cc: Ditto. | |
844 | ||
bfdf6ac2 MB |
845 | 2002-09-22 Max Bowsher <maxb@ukf.net> |
846 | ||
847 | * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'. | |
848 | * package_meta.h (packagemeta::getReadableCategoryList): Declare. | |
849 | * package_meta.cc (packagemeta::getReadableCategoryList): Implement. | |
850 | * PickPackageLine.cc (PickPackageLine::paint): Change to use | |
851 | getReadableCategoryList. | |
852 | Fix x2 argument to IntersectClipRect. | |
853 | ||
63c82708 RC |
854 | 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
855 | ||
856 | * window.h (Window::GetWindowRect): New method declaration. | |
857 | (Window::GetClientRect): Ditto. | |
858 | (Window::MoveWindow): Ditto. | |
859 | (Window::ScreenToClient): Ditto. | |
860 | * window.cc (REFLECTION_INFO): Remove. | |
861 | (ReflectionInfo): Remove. | |
862 | (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead | |
863 | of the horrid REFLECTION_INFO hack to hook the Window instance to the | |
864 | HWND instance. | |
865 | (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's | |
866 | available. | |
867 | (Window::Create): Change to use new WM_NCCREATE reflection procedure | |
868 | above. | |
869 | (Window::GetWindowRect): New method. | |
870 | (Window::GetClientRect): New method. | |
871 | (Window::MoveWindow): New method. | |
872 | (Window::CenterWindow): Use new methods, also specify "::" for some non- | |
873 | member functions with the same names. | |
874 | (Window::ScreenToClient): New method. | |
875 | ||
58983805 RC |
876 | 2002-11-26 Robert Collins <rbtcollins@hotmail.com> |
877 | ||
878 | * AntiVirus.cc: Change the short option again! It's now 'A'. | |
879 | * desktop.cc (etc_profile): Remove. | |
880 | (make_etc_profile): Remove. | |
881 | (uexists): Remove. | |
882 | (make_passwd_group): Remove. | |
883 | (do_desktop_setup): Don't call removed functions. | |
884 | ||
b2028692 RC |
885 | 2002-11-26 Robert Collins <rbtcollins@hotmail.com> |
886 | ||
887 | * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of | |
888 | Marcel's patch. | |
889 | ||
2d8e4784 RC |
890 | 2002-07-08 Marcel Telka <marcel@telka.sk> |
891 | ||
b2028692 | 892 | * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP |
2d8e4784 RC |
893 | reply (code 227) to the PASV command. |
894 | ||
3a87705e RC |
895 | 2002-11-26 Robert Collins <rbtcollins@hotmail.com> |
896 | ||
897 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage): | |
898 | Sort the packages db once all the new packages have been added. | |
899 | * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage): | |
900 | Declare this. | |
901 | ||
bd4e91a7 RC |
902 | 2002-11-26 Robert Collins <rbtcollins@hotmail.com> |
903 | ||
904 | * choose.cc (ChooserPage::OnNext): Remove extracted comment. | |
905 | * package_version.cc (processOneDependency): Return once selecting | |
906 | a package (bugfix to prevous rework). | |
907 | Log if the default trust fails the package specification. | |
908 | ||
f416a2b6 RC |
909 | 2002-11-26 Robert Collins <rbtcollins@hotmail.com> |
910 | ||
911 | * package_meta.h (packagemeta::logAllVersions): Declare. | |
912 | (packagemeta::trustLabel): Ditto. | |
913 | * choose.cc (ChooserPage::OnNext): Get each package to log all it's | |
914 | versions. | |
915 | * package_meta.cc (packagemeta::logAllVersions): Implement. | |
916 | (packagemeta::trustLabel): Ditto. | |
917 | ||
14485ab2 RC |
918 | 2002-11-25 Robert Collins <rbtcollins@hotmail.com> |
919 | ||
920 | * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict. | |
921 | ||
f9e903a3 RC |
922 | 2002-11-25 Robert Collins <rbtcollins@hotmail.com> |
923 | ||
924 | * AntiVirus.cc: New file. | |
925 | * AntiVirus.h: Ditto. | |
926 | * LogFile.cc: Include AntiVirus.h for class definition. | |
927 | (LogFile::exit): Trigger AntiVirus::AtExit(). | |
928 | * MakeFile.am(setup_SOURCES): Add AntiVirus files. | |
929 | * autoload.c: Declare Service Control Manager related API's. | |
930 | * main.cc: Include AntiVirus.h for class definition. | |
931 | (main): Add the AntiVirus page in. | |
932 | * res.rc: Define IDD_VIRUS. | |
933 | * resource.h: Define IDD_VIRUS related control ID's. | |
934 | * splash.h: Override OnNext. | |
935 | * splash.cc: Only show AntiVirus page when one has been detected. | |
936 | * source.cc: Ditto. | |
937 | ||
05c5b8a6 RC |
938 | 2002-11-25 Robert Collins <rbtcollins@hotmail.com> |
939 | ||
940 | * package_version.cc (DependencyProcessor): Create convenience class. | |
941 | (select): Extract version selection method. | |
942 | (processOneDependency): Check for a satisfactory trusted version | |
943 | first. | |
944 | ||
945 | 2002-11-10 Robert Collins <rbtcollins@hotmail.com> | |
15004270 RC |
946 | |
947 | * main.cc (main): Use the factory for LogFile. | |
948 | * String++.cc: Update to use sstream. | |
949 | (String::String): Use a ostringstream for libC++ 3.2. | |
950 | * LogFile.h (LogFile): Make createLogFile static. | |
951 | ||
05c5b8a6 | 952 | 2002-11-10 Robert Collins <rbtcollins@hotmail.com> |
51629951 RC |
953 | |
954 | * main.cc (main): Oops, pass LogSingleton a reference, not a pointer. | |
955 | ||
666bf37d RC |
956 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
957 | ||
958 | * Exception.h (Exception::what): Add throw() specification, | |
959 | to agree with libstdc++-v3. | |
960 | * Exception.cc (Exception::what): Ditto. | |
961 | * IniDBBuilderPackage.h: Add 'std::' where needed. | |
962 | * PickCategoryLine.h: Ditto. | |
963 | * category.h: Ditto. | |
964 | * package_db.h: Ditto. | |
965 | * package_meta.h: Ditto. | |
966 | * package_source.h: Ditto. | |
967 | * package_version.h: Ditto. | |
968 | * site.h: Ditto. | |
969 | * win32.h: Define NOMINMAX before including <windows.h>. | |
970 | * package_meta.cc: Add 'using namespace std;'. | |
971 | (packagemeta::set_requirements): Remove default parameter values | |
972 | from definition (gcc3 likes them only in declaration). | |
973 | * package_version.cc: Add 'using namespace std;'. | |
974 | (packageversion::set_requirements): Remove default parameter | |
975 | values from definition (gcc3 likes them only in declaration). | |
976 | ||
37decc22 RC |
977 | 2002-11-10 Robert Collins <rbtcollins@hotmail.com> |
978 | ||
979 | * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h | |
980 | header includes it. | |
981 | ||
982 | 2002-11-04 Max Bowsher <maxb@ukf.net> | |
983 | ||
984 | * compress_bz.h: #undef small before including bzlib.h - if we are | |
985 | going to hide the fact that we are _WIN32 from bzlib, then we need | |
986 | to #undef small for it as well (bad windows.h clash). | |
987 | ||
a55c8f45 RC |
988 | 2002-11-10 Robert Collins <rbtcollins@hotmail.com> |
989 | ||
990 | * localdir.cc: Update the extern LogFile to be a pointer. | |
991 | (save_local_dir): Change . to -> for the above. | |
992 | * main.cc (theFile): Change from an instance to a pointer. | |
993 | (main): Change . to -> for the above. | |
994 | ||
c83c52d8 RC |
995 | 2002-11-10 Robert Collins <rbtcollins@hotmail.com> |
996 | ||
997 | * LogFile.cc: use 'std::' where needed throughout. | |
998 | (LogFile::createLogFile): Implement a factory for LogFile. | |
999 | (LogFile::LogFile): Update for use with the factory, and to | |
1000 | handle the latest g++ library changes. | |
1001 | (LogFile::operator()): Ditto. | |
1002 | (LogFile::endEntry()): Ditto. | |
1003 | * LogFile.h: Ditto. | |
1004 | * LogSingleton.cc: Ditto. | |
1005 | * LogSingleton.h: Ditto. | |
1006 | ||
318af134 RC |
1007 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
1008 | ||
1009 | * String++.h: Add 'std::' where needed. | |
1010 | ||
6625e635 RC |
1011 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
1012 | ||
1013 | * IniDBBuilderPackage.cc: Add 'using namespace std;'. | |
1014 | * IniParseFindVisitor.cc: Ditto. | |
1015 | * LogFile.cc: Ditto. | |
1016 | * LogSingleton.cc: Ditto. | |
1017 | * PickView.cc: Ditto. | |
1018 | * String++.cc: Ditto. | |
1019 | * choose.cc: Ditto. | |
1020 | * download.cc: Ditto. | |
1021 | * find.cc: Ditto. | |
1022 | * install.cc: Ditto. | |
1023 | * io_stream.cc: Ditto. | |
1024 | * io_stream_file.cc: Ditto. | |
1025 | * package_db.cc: Ditto. | |
1026 | * root.cc: Ditto. | |
1027 | * site.cc: Ditto. | |
1028 | ||
955bf437 RC |
1029 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
1030 | ||
1031 | * LogSingleton.h: Add 'std::' where needed. | |
1032 | ||
b34fb59f RC |
1033 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
1034 | ||
1035 | * archive_tar_file.cc: Include <algorithm>. | |
1036 | Change min(a,b) to std::min(a,b) | |
1037 | * compress_bz.cc: Ditto. | |
1038 | * compress_gz.cc: Ditto. | |
1039 | ||
326fbcb8 RC |
1040 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
1041 | ||
1042 | * res.rc: Change a #-comment (invalid) to a //-comment. | |
1043 | ||
4361306f RC |
1044 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
1045 | ||
1046 | * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc. | |
1047 | (inilint_LDADD): Remove -lstd++. | |
1048 | (setup_LDADD): Ditto. | |
1049 | ||
05d7b7f2 RC |
1050 | 2002-09-22 Max Bowsher <maxb@ukf.net> |
1051 | ||
1052 | * IniDBBuilderPackage.cc: Update DEBUG code to current class | |
1053 | layout. | |
1054 | ||
f2ff9838 RC |
1055 | 2002-09-21 Robert Collins <rbtcollins@hotmail.com> |
1056 | ||
1057 | * choose.h: Add OnUnattended method. | |
1058 | * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained | |
1059 | control via command line options. | |
1060 | (DesktopSetupPage::OnUnattended): Implement. | |
1061 | (DesktopSetupPage::OnMessageApp): Implement. | |
1062 | * desktop.h (DesktopSetupPage::OnUnattended): declare. | |
1063 | (DesktopSetupPage::OnMessageApp): Ditto. | |
1064 | * download.cc (do_download_thread): Support unattended mode. | |
1065 | * install.cc (do_install_thread): Ditto. | |
1066 | * localdir.h: Ditto. | |
1067 | * main.cc (main): Ditto. | |
1068 | * net.cc (NetPage::OnUnattended): Ditto. | |
1069 | * net.h (NetPage::OnUnattended): Declare. | |
1070 | * proppage.cc (PropertyPage::DialogProc): Support unattended mode. | |
1071 | * proppage.h (PropertyPage::OnUnattended): Declare. | |
1072 | * root.cc (RootPage::OnInit): Support unattended mode. | |
1073 | (RootPage::OnUnattended): Implement. | |
1074 | * root.h (RootPage::OnUnattended): Declare. | |
1075 | * site.cc (register_saved_site): Extract Method from get_saved_sites. | |
1076 | (get_saved_sites): Remove common code for adding a site. | |
1077 | (SitePage::OnInit): Support unattended mode. | |
1078 | (SitePage::OnUnattended): Implement. | |
1079 | * site.h (SitePage::OnUnattended): Declare. | |
1080 | * source.cc (SourcePage::OnActivate): Support unattended mode. | |
1081 | (SourcePage::OnUnattended): Implement. | |
1082 | * source.h (SourcePage::OnUnattended): Declare. | |
1083 | * splash.h (SplashPage::OnUnattended): Declare. | |
1084 | * state.cc (unattended_mode): Declare. | |
1085 | * state.h (unattended_mode): Declare. | |
1086 | * threebar.h (ThreeBarProgressPage::OnUnattended): New method. | |
1087 | ||
707f3d66 RC |
1088 | 2002-09-21 Robert Collins <rbtcollins@hotmail.com> |
1089 | ||
1090 | * res.rc: Commit Harry Johnston's dialog caption patch. From July. | |
1091 | ||
ec13f13c RC |
1092 | 2002-07-15 Robert Collins <rbtcollins@hotmail.com> |
1093 | ||
1094 | * package_version.cc (packageversion::sources): Implement this. | |
1095 | * download.cc (do_download_thread): Support multiple files per package. | |
1096 | ||
e5662e0a RC |
1097 | 2002-07-15 Robert Collins <rbtcollins@hotmail.com> |
1098 | ||
1099 | * package_version.h (packageversion::sources): Support multiple files in | |
1100 | a single package version. | |
1101 | * package_version.cc (_packageversion::accessible): Ditto. | |
1102 | (packageversion::source): Ditto. | |
1103 | ||
60daae94 RC |
1104 | 2002-07-15 Robert Collins <rbtcollins@hotmail.com> |
1105 | ||
1106 | * iniparse.y: Implement support for multiple source files for a source | |
1107 | package. | |
1108 | * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto. | |
1109 | * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto. | |
1110 | * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto. | |
1111 | * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a | |
1112 | stub as preparation. | |
1113 | ||
4f591f9d RC |
1114 | 2002-07-13 Robert Collins <rbtcollins@hotmail.com> |
1115 | ||
1116 | * PickPackageLine.cc (PickPackageLine::click): Set requirements for | |
1117 | packages under all circumstances - slightly higher overheader, simpler | |
1118 | code. | |
1119 | * download.cc (do_download_thread): Correctly download source | |
1120 | packages. | |
1121 | * package_meta.cc (checkForInstalled): Remove. | |
1122 | (checkForUpgradeable): Ditto. | |
1123 | (checkForSatisfiable): Ditto. | |
1124 | (processOneDependency): Ditto. | |
1125 | (packagemeta::set_requirements): Move guts to packageversion. | |
1126 | * package_version.cc (checkForInstalled): Copied from package_meta.cc. | |
1127 | (checkForUpgradeable): Ditto. | |
1128 | (checkForSatisfiable): Ditto. | |
1129 | (processOneDependency): Ditto. | |
1130 | (packageversion::set_requirements): Ditto. | |
1131 | * package_version.h (packageversion::set_requirements): Declare. | |
1132 | ||
b1ff53ed RC |
1133 | 2002-07-13 Robert Collins <rbtcollins@hotmail.com> |
1134 | ||
1135 | * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement. | |
1136 | (IniDBBuilder::buildBeginBinary): Implement. | |
1137 | * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare. | |
1138 | (IniDBBuilder::buildBeginBinary): Ditto. | |
1139 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends): | |
1140 | Implement. | |
1141 | (IniDBBuilderPackage::buildBeginBinary): Ditto. | |
1142 | * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends): | |
1143 | Declare. | |
1144 | (IniDBBuilderPackage::buildBeginBinary): Ditto. | |
1145 | * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove | |
1146 | T_UNKNOWN. | |
1147 | * iniparse.y: Full support for parsing a debian Sources file in-line in | |
1148 | setup.ini. | |
1149 | * package_version.cc (packageversion::binaries): Implement. | |
1150 | * package_version.h (packageversion::binaries): Declare list of what | |
1151 | packages are created from a given source package. | |
1152 | (_packageversion::binaries): Ditto. | |
1153 | ||
233a3e17 RC |
1154 | 2002-07-10 Robert Collins <rbtcollins@hotmail.com> |
1155 | ||
1156 | * iniparse.y: Add basis for support for parsing a debian Sources file. | |
1157 | * inilex.l: Ditto. | |
1158 | ||
cfae3b8d RC |
1159 | 2002-07-09 Robert Collins <rbtcollins@hotmail.com> |
1160 | ||
1161 | Change custom container code for packagedb::packages to STL containers | |
1162 | throughout. | |
1163 | * IniDBBuilderPackage.cc: Ditto. | |
1164 | * PickView.cc: Ditto. | |
1165 | * choose.cc: Ditto. | |
1166 | * desktop.cc: Ditto. | |
1167 | * download.cc: Ditto. | |
1168 | * install.cc: Ditto. | |
1169 | * package_db.cc: Ditto. | |
1170 | * package_db.h: Ditto. | |
1171 | * Makefile.am: Remove list.h references. | |
1172 | * list.h: Remove. | |
1173 | ||
09130e58 RC |
1174 | 2002-07-08 Max Bowsher <maxb@ukf.net> |
1175 | ||
1176 | * PickView.cc (PickView::PickView): Set font of package list header to | |
1177 | the same as used in the rest of the package list. | |
1178 | ||
a75ed5ce RC |
1179 | 2002-07-08 Robert Collins <rbtcollins@hotmail.com> |
1180 | ||
1181 | * install.cc (NoReplaceOnReboot): New command line option to prevent | |
1182 | replacing in use files. | |
1183 | (install_one_source): Check the option and use it. | |
1184 | * README: Update TODO lists. | |
1185 | ||
0cf68afd RC |
1186 | 2002-07-08 Robert Collins <rbtcollins@hotmail.com> |
1187 | ||
1188 | * PickCategoryLine.cc: Change bucket to use STL container syntax | |
1189 | throughout. | |
1190 | (PickCategoryLine::paint): Use new Category type syntax. | |
1191 | * PickCategoryLine.h: Use STL vectors rather than custom containers | |
1192 | throughout. | |
1193 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory): | |
1194 | Use new add_category syntax. | |
1195 | * PickView.cc (PickView::insert_pkg): Use new Category type syntax. | |
1196 | (PickView::insert_category): Ditto. | |
1197 | (PickView::init_headers): Ditto. | |
1198 | * category.cc: Trim obsolete code. | |
1199 | * category.h: Replace interconnecting class with a typedef to | |
1200 | facilitate leveraging STL maps. | |
1201 | * choose.cc (fill_missing_category): Use updated pkg.add_category | |
1202 | syntax. | |
1203 | (default_trust): Use new Category type syntax. | |
1204 | (set_view_mode): Ditto. | |
1205 | (create_listview): Ditto. | |
1206 | * package_db.cc (categories): Ditto. | |
1207 | * package_db.h: Update headers list to include needed headers. | |
1208 | (packagedb::categories): Replace custom list with STL map. | |
1209 | * package_meta.cc: Use new Category type syntax throughout. | |
1210 | (packagemeta::add_category): Implement new syntax. | |
1211 | * package_meta.h: Remove commented out source. | |
1212 | (packagemeta::add_category): Update syntax to decouple interface from | |
1213 | packagedb. | |
1214 | ||
89374d4a CF |
1215 | 2002-07-06 Christopher Faylor <cgf@redhat.com> |
1216 | ||
1217 | * site.cc (do_download_site_info_thread): Correct spelling error. | |
1218 | ||
405d7186 RC |
1219 | 2002-07-06 Robert Collins <rbtcollins@hotmail.com> |
1220 | ||
1221 | * PickCategoryLine.h: Include required header list.h. | |
1222 | * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL | |
1223 | containers for listing of packages per category and vice verca. | |
1224 | * PickView.cc (PickView::insert_pkg): Ditto. | |
1225 | (PickView::insert_category): Ditto. | |
1226 | * String++.h (String::caseless): STL helper to allow trivial containers | |
1227 | of Strings with case insensitive comparisons. | |
1228 | * category.h: Adjust to use STL containers for listing of packages per | |
1229 | category and vice verca. | |
1230 | * choose.cc (fill_missing_category): Ditto. | |
1231 | (default_trust): Ditto. | |
1232 | (ChooserPage::OnNext): Ditto. | |
1233 | * package_meta.cc (CategoryPackage::~CategoryPackage): Remove. | |
1234 | (packagemeta::packagemeta): Adjust for new category list name. | |
1235 | (packagemeta::~packagemeta): Adjust to use STL containers for listing | |
1236 | of packages per category and vice verca. | |
1237 | (packagemeta::set_action): Ditto. | |
1238 | * package_meta.h (CategoryPackage): Remove. | |
1239 | (packagemeta): Adjust to use STL containers for listing of packages per | |
1240 | category and vice verca. | |
1241 | ||
080bec6e RC |
1242 | 2002-07-05 Robert Collins <rbtcollins@hotmail.com> |
1243 | ||
1244 | * io_stream.cc: Use STL containers rather than custom ones. | |
1245 | (io_stream::registerProvider): Ditto. | |
1246 | (findProvider): Ditto. | |
1247 | ||
3f34f364 RC |
1248 | 2002-07-05 Robert Collins <rbtcollins@hotmail.com> |
1249 | ||
1250 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource): | |
1251 | Use STL collections for download site collections. | |
1252 | (IniDBBuilderPackage::add_correct_version): Ditto. | |
1253 | (IniDBBuilderPackage::process_src): Ditto. | |
1254 | * PickPackageLine.cc (PickPackageLine::click): Use the packageversion | |
1255 | accessible() call to abstract package availability. | |
1256 | * choose.cc (scanAVersion): Use STL collections for download site | |
1257 | collections. | |
1258 | * download.cc (check_for_cached): Ditto. | |
1259 | (download_one): Ditto. | |
1260 | * package_meta.cc (packagemeta::set_action): Use the packageversion | |
1261 | accessible() call to abstract package availability. | |
1262 | * package_source.h: Use STL containers rather than custom containers. | |
1263 | (site): Create a == operator to allow STL container use. | |
1264 | (packagesource::sites): Use STL containers rather than custom | |
1265 | containers. | |
1266 | * package_version.cc (_packageversion::accessible): Use STL containers | |
1267 | for download site containers. | |
1268 | ||
e2cdf72c RC |
1269 | 2002-07-05 Robert Collins <rbtcollins@hotmail.com> |
1270 | ||
1271 | * LogFile.cc: Use STL containers rather than custom containers. | |
1272 | (filedef): Create == and < operators for STL use. | |
1273 | (files): Convert to an STL set. | |
1274 | (LogFile::setFile): Use STL operations on files. | |
1275 | (LogFile::exit): Ditto. | |
1276 | ||
3bac26a1 RC |
1277 | 2002-07-05 Robert Collins <rbtcollins@hotmail.com> |
1278 | ||
1279 | * ini.cc (do_remote_ini): Use STL collection for site collection. | |
1280 | * site.cc: Include site.h first to ensure it's parsable standalone. | |
1281 | Use STL algorithms. | |
1282 | (site_list): Convert to an STL container. | |
1283 | (all_site_list): Ditto. | |
1284 | (site_list_type::site_list_type): Implement copy constructor. | |
1285 | (site_list_type::operator=): Implement assignment operator. | |
1286 | (site_list_type::operator ==): Implement. | |
1287 | (site_list_type::operator <): Ditto. | |
1288 | (save_dialog): Use STL collection calls for site collection. | |
1289 | (save_site_url): Ditto. | |
1290 | (get_site_list): Ditto. | |
1291 | (get_saved_sites): Ditto. | |
1292 | (do_download_site_info_thread): Ditto. | |
1293 | (SitePage::OnNext): Ditto. | |
1294 | (SitePage::PopulateListBox): Ditto. | |
1295 | (SitePage::OnMessageCmd): Ditto. | |
1296 | * site.h: Use STL vectors instead of custom code. | |
1297 | (site_list_type::site_list_type): Declare. | |
1298 | (site_list_type::operator=): Ditto. | |
1299 | (site_list_type::operator ==): Ditto. | |
1300 | (site_list_type::operator !=): Ditto. | |
1301 | (site_list_type::operator <): Ditto. | |
1302 | (site_list_type::operator <=): Ditto. | |
1303 | (site_list_type::operator >): Ditto. | |
1304 | (site_list_type::operator >=): Ditto. | |
1305 | (site_list): Convert to an STL container. | |
1306 | (all_site_list): Ditto. | |
1307 | ||
528a8edb RC |
1308 | 2002-07-05 Robert Collins <rbtcollins@hotmail.com> |
1309 | ||
1310 | * choose.cc (default_trust): Check package accessibility before | |
1311 | triggering an install. (Suggested by Pavel). | |
1312 | ||
1313 | 2002-07-03 Pavel Tsekov <ptsekov@gmx.net> | |
1314 | ||
1315 | * compress_gz.cc (compress_gz::construct): Always initialize key members | |
1316 | to ensure the destructor does the right thing. | |
1317 | ||
4e868a01 RC |
1318 | 2002-07-03 Pavel Tsekov <ptsekov@gmx.net> |
1319 | ||
1320 | * filemanip.cc (parse_filename): Do not try to parse empty | |
1321 | strings (filenames). | |
1322 | * package_db.cc (packagedb::packagedb): For each line check if sscanf() | |
1323 | extracted good package name and filename. | |
1324 | ||
7f2b9277 RC |
1325 | 2002-07-03 Robert Collins <rbtcollins@hotmail.com> |
1326 | ||
1327 | * package_meta.cc (packagemeta::set_requirements): Automatically select | |
1328 | version of dependent packages that satisfies the requirements. | |
1329 | Use processOneDependency to trigger the install of those packages. | |
1330 | (checkForInstalled): Check that the package remains installed. | |
1331 | (processOneDependency): Helper function for dependent packages. | |
1332 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more | |
1333 | debug information. | |
1334 | Clear out all current state on new packages. | |
1335 | (IniDBBuilderPackage::add_correct_version): Copy the dependency list | |
1336 | across. | |
1337 | ||
84c4f5d1 RC |
1338 | 2002-07-02 Robert Collins <rbtcollins@hotmail.com> |
1339 | ||
1340 | * Makefile.am (inilint_SOURCES): Add PackageSpecification sources. | |
1341 | nb: inilint is still incomplete, as the packageversion code is not | |
1342 | ready for database-less linking. | |
1343 | * site.cc (get_site_list): When the same site is reentered by the user | |
1344 | replace the old one. (Suggested by John Marshall). | |
1345 | ||
64cd7f94 RC |
1346 | 2002-07-02 Robert Collins <rbtcollins@hotmail.com> |
1347 | ||
1348 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource): | |
1349 | Clear out package selections when generating implicit source packages. | |
1350 | * PackageSpecification.cc (PackageSpecification::satisfies): Implement. | |
1351 | (PackageSpecification::_operators::satisfies): Implement. | |
1352 | * PackageSpecification.h (PackageSpecification::_operators::satisfies): | |
1353 | Worker function for testing versions. | |
1354 | ||
3c196821 RC |
1355 | 2002-07-01 Robert Collins <rbtcollins@hotmail.com> |
1356 | ||
1357 | * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove. | |
1358 | * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto. | |
1359 | * IniDBBuilderPackage.cc: Use the STL algorithms. | |
1360 | Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor | |
1361 | functions for the same variable throughout. | |
1362 | (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members. | |
1363 | (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax, | |
1364 | and set an empty source package. | |
1365 | (IniDBBuilderPackage::buildPackageInstall): Use the new source member | |
1366 | to record an install package. | |
1367 | (IniDBBuilderPackage::buildPackageSource): Move source package logic | |
1368 | out from process_src, as it now occurs at separate times. | |
1369 | (IniDBBuilderPackage::buildPackageRequirement): Remove. | |
1370 | (IniDBBuilderPackage::buildSourceName): Use renamed package | |
1371 | specifiation accessor for clarity. | |
1372 | (IniDBBuilderPackage::buildSourceNameVersion): Ditto. | |
1373 | (IniDBBuilderPackage::add_correct_version): Use STL iterators rather | |
1374 | than custom code. | |
1375 | Remove source package references. | |
1376 | (IniDBBuilderPackage::process_src): Remove source package code as it's | |
1377 | now handled separately. | |
1378 | Set Path information before merging versions, to prevent dangling | |
1379 | pointers. | |
1380 | * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement): | |
1381 | Remove. | |
1382 | (IniDBBuilderPackage::cpv): Remove. | |
1383 | (IniDBBuilderPackage::cbpv): New generic binary working variable. | |
1384 | (IniDBBuilderPackage::cspv): Ditto, but for source packages. | |
1385 | (IniDBBuilderPackage::csp): Source package variable for disjoint | |
1386 | source packages. | |
1387 | * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code | |
1388 | to compile. If it compiles cleanly in gcc 3.1, then reinstate. | |
1389 | * PickPackageLine.cc: Adjust packageversion accessors to the new | |
1390 | reference calls. (i.e. -> to .) throughout. | |
1391 | (PickPackageLine::paint): Use accessible() for clarity. | |
1392 | Use new split out source package logic. | |
1393 | (PickPackageLine::click): Ditto. | |
1394 | * PickView.cc (PickView::init_headers): Adjust packageversion accessors | |
1395 | to the new reference calls. (i.e. -> to .) throughout. | |
1396 | Use new split out source package logic. | |
1397 | * choose.cc: Don't depend on a specific package type. | |
1398 | Adjust packageversion accessors to the new reference calls. (i.e. -> to | |
1399 | .) throughout. | |
1400 | (set_existence): Use accessible () for clarity. | |
1401 | (default_trust): Simplify a little. | |
1402 | (scanAVersion): Factored out code from scan_downloaded_files for | |
1403 | clarity. | |
1404 | (scan_downloaded_files): Factor out inner loop for clarity. | |
1405 | (ChooserPage::OnNext): Don't dump the dependency list, | |
1406 | it's parsing is robust now!. | |
1407 | * cygpackage.cc (createInstance): Use a factory method to create new | |
1408 | objects. | |
1409 | (cygpackage::cygpackage): Make this private for use by the factory. | |
1410 | (cygpackage::setCanonicalVersion): Renamed from set_canonical_version. | |
1411 | Remove key usage as it's obsolete. | |
1412 | * cygpackage.h (cygpackage): Inherit from _packageversion, not | |
1413 | packageversion. | |
1414 | (cygpackage::createInstance): New factory. | |
1415 | (cygpackage::cygpackage): Make private. | |
1416 | * desktop.cc (make_passwd_group): Use new packageversion reference. | |
1417 | * download.cc (do_download_thread): Use changeRequested() for clarity. | |
1418 | Use new packageversion reference calls. | |
1419 | * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off | |
1420 | requires code. | |
1421 | * install.cc: Adjust -> to ., and use the new accessor functions for | |
1422 | packageversion throughout. | |
1423 | * package_db.cc: Adjust -> to ., and use the new accessor functions for | |
1424 | packageversion throughout. | |
1425 | (packagedb::packagedb): Use the new cygpackage factory. | |
1426 | (packagedb::flush): Leverage String to remove buffer overflow chance in | |
1427 | sprintf. | |
1428 | (packagedb::findBinary): Find a binary meta package that has a version | |
1429 | matching a given specification. | |
1430 | (packagedb::findSource): Ditto, but for source. | |
1431 | * package_db.h (packagedb::findBinary): Declare. | |
1432 | (packagedb::findSource): Ditto. | |
1433 | * package_meta.cc: Adjust packageversion accessors to the new | |
1434 | reference calls. (i.e. -> to .) throughout. | |
1435 | Include the package_meta header first to ensure it parses standalone. | |
1436 | Use the STL algorithms. | |
1437 | (packagemeta::packagemeta): Create a copy constructor to allowing | |
1438 | cloning binary package metadata to source package metadata. | |
1439 | (packagemeta::~packagemeta): Use the STL coleltion code rather than | |
1440 | custom collection code. | |
1441 | (packagemeta::add_version): Ditto. | |
1442 | (packagemeta::set_installed): Ditto. | |
1443 | (packagemeta::SDesc): Ditto. | |
1444 | (hasSDesc): Helper function for find_if. | |
1445 | (checkForInstalled): Ditto. | |
1446 | (checkForUpgradeable): Ditto. | |
1447 | (checkForSatisfiable): Ditto. | |
1448 | (packagemeta::action_caption): Update for split out source packages. | |
1449 | (packagemeta::set_action): Ditto. | |
1450 | (packagemeta::set_requirements): Support multi-valued dependency | |
1451 | lists - a|b & c|d - with versioned package specifications. | |
1452 | (packagemeta::accessible): Helper member to improve abstraction. | |
1453 | (packagemeta::sourceAccessible): Ditto. | |
1454 | * package_meta.h: Adjust packageversion accessors to the new | |
1455 | reference calls. (i.e. "->" to "." and"*" to "" ) throughout. | |
1456 | (packagemeta::packagemeta): Declare copy constructor. | |
1457 | Remove self initialising members. | |
1458 | (packagemeta::set_action): Update parameters for new packageversion. | |
1459 | (packagemeta::trustp): Ditto. | |
1460 | (packagemeta::versions): Becomes an STL set. | |
1461 | * package_source.h (packagesource::Cached): Const correctness change. | |
1462 | * package_version.cc: Rewrite the packageversion interface to remove | |
1463 | the cygpackage nonvirtual members, and provide a copy by value, | |
1464 | pointer semantics reference counting wrapper class to ease use and | |
1465 | comparison of packageversions. | |
1466 | Change existing packageversion class to _packageversion throughout. | |
1467 | (_defaultversion): A trivial concrete class to prevent specialcasing | |
1468 | the default constructor for packageversion; | |
1469 | (packageversion::packageversion): Implement. | |
1470 | (packageversion::~packageversion): Ditto. | |
1471 | (packageversion::operator=): Ditto. | |
1472 | (packageversion::operator !): Ditto. | |
1473 | (packageversion::operator bool): Ditto. | |
1474 | (packageversion::operator ==): Ditto. | |
1475 | (packageversion::operator !=): Ditto. | |
1476 | (packageversion::operator <): Ditto. | |
1477 | (packageversion::Name): Ditto. | |
1478 | (packageversion::Canonical_version): Ditto. | |
1479 | (packageversion::setCanonicalVersion): Ditto. | |
1480 | (packageversion::getfirstfile): Ditto. | |
1481 | (packageversion::getnextfile): Ditto. | |
1482 | (packageversion::SDesc): Ditto. | |
1483 | (packageversion::set_sdesc): Ditto. | |
1484 | (packageversion::LDesc): Ditto. | |
1485 | (packageversion::set_ldesc): Ditto. | |
1486 | (packageversion::sourcePackage): Ditto. | |
1487 | (packageversion::sourcePackageSpecification): Ditto. | |
1488 | (packageversion::setSourcePackageSpecification): Ditto. | |
1489 | (packageversion::depends): Ditto. | |
1490 | (packageversion::predepends): Ditto. | |
1491 | (packageversion::recommends): Ditto. | |
1492 | (packageversion::suggests): Ditto. | |
1493 | (packageversion::replaces): Ditto. | |
1494 | (packageversion::conflicts): Ditto. | |
1495 | (packageversion::provides): Ditto. | |
1496 | (packageversion::picked): Ditto. | |
1497 | (packageversion::pick): Ditto. | |
1498 | (packageversion::changeRequested): Ditto. | |
1499 | (packageversion::uninstall): Ditto. | |
1500 | (packageversion::source): Ditto. | |
1501 | (packageversion::accessible): Ditto. | |
1502 | (_packageversion::sourcePackage): Ditto. | |
1503 | (_packageversion::accessible): Ditto. | |
1504 | (_packageversion::changeRequested): Ditto. | |
1505 | * package_version.h: Rewrite the packageversion interface to remove | |
1506 | the cygpackage nonvirtual members, and provide a copy by value, | |
1507 | pointer semantics reference counting wrapper class to ease use and | |
1508 | comparison of packageversions. | |
1509 | Change existing packageversion class to _packageversion throughout. | |
1510 | (Dependency): Remove. | |
1511 | (packageversion): New wrapper class. | |
1512 | (_packageversion): Renamed from packageversion. | |
1513 | (_packageversion::setCanonicalVersion): New method. | |
1514 | (_packageversion::sourcePackage): Ditto. | |
1515 | (_packageversion::sourcePackageSpecification): Ditto. | |
1516 | (_packageversion::setSourcePackageSpecification): Ditto. | |
1517 | (_packageversion::changeRequested): Ditto. | |
1518 | (_packageversion::bin): Rename to source. | |
1519 | (_packageversion::src): Remove. | |
1520 | (_packageversion::accessible): New method. | |
1521 | (_packageversion::references): Allow reference counting. | |
1522 | (_packageversion::sourceVersion): Cached the best-match source | |
1523 | package version. | |
1524 | ||
387cb501 RC |
1525 | 2002-06-27 Robert Collins <rbtcollins@hotmail.com> |
1526 | ||
1527 | * compress_bz.h (compress_bz::position): Track how much has been read. | |
1528 | * compress_bz.cc (compress_bz::compress_bz): And initialise it. | |
1529 | (compress_bz::read): Track amount read by the client. | |
1530 | (compress_bz::tell): And report it when asked. | |
1531 | ||
7d702af3 RC |
1532 | 2002-06-27 Robert Collins <rbtcollins@hotmail.com> |
1533 | ||
1534 | * Makefile.am (snapshot): Automate snapshot creation some more. | |
1535 | ||
08cd08c3 RC |
1536 | 2002-06-27 Robert Collins <rbtcollins@hotmail.com> |
1537 | ||
1538 | * msg.cc (msg): Use vsnprintf to avoid buffer overflows. | |
1539 | (mbox): Ditto. | |
1540 | * ini.cc (fprintf): Ditto. | |
1541 | * log.cc (log): Ditto. | |
1542 | * package_db.cc (packagedb::sourcePackages): Split out source packages | |
1543 | from binary packages. | |
1544 | * package_db.h: Ditto. | |
1545 | ||
aa1e3b4d RC |
1546 | 2002-06-27 Robert Collins <rbtcollins@hotmail.com> |
1547 | ||
1548 | * PackageSpecification.h: New file. Abstracts the ability to refer | |
1549 | to another package, by name, or name and version. | |
1550 | * PackageSpecification.cc: Ditto. | |
1551 | * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify. | |
1552 | (IniDBBuilder::buildPackageSource): Ditto. | |
1553 | (IniDBBuilder::buildBeginDepends): New method for versioned | |
1554 | dependencies. | |
1555 | (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be | |
1556 | satisfied before pre-install. | |
1557 | (IniDBBuilder::buildPriority): New method, for getting the package | |
1558 | Priority. | |
1559 | (IniDBBuilder::buildInstalledSize): How much disk space does it need? | |
1560 | (IniDBBuilder::buildMaintainer): Who maintains the package? | |
1561 | (IniDBBuilder::buildArchitecture): What platform is it for? | |
1562 | (IniDBBuilder::buildInstallSize): How big is the binary download? | |
1563 | (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary? | |
1564 | (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package? | |
1565 | (IniDBBuilder::buildBeginRecommends): What other packages are | |
1566 | recommended with this one? | |
1567 | (IniDBBuilder::buildBeginSuggests): And suggested? | |
1568 | (IniDBBuilder::buildBeginReplaces): What packages does this replace? | |
1569 | (IniDBBuilder::buildBeginConflicts): And collide with? | |
1570 | (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete | |
1571 | package names) does this provide? | |
1572 | (IniDBBuilder::buildDescription): Grab a multi line description one | |
1573 | line at a time. | |
1574 | (IniDBBuilder::buildSourceName): What source package should be used to | |
1575 | install the source for this binary package? | |
1576 | (IniDBBuilder::buildSourceNameVersion): Is a specific version needed? | |
1577 | (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a | |
1578 | list of package specifications. | |
1579 | (IniDBBuilder::buildPackageListOrNode): Add another OR clause. | |
1580 | (IniDBBuilder::buildPackageListOperator): Add a versioning operator | |
1581 | to the current specification. | |
1582 | (IniDBBuilder::buildPackageListOperatorVersion): What version does the | |
1583 | operator act on? | |
1584 | * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes. | |
1585 | * IniDBBuilderPackage.cc: As for IniDBBuilder.cc. | |
1586 | (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members. | |
1587 | (IniDBBuilderPackage::process_src): Streamline and split out | |
1588 | functionality. | |
1589 | (IniDBBuilderPackage::setSourceSize): From process_src. | |
1590 | * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes. | |
1591 | (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation. | |
1592 | (IniDBBuilderPackage::currentOrList): Track the current Or list. | |
1593 | (IniDBBuilderPackage::currentAndList): Track the current And list. | |
1594 | * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion | |
1595 | progress on parsing. | |
1596 | (IniParseFeedback::iniName): Tell what ini filename we are currently | |
1597 | processing. | |
1598 | * IniParseFeedback.h: Declare IniParseFeedback.cc changes. | |
1599 | * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor): | |
1600 | Make the feedback object non-const to allow mutating methods which are | |
1601 | needed when the object has state. | |
1602 | (IniParseFindVisitor::visitFile): Tell the caller the name of each | |
1603 | .ini found. | |
1604 | Initialise the parser with the feedback object to allow it to tell of | |
1605 | progress. | |
1606 | * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes. | |
1607 | * Makefile.am (inilinst_SOURCES): Add more requisite classes. | |
1608 | (setup_SOURCES): Add the new PackageSpecification sources. | |
1609 | * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new | |
1610 | builder syntax to setup binary package details. | |
1611 | * choose.cc: Use the LogSingleton calls throughout. | |
1612 | * configure.in: Create the INILINT substitution correctly for recent | |
1613 | autotool configurations. | |
1614 | * cygpackage.cc (cygpackage::getfirstfile): Return an empty String | |
1615 | rather than a string built from an int. Thanks to Pavel Tsekov for | |
1616 | identifying the bug. | |
1617 | (cygpackage::getnextfile): Ditto. | |
1618 | * download.cc: Use LogSIngletion calls throughout. | |
1619 | (validateCachedPackage): A refactoring of the | |
1620 | check_for_cached code to eliminate duplciation. | |
1621 | (check_for_cached): Use validateCachedPackage to check packages. | |
1622 | * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and | |
1623 | parsing progress. | |
1624 | (do_remote_ini): Ditto. | |
1625 | * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow | |
1626 | progress reporting. | |
1627 | * inilex.l: Identify new symbols - operators, and multi line plain text. | |
1628 | Releases files. | |
1629 | * inilintmain.cc (show_help): Provide basic infomation on inilint. | |
1630 | * iniparse.y: Adjust for the new builder syntax, and process debian | |
1631 | Release files. | |
1632 | * io_stream_file.cc: Always include mkdir.h. | |
1633 | * list.h: Factor index location into a private routine. | |
1634 | (list::findindex): Implement this. | |
1635 | * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw | |
1636 | builds. NB: This breaks cygwin build functionality still. | |
1637 | * package_meta.cc: Use the LogSingleton calls throughout. | |
1638 | (packagemeta::set_requirements): Adjust for object changes in | |
1639 | dependencies. | |
1640 | * package_meta.h (packagemeta::packagemeta): Initialise new members. | |
1641 | (packagemeta::architecture): What platform does this package run on? | |
1642 | This may need to move in the future to a per packagefile object. | |
1643 | (packagemeta::priority): What priority does this package have? | |
1644 | * package_source.h (packagesource::packagesource): Initialise new | |
1645 | members. | |
1646 | (packagesource::installedSize): How much space does the package need? | |
1647 | (packagesource::setInstalledSize): Tell the amount. | |
1648 | (packagesource::_installedSize): And store it. | |
1649 | * package_version.cc (packageversion::sourcePackage): return the | |
1650 | source package. | |
1651 | (packageversion::setSourcePackage): And set it. | |
1652 | * package_version.h: Declare the package_version.cc changes. | |
1653 | (packageversion::depends): New package specification AND list. | |
1654 | (packageversion::predepends): Ditto. | |
1655 | (packageversion::recommends): Ditto. | |
1656 | (packageversion::suggests): Ditto. | |
1657 | (packageversion::replaces): Ditto. | |
1658 | (packageversion::conflicts): Ditto. | |
1659 | (packageversion::provides): Ditto. | |
1660 | (packageversion::sourcePackage): What source package is needed? | |
1661 | * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside | |
1662 | the bottom bar. | |
1663 | * threebar.h: Declare the threebar.cc change. | |
1664 | ||
1665 | 2002-06-27 John Marshall <johnm@falch.net> | |
1666 | ||
1667 | * res.rc (SETUPINI_MISSING): Make trailing spaces visible. | |
1668 | * site.cc (SitePage::OnMessageCmd): Ditto | |
1669 | ||
2a994e0b RC |
1670 | 2002-06-15 Robert Collins <rbtcollins@hotmail.com> |
1671 | ||
1672 | * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data. | |
1673 | ||
ceff7035 RC |
1674 | 2002-06-15 Robert Collins <rbtcollins@hotmail.com> |
1675 | ||
1676 | * package_meta.cc (packagemeta::set_action): When installing packages | |
1677 | with no binaries, choose the source package. | |
1678 | ||
9bd27040 RC |
1679 | 2002-06-10 Robert Collins <rbtcollins@hotmail.com> |
1680 | ||
1681 | * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max | |
1682 | Bowshers fix for the crash with a root level setup.ini. | |
1683 | * README: Update todos. | |
1684 | ||
1dcff4a0 RC |
1685 | 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de> |
1686 | ||
1687 | * archive_tar.cc (archive_tar::next_file_name()): fixed broken | |
1688 | GNU long name extension support. | |
1689 | ||
0773e4f2 RC |
1690 | 2002-05-27 Robert Collins <rbtcollins@hotmail.com> |
1691 | ||
1692 | * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't | |
1693 | unescape 0 length strings. | |
1694 | ||
a828d772 RC |
1695 | 2002-05-20 Robert Collins <rbtcollins@hotmail.com> |
1696 | ||
1697 | * package_meta.cc (packagemeta::set_action): Don't allow reinstall | |
1698 | when local with no cached file, and install the default source if the | |
1699 | default version has no binary. | |
1700 | ||
67829ce0 RC |
1701 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1702 | ||
1703 | * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New | |
1704 | method. | |
1705 | (IniDBBuilderPackage::buildVersion): Provide a warning when a newer | |
1706 | setup version created the ini file. | |
1707 | * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New | |
1708 | method. | |
1709 | * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new | |
1710 | feedback strategy. | |
1711 | * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor): | |
1712 | Require a feedback strategy. | |
1713 | * Makefile.am (setup_SOURCES): Add IniParseFeedback sources. | |
1714 | * Makefile.in: Regenerate. | |
1715 | ||
4849e2fc RC |
1716 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1717 | ||
1718 | * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes | |
1719 | trick to delete read only files. | |
1720 | * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to | |
1721 | remove files. | |
1722 | * Makefile.am (release): Tweak to be more helpful. | |
1723 | * Makefile.in: Regenerate. | |
1724 | ||
7cb35117 RC |
1725 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1726 | ||
1727 | * Makefile.am (release): Tweak to be more helpful. | |
1728 | * Makefile.in: Regenerate. | |
7cb35117 | 1729 | |
5090e3ce RC |
1730 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1731 | ||
1732 | * Makefile.am (release): Tweak to be more helpful. | |
1733 | * Makefile.in: Regenerate. | |
1734 | ||
9e9b881a RC |
1735 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1736 | ||
1737 | * choose.cc (scan_downloaded_files): When a non-installed version | |
1738 | has neither bin nor src cached files for local installs, | |
1739 | remove the version from availability. | |
1740 | ||
ea36e064 RC |
1741 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1742 | ||
1743 | * ini.cc (do_remote_ini): Save uncompressed ini's correctly. | |
1744 | ||
b401ef47 RC |
1745 | 2002-05-19 Robert Collins <rbtcollins@hotmail.com> |
1746 | ||
1747 | * rsync: New support library, contains librsync. This is not (yet) | |
1748 | rsync interoperable. | |
1749 | * configure.in: --with-rsync to enable rsync support. (Not complete). | |
1750 | * Makefile.am: Enable building with rsync. | |
1751 | * Makefile.in: Regenerate. | |
1752 | * configure: Ditto. | |
1753 | * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as | |
1754 | an array. | |
1755 | (IniDBBuilder::buildPackageSource): Ditto. | |
1756 | * IniDBBuilder.h: Ditto. | |
1757 | * IniDBBuilderPackage.cc: Ditto. | |
1758 | * IniDBBuilderPackage.h: Ditto. | |
1759 | * FindVisitor.cc: New file. | |
1760 | * FindVisitor.h: New file, interface for visiting a file system | |
1761 | aggregate. | |
1762 | * IniParseFindVisitor.cc: New file. | |
1763 | * IniParseFindVisitor.h: New file, concrete FindVisitor that parses | |
1764 | found setup.ini's. | |
1765 | * README: Update TODO's. | |
1766 | * String++.cc (String::String): New constructor for <string> inter- | |
1767 | operability. | |
1768 | (String::substr): New method. | |
1769 | * String++.h: Ditto. | |
1770 | * choose.cc (scan2): Remove. | |
1771 | (scan_downloaded_files): Simplify. | |
1772 | * dialog.h: Include parsing pre-requirements. | |
1773 | * download.cc (check_for_cached): Fullname was used incorrectly - fix. | |
1774 | * filemanip.cc (parse_filename): -src packages where incorrectly parsed. | |
1775 | * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant. | |
1776 | * find.h: Ditto. | |
1777 | * fromcwd.cc: Remove unneeded includes. | |
1778 | (is_test_version): Remove. | |
1779 | (found_file): Remove. | |
1780 | (SetupFindVisitor): Trivial visitor to detect setup.ini's. | |
1781 | (found_ini): Remove. | |
1782 | (do_fromcwd): Remove commented code that has be replaced elsewhere. | |
1783 | * ini.cc (local_ini): Remove. | |
1784 | (findBuilder): Remove. | |
1785 | (find_routine): Remove. | |
1786 | (do_local_ini): Use new IniParseFindVisitor. | |
1787 | * iniparse.y: Typecase MD5 arrays, as we know they are allocated as | |
1788 | unsigned char. | |
1789 | * postinstall.cc: Remove non-core includes. | |
1790 | (run_script_in_postinstall): Remove. | |
1791 | (RunFindVisitor): Trivial Visitor, runs each found script. | |
1792 | (do_postinstall): Use new find syntax. | |
1793 | ||
0d4e0aad CF |
1794 | 2002-05-14 Christopher Faylor <cgf@redhat.com> |
1795 | ||
1796 | * ini.cc (find_routine): Don't clear buffer it it's NULL. | |
1797 | ||
1798 | 2002-05-14 Christopher Faylor <cgf@redhat.com> | |
1799 | ||
1800 | * filemanip.h (trail): Declare. | |
1801 | * filemanip.cc (trail): New function. | |
1802 | (find_tar_ext): Use trail() instead of strstr(). | |
1803 | * fromcwd.cc (check_ini): Ditto. | |
1804 | * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it | |
1805 | should now be fully qualified. Set ini_filename. Reset error_buf and | |
1806 | error_count for any subsequent ini file parsing. | |
1807 | (ini_filename): New static variable for parse error reporting. | |
1808 | (yyerror): Use full path of setup.ini in error message. Subtract one | |
1809 | from line number if at bol. | |
1810 | * find.cc (found_part): Eliminate. | |
1811 | (find_sub): Call for_each with full path found rather than just file | |
1812 | component. | |
1813 | (find): Don't calculate found_part. | |
1814 | * inilex.l (ini_init): Flush input buffer and reset line number. | |
1815 | (yybol): New function. Exports YY_AT_BOL. | |
1816 | * iniparse.y: Increase stack depth to allow more tokens to be processed. | |
1817 | (yyparse): Remove newline from error condition to allow subsequent | |
1818 | per-line error processing to proceed normally. | |
1819 | ||
1820 | 2002-05-14 Christopher Faylor <cgf@redhat.com> | |
1821 | ||
1822 | * find.cc (find_sub): Be more defensive in preserving trailing parts of | |
1823 | components when doing recursive directory searches or calling user | |
1824 | supplied for_each(). | |
1825 | * ini.cc (find_routine): Don't assume that any path name with | |
1826 | "setup.ini" in it is actually a setup.ini file. Only honor trailing | |
1827 | components. Copy path argument to temporary storage when unescaping | |
1828 | to prevent nuking of argument. | |
1829 | ||
874c569a RC |
1830 | 2002-05-12 Robert Collins <rbtcollins@hotmail.com> |
1831 | ||
1832 | * CONTRIBUTORS: New file. | |
1833 | ||
f6a81f69 RC |
1834 | 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
1835 | ||
1836 | * choose.cc: Run indent. | |
1837 | (nextbutton): Remove static variable. | |
1838 | (default_trust): Remove use of nextbutton. | |
1839 | (set_view_mode): Ditto. | |
1840 | (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so | |
1841 | rbset() sets the prev/next/curr radio buttons properly. | |
1842 | (dialog_cmd): Delete function. | |
1843 | (dialog_proc): Delete function. Move WM_INITDIALOG functionality to | |
1844 | ChooserPage::OnInit. | |
1845 | (do_choose): Delete function. Move pre-DialogBox() code to | |
1846 | ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext. | |
1847 | (WM_APP_START_CHOOSE): Remove define. | |
1848 | (WM_APP_CHOOSE_IS_FINISHED): Remove define. | |
1849 | (do_choose_thread): Delete function. | |
1850 | (ChooserPage::OnActivate): Delete method. | |
1851 | (ChooserPage::OnMessageApp): Delete method. | |
1852 | (ChooserPage::OnInit): New method. | |
1853 | (ChooserPage::OnNext): New method. | |
1854 | (ChooserPage::OnBack): New method. | |
1855 | (ChooserPage::OnMessageCmd): New method. | |
1856 | * choose.h: Run indent. | |
1857 | (ChooserPage::OnMessageApp): Delete declaration. | |
1858 | (ChooserPage::OnActivate): Ditto. | |
1859 | (ChooserPage::OnMessageCmd): New declaration. | |
1860 | (ChooserPage::OnInit): Ditto. | |
1861 | (ChooserPage::OnNext): Ditto. | |
1862 | (ChooserPage::OnBack): Ditto. | |
1863 | * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER | |
1864 | with IDD_CHOOSE. | |
1865 | * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE. | |
1866 | * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE. | |
1867 | * res.rc (IDD_CHOOSE): Remove dialog template. | |
1868 | (IDD_CHOOSER): Alter dialog template to fit wizard size and format. | |
1869 | ||
74617327 RC |
1870 | 2002-05-12 Robert Collins <rbtcollins@hotmail.com> |
1871 | ||
1872 | * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing | |
1873 | corrupt log file entries. | |
1874 | * geturl.cc: Convert to the new LogSingleton logging. | |
1875 | ||
3272d625 RC |
1876 | 2002-05-12 Robert Collins <rbtcollins@hotmail.com> |
1877 | ||
1878 | * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to | |
1879 | setup.ini. | |
1880 | ||
fc687221 RC |
1881 | 2002-05-12 Robert Collins <rbtcollins@hotmail.com> |
1882 | ||
1883 | * geturl.h: Declare getUrlToStream. | |
1884 | * geturl.cc (getUrlToStream): New function. | |
1885 | (get_url_to_membuf): Refactor to use getUrlToStream. | |
1886 | ||
902c8a3f RC |
1887 | 2002-05-11 Robert Collins <rbtcollins@hotmail.com> |
1888 | ||
1889 | * Makefile.am: Add a release target to automate some of the routine | |
1890 | work. | |
1891 | * Makefile.in: Regenerate. | |
1892 | ||
2ab26cdb RC |
1893 | 2002-05-11 Robert Collins <rbtcollins@hotmail.com> |
1894 | ||
1895 | * choose.cc (scan_downloaded_files): On local installs remove all | |
1896 | mirror sites if no cached copy of a package is found. | |
1897 | ||
94852d65 RC |
1898 | 2002-05-10 Robert Collins <rbtcollins@hotmail.com> |
1899 | ||
1900 | * Makefile.in: Regenerate. | |
1901 | * iniparse.y: Use left recursion, not right in the lines rule to | |
1902 | avoid stack overflows. | |
1903 | * README: Update TODO's. | |
1904 | * io_stream_file.cc: Native builds need to include sys/stat.h | |
1905 | ||
3548fbc3 RC |
1906 | 2002-05-06 John Marshall <jmarshall@acm.org> |
1907 | ||
1908 | * site.cc (SitePage::OnMessageCmd): recalculate navigation | |
1909 | button activation when "Add" is pressed. | |
1910 | (SitePage::CheckControlsAndDisableAccordingly): tweak comment. | |
1911 | ||
1912 | 2002-05-07 Robert Collins <rbtcollins@hotmail.com> | |
2b48ecd0 RC |
1913 | |
1914 | * Makefile.am (inlint_SOURCES): Add conditional objects to inilint | |
1915 | depending on platform. | |
1916 | Add file:// support. | |
1917 | * configure.in: Set conditional MINGWTARGET if compiling against mingw | |
1918 | libraries. | |
1919 | * Makefile.in: Regenerate. | |
1920 | * configure: Ditto. | |
1921 | * io_stream_file.cc: Only use win32 calls when building for mingw. | |
1922 | ||
19911586 RC |
1923 | 2002-05-05 Robert Collins <rbtcollins@hotmail.com> |
1924 | ||
1925 | * Makefile.am (noinst_PROGRAMS): Make inilint configurable. | |
1926 | * configure.in: Ditto. | |
1927 | Fix incorrect header checking syntax. | |
1928 | * aclocal.m4: Regenerate. | |
1929 | * configure: Regenerate. | |
1930 | * Makefile.in: Regenerate. | |
1931 | * io_stream.cc: Remove platform specific and provider specific code. | |
1932 | (io_stream::registerProvider): New method, registers a Url provider with | |
1933 | the io_stream code. | |
1934 | Make all methods consistently throw invalid_argument exceptions when | |
1935 | a provider that is requested is not present. | |
1936 | (findProvider): New private function, finds a provider. | |
1937 | * io_stream.h: Declare io_stream::registerProvider. | |
1938 | * io_stream_cygfile.cc: Create a Provider class to register with | |
1939 | io_stream.cc. | |
1940 | * io_stream_file.cc: Ditto. | |
1941 | * archive.cc: Remove unneeded includes. | |
1942 | * archive_tar.cc: Remove unneeded includes. | |
1943 | * archive_tar.h: Add required include. | |
1944 | * archive_tar_file.cc: Remove unneded includes. | |
1945 | * choose.cc: Remove unneeded includes: | |
1946 | ||
bf4ffcd9 RC |
1947 | 2002-05-04 Robert Collins <rbtcollins@hotmail.com> |
1948 | ||
1949 | * io_stream.cc: Use the new log interface thruout. | |
1950 | ||
9f4a0c62 RC |
1951 | 2002-05-04 Robert Collins <rbtcollins@hotmail.com> |
1952 | ||
1953 | * log.cc (log): Reimplement via LogSingleton. | |
1954 | (log_save): Remove. | |
1955 | (exit_setup): Remove. | |
1956 | * log.h (log_save): Remove. | |
1957 | (exit_setup): Remove. | |
1958 | * LogSingleton.cc: New file. | |
1959 | * LogSingleton.h: New file. | |
1960 | * LogFile.cc: New file. | |
1961 | * LogFile.h: New file. | |
1962 | * Makefile.am (inilint_SOURCES): Add the new log interface. | |
1963 | (setup_SOURCES): Add the new log interface and the concrete File | |
1964 | implementation. | |
1965 | * Makefile.in: Regenerate. | |
1966 | * archive.cc: Use the new log interface thruout. | |
1967 | * archive_tar.cc: Ditto. | |
1968 | * main.cc: Ditto. | |
1969 | * dialog.cc (fatal): Use the new log interface. | |
1970 | * ini.cc (do_ini_thread): Use the log interface to exit. | |
1971 | * isntall.cc (do_install_thread): Ditto. | |
1972 | * netio.cc (auth_cmd): Ditto. | |
1973 | * msg.cc (fatal): Ditto. | |
1974 | * localdir.cc (save_local_dir): Save to different files depending on | |
1975 | the mode, and if a root dir exists. | |
1976 | ||
076654e7 RC |
1977 | 2002-05-04 Robert Collins <rbtcollins@hotmail.com> |
1978 | ||
1979 | * IniDBBuilder.cc: New file. | |
1980 | * IniDBBuilder.h: New file. | |
1981 | * IniDBBuilderPackage.cc: New file. | |
1982 | * IniDBBuilderPackage.h: New file. | |
1983 | * PackageTrust.h: New file. | |
1984 | * IniState.h: Remove, wasn't thought out well enough. | |
1985 | * Makefile.am (inilint_SOURCES): Add more requirements. | |
1986 | (setup_SOURCES): Add new Builder base and concrete classes. | |
1987 | * Makefile.in: Regenerate. | |
1988 | * String++.cc (String::String): Implement int contructor. | |
1989 | * String++.h (String): Declare int constructor. | |
1990 | * archive_tar.cc (archive_tar::next_file_name): Return String() when | |
1991 | no filename exists. | |
1992 | * archive_tar.h (archive_tar_file): Remove get_next_filename method, | |
1993 | it's not needed. | |
1994 | * ini.cc: Replace IniState wuth IniDBBuilderPacakge. | |
1995 | (find_routine): Use new IniDBBuilder to configure the parser. | |
1996 | (do_local_ini): Ditto. | |
1997 | (do_remote_ini): Ditto. | |
1998 | * ini.h: Use IniDBBuilder to initialise parsing. | |
1999 | * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles | |
2000 | swapped. | |
2001 | (ini_init): Use an IniDBBuilder rather than static variables. | |
2002 | * iniparse.y: Hand off all the object creation to a builder, rather | |
2003 | than hardcoding the behaviour. This allows run-time configured | |
2004 | behaviour. | |
2005 | * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename | |
2006 | method, it's not needed. | |
2007 | * io_stream_file.h (io_stream_file): Ditto. | |
2008 | * mount.cc (cygpath): Return String() for missing mounts. | |
2009 | * package_meta.cc (packagemeta::SDesc): Return String() for blank | |
2010 | descriptions. | |
2011 | * package_meta.h (trusts): Remove - replaced by PackageTrust.h. | |
2012 | (packagemeta::packagemeta): Fix incorrect syntax in String constructor | |
2013 | usage. | |
2014 | * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in | |
2015 | String constructor usage. | |
2016 | * site.h (site_list_type): Ditto. | |
2017 | ||
6391823e RC |
2018 | 2002-05-03 Robert Collins <rbtcollins@hotmail.com> |
2019 | ||
2020 | * String++.h: Declare a << operator that accepts String objects. | |
2021 | * String++.cc: We need iostream for.. | |
2022 | (operator <<): this. Provide a << operator that accepts String objects. | |
2023 | * ini.cc (yyerror): Remove the "C" classifier - it's not needed. | |
2024 | Change from vargs to a String parameter. | |
2025 | * inilintmail.cc: Remove the gui related headers. | |
2026 | (yyerror): Implement this for parsing. | |
2027 | * iniparse.y: Use the new yyerror syntax. | |
2028 | ||
b92028a4 RC |
2029 | 2002-05-03 Robert Collins <rbtcollins@hotmail.com> |
2030 | ||
2031 | * Makefile.am: Add IniState.h. | |
2032 | * Makefile.in: Regenerate. | |
2033 | * IniState.h: New file. | |
2034 | * choose.cc: Don't include ini.h - it's not needed. | |
2035 | * configure: Regenerate. | |
2036 | * desktop.cc: Don't include ini.h - it's not needed. | |
2037 | * download.cc: Ditto. | |
2038 | * fromcwd.cc: Ditto. | |
2039 | * ini.cc: Use IniState.h to track each parsing calling. | |
2040 | (find_routine): Ditto. | |
2041 | (do_remote_ini): Ditto. | |
2042 | (do_ini_thread): Ditto. | |
2043 | * ini.h (ini_init): Adjust parameters to include state object. | |
2044 | * inilex.l: Declare parser state variable. | |
2045 | (ini_init): Adjust parameters to include state object. | |
2046 | * iniparse.y: Remove obsolete setup_timestamp and setup_version | |
2047 | declarations. | |
2048 | (setup_header): Use new state variable to track time and version. | |
2049 | (add_correct_version): Ditto. | |
2050 | * install.cc: Don't include ini.h - it's not needed. | |
2051 | ||
e0a4db64 RC |
2052 | 2002-05-03 Robert Collins <rbtcollins@hotmail.com> |
2053 | ||
2054 | * nio-files.cc (NetIO): Use io_stream syntax for get_file_size. | |
2055 | * io_stream_file.cc: Don't include filemanip.h. | |
2056 | (io_stream_file::get_size): Implement here to remove filemanip | |
2057 | dependency. | |
2058 | * io_stream_cygfile.cc: Don't include filemanip.h. | |
2059 | (io_stream_cygfile::get_size): Implement here to remove filemanip | |
2060 | dependency. | |
2061 | Implement a stat based version for when win32 is not available. | |
2062 | * filemanip.h (get_file_size): Return size_t - it's more appropriate. | |
2063 | * filemanip.cc: Don't include win32.h - be platform independent. | |
2064 | Include strings.h and io_stream.h as part of that. | |
2065 | (get_file_size): Leverage io_streams and remove win32 implementation. | |
2066 | * download.cc (check_for_cached): Use io_stream syntax for | |
2067 | get_file_size. | |
2068 | (download_one): Ditto. | |
2069 | ||
2070 | 2002-05-02 Robert Collins <rbtcollins@hotmail.com> | |
ac65f5c5 RC |
2071 | |
2072 | * configure.in: Correct a typo in last change. | |
2073 | * configure: Regenerate. | |
2074 | * Makefile.in: Regenerate. | |
2075 | ||
e0a4db64 | 2076 | 2002-05-02 Robert Collins <rbtcollins@hotmail.com> |
e06ded88 RC |
2077 | |
2078 | * configure.in: Check for string.h and string. | |
2079 | * configure: Regenerate. | |
2080 | * Makefile.in: Regenerate. | |
2081 | ||
1fd0694a RC |
2082 | 2002-05-01 Robert Collins <rbtcollins@hotmail.com> |
2083 | ||
2084 | * res.rc (IDD_SPLASH): Remove white box. | |
2085 | ||
89ca06c0 RC |
2086 | 2002-05-01 Robert Collins <rbtcollins@hotmail.com> |
2087 | ||
2088 | Oops! forgot to list these in the last checkin. | |
2089 | * inilintmain.cc: New file. | |
2090 | * md5.h: New file - imported md5 source, BSD style licence. | |
2091 | * md5.cc: New file - imported md5 source, BSD style licence. | |
2092 | * Exception.cc: New file. | |
2093 | * Exception.h: New file. | |
2094 | * MD5++.cc: New file. | |
2095 | * MD5++.h: New file. | |
2096 | ||
58ee6135 RC |
2097 | 2002-05-01 Robert Collins <rbtcollins@hotmail.com> |
2098 | ||
2099 | * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag. | |
2100 | Remove -fno-rtti, we need it for exceptions. | |
2101 | (AM_CXXFLAGS): Ditto. | |
2102 | (WARNONLY_CFLAGS): Ditto. | |
2103 | (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet. | |
2104 | (setup_LDFLAGS): Add and set to -mwindows. | |
2105 | (setup_SOURCES): Add new sources. | |
2106 | * Makefile.in: Regenerate. | |
2107 | * README: Update TODO. | |
2108 | * choose.cc (scan_downloaded_files): Use ini information if it's | |
2109 | available. | |
2110 | * configure: Regenerate. | |
2111 | * download.cc (check_for_cached): Make reusable from elsewhere. | |
2112 | Throw exceptions on errors (as opposed to failures). | |
2113 | Check MD5 sum when it's known. | |
2114 | (download_one): Never force a download. | |
2115 | Handle corrupt package exceptions. | |
2116 | * ini.cc (find_routine): Reverse escape the URL to correctly identify | |
2117 | the site URL. | |
2118 | * inilex.l (MD5): Provide a parsing rule (note: lowercase is required). | |
2119 | * iniparse.y: Allow calculation of MD5 sums, and allow src only | |
2120 | packages. | |
2121 | (process_src): New helper function. | |
2122 | * isntall.cc (install_one_source): Check MD5 sums when possible. | |
2123 | Throw exceptions on errors. | |
2124 | (do_install_thread): Handle exceptions for installation calls. | |
2125 | * package_source.h: Store MD5 information. | |
2126 | * propsheet.cc (PropSheet::Create): Add a useful comment. | |
2127 | * res.rc (IDS_INSTALL_ERROR): Define. | |
2128 | (IDS_CORRUPT_PACKAGE): Define. | |
2129 | * resource.h (IDS_INSTALL_ERROR): Define. | |
2130 | (IDS_CORRUPT_PACKAGE): Define. | |
2131 | * rfc1738.cc (rfc1738_unescape_part): Implement. | |
2132 | * rfc1738.h (rfc1738_unescape_part): Declare. | |
2133 | ||
45e01f23 RC |
2134 | 2002-04-29 Robert Collins <rbtcollins@hotmail.com> |
2135 | ||
2136 | * Makefile.am: Remove dependecy rules that automake emits. | |
2137 | Correct badly copied dependency info for manually compiled files. | |
2138 | (setup_SOURCES): Add all used headers. | |
2139 | (EXTRA_DIST): Include non compilate but required sources. | |
2140 | (setup_LDADD): Remove mingw32, it is autodetected. | |
2141 | * Makefile.in: Regenerate. | |
2142 | * String++.h: sys/types is a system header. | |
2143 | * choose.cc (do_choose_thread): Make into a Win32 thread routine. | |
2144 | Use ExitThread. | |
2145 | (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not | |
2146 | portable). | |
2147 | * configure: Regenerate. | |
2148 | * configure.in: Check for mingw32/cygwin specific headers and libraries. | |
2149 | * cygpackage.h: Include the win32.h header to get correct macro | |
2150 | definitions in all situations. | |
2151 | * download.cc (do_download_reflector): Make into a Win32 thread routine. | |
2152 | Use ExitThread. | |
2153 | (do_download): Use Win32 threads. | |
2154 | * ini.cc: Ditto. | |
2155 | * install.cc: Ditto. | |
2156 | * (WinMain): Adjust to build valid command line using application | |
2157 | under both mingw32 and cygwin. | |
2158 | * mount.cc (set)cygdrive_flags): Create new system flags if the | |
2159 | user requests system and the value does not exist. | |
2160 | * nio-http.cc: Define a _strnicmp for cygwin. | |
2161 | * package_db.cc: Include <errno.h> if it exists. | |
2162 | * site.cc (do_download_site_info_thread): Make into a Win32 thread | |
2163 | routine. | |
2164 | Use ExitThread. | |
2165 | (do_download_site-Info): Use Win32 threads. | |
2166 | * state.cc: Explicity declare variables to avoid header conflicts | |
2167 | caused by '#define extern" on cygwin. | |
2168 | * win32.h: Include <alloca.h> if it exists. | |
2169 | (_MAX_PATH): Define as MAX_PATH when not defined by windows.h. | |
2170 | (_access): Define as access if not defined by windows.h. | |
2171 | ||
8bb9dad9 RC |
2172 | 2002-04-27 Robert Collins <rbtcollins@hotmail.com> |
2173 | ||
2174 | * compress_gz.cc (compress_gz::error): EOF is not an error condition. | |
2175 | ||
6908b7d7 RC |
2176 | 2002-04-27 Robert Collins <rbtcollins@hotmail.com> |
2177 | ||
2178 | * Makefile.am: Add libgetopt++ to the subdirs list. | |
2179 | Search the libgetopt++ header directory. | |
2180 | Link against libgetopt++.la. | |
2181 | (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc. | |
2182 | (setup_LDADD): Explicitly include res.o. | |
2183 | * Makefile.in: Regenerate. | |
2184 | * aclocal.m4: Regenerate. | |
2185 | * bootstrap.sh: Call libtoolize. | |
2186 | * configure: Regenerate. | |
2187 | * configure.in: Add libtool support and configure libgetopt++. | |
2188 | * desktop.cc (NoShortcutsOption): Turn into a BoolOption. | |
2189 | (DesktopSetupPage::OnInit): Use the simpler syntax. | |
2190 | * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption | |
2191 | declaration. | |
2192 | * main.cc: Include getopt++/GetOption.h. | |
2193 | (main): Use simpler syntax. | |
2194 | * cdefs.h: Remove. | |
2195 | * getopt.h: Remove. | |
2196 | * getopt.c: Remove. | |
2197 | * GetOption.h: Remove. | |
2198 | * GetOption.cc: Remove. | |
2199 | * Option.h: Remove. | |
2200 | * Option.cc: Remove. | |
2201 | ||
9063358a RC |
2202 | 2002-04-26 Robert Collins <rbtcollins@hotmail.com> |
2203 | ||
2204 | * Makefile.am: Add zlib and bz2lib to SUBDIRS. | |
2205 | ||
f6100b6f RC |
2206 | 2002-04-26 Robert Collins <rbtcollins@hotmail.com> |
2207 | ||
2208 | * aclocal.m4: New file, cached macros. | |
2209 | * bootstrap.sh: New file, calls required autotools in appropriate | |
2210 | order. | |
2211 | * Makefile.am: New file, input Makefile for automake. | |
2212 | * Makefile,in: Now a generated file - regenerate. | |
2213 | * configure: Regenerate. | |
2214 | * configure.in: Add automake support. | |
2215 | * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with | |
2216 | automake's VERSION define. | |
2217 | * iniparse.y: Ditto. | |
2218 | ||
db04fc41 RC |
2219 | 2002-04-26 Robert Collins <rbtcollins@hotmail.com> |
2220 | ||
2221 | * cdefs.h: New file, imported to allow getopt.c to build without | |
2222 | cygwin headers. | |
2223 | * getopt.h: New file, imported to allow building without cygwin headers. | |
2224 | * getopt.c: Ditto. | |
2225 | * bz2lib: New directory, contains copy of bz2lib. | |
2226 | * cfgaux: New directory, contains autotool helper scripts. | |
2227 | * Makefile,in: Adjust library and target definitions for building | |
2228 | outside the sourceware tree. | |
2229 | * compress_bz.h: Use new bz2lib header location. | |
2230 | * mount.cc: Import key defines and enums to be independent of cygwin | |
2231 | headers. | |
2232 | * configure.in: Update to autoconf 2.53, and to be sourceware | |
2233 | independent. | |
2234 | * configure: Regenerate. | |
2235 | ||
931f2755 RC |
2236 | 2002-04-12 Robert Collins <rbtcollins@hotmail.com> |
2237 | ||
2238 | * mklink2.cc (make_link_2): Tweak to work with current w32api | |
2239 | headers. | |
2240 | ||
2241 | 2002-04-10 Pavel Tsekov <ptsekov@gmx.net> | |
2242 | ||
2243 | * version.cc (canonicalize_version): Fix a call delete[] | |
2244 | to delete the allocated address. | |
2245 | ||
2246 | 2002-03-29 Robert Collins <rbtcollins@hotmail.com> | |
2247 | ||
2248 | * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks | |
2249 | to Ton van Overbeek for locating the bug area. | |
2250 | ||
49cf3899 RC |
2251 | 2003-03-27 Robert Collins <rbtcollins@hotmail.com> |
2252 | ||
2253 | * PickView.cc (PickView::insert_pkg): Be more generic with | |
2254 | object use. | |
2255 | (PickView::insert_category): Ditto. | |
2256 | (PickView::~PickView): Create. | |
2257 | * PickView.h (PickView::~PickView): Declare. | |
2258 | ||
1be8f8fd RC |
2259 | 2003-03-27 Robert Collins <rbtcollins@hotmail.com> |
2260 | ||
2261 | * Makefile.in (OBJS): Add new commandline objects. | |
2262 | * desktop.cc (NoShortCutsOption): New option code. | |
2263 | (DesktopSetupPage::OnInit): Check whether to skip shortcuts. | |
2264 | * desktop.h (NoShortCutsOption): New concrete command line option class. | |
2265 | * main.cc (WinMain): Process command line options. | |
2266 | * GetOption.h: New file, singleton command line class. | |
2267 | * GetOption.cc: New file, implementation of the above. | |
2268 | * Option.h : New file, abstract option for GetOption. | |
2269 | * Option.cc: New file, implement constructor and destructor. | |
2270 | ||
f2e49cf8 RC |
2271 | 2002-03-26 Pavel Tsekov <ptsekov@gmx.net> |
2272 | ||
2273 | * mkdir.cc (mkdir_p): Stop processing if the path is exhausted. | |
2274 | ||
2275 | 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl> | |
2276 | ||
2277 | * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle | |
2278 | to textheight, so large fonts work. | |
2279 | ||
2280 | 2003-03-26 Robert Collins <rbtcollins@hotmail.com> | |
2281 | ||
2282 | * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate | |
2283 | symlinks. | |
2284 | ||
2285 | 2003-03-26 Robert Collins <rbtcollins@hotmail.com> | |
2286 | ||
2287 | * io_stream_cygfile.cc (cwd): New static for cwd storage. | |
2288 | (io_stream_cygfile::normalise): New method. | |
2289 | (io_stream_cygfile::io_stream_cygfile): Use it. | |
2290 | (io_stream_cygfile::exists): Ditto. | |
2291 | (io_stream_cygfile::remove): Ditto. | |
2292 | (io_stream_cygfile::mklink): And again. | |
2293 | (cygmkdir_p): Yes, again. | |
2294 | (io_stream_cygfile::move): And once more. | |
2295 | * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare. | |
2296 | (io_stream_cygfile::cwd): Ditto. | |
2297 | ||
51ebb760 RC |
2298 | 2003-03-26 Robert Collins <rbtcollins@hotmail.com> |
2299 | ||
2300 | * package_meta.cc (package_meta::~package_meta): Remove duplicate. | |
2301 | (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van | |
2302 | Overbeek for the report). | |
2303 | * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'. | |
2304 | Make g++ compatible. | |
2305 | * mklink2.c: Remove. | |
2306 | * site.cc (site_list_type::init): Delete the correct memory addres. | |
2307 | Thanks to Pavel Tsekov for tracking this down. | |
2308 | ||
e7d67c03 RC |
2309 | 2002-03-20 Robert Collins <rbtcollins@hotmail.com> |
2310 | ||
2311 | * win32.h: Only define alloca if it's not already. | |
2312 | ||
2fa7c5a4 RC |
2313 | 2002-03-20 Robert Collins <rbtcollins@hotmail.com> |
2314 | ||
2315 | * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed | |
2316 | packages alone. | |
2317 | * README: Update with latest requests. | |
2318 | * Various: MTC fixes from setup200202 branch. | |
2319 | ||
7bf13fc9 CF |
2320 | 2002-03-19 Christopher Faylor <cgf@redhat.com> |
2321 | ||
2322 | * Makefile.in (setup_version.c): Add back magic which allows detection | |
2323 | of setup.exe version number. | |
2324 | ||
2fa7c5a4 RC |
2325 | 2002-03-17 Robert Collins <rbtcollins@hotmail.com> |
2326 | ||
2327 | * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region | |
2328 | calculation on win9x systems. | |
2329 | ||
2330 | 2002-03-16 Robert Collins <rbtcollins@hotmail.com> | |
2331 | ||
2332 | * install.cc (install_one_source): Write the correct length of a string to the | |
2333 | lst file (Thanks to Pavel Tsekov for reporting the bug). | |
2334 | ||
2335 | 2002-03-15 Robert Collins <rbtcollins@hotmail.com> | |
2336 | ||
2337 | * choose.cc (list_click): Always refresh the entire chooser, as our | |
2338 | package state change mechanism is broken with the new improved list classes. | |
2339 | ||
2340 | 2002-03-15 Robert Collins <rbtcollins@hotmail.com> | |
2341 | ||
2342 | * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and | |
2343 | /etc/group. | |
2344 | ||
2345 | 2002-03-15 Robert Collins <rbtcollins@hotmail.com> | |
2346 | ||
2347 | * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from | |
2348 | paint(). | |
2349 | (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new | |
2350 | bin tickbox. | |
2351 | (PickPackageLine::click): Handle the new bin tickbox. | |
2352 | * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this. | |
2353 | * PickView.cc (pkg_headers): Add a Bin? column. | |
2354 | (cat_headers): Ditto. | |
2355 | (PickView::set_headers): Ditto. | |
2356 | (PickView::init_headers): Ditto. | |
2357 | * PickView.h (PickView): Ditto. | |
2358 | * choose.cc (list_click): Use the new name for src_col to set the clip rectangle. | |
2359 | ||
2360 | 2002-02-24 Michael A Chase <mchase@ix.netcom.com> | |
2361 | ||
2362 | * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's | |
2363 | fixup. | |
2364 | ||
2365 | 2002-02-24 Michael A Chase <mchase@ix.netcom.com> | |
2366 | ||
2367 | * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p() | |
2368 | call. | |
2369 | (make_passwd_group): Ditto. | |
2370 | * localdir.cc (save_local_dir): Ditto. | |
2371 | * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines. | |
2372 | Add "cygfile://" prefix to io_stream::open() calls. | |
2373 | ||
204315f9 RC |
2374 | 2002-02-24 Robert Collins <rbtcollins@hotmail.com> |
2375 | ||
2376 | * log.cc (log_save): Fix creating /var/log. | |
2377 | * packate_meta.cc (standard_dirs): Remove duplicate '/''s. | |
2378 | ||
58db1046 RC |
2379 | 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
2380 | ||
2381 | * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and | |
2382 | IDS_CYGWIN_SETUP_WITH_PROGRESS strings. | |
2383 | * resource.h: Add IDS_CYGWIN_SETUP and | |
2384 | IDS_CYGWIN_SETUP_WITH_PROGRESS IDs. | |
2385 | ||
2386 | * splash.cc (OnInit): Qualify SetWindowText() call with global scope | |
2387 | operator (::SetWindowText()). | |
2388 | ||
2389 | * threebar.cc: Run indent. | |
2390 | (cistring.h): Add include. | |
2391 | (SetText1, SetText2, SetText3): Qualify SetWindowText() call with | |
2392 | global scope operator. | |
2393 | (SetBar2): Add logic for writing percent complete into window title. | |
2394 | ||
2395 | * window.h: Run indent. | |
2396 | (SetWindowText): New function. | |
2397 | (String): Add forward declaration. | |
2398 | * window.cc: Run indent. | |
2399 | (String++.h): Add include. | |
2400 | (SetWindowText): New function. | |
2401 | ||
490717ef RC |
2402 | 2002-02-24 Robert Collins <rbtcollins@hotmail.com> |
2403 | ||
2404 | * README: Update TODO list. | |
2405 | * install.cc (install_one): Fix src package location. | |
2406 | (do_install_thread): Fix creating directories. | |
2407 | ||
7c6ef2c3 RC |
2408 | 2002-02-19 Robert Collins <rbtcollins@hotmail.com> |
2409 | ||
2410 | * choose.cc: Include cygpackage.h for scan2 use. | |
2411 | (set_existence): Ignore setup.ini mirrors when installing from cwd. | |
2412 | (scan2): Process any valid file. | |
2413 | Add cache entries when a file matching a setup.ini listed version is found. | |
2414 | * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else. | |
2415 | * filemanip.h (filemanip::pkgtar): Remove. | |
2416 | * package_meta.cc (CategoryPackage::~CategoryPackage): New method. | |
2417 | (packagemeta::~packagemeta): Move from package_meta.h | |
2418 | Remove and delete all version and category information. | |
2419 | * package_meta.h (CategoryPackage): Create a destructor. | |
2420 | (packagemeta::~packagemeta): Move to .cc file. | |
2421 | ||
2422 | 2002-02-19 Robert Collins <rbtcollins@hotmail.com> | |
2423 | ||
2424 | * install.cc (install_one_source): Make NULL cached package names cause | |
2425 | errors. | |
2426 | ||
bb087dce RC |
2427 | 2002-02-18 Michael A Chase <mchase@ix.netcom.com> |
2428 | ||
2429 | * desktop.cc (make_passwd_group): Don't create passwd-grp.bat | |
2430 | unnecessarily. | |
2431 | ||
2432 | 2002-02-18 Michael A Chase <mchase@ix.netcom.com> | |
2433 | ||
2434 | * log.cc (log_save): Put "\n" at end of log lines instead of "'". | |
2435 | ||
c90bc3df RC |
2436 | 2002-02-19 Robert Collins <rbtcollins@hotmail.com> |
2437 | ||
2438 | * mount.cc (create_mount): Avoid a const char*->char* warning. | |
2439 | (read_mounts): Ditto. | |
2440 | ||
3bab9a49 RC |
2441 | 2002-02-05 Jason Tishler <jason@tishler.net> |
2442 | ||
2fa7c5a4 | 2443 | * download.cc (do_download_thread): Fix off-by-one error. |
3bab9a49 | 2444 | |
1ac649ed RC |
2445 | 2002-02-19 Robert Collins <rbtcollins@hotmail.com> |
2446 | ||
2447 | * configure.in (CXXFLAGS): Substitute at configure time, not runtime. | |
2448 | * configure (CXXFLAGS): Regenerate. | |
2449 | * Makefile.in (iniparse.o): Build via default rules - no errors now. | |
2450 | * README: TODO list updates. | |
2451 | ||
2452 | 2002-02-19 Michael A Chase <mchase@ix.netcom.com> | |
2453 | ||
2454 | * String++.cc (String::concat):: Remove. | |
2455 | (String::vconcat):: Ditto. | |
2456 | * String++.h (String::concat):: Remove. | |
2457 | (String::vconcat):: Ditto. | |
2458 | * archive_tar.cc: Don't include concat.h. | |
2459 | * archive_tar_file.cc: Don't include concat.h. | |
2460 | * compress_bz.cc (compress_bz::peek): Don't log unneeded messages. | |
2461 | (compress_bz::seek): Ditto. | |
2462 | (compress_bz::~compress_bz): Ditto. | |
2463 | * compress_gz.cc (compress_gz::peek): Ditto. | |
2464 | (compress_gz::error): Ditto. | |
2465 | (compress_gz::~compress_gz): Ditto. | |
2466 | * concat.cc (vconcat): Remove. | |
2467 | (concat): Ditto. | |
2468 | * concat.h (vconcat): Remove. | |
2469 | (concat): Ditto. | |
2470 | * desktop.cc (desktop_icon): Use new cygpath. | |
2471 | (make_etc_profile): Ditto. | |
2472 | (uexists): Ditto. | |
2473 | (make_passwd_group): Ditto. | |
2474 | (save_icon): Ditto. | |
2475 | (check_desktop): Remove concat use. | |
2476 | (check_start_menu): Ditto. | |
2477 | * download.cc (download_one): Use new mkpath_p correctly. | |
2478 | Use LOG_PLAIN. | |
2479 | * fromcwd.cc: Don't include concat.h. | |
2480 | * geturl.cc (get_url_to_membuf): Use String log() call. | |
2481 | (get_url_to_file): Ditto. | |
2482 | * install.cc: Don't include concat.h. | |
2483 | (uninstall_one): Use LOG_PLAIN. | |
2484 | (replace_one): Ditto. | |
2485 | (install_one_source): Ditto. | |
2486 | (install_one): More char to String conversion. | |
2487 | (do_install_thread): Use new cygpath. | |
2488 | Use new create_mount. | |
2489 | * io_stream.cc (io_stream::move): Use new log(). | |
2490 | * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath. | |
2491 | (io_stream_cygfile::exists): Ditto. | |
2492 | (io_stream_cygfile::remove): Ditto. | |
2493 | (io_stream_cygfile::mklink): Ditto. | |
2494 | (io_stream_cygfile::write): Ditto. | |
2495 | (cygmkdir_p): Ditto. | |
2496 | (io_stream_cygfile::move): Ditto. | |
2497 | * io_stream_file.cc: Don't include log.h. | |
2498 | (io_stream_file::write): Don't log unneeded messages. | |
2499 | * localdir.cc: Don't include concat.h. | |
2500 | (LocalDirPage::OnNext): Use LOG_PLAIN. | |
2501 | * log.cc: Don't include log.h. | |
2502 | (exit_setup): Use new cygpath. | |
2503 | * log.h (log_level): Add new level LOG_PLAIN. | |
2504 | * main.cc (WinMain): Use new log(). | |
2505 | * mount.cc (SLASH_P): New macro from concat.h. | |
2506 | (cygpath): Make String version globally visible. | |
2507 | Remove varargs version. | |
2508 | * mount,h: Ditto. | |
2509 | * msg.cc (mbox): Use LOG_PLAIN. | |
2510 | * net.cc (NetPage::OnNext): Ditto. | |
2511 | * nio-ftp.cc (ftp_line): Use new log(). | |
2512 | * nio-http.cc: Don't include log.h. | |
2513 | (retry_get): Use alternative url variable. | |
2514 | * package_db.cc: Don't include concat.h. | |
2515 | (packagedb::flush): Don't use concat. | |
2516 | * package_meta.cc: Don't include concat.h. | |
2517 | (packagemeta::uninstall): Use new cygpath. | |
2518 | * postinstall.cc (do_postinstall): Ditto. | |
2519 | * root.cc (RootPage::OnNext): Use LOG_PLAIN. | |
2520 | * script.cc: Don't include concat.h. | |
2521 | (init_run_script): Use new cygpath. | |
2522 | (run_script): More char * to String conversion. | |
2523 | (try_run_script): Ditto. | |
2524 | * site.cc: Don't include concat.h. | |
2525 | (SitePage::OnNext): Use LOG_PLAIN. | |
2526 | (SitePage::OnMessageCmd): Use new log(). | |
2527 | * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN. | |
2528 | ||
3c054baf RC |
2529 | 2002-02-19 Robert Collins <rbtcollins@hotmail.com> |
2530 | ||
2531 | * Makefile.in (OBJS): Add new object. | |
2532 | * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name. | |
2533 | * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class. | |
2534 | * PickLine.h (Pickline::key): Change to a String to help plug leaks. | |
2535 | (PickLine::Pickline): Accept a String for the key. | |
2536 | * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings. | |
2537 | * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically | |
2538 | initialisednow. | |
2539 | * PickView.cc (PickView::note_width): Convert all char * use to Strings. | |
2540 | (PickView::init_header): Move category length checking out of the inner loop for | |
2541 | efficiency. | |
2542 | Convert all char use to Strings. | |
2543 | * PickView.h: Include the String++ header. | |
2544 | (PickView::note_width): Update the prototype. | |
2545 | * String++.cc: New file, implements a reference counting string class. | |
2546 | * String++.h: New file, declares a reference counting string class. | |
2547 | * archive.cc: Include String++ instead of concat. | |
2548 | (archive::extract_file): Convert char * usage to Strings. | |
2549 | * archive.h: Inlude the String++ header. | |
2550 | (archive::extract_file): Update prototype. | |
2551 | (archive::next_file_name): Convert to a String. | |
2552 | (archive::linktarget): Ditto. | |
2553 | * archive_tar.cc (archive_tar::next_file_name): Convert to String usage. | |
2554 | (archive_tar::linktarget): Ditto. | |
2555 | * arhive_tar.h: Update the copyright. | |
2556 | Explicitly include the relevant headers. | |
2557 | (tar_map_result_type): Convert to String usage. | |
2558 | (archive_tar::next_file_name): Update prototype. | |
2559 | (archive_tar::linktarget): Ditto. | |
2560 | * category.cc (Category::Category): Update initialisers. | |
2561 | Convert to String usage. | |
2562 | (Categorycmp): Update to String usage. | |
2563 | * category.h: Include the String++ header. | |
2564 | (Category::Category): Update to String usage. | |
2565 | (Category::name): Ditto. | |
2566 | (Category::key): Ditto. | |
2567 | * choose.cc: Remove concat.h, it's not needed. | |
2568 | (scan2): Update to String usage. | |
2569 | (do_choose): Ditto. | |
2570 | * cygpackage.cc: Update includes for use of String class. | |
2571 | (cygpackage::cygpackage): Update for String usage. | |
2572 | (cygpackage::set_canonical_version): Ditto. | |
2573 | (cygpackage::destroy): Ditto. | |
2574 | (cygpackage::getfirstfile): Ditto. | |
2575 | (cygpackage::getnextfile): Ditto. | |
2576 | (cygpackage::Name): Ditto. | |
2577 | (cygpackage::Vendor_version): Ditto. | |
2578 | (cygpackage::Package_version): Ditto. | |
2579 | (cygpackage::Canonical_version): Ditto. | |
2580 | (cygpackage::set_sdesc): Ditto. | |
2581 | (cygpackage::set_ldesc): Ditto. | |
2582 | * cygpackage.h: Include String++.h for parsing this file. | |
2583 | (cygpackage::cygpackage): Update for String usage. | |
2584 | (cygpackage::set_canonical_version): Ditto. | |
2585 | (cygpackage::destroy): Ditto. | |
2586 | (cygpackage::getfirstfile): Ditto. | |
2587 | (cygpackage::getnextfile): Ditto. | |
2588 | (cygpackage::Name): Ditto. | |
2589 | (cygpackage::Vendor_version): Ditto. | |
2590 | (cygpackage::Package_version): Ditto. | |
2591 | (cygpackage::Canonical_version): Ditto. | |
2592 | (cygpackage::set_sdesc): Ditto. | |
2593 | (cygpackage::set_ldesc): Ditto. | |
2594 | (cygpackage::name): Ditto. | |
2595 | (cygpackage::vendor): Ditto. | |
2596 | (cygpackage::packagev): Ditto. | |
2597 | (cygpackage::canonical): Ditto. | |
2598 | (cygpackage::fn): Ditto. | |
2599 | (cygpackage::sdesc): Ditto. | |
2600 | (cygpackage::ldesc): Ditto. | |
2601 | * desktop.cc: Update includes for use of String class. | |
2602 | (batname): Update for String usage. | |
2603 | (iconname): Ditto. | |
2604 | (make_link): Ditto. | |
2605 | (start)menu): Ditto. | |
2606 | (desktop_icon): Ditto. | |
2607 | (make_cygwin_bat): Ditto. | |
2608 | (make_etc_profile): Ditto. | |
2609 | (uexists): Ditto. | |
2610 | (make_passwd_group): Ditto. | |
2611 | (save_icon): Ditto. | |
2612 | (check_desktop): Ditto. | |
2613 | (check_startmenu): Ditto. | |
2614 | * dialog.cc (eget): Update for String usage. | |
2615 | (egetString): New function. | |
2616 | (eset): New variant for Strings. | |
2617 | * dialog.h: Include String++.h for parsing this file. | |
2618 | (egetString): New function. | |
2619 | (eset): New variant for Strings. | |
2620 | * diskfull.cc (diskfull): Update for String usage. | |
2621 | * diskfull.h: Include String++.h for parsing this file. | |
2622 | (diskfull): Update for String usage. | |
2623 | * download.cc: Update includes for use of String class. | |
2624 | (check_for_cached): Update for String usage. | |
2625 | (download_one): Ditto. | |
2626 | * filemanip.cc (get_file_size): Ditto. | |
2627 | (base): Ditto. | |
2628 | (parse_filename): Ditto. | |
2629 | (backslash): Ditto. | |
2630 | * filemanip.h: Include String++.h for parsing this file. | |
2631 | (fileparse): Update for String usage. | |
2632 | (base): Ditto. | |
2633 | (parse_filename): Ditto. | |
2634 | Don't consider '_' to be a separator. | |
2635 | (backslash): Ditto. | |
2636 | * find.cc: Update includes for use of String class. | |
2637 | (find_sub): Make more flexible. | |
2638 | (find): Update for String usage. | |
2639 | * find.h (find): Use Strings. | |
2640 | * fromcwd.cc (found_file): Update for String usage. | |
2641 | * geturl.cc: Ditto. | |
2642 | (init_dialog): Ditto. | |
2643 | (get_url_to_membuf): Ditto. | |
2644 | (get_url_to_string): Ditto. | |
2645 | (get_url_to_file): Ditto. | |
2646 | * geturl.h: Ditto. | |
2647 | (get_url_to_membuf): Ditto. | |
2648 | (get_url_to_string): Ditto. | |
2649 | (get_url_to_file): Ditto. | |
2650 | * hash.h: Ditto. | |
2651 | (add_subdirs): Ditto. | |
2652 | * ini.cc: Update includes for String usage. | |
2653 | (find_routine): Update for String usage. | |
2654 | (do_remote_ini): Ditto. | |
2655 | (do_ini_thread): Ditto. | |
2656 | * ini.h (ini_init): Ditto. | |
2657 | * inilex.l: Update includes for String usage. | |
2658 | (ini_init): Update for String usage. | |
2659 | * iniparse.y: Ditto. | |
2660 | (add_correct_version): Ditto. | |
2661 | * install.cc: Update includes for String usage. | |
2662 | (install_one_source): Update for String usage. | |
2663 | (uninstall_one): Ditto. | |
2664 | (replace_one): Ditto. | |
2665 | (install_one_source): Ditto. | |
2666 | (do_install_thread): Ditto. | |
2667 | * io_stream.cc: Update includes for String usage. | |
2668 | (io_stream::open): Update for String usage. | |
2669 | (io_stream::mkpath_p): Ditto. | |
2670 | (io_stream::remove): Ditto. | |
2671 | (io_stream::mklink): Ditto. | |
2672 | (io_stream::move_copy): Ditto. | |
2673 | (io_stream::move): Ditto. | |
2674 | (io_stream::exists): Ditto. | |
2675 | * io_stream.h: Update includes to allow correct parsing. | |
2676 | (io_stream::open): Update for String usage. | |
2677 | (io_stream::mkpath_p): Ditto. | |
2678 | (io_stream::remove): Ditto. | |
2679 | (io_stream::mklink): Ditto. | |
2680 | (io_stream::move_copy): Ditto. | |
2681 | (io_stream::move): Ditto. | |
2682 | (io_stream::exists): Ditto. | |
2683 | * io_stream_cygfile.cc: Update includes for String usage. | |
2684 | (get_root_dir_now): Update for String usage. | |
2685 | (io_stream_cygfile::io_stream_cygfile): Ditto. | |
2686 | (io_stream_cygfile::~io_stream_cygfile): Ditto. | |
2687 | (io_stream_cygfile::exists): Ditto. | |
2688 | (io_stream_cygfile::remove): Ditto. | |
2689 | (io_stream_cygfile::mklink): Ditto. | |
2690 | (cygmkdir_p): Ditto. | |
2691 | (io_stream_cygfile::set_mtime): Ditto. | |
2692 | (io_stream_cygfile::move): Ditto. | |
2693 | (io_stream_cygfile::get_size): Ditto. | |
2694 | * io_stream_cygfile.h: Update includes for String usage. | |
2695 | (io_stream_cygfile::io_stream_cygfile): Update for String usage. | |
2696 | (io_stream_cygfile::~io_stream_cygfile): Ditto. | |
2697 | (io_stream_cygfile::exists): Ditto. | |
2698 | (io_stream_cygfile::remove): Ditto. | |
2699 | (io_stream_cygfile::mklink): Ditto. | |
2700 | (cygmkdir_p): Ditto. | |
2701 | (io_stream_cygfile::set_mtime): Ditto. | |
2702 | (io_stream_cygfile::move): Ditto. | |
2703 | (io_stream_cygfile::get_size): Ditto. | |
2704 | (io_stream_cygfile::fname): Ditto. | |
2705 | (io_stream_cygfile::lmode): Ditto. | |
2706 | * io_stream_file.cc: Update includes for String usage. | |
2707 | (io_stream_file::io_stream_file): Update for String usage. | |
2708 | (io_stream_file::~io_stream_file): Ditto. | |
2709 | (io_stream_file::exists): Ditto. | |
2710 | (io_stream_file::remove): Ditto. | |
2711 | (io_stream_file::mklink): Ditto. | |
2712 | (io_stream_file::set_mtime): Ditto. | |
2713 | (io_stream_file::move): Ditto. | |
2714 | (io_stream_file::get_size): Ditto. | |
2715 | * io_stream_file.h: Update includes for String usage. | |
2716 | * io_stream_file.cc: Update includes for String usage. | |
2717 | (io_stream_file::io_stream_file): Update for String usage. | |
2718 | (io_stream_file::~io_stream_file): Ditto. | |
2719 | (io_stream_file::exists): Ditto. | |
2720 | (io_stream_file::remove): Ditto. | |
2721 | (io_stream_file::mklink): Ditto. | |
2722 | (io_stream_file::set_mtime): Ditto. | |
2723 | (io_stream_file::move): Ditto. | |
2724 | (io_stream_file::get_size): Ditto. | |
2725 | (io_stream_file::fname): Ditto. | |
2726 | (io_stream_file::lmode): Ditto. | |
2727 | * localdir.cc: Update includes for String usage. | |
2728 | (save_local_dir): Update for String usage. | |
2729 | (check_if_enable_next): Ditto. | |
2730 | (load_dialog): Ditto. | |
2731 | (browse_cb): Ditto. | |
2732 | (LocalDirPage::OnInit): Ditto. | |
2733 | (LocalDirPage::OnNext): Ditto. | |
2734 | * log.cc: Update includes for String usage. | |
2735 | (struct LogEnt): Update for String usage. | |
2736 | (log): Ditto. | |
2737 | (log_save): Ditto. | |
2738 | (exit_setup): Ditto. | |
2739 | * log.h: Update includes for String usage. | |
2740 | (log_level): Update for String usage. | |
2741 | (log): Ditto. | |
2742 | (log_save): Ditto. | |
2743 | * main.cc (WinMain): Update for String usage. | |
2744 | * mklink2.c (make_link_2): Update for String usage. | |
2745 | * mklink2.h (make_link_2): Update for String usage. | |
2746 | * mount.cc: Update includes for String usage. | |
2747 | (mount_table): Update for String usage. | |
2748 | (find2): Ditto. | |
2749 | (create_mount): Ditto. | |
2750 | (remove1): Ditto. | |
2751 | (remove_mount): Ditto. | |
2752 | (read_mounts): Ditto. | |
2753 | (set_root_dir): Ditto. | |
2754 | (get_root_dir): Ditto. | |
2755 | (path_prefix_p): Ditto. | |
2756 | (cygpath): Ditto. | |
2757 | * mount.h: Update includes for String usage. | |
2758 | (create_mount): Update for String usage. | |
2759 | (remove_mount): Ditto. | |
2760 | (cygpath): Ditto. | |
2761 | (set_root_dir): Ditto. | |
2762 | (get_root_dir): Ditto. | |
2763 | * msg.cc (mbox): Ditto. | |
2764 | * net.cc (NetPage::OnNext): Ditto. | |
2765 | * package_db.cc (packagedb::flush): Ditto. | |
2766 | (packagedb::packages): Ditto. | |
2767 | (packagedb::categories): Ditto. | |
2768 | * package_db.h: Update includes for String usage. | |
2769 | (packagedb::packages): Update for String usage. | |
2770 | (packagedb::categories): Ditto. | |
2771 | * package_meta.cc: Update includes for String usage. | |
2772 | (hash::add_subdirs): Update for String usage. | |
2773 | (packagemeta::uninstall): Ditto. | |
2774 | (packagemeta::SDesc): Ditto. | |
2775 | (packagemeta::action_caption): Ditto. | |
2776 | * package_meta.h: Update includes for String usage. | |
2777 | (packagemeta::packagemeta): Update for String usage. | |
2778 | (packagemeta::~packagemeta): Ditto. | |
2779 | (packagemeta::uninstall): Ditto. | |
2780 | (packagemeta::SDesc): Ditto. | |
2781 | (packagemeta::action_caption): Ditto. | |
2782 | (package_source.cc site::site): Ditto. | |
2783 | (packagesource::set_canonical): Ditto. | |
2784 | (packagesource::set_cached): Ditto. | |
2785 | * package_source.h: Update includes for String usage. | |
2786 | (site::site): Update for String usage. | |
2787 | (packagesource::set_canonical): Ditto. | |
2788 | (packagesource::set_cached): Ditto. | |
2789 | (packagesource::packagesource): Ditto. | |
2790 | (packagesource::sites): Ditto. | |
2791 | (packagesource::cached): Ditto. | |
2792 | * package_version.h: Update includes for String usage. | |
2793 | (Dependency): Update for String usage. | |
2794 | (packageversion): Ditto. | |
2795 | * postinstall.cc: Update includes for String usage. | |
2796 | (do_postinstall): Update for String usage. | |
2797 | * res.rc (IDD_LOCAL_DIR): Fix typo again! | |
2798 | * rfc1738.cc (rfc1738_escape_part): Update for String usage. | |
2799 | * rfc1738.h: Update includes for String usage. | |
2800 | (rfc1738_escape_part): Update for String usage. | |
2801 | * root.cc: Update includes for String usage. | |
2802 | (check_if_enable_next): Update for String usage. | |
2803 | (save_dialog): Ditto. | |
2804 | (browse_cb): Ditto. | |
2805 | (directory_is_absolute): Ditto. | |
2806 | (directory_is_rootdir): Ditto. | |
2807 | (directory_has_spaces): Ditto. | |
2808 | (RootPage::OnInit): Ditto. | |
2809 | (RootPage::OnNext): Ditto. | |
2810 | * script.cc: Update includes for String usage. | |
2811 | (init_run_script): Update for String usage. | |
2812 | (run): Ditto. | |
2813 | (run_script): Ditto. | |
2814 | (try_run_script): Ditto. | |
2815 | * script.h: Update includes for String usage. | |
2816 | (run_script): Update for String usage. | |
2817 | (try_run_script): Ditto. | |
2818 | * site.cc site_list): Ditto. | |
2819 | (all_site_list): Ditto. | |
2820 | (other_url): Eliminate. | |
2821 | (site_list_type::init): Update for String usage. | |
2822 | (site_list_type::site_list_type): Ditto. | |
2823 | (get_site_list): Ditto. | |
2824 | (get_saved_sites): Ditto. | |
2825 | (do_download_site_info_thread): Ditto. | |
2826 | (SitePage::OnNext): Ditto. | |
2827 | (SitePage::OnActivate): Ditto. | |
2828 | (SitePage::PopulateListBox): Ditto. | |
2829 | (SitePage::OnMessageCmd): Handle empty url's. | |
2830 | * site.h: Update includes for String usage. | |
2831 | (site_list_type::site_list_type): Update for String usage. | |
2832 | (site_list_type::init): Ditto. | |
2833 | (site_list_type::~site_list_type): Ditto. | |
2834 | (site_list_type::url): Ditto. | |
2835 | (site_list_type::displayed_url): Ditto. | |
2836 | (site_list_type::key): Ditto. | |
2837 | * source.cc (SourcePage::OnDeactivate): Ditto. | |
2838 | * state.h: Update includes for String usage. | |
2839 | (local_dir): Update for String usage. | |
2840 | (trust_level): Remove. | |
2841 | * version.cc: Update includes for String usage. | |
2842 | (canonicalize_version): Update for String usage. | |
2843 | * version.h: Update includes for String usage. | |
2844 | (canonicalize_version): Update for String usage. | |
2845 | ||
08233ec7 CF |
2846 | 2002-02-15 Christopher Faylor <cgf@redhat.com> |
2847 | ||
2848 | * filemanip.c (parse_filename): Revert previous change. | |
2849 | ||
94dffbdd CF |
2850 | 2002-02-14 Christopher Faylor <cgf@redhat.com> |
2851 | ||
2852 | * filemanip.c (parse_filename): Don't treat '_' as a version number | |
2853 | introducer. | |
2854 | ||
cef493d7 CF |
2855 | 2002-01-29 Christopher Faylor <cgf@redhat.com> |
2856 | ||
2857 | * configure: Regenerate. | |
2858 | ||
57219197 RC |
2859 | 2002-01-27 Robert Collins <rbtcollins@hotmail.com> |
2860 | ||
94dffbdd CF |
2861 | * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene |
2862 | <Hoeck@extern.lrz-muenchen.de> | |
57219197 | 2863 | |
cc7493c3 RC |
2864 | 2002-01-27 Robert Collins <rbtcollins@hotmail.com> |
2865 | ||
2866 | * README: Update Todo's. | |
2867 | * list.h: Run indent. | |
2868 | (list): New methods checksize and insert to reduce code duplication. | |
2869 | (list::registerbykey): Use them. | |
2870 | (list::registerbyobject): Ditto. | |
94dffbdd CF |
2871 | (list::removebyindex): Copy each object individually - safe for non |
2872 | trivial objects. | |
cc7493c3 RC |
2873 | (list::checksize): Implement. |
2874 | (list::insert): Implement. | |
2875 | ||
a900d1fa RC |
2876 | 2002-01-27 Robert Collins <rbtcollins@hotmail.com> |
2877 | ||
2878 | * Makefile.in: Remove the dlmalloc object by default. | |
94dffbdd CF |
2879 | * install.cc (do_install_thread): Remove the mallinfo call for 'working |
2880 | around' the crashing issue. | |
a900d1fa | 2881 | * package_db.h: Include <string.h> - it's needed to parse this. |
94dffbdd | 2882 | * package_source.cc (site::site): Move here from the header file. |
a900d1fa RC |
2883 | * package_source.h (site): Stop the constructor being inlinable. |
2884 | ||
9835fb4a RC |
2885 | 2002-01-26 Robert Collins <rbtcollins@hotmail.com> |
2886 | ||
2887 | * filemanip.cc (find_tar_ext): Add a descriptive comment. | |
2888 | ||
2889 | 2002-01-25 Michael A Chase <mchase@ix.netcom.com> | |
2890 | ||
2891 | * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar. | |
2892 | * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check. | |
94dffbdd CF |
2893 | * install.cc (install_one_source): Add space between words in log() |
2894 | call. | |
cef493d7 | 2895 | |
77ba23d8 RC |
2896 | 2002-01-22 Robert Collins <rbtcollins@hotmail.com> |
2897 | ||
94dffbdd CF |
2898 | * log.cc (exit_setup): When saving to the download dir, explicity |
2899 | specify the path. | |
77ba23d8 | 2900 | |
6dc75764 RC |
2901 | 2002-01-22 Robert Collins <rbtcollins@hotmail.com> |
2902 | ||
94dffbdd CF |
2903 | * archive.cc (extract_file): Separate out the prefix and the URL |
2904 | scheme. | |
6dc75764 | 2905 | * archive.h (archive::extract_file): Ditto. |
94dffbdd CF |
2906 | * install.cc (install_one_source): Ditto. Use the new |
2907 | archive::extract_file syntax. | |
6dc75764 RC |
2908 | (replace_one): Use the new syntax. |
2909 | (io_stream.cc): Add some log info for links. | |
2910 | ||
7e8fc33c RC |
2911 | 2002-01-22 Robert Collins <rbtcollins@hotmail.com> |
2912 | ||
2913 | * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove. | |
2914 | (PickCategoryLine::paint): Use the new action method. | |
2915 | (PickCategoryLine::click): Set the action for all children. | |
2916 | (PickCategoryLine::set_action): New method. | |
2917 | * PickCategoryLine.h (PickCategoryLine::-actions): Remove. | |
2918 | (PickCategoryLine::current_default): Use packagemeta _actions class. | |
94dffbdd CF |
2919 | * PickLine.h (PickLine::set_action): New abstract method that requires |
2920 | including package_meta.h. | |
7e8fc33c RC |
2921 | * PickPackageLine.cc (PickPackageLine::set_action): New method. |
2922 | * PickPackageLine.h (PickPackageLine::set_action): Declare this. | |
2923 | * list.h (getbykey): A const correctness fix. | |
2924 | * package_meta.cc: Run indent. | |
2925 | (packagemeta::Default_action): New const. | |
2926 | (packagemeta::Install_action): Ditto. | |
2927 | (packagemeta::Reinstall_action): Ditto. | |
2928 | (packagemeta::Uninstall_action): Ditto. | |
2929 | (packagemeta::_actions::caption): New method. | |
2930 | (packagemeta::_actions::operator++): Ditto. | |
2931 | (packagemeta::set_action): New overload. | |
2932 | * package_meta.h (packagemeta::_actions): New class. | |
2933 | (packagemeta::set_action): Declare this. | |
2934 | ||
2c9254b6 RC |
2935 | 2002-01-22 Robert Collins <rbtcollins@hotmail.com> |
2936 | ||
2937 | * Makefile.in (OBJS): Remove supp.o - it appears accidental. | |
2938 | * choose.cc: Don't define alloca anymore, it's done in win32.h | |
2939 | ||
97647369 RC |
2940 | 2002-01-22 Robert Collins <rbtcollins@hotmail.com> |
2941 | ||
2942 | * PickPackageLine.cc: New file. | |
2943 | * PickPackageLine.h: New file. | |
2944 | * PickLine.cc: New file. | |
2945 | * PickLine.h: New file. | |
2946 | * PickCategoryLine.cc: New file. | |
2947 | * PickCategoryLine.h: New file. | |
2948 | * PickView.cc: New file. | |
2949 | * PickView.h: New file. | |
2950 | * Makefile.in: Add new objects to setup.exe. | |
2951 | Backout -fno-exceptions option. | |
2952 | * choose.cc: Include PickView.h. | |
2953 | Remove view related defines and static variables. | |
2954 | (_pkg_headers): Moved to PickView.cc. | |
2955 | (_cat_headers): Ditto. | |
2956 | (view::views::Unknown): Ditto. | |
2957 | (view::views::PackageFull): | |
2958 | (view::views::Package): | |
2959 | (view::views::Category): | |
2960 | (pkgtrustp): Moved to package_meta.cc. | |
2961 | (add_required): Moved to package_meta.cc. | |
2962 | (pick_category_line::empty): Moved to PickCategoryLine.cc | |
2963 | (paint): Adjust for moved static variables. | |
2964 | (view::scroll): Moved to PickView.cc. | |
2965 | (list_vscroll): Adjust for moved static variables. | |
2966 | (list_hscroll): Ditto. | |
2967 | (list_click): Ditto. | |
2968 | (note_width): Moved to PickView.cc. | |
2969 | (view::view): Ditto. | |
2970 | (view::set_view_mode): Ditto. | |
2971 | (view::mode_caption): Ditto. | |
2972 | (view::views::caption): Ditto. | |
2973 | (view::set_headers): Ditto. | |
2974 | (DoInsertItem): Ditto. | |
2975 | (view::init_headers): Ditto. | |
2976 | (view::insert_pkg): Ditto. | |
2977 | (view::insert_category): Ditto. | |
2978 | (view::clear_view): Ditto. | |
2979 | (view::views::operator++): Ditto. | |
2980 | (view::click): Ditto. | |
2981 | (default_trust): Adjust for moved statics. | |
2982 | (pick_pkg_line::paint): Moved to PickPackageLine.cc. | |
2983 | (pick_pkg_line::click): Ditto. | |
2984 | (pick_category_line::actiontext): Moved to PickCategoryLine.cc | |
2985 | (pick_category_line::paint): Ditto. | |
2986 | (pick_category_line::click): Ditto. | |
2987 | (set_view_mode): Adjust for moved statics. | |
2988 | (create_listview): Ditto. | |
2989 | * choose.h: Remove Category and packagemeta forward defines - not needed. | |
2990 | Don't include unneeded headers list and package_meta. | |
2991 | (_header): Move to PickView.h. | |
2992 | (pick_line): Move to PickLine.h. | |
2993 | (pick_pkg_line): Move to PickPackageLine.h. | |
2994 | (pick_category_line): Move to PickCategoryLine.h. | |
2995 | (view): Move to PickView.h. | |
2996 | * ini.h (trusts): Move to package_meta.h. | |
2997 | * package_meta.h (trusts): New enum. | |
2998 | (packagemeta::set_requirements): New helper method. | |
2999 | (packagemeta::trustp): Ditto. | |
3000 | ||
b566778e CF |
3001 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
3002 | ||
3003 | * choose.h (view): Move forward declaration of views into public area | |
3004 | or g++ v3 will complain. | |
3005 | ||
f71e9756 CF |
3006 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
3007 | ||
3008 | * Makefile.in (CXXFLAGS): Add -fno-exceptions. | |
3009 | * win32.h (alloca): Define as __builtin_alloca. | |
3010 | * io_stream_memory.cc: Add include file. | |
3011 | ||
e9440f0f RC |
3012 | 2002-01-21 Robert Collins <rbtcollins@hotmail.com> |
3013 | ||
3014 | * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed. | |
3015 | * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto. | |
3016 | * compress.cc (compress::~compress): Be less verbose. | |
3017 | * compress_bz.cc (compress_bz::~compress_bz): Ditto. | |
3018 | Mark the stream as destroyed. | |
3019 | * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed. | |
3020 | * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked | |
3021 | as destroyed. | |
cef493d7 | 3022 | * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the |
e9440f0f RC |
3023 | stream as destroyed. |
3024 | * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto. | |
3025 | * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto. | |
cef493d7 | 3026 | |
5e0464a1 RC |
3027 | 2002-01-21 Robert Collins <rbtcollins@hotmail.com> |
3028 | ||
3029 | * Makefile.in (CFLAGS): Allow customisable malloc debug flags. | |
3030 | (OBJS): Link in malloc objects. | |
3031 | * category.cc (category): Use new char, not strdup. | |
3032 | * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink. | |
3033 | (do_choose): Use new char, not malloc. | |
3034 | * concat.cc (vconcat): Ditto. | |
3035 | * cygpackage.cc (cygpackage): Use new char, not strdup. | |
3036 | (set_canonical_version): Ditto. | |
3037 | (cygpackage::destroy): Use delete[], not free. | |
3038 | * desktop.cc (uexists): Ditto. | |
3039 | * dialog.cc (egest): Use new char, not strdup. | |
3040 | * dlmalloc.c: New file - Doug Lea's malloc 2.7.0 | |
3041 | * hash.cc (hash::hash): Use delete instead of free. | |
3042 | (hash::add): Use new char, not strdup. | |
3043 | * ini.cc (do_remote_ini): Use delete[] not free. | |
3044 | * inilex.l: Use new char, not strdup. | |
3045 | (ini_init): Ditto. | |
3046 | * iniparse.y: Ditto. | |
3047 | Use a local package_db rather than a static one. | |
3048 | * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug. | |
3049 | (do_install_thread): Call mallinfo to force a consistency check. Appears | |
3050 | to fix a 'inuse' error in -DDEBUG builds. | |
3051 | Use delete[] for strings. | |
3052 | * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char, | |
3053 | not strdup. | |
3054 | (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free. | |
3055 | (io_stream_cygfile::remove): Use new char, not strdup. | |
3056 | * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup. | |
3057 | (io_stream_file::io_stream_file): Use delete[], not free. | |
3058 | (io_stream_file::remove): Use new char, not strdup. | |
3059 | * io_stream_memory.cc (memblock::~memblock): Use delete[], not free. | |
3060 | * io_stream_memory.h (memblock): Use new char, not malloc. | |
3061 | * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup. | |
3062 | * main.cc (WinMain): Use new char, not strdup. | |
3063 | * mount.cc (find2): Use new char, not malloc. | |
3064 | (read_mounts): Ditto. | |
3065 | (cygpath): Use new char, not strdup. | |
3066 | * netio.cc (NetIO::~NetIO): Use delete[], not free. | |
3067 | (NetIO::set_url): Use new char, not strdup. | |
3068 | (NetIO::get_ftp_auth): Use delete[], not free. | |
3069 | * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto. | |
3070 | Use new char instead of strdup. | |
3071 | * nio-http.cc (base64_encode): Use new char, not malloc. | |
3072 | * package_meta.cc (hash::add_subdirs): Use new char instead of strdup. | |
3073 | * package_source.h (~ packagesource): Use delete[] instead of delete. | |
3074 | * port.h (strdup): Deprecate the use of strdup. | |
3075 | * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc. | |
3076 | * script.cc (init_run_script): Us delete[], not free. | |
3077 | (run_script): Ditto. | |
3078 | * simpsock.cc (SimpleSocket::fill): Use new char, not malloc. | |
3079 | (SimpleSocket::invalidate): Use delete[], not free. | |
3080 | * site.cc (site_list_type::init): Use new char instead of strdup. | |
3081 | * site.h (~site_list_type): Use delete[], not free. | |
3082 | ||
ad3c7385 RC |
3083 | 2002-01-20 Robert Collins <rbtcollins@hotmail.com> |
3084 | ||
3085 | * Makefile.in (OBJS): Add win32.o - win32 support functions. | |
3086 | * README: Update todos. | |
3087 | * archive.cc (extract_file): Support a suffix for appending to extracted files. | |
3088 | * archive.h: Ditto. | |
3089 | * choose.cc (set_view_mode): Use the new view::views class. | |
3090 | (view::views::Unknown): New static for defaulting view::views variables. | |
3091 | (view::views::PackageFull): New static for the current view. | |
3092 | (view::views::Package): Ditto. | |
3093 | (view::views::Category): Ditto. | |
3094 | (topbucket::paint): Remove. | |
3095 | (topbucket::empty): Rename to pick_category_line::empty. | |
3096 | (topbucket::~topbucket): Remove. | |
3097 | (paint): Use the new view::views class. | |
3098 | Don't paint 'all' as a category when showing package categoies. | |
3099 | (pick_category_line::actiontext): New method. | |
3100 | (pick_category_line::paint): Make showing the category optional, and show the | |
3101 | 'category action'. | |
3102 | (pick_category_line::click): Make showing the category optional, and | |
3103 | differentiate between the name being clicked, and the action description. | |
3104 | (view::view): Use the new view::views class. | |
3105 | (view::set_view_mode): Ditto. | |
3106 | (view::mode_caption): Ditto. | |
3107 | (view::views::caption): New method. | |
3108 | (view::set_headers): Use the new view::views class. | |
3109 | (view::clear_view): Ditto. | |
cef493d7 | 3110 | (viewsplusplus): Replaced by |
ad3c7385 RC |
3111 | (view::views::operator++): New operator. |
3112 | (set_view_mode): Use the new view::views class. | |
3113 | (create_listview): Ditto. | |
3114 | (dialog_cmd): Ditto. | |
3115 | * choose.h (actions): Remove. | |
3116 | (views): Remove. | |
3117 | (pick_line): Add a new convenience constructor. | |
3118 | (top_bucket): Remove. | |
3119 | (pick_category_line): Reparent under pick_line, and adsorb top_bucket. | |
3120 | (view::views): New class. | |
3121 | * ini.h: Don't include choose.h | |
3122 | (is_download_action): Remove. | |
3123 | (is_upgrade_action): Remove. | |
3124 | (is_uninstall_action): Remove. | |
3125 | (is_full_action): Remove. | |
3126 | * install.cc (num_replacements): New static. | |
3127 | (rebootneeded): Ditto. | |
3128 | (replace_one): Handle upgrades separate from removal or new installs. | |
3129 | (install_one_source): Handle in use files. | |
3130 | (install_one): Don't repeat upgrades. | |
3131 | (do_install_thread): Initialize new statics. | |
3132 | Order actions as uninstall, replace, install. | |
3133 | Warn about rebooting if needed. | |
3134 | * res.rc (IDS_REBOOT_REQUIRED): New string. | |
3135 | * resource.h (IDS_REBOOT_REQUIRED): Give value. | |
3136 | * win32.h: Declare class Win32, and update copyright and intent message. | |
3137 | * win32.cc: New file. | |
3138 | ||
edef4f57 CV |
3139 | 2002-01-15 Corinna Vinschen <corinna@vinschen.de> |
3140 | ||
3141 | * io_stream.cc (io_stream::gets): Eliminate trailing new line chars. | |
3142 | * package_meta.cc (packagemeta::uninstall): Check for additional | |
3143 | Windows shortcut. Unset R/O file attribute before trying to delete | |
3144 | file. | |
3145 | ||
21f325d7 RC |
3146 | 2002-01-09 Robert Collins <rbtcollins@hotmail.com> |
3147 | ||
3148 | * choose.cc (pkgtrustp): Fall back to installed if a package is not present in | |
3149 | the current trust level. For prev, fall back via curr. | |
3150 | (set_existence): Allow sources with no sites, but cached files to be | |
3151 | kept. | |
3152 | (pick_category_line::paint): Start drawing clickable categories. | |
3153 | * fromcwd.cc (found_file): Reinstate local file scanning. | |
3154 | ||
858f100d RC |
3155 | 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
3156 | ||
cef493d7 | 3157 | * fromcwd.cc: Run indent. |
858f100d RC |
3158 | (do_fromcwd): Reverse sense of comment. Set next_dialog |
3159 | to IDD_CHOOSER instead of IDD_CHOOSE. | |
3160 | * ini.cc (find_routine): Remove "/" from "/setup.ini". | |
cef493d7 | 3161 | |
d343da15 RC |
3162 | 2001-01-07 Robert Collins <rbtcollins@hotmail.com> |
3163 | ||
3164 | * category.cc (Categorycmp): Add a const safe version. | |
3165 | * category.h (Categorycmp): Add a const safe version. | |
3166 | (Category): Add operator ==. | |
3167 | * choose.cc (fill_missing_category): Add every package to "All". | |
3168 | (pick_category_line::paint): Add support for hidden labels, and a tree depth. | |
3169 | (pick_category_line::click): Ditto. | |
3170 | (view::view): Pass in a top level category to use. | |
3171 | (view::insert_pkg): Special case - skip category "All". | |
3172 | (view::insert_category): Ditto. | |
3173 | (view::clear_view): Set the contents label state. | |
3174 | (create_listview): Pass in a top level category to view(). | |
3175 | * choose.h (topbucket): Make bucket available to derived classes. | |
3176 | (pick_category_line): Add support for hidden labels, and a tree depth. | |
3177 | Remove our second copy of bucket. | |
3178 | (view): Pass in a top level category to the constructor. | |
3179 | Use pick_category_line to allow three level display. | |
3180 | ||
bcf20115 RC |
3181 | 2001-01-06 Robert Collins <rbtcollins@hotmail.com> |
3182 | ||
3183 | * cygpackage.h (cygpackage): Make set_[s|l]desc virtual. | |
3184 | * iniparse.y (add_correct_version): Copy descriptions across. | |
cef493d7 | 3185 | * package_meta.cc (SDesc): Iterate through versions, return the first with a |
bcf20115 RC |
3186 | description. |
3187 | * package_version.h (packageversion): Add new virtuals set_[l|s]desc. | |
3188 | ||
bc78a6d5 RC |
3189 | 2001-01-04 Robert Collins <rbtcollins@hotmail.com> |
3190 | ||
3191 | * script.cc (run_script): Change cygpath:// to cygfile://. | |
3192 | * install.cc (do_install_thread): Fix off-by-one errors. | |
3193 | ||
4f4e55c2 RC |
3194 | 2001-01-04 Robert Collins <rbtcollins@hotmail.com> |
3195 | ||
3196 | * package_db.cc (packagedb::flush): Fix an off-by-one error. | |
3197 | ||
8e9aa511 RC |
3198 | 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org> |
3199 | ||
3200 | * Makefile.in (realclean): more clean. | |
3201 | (OBJS): Add script.o. | |
3202 | * postinstall.cc (run_script_in_etc_postinstall): New function. | |
3203 | (do_postinstall): Split off new funtion init_run_script (). | |
3204 | (init_run_script): | |
3205 | (run): | |
3206 | (run_script): Move to script.cc. Replace some deprecated remove | |
3207 | and move calls. | |
3208 | * script.h: | |
3209 | * script.cc: New file. | |
3210 | * Forward port cygwin-20010707.jcn3.patch. | |
3211 | * package_meta.cc (uninstall): Run pre- and postremove scripts. | |
3212 | * install.cc: Typo fix. | |
3213 | (do_install): Run script initialisation. | |
cef493d7 | 3214 | |
b7301c43 RC |
3215 | 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
3216 | ||
3217 | * cistring.cc: Run d2u. | |
3218 | * cistring.h: Run d2u. | |
3219 | ||
3220 | * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc" | |
3221 | from the generated /etc/profile. Bash will source this file | |
3222 | automatically, and having this here merely results in .bashrc being | |
3223 | executed twice. Run d2u. | |
3224 | * desktop.h: Run d2u. | |
3225 | ||
3226 | * propsheet.cc: Run d2u. | |
3227 | (PropSheetProc): New function. Add minimize box here instead of in | |
3228 | PropertyPage::DialogProc. | |
3229 | (PropSheet::Create): Change to use creation callback PropSheetProc. | |
3230 | (DLGTEMPLATEEX): Add 'hidden' Windows struct definition. | |
3231 | ||
3232 | * propsheet.h: Run indent, d2u. | |
3233 | * proppage.h: Run indent, d2u. | |
3234 | ||
3235 | * proppage.cc: Run d2u. | |
3236 | (PropertyPage::DialogProc): Remove minimize-box-adding | |
3237 | functionality. Remove commented-out "PropSheet_SetWizButtons" calls. | |
3238 | Add support for calling virtual OnMessageCmd. Add setting of fonts in | |
3239 | WM_INITDIALOG handler. | |
3240 | (resource.h): New include for resource IDs. | |
3241 | ||
3242 | * res.rc: Resize and rearrange property page dialog templates | |
3243 | to bring them in line with "Microsoft's Backward Compatible Wizard 97" | |
3244 | specification. Run d2u. | |
3245 | (IDD_SITE): Add an edit control and an "Add" button in order to | |
3246 | combine the IDD_SITE and IDD_OTHER_URL functionality onto one page. | |
3247 | (IDD_OTHER_URL): Remove dialog template. | |
3248 | (IDD_DLSTATUS): Remove dialog template. | |
3249 | ||
3250 | * site.cc: Run d2u. | |
3251 | (SitePage::OnBack): Remove NEXT() macro invocation. | |
3252 | (SitePage::OnActivate): New member function. | |
3253 | (load_dialog): Remove. Functionality subsumed into | |
3254 | SitePage::OnActivate. | |
3255 | (save_dialog): Change to support both list and user URLs. Remove | |
3256 | OTHER_IDX and mirror_idx logic. | |
3257 | (SitePage::PopulateListBox): New member function. | |
3258 | (SitePage::CheckControlsAndDisableAccordingly): New member function. | |
3259 | (SitePage::OnMessageCmd): New override. | |
3260 | (check_if_enable_next): Remove. | |
3261 | (dialog_cmd): Remove. | |
3262 | (do_download_site_info_thread): Remove calls to NEXT() macro. | |
3263 | (SitePage::Create): Call the single-param PropertyPage::Create | |
3264 | overload. | |
3265 | (other_url): New static taken from other.cc. | |
3266 | (SitePage::OnNext): Remove mirror_idx logic. | |
3267 | (SitePage::OnInit): Remove "Other URL" entry from list box. Remove | |
3268 | list box populating code, now handled in SitePage::PopulateListBox. | |
3269 | (mirror_idx, NO_IDX, OTHER_IDX): Remove. | |
3270 | (save_site_url): Fix potential buffer overflow problem. Switched to | |
3271 | TCHAR in grossly premature preparation for multilingual support. | |
3272 | * site.h: Run d2u. | |
3273 | (SitePage::OnActivate): New member function. | |
3274 | (SitePage::CheckControlsAndDisableAccordingly) New member. | |
3275 | (SitePage::OnMessageCmd): New override. | |
3276 | (do_download_site_info_thread): Add MessageBox call on failure to | |
3277 | download site list. | |
3278 | ||
3279 | * splash.cc: Run d2u. | |
3280 | (SplashPage::OnInit): Set the font for the title. | |
3281 | * splash.h: Run d2u. | |
3282 | ||
3283 | * threebar.cc: Run d2u. | |
3284 | * threebar.h: Run d2u. | |
3285 | ||
3286 | * window.h: Run d2u. | |
3287 | (Window::IsButtonChecked): New member function declaration. | |
3288 | (Window::OnMessageCmd): New member function. | |
3289 | (Window::SetDlgItemFont): New member function declaration. | |
3290 | (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data | |
3291 | members. | |
3292 | * window.cc: Run d2u. | |
3293 | (Window::IsButtonChecked): New member function definition. | |
3294 | (Window::SetDlgItemFont): New member function definition. | |
3295 | (Window::Window): Add initialization for FontCounter. | |
3296 | (Window::~Window): Delete any fonts we created. | |
3297 | ||
3298 | * geturl.cc: Run d2u. | |
3299 | (progress): Remove the "3" field width from the "%3d" | |
3300 | percent-complete format indicator. Causes line to not start at | |
3301 | beginning of text box, and does little to help with "jumping", since | |
3302 | the "bytes downloaded so far" field is variable-width anyway. Change | |
3303 | kb/s format field to "%03.1" to 0-pad the kb/s number in the event of | |
3304 | painfully slow connections, or temporary slowdowns in faster | |
3305 | connections should such more-instantaneous functionality become | |
3306 | available. | |
3307 | ||
3308 | * net.h: Run d2u. | |
3309 | (NetPage::OnMessageCmd): New member function declaration. | |
3310 | (NetPage::CheckIfEnableNext): New member function declaration. | |
3311 | * net.cc: Run d2u. | |
3312 | (NetPage::OnMessageCmd): New member function definition. | |
3313 | (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd. | |
3314 | (check_if_enable_next): Remove. | |
3315 | (NetPage::CheckIfEnableNext): New member function, subsumes | |
3316 | check_if_enable_next. | |
3317 | (propsheet.h): Add include. | |
3318 | (NetPage::Init): Add call to CheckIfEnableNext. | |
3319 | (load_dialog): Remove call to check_if_enable_next. | |
3320 | (NetPage::Create): Call single-template-ID-parameter overload of | |
3321 | PropertyPage::Create instead of three-parameter one. | |
3322 | ||
3323 | * Makefile.in (OBJS): Remove other.o. | |
3324 | * other.cc: Remove file. | |
3325 | ||
df62e023 RC |
3326 | 2002-01-01 Robert Collins <rbtcollins@hotmail.com> |
3327 | ||
3328 | * README: Update TODO's. | |
3329 | * choose.cc (set_existence): Delete non installed packages with no | |
3330 | mirrors. | |
3331 | (fill_missing_category): Fix an off-by-one error. | |
cef493d7 | 3332 | (default_trust): Ditto. Also delete any unused categories. |
df62e023 RC |
3333 | (view::init_headers): Fix an off-by-one error. |
3334 | (set_view_mode): Ditto. | |
3335 | (set_view_mode): Ditto. | |
3336 | (create_listview): Ditto. | |
3337 | (dialog_cmd): Ditto. | |
3338 | (do_choose): Ditto. | |
3339 | * io_stream.cc: Indent. | |
3340 | * io_stream.h: Ditto. | |
3341 | * package_db.cc: Ditto. | |
3342 | * package_meta.h: Const correctness for SDesc (); | |
3343 | * proppage.cc: Run d2u and indent. | |
3344 | * propsheet.cc: Run d2u and indent. | |
3345 | * window.cc: Run d2u and indent. | |
3346 | * window.h: Run d2u and indent. | |
3347 | ||
cec57ee1 CF |
3348 | 2001-12-28 Christopher Faylor <cgf@redhat.com> |
3349 | ||
e98c531e | 3350 | * Makefile.in (iniparse.o): Accommodate newer bisons. |
cec57ee1 | 3351 | |
ab57ceaa RC |
3352 | 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
3353 | ||
3354 | * window.h (Window): New file, new class. | |
3355 | * window.cc (Window): New file, new class. | |
3356 | ||
3357 | * threebar.h (ThreeBarProgressPage): New file, new class. | |
3358 | * threebar.cc (ThreeBarProgressPage): New file, new class. | |
3359 | ||
3360 | * splash.h (SplashPage): New file, new class. | |
3361 | * splash.cc (SplashPage): Replace file with implementation of new | |
3362 | class. | |
3363 | ||
3364 | * source.h (SourcePage): New file, new class. | |
3365 | * source.cc: Run indent. | |
3366 | (SourcePage): Add class implementation to this file. | |
3367 | (do_source): Remove, functionality subsumed by SourcePage::Create() | |
3368 | and SourcePage::OnDeactivate(). | |
cef493d7 | 3369 | (dialog_proc): Remove, functionality subsumed by |
ab57ceaa RC |
3370 | SourcePage::OnActivate(). |
3371 | ||
3372 | * site.h: Run indent. | |
3373 | (SitePage): Add class declaration. | |
3374 | * site.cc: Run indent. | |
3375 | (SitePage): Add class implementation. | |
3376 | (do_download_site_info_thread): New function. | |
3377 | (context): New var. Context info for do_download_site_info_thread(). | |
3378 | (do_download_site_info): New function. | |
3379 | (SitePage::Create, SitePage::OnInit SitePage::OnNext) | |
3380 | (SitePage::OnBack): SitePage class implementation.. | |
3381 | (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled | |
3382 | by SitePage members. | |
3383 | (dialog_proc): Remove, now handled by SitePage::OnInit and base class | |
3384 | functionality. | |
3385 | (do_site): Remove, now handled by do_download_site_info_thread() and | |
3386 | SitePage::OnNext functionality. | |
3387 | (get_site_list): Remove dismiss_url_status_dialog() call. | |
3388 | ||
3389 | * root.h (RootPage): New file, new class. | |
3390 | * root.cc: Run indent. | |
3391 | (dialog_cmd): Pass parent HWND parameter to note(), yesno(). | |
3392 | (dialog_proc): Remove. | |
3393 | (do_root): Remove | |
3394 | (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch. | |
3395 | (RootPage::OnInit): New member function. Move get_root_dir() logic to | |
3396 | here from do_root(). | |
3397 | (RootPage::Create): New member function. | |
cef493d7 | 3398 | (RootPage::OnNext): New member function. Move IDOK logic from |
ab57ceaa RC |
3399 | dialog_cmd() to here. |
3400 | (RootPage::OnBack): New member function. | |
3401 | ||
3402 | * propsheet.h (PropSheet): New file, new class. | |
3403 | * propsheet.cc (PropSheet): New file, new class. | |
3404 | ||
3405 | * proppage.h (PropertyPage): New file, new class. | |
3406 | * proppage.cc (PropertyPage): New file, new class. | |
3407 | ||
3408 | * postinstall.cc (do_postinstall): Add owner parameter. | |
3409 | ||
3410 | * other.cc (do_other): Add owner parameter. | |
3411 | ||
3412 | * nio-file.cc (NetIO::Purl): Pass NULL parent param to note(). | |
cef493d7 | 3413 | * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to |
ab57ceaa | 3414 | get_ftp_auth(). |
cef493d7 | 3415 | * nio-http.cc (retry_get): Pass NULL parent param to get_auth(), |
ab57ceaa RC |
3416 | get_proxy_auth(), |
3417 | and get_ftp_auth(). | |
cef493d7 | 3418 | * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(), |
ab57ceaa RC |
3419 | get_auth(), get_proxy_auth(). |
3420 | ||
3421 | * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param. | |
cef493d7 | 3422 | * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth, |
ab57ceaa RC |
3423 | NetIO::get_ftp_auth) |
3424 | (auth_common): Add owner param. Pass owner param to DialogBox. | |
cef493d7 | 3425 | (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass |
ab57ceaa RC |
3426 | owner param to auth_common(). |
3427 | ||
3428 | * net.h (NetPage): New file, new class. | |
3429 | * net.cc: Run indent. | |
3430 | (net.h, threebar.h): Add includes. | |
3431 | (Progress): Add extern. | |
3432 | (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by | |
3433 | property sheet logic. Saved temporarily for reference. | |
cef493d7 | 3434 | (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate, |
ab57ceaa RC |
3435 | NetPage::OnNext, NetPage::OnBack): |
3436 | New implementation of NetPage class members. | |
3437 | (do_net): Remove. | |
3438 | (dialog_proc): Remove. | |
3439 | ||
3440 | * msg.h (fatal, note, yesno): Add owner param. | |
3441 | * msg.c (fatal, note, yesno, mbox): Add owner param. | |
3442 | (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong | |
3443 | now that we have a parent. | |
3444 | ||
3445 | * main.cc: Run indent. | |
cef493d7 | 3446 | (commctrl.h, proppage.h, propsheet.h, splash.h, source.h) |
ab57ceaa RC |
3447 | (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include |
3448 | headers. | |
3449 | (root_dialog_proc): extern into this file. | |
3450 | (Progress): Progress dialog defined here, used in several other files. | |
3451 | (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net, | |
3452 | Site, Chooser, Desktop pages and MainWindow sheet. Call | |
3453 | InitCommonControls() to make sure Windows is set up for our use of | |
3454 | property sheets. Add pages to sheet. | |
3455 | Call MainWindow.Create() to "DoModal". Remove main loop, that logic is | |
3456 | now handled by the PropSheet class. | |
3457 | (root.h): Add include. | |
3458 | ||
3459 | * log.cc (log_save): Pass NULL parent to fatal(). | |
3460 | (exit_setup): Pass NULL parent to note(). | |
3461 | ||
3462 | * localdir.h (LocalDirPage): New file, new class. | |
3463 | * localdir.cc: Run indent. | |
3464 | (localdir.h): New include. | |
3465 | (threebar.h): New include. | |
3466 | (Progress): extern into this file. | |
3467 | (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate) | |
cef493d7 | 3468 | (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of |
ab57ceaa RC |
3469 | LocalDirPage. |
3470 | (LocalDirPage::OnNext): Move log() call from do_local_dir() to here. | |
3471 | (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers. | |
3472 | (do_local_dir): Remove. | |
3473 | (dialog_proc): Remove. | |
3474 | (cwd): Remove, not used by anything. | |
3475 | ||
3476 | * install.cc: Run indent. | |
3477 | (process.h, threebar.h): New includes. | |
3478 | (Progress): extern into this file. | |
3479 | (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress) | |
3480 | (ins_iprogress, ins_diskfull, init_event): Remove, now handled by | |
3481 | ThreeBarProgressPage. | |
cef493d7 | 3482 | (dialog_cmd, dialog_proc, dialog): Removed, handled in |
ab57ceaa | 3483 | ThreeBarProgressPage. |
cef493d7 CF |
3484 | (init_dialog): Remove all mention of the above ins_* handles. Now |
3485 | handled in ThreeBarProgressPage. Altered SetWindowText()s to call | |
ab57ceaa RC |
3486 | ThreeBarProgressPage instance Progress directly. |
3487 | (progress): Alter bar update logic to call ThreeBarProgressPage | |
3488 | instance Progress directly. | |
3489 | (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage | |
3490 | instance Progress directly. | |
cef493d7 | 3491 | (install_one_source): Alter SetWindowText()s to call |
ab57ceaa RC |
3492 | ThreeBarProgressPage |
3493 | instance Progress directly. Pass NULL parent to note(). | |
cef493d7 | 3494 | (do_install_thread): Rename from do_install(), added owner param. |
ab57ceaa RC |
3495 | Alter SetWindowText()s to call ThreeBarProgressPage instance Progress |
3496 | directly. | |
3497 | Remove dismiss_url_status_dialog() call, no longer necessary. Remove | |
cef493d7 | 3498 | ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to |
ab57ceaa RC |
3499 | fatal(). |
3500 | (do_install_reflector): New function. | |
3501 | (do_install): New function. | |
3502 | ||
3503 | * ini.cc (process.h, threebar.h): New includes. | |
3504 | (Progress): externed into this file. | |
3505 | (find_routine): Pass NULL parent to note(). | |
3506 | (do_local_ini): Add owner param. | |
cef493d7 | 3507 | (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf() |
ab57ceaa RC |
3508 | and note(). Remove call to dismiss_url_status_dialog(). |
3509 | (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to | |
cef493d7 | 3510 | do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog |
ab57ceaa RC |
3511 | to IDD_CHOOSER on exit. |
3512 | (do_ini_thread_reflector): New function. | |
3513 | (context): New var. Context for do_ini_thread. | |
3514 | (do_ini): New function. | |
3515 | ||
3516 | * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add | |
3517 | owner param. | |
cef493d7 | 3518 | * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress, |
ab57ceaa | 3519 | gw_iprogress) |
cef493d7 | 3520 | (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event): |
ab57ceaa RC |
3521 | Removed. |
3522 | (threebar.h): New include. | |
3523 | (Progress): externed into this file. | |
cef493d7 | 3524 | (dialog_cmd, dialog_proc, dialog): Removed, handled by |
ab57ceaa | 3525 | ThreeBarProgressPage now. |
cef493d7 | 3526 | (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter |
ab57ceaa | 3527 | SetWindowText()s |
cef493d7 | 3528 | and bar setting SendMessage()s to call ThreeBarProgressPage instance |
ab57ceaa RC |
3529 | Progress directly. Remove "one bar only" logic, this is now handled |
3530 | explicitly in the ThreeBarProgressPage class. | |
cef493d7 | 3531 | (progress): Altered bar and text update logic to call |
ab57ceaa RC |
3532 | ThreeBarProgressPage instance Progress directly. Changed kbps |
3533 | calculation to floating point and now print out a single decimal | |
3534 | place. | |
3535 | (get_url_to_membuf): Add owner param. Pass it to init_dialog. | |
3536 | (get_url_to_string): Add owner param. Pass it to get_url_to_membuf. | |
cef493d7 | 3537 | (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar |
ab57ceaa RC |
3538 | update logic to call ThreeBarProgressPage instance Progress directly. |
3539 | (dismiss_url_status_dialog): Remove. | |
3540 | ||
3541 | * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to | |
3542 | false, was true. | |
3543 | ||
3544 | * download.cc: Run indent. | |
3545 | (process.h, threebar.h): New includes. | |
3546 | (Progress): externed into this file. | |
3547 | (download_one): Add owner param. Pass it to get_url_to_file(). | |
3548 | (do_download_thread): Renamed from do_download. Add owner param. When | |
3549 | calculating total_download_bytes, take binpicked and srcpicked into | |
3550 | account. Remove call to dismiss_url_status_dialog(), no longer needed. | |
3551 | Pass owner handle to download_one() and yesno(). | |
3552 | (do_download_reflector, do_download): New functions. | |
3553 | (context): New var. Context for do_download_thread(). | |
3554 | ||
3555 | * dialog.h (D(x)): Add owner param. | |
3556 | ||
3557 | * desktop.h (DesktopSetupPage): New file, new class. | |
3558 | * desktop.cc: Run indent. | |
3559 | (desktop.h): Add include. | |
cef493d7 | 3560 | (dialog_proc, do_desktop): Remove, now handled in |
ab57ceaa RC |
3561 | DesktopSetupPage::OnInit(). |
3562 | (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in | |
3563 | DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet | |
3564 | resp. | |
3565 | (DesktopSetupPage::Create, DesktopSetupPage::OnInit) | |
3566 | (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation | |
3567 | of DesktopSetupPage. | |
3568 | ||
3569 | * cistring.h: New file, new class. | |
3570 | * cistring.cc: New file, new class. | |
3571 | ||
3572 | * choose.h: Run indent. | |
3573 | (Chooser): New class declaration. | |
3574 | * choose.cc: Run indent. | |
cef493d7 | 3575 | (do_choose): Add owner param. Pass it to DialogBox() and |
ab57ceaa RC |
3576 | fatal(). |
3577 | (Chooser): New class implementation. | |
3578 | ||
3579 | * res.rc (IDS_VERSION_INFO): New string. | |
3580 | (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL) | |
3581 | (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP): | |
3582 | Change WS_POPUP to WS_CHILD. Numerous positioning/size changes | |
3583 | throughout. | |
3584 | (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable | |
3585 | TAB control navigation etc. Give the controls a reasonable tab order. | |
3586 | Grouped radio buttons. Something's still not right, can't tab away | |
3587 | from back/next/cancel group reliably. | |
3588 | * resource.h (IDD_CHOOSER): New dialog ID. | |
3589 | ||
3590 | * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o, | |
3591 | threebar.o, and window.o. | |
3592 | ||
cc41a057 RC |
3593 | 2001-12-21 Robert Collins <rbtcollins@hotmail.com> |
3594 | ||
3595 | * choose.cc (listview_proc): Update the scrollbar when the headers are dragged. | |
3596 | (pick_pkg_line::paint): Clip columns to prevent overlap. | |
3597 | ||
cbfc4215 RC |
3598 | 2001-12-20 Robert Collins <rbtcollins@hotmail.com> |
3599 | ||
3600 | * Makefile.in: Add libcomctl32.a for setup.exe. | |
3601 | * archive.h (archive): Prevent non-child direct creation of the class. | |
3602 | * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment. | |
3603 | * choose.cc: Include commctrl for the choose header. | |
3604 | (NEW_COL_SIZE_SLOP): Define without magic numbers. | |
3605 | (pkgtrustp): Convert to function. | |
3606 | (set_action): Remove. | |
cef493d7 | 3607 | (add_required, fill_missing_category,default_trust): Use list syntax for |
cbfc4215 RC |
3608 | package list. |
3609 | Use new set_action. | |
3610 | (choose_caption): Remove. | |
3611 | (topbucket::paint): New method. | |
3612 | (topbucket::empty): Ditto. | |
3613 | (topbucket::click): Ditto. | |
3614 | (topbucket::~topbucket): Ditto. | |
3615 | (paint): Remove i,ii and p as they are obsolete. | |
3616 | Remove header drawing code. | |
3617 | Use new chooser method to paint the chooser. | |
3618 | Use new chooser itemcount method. | |
3619 | (scroll_common): Rename to view::scroll. | |
3620 | Scroll the header window separately. | |
3621 | (list_vscroll, list_hscroll, list_click): Update for new chooser methods. | |
3622 | (listview_proc): Look for header messages. | |
3623 | (note_width): Accept stringless calls. | |
3624 | (pick_line::set_line): Remove. | |
3625 | (pick_line::paint): Remove. | |
3626 | (pick_pkg_line::paint): Paint this one line, using the header column widths. | |
3627 | (pick_category_line::paint): Paint this category, and anything in the bucket. | |
3628 | (pick_line::click): Remove. | |
3629 | (pick_pkg_line::click): Handle a click. | |
3630 | (pick_category_line::click): Handle a click. | |
3631 | (_view): Rename all to view. | |
3632 | (view::view): Initialise the control contents. | |
3633 | (view::set_headers): Work with the header control. | |
3634 | (view::init_headers): Use list syntax for package list. | |
3635 | Rearrange the width logic a little. | |
3636 | (view::insert_pkg): Update to use the hierarchy. | |
3637 | (view::insert_category): Ditto. | |
3638 | (view::insert_at, view::insert_under): Remove. | |
3639 | (view::clear_view): Update to use the hierarchy. | |
3640 | (view::click): Update to use the hierarchy. | |
3641 | (set_view_mode): Use list syntax for package list. | |
3642 | Update for new chooser methods. | |
3643 | (DoInsertItem): New helper function. (Needs a home somewhere). | |
3644 | (create_listview): Remove choose control code and use the constructor instead. | |
3645 | (dialog_cmd,scan2,do_choose): Use list syntax for package list. | |
3646 | * choose.h: Include newly required headers list and package_meta. | |
3647 | (_voew): Rename to view. | |
3648 | (pick_line): Convert to an ABC. | |
3649 | (pick_pkg_line): New class. | |
3650 | (pick_catgory_line): New class. | |
3651 | (topbucket): New class. | |
3652 | (view::scroll): New method created from listview_scroll function. | |
3653 | * desktop.cc (make_passwd_group): Use list syntax for package list. | |
3654 | * download.cc (do_download): Use list syntax for package list. | |
3655 | * fromcwd.cc (found_file): Use list syntax for package list. | |
3656 | * iniparse.y (pacakges): Use list syntax for package list. | |
3657 | * install.cc (uninstall_one): Use list syntax for package list. | |
3658 | (do_install): Use list syntax for package list. | |
3659 | * io_stream.h (io_stream): Prevent non-child direct creation of the class. | |
3660 | Prevent inaccurate synthetic copy and assignment. | |
3661 | * list.h: Include required header stdlib. | |
3662 | Work on const correctness. | |
3663 | * package_db.cc (packagedb::getpackagebyname): Remove. | |
3664 | (packagedb::packagedb): Remove custom list code, and make db a local. | |
3665 | (packagedb::getfirstpackage): Remove. | |
3666 | (packagedb::getnextpackage): Remove. | |
3667 | (packagedb::addpackage): Remove. | |
3668 | (flush): Remove custom list code. | |
3669 | (packagedb::registerpackage): Remove. | |
3670 | (packagedb::packages): New static member. | |
3671 | (packagedb::task): New static member. | |
3672 | * package_db.h (PackageDBActions): New enum. | |
3673 | (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname, | |
3674 | addpackage, registerpackage, packages, packagecount, curr_package, db. | |
3675 | Add packages, task. | |
3676 | * pacakge_meta.cc: Include package_db.h. | |
3677 | (packagemeta::action_caption): New method. | |
3678 | (packagemeta::set_action): New method. | |
3679 | * package_meta.h (CategoryPackage): Initialise key. | |
3680 | (packagemeta): Initialise key. | |
3681 | Add set_action and action_caption methods. | |
3682 | Prevent inaccurate synthetic copy and assignment. | |
3683 | * resource.h (IDC_CHOOSE_LISTHEADER): New ID. | |
3684 | * source.cc: Include package_db for db manipulation. | |
3685 | (save_dialog): Set the db task. | |
3686 | * win32.h: Tell the w32 include headers what IE version to expect/require. | |
3687 | ||
cd8e5750 RC |
3688 | 2001-12-06 Robert Collins <rbtcollins@hotmail.com> |
3689 | ||
3690 | * README: Wishlist updates. | |
3691 | ||
5519d243 RC |
3692 | 2001-12-04 Robert Collins <rbtcollins@hotmail.com> |
3693 | ||
3694 | * package_db.cc (getnextpackage): Don't overrun the array. | |
3695 | ||
de6a1a64 RC |
3696 | 2001-12-04 Robert Collins <rbtcollins@hotmail.com> |
3697 | ||
3698 | * Makefile.in (OBJS): Add setup_version.o. | |
3699 | (version.c): Rename to setup_version. | |
3700 | * choose.cc (set_action): Prevent NULL pointer dereference. | |
3701 | (package_sort): Remove. | |
3702 | * fromcwd.cc (canonicalize_version): Moved to version.cc. | |
3703 | (check_ini): New function for use with find to see if there is a cached setup.ini. | |
3704 | (do_fromcwd): Check for a cached setup.ini from any mirror site. | |
3705 | * ini.cc (find_routine): New function, for finding cached setup.ini's. | |
3706 | (do_local_ini): New function, drives parsing of local ini's. | |
3707 | (do_remote_ini): New function, drives parsing and caching of remote ini's. | |
3708 | (do_ini): Move guts to do_remote_ini and do_local_ini. | |
3709 | * list.h (removebyindex): New method. | |
3710 | * other.cc (save_dialog): Use new site_list and all_site_list to add the | |
3711 | new site to the site picklist. | |
3712 | (dialog_cmd): Only save the dialog when exiting the dialog. | |
3713 | * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control. | |
3714 | * site.cc (site_list_type): Move to site.h | |
3715 | (site_list): New global, sites chosen by the user. | |
3716 | (all_site_list): New global, all potential sites. | |
cef493d7 | 3717 | (site_list_type::init): New method, parses a mirror.lst URL string into a |
de6a1a64 RC |
3718 | site_list_type object. |
3719 | (site_list_type::site_list_type): New method. | |
3720 | (check_if_enable_next): Examine the control, not a local variable. | |
3721 | (load_dialog): Select all the user chosen sites by default. | |
cef493d7 | 3722 | (save_dialog): Adjust for multiple selection semantics. |
de6a1a64 | 3723 | (save_site_url): Save all user chosen sites. |
cef493d7 | 3724 | (dialog_cmd): Don't save the dialog when the listbox recieves a message - |
de6a1a64 RC |
3725 | thats not needed. |
3726 | Remove obsolete other_url reference. | |
3727 | (dialog_proc): Use all_site_list instead of site_list. | |
3728 | (site_sort): Remove. | |
3729 | (get_site_list): Remove malloc use - use list template instead. | |
3730 | Move site_list_type initialisation to site_list_type::init(). | |
3731 | (get_initial_list_idx): Renamed to ... | |
3732 | (get_saved_sites): this. Also read in multiple sites to the site_list. | |
3733 | (do_site): Use all_site_list not site_list. | |
3734 | Log all chosen sites. | |
3735 | * site.h: New file, defines site related class, functions and variables. | |
3736 | * state.h: Add comment about use of state.h | |
3737 | (mirror_site): Remove. | |
3738 | (other_url): Remove. | |
3739 | (MIRROR_SITE): Remove. | |
3740 | * version.cc: New file, for version-handling and related functions. | |
3741 | ||
341988b9 RC |
3742 | 2001-12-02 Robert Collins <rbtcollins@hotmail.com> |
3743 | ||
3744 | * Makefile.in: Add filemanip.o to setup. | |
3745 | * archive.cc (archive::extract_file): Use new io_stream method 'copy'. | |
3746 | * archive_tar.h (archive_tar_file): Implement get_size virtual. | |
3747 | (archive_tar): Ditto. | |
3748 | * choose.cc (set_action): Use [] operator instead of getnth - its more readable. | |
3749 | (paint): Ditto. | |
3750 | (_view::init_headers): Ditto. | |
3751 | (_view::insert_pkg): Ditto. | |
3752 | (set_view_mode): Ditto. | |
3753 | (scan2): Ditto. | |
3754 | (do_choose): Ditto. | |
3755 | (base): Moved to filemanip.cc. | |
3756 | (find_tar_ext): Ditto. | |
3757 | (parse_filename): Ditto. | |
3758 | (_Info::_Info): Remove. | |
3759 | * compress_bz.h (compress_bz): Implement get_size virtual. | |
3760 | * compress_gz.h (compress_gz): Implement get_size virtual. | |
3761 | * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects. | |
3762 | * download.cc (get_file_size): Move to filemanip.cc. | |
3763 | (check_for_cached): Use [] operator instead of getnth - its more readable. | |
3764 | (download_one): Ditto. | |
3765 | * filemanip.cc: New file. | |
3766 | * geturl.cc (init_dialog): Make url a pointer to const as it is not modified. | |
3767 | (get_url_to_membuf): New function - contains get_url_to_string worker code. | |
3768 | (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf. | |
3769 | * geturl.h: Declare new prototype. | |
3770 | * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream. | |
3771 | Tidy up the error code a little. | |
3772 | * ini.h: Remove __cplusplus protection for ini_init. | |
3773 | (_Info): Remove. | |
3774 | * inilex.l: Remove old globals. | |
3775 | (ini_init): Use an io_stream for getting the characters. | |
3776 | (ini_getchar): Ditto. | |
3777 | * iniparse.y: Declare yylex as a C++ function. | |
3778 | (add_correct_version): Use [] operator instead of getnth - its more readable. | |
3779 | * io_stream.cc (io_stream::move_copy): Use the copy method. | |
3780 | (io_stream::copy): New method to simply copy from one stream to another. | |
3781 | * io_stream.h (io_stream): New static method copy, and virtual method get_size. | |
3782 | * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this. | |
3783 | * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this. | |
3784 | * io_stream_file.cc (io_stream_file::get_size): Implement this. | |
3785 | * io_stream_file.h (io_stream_file::get_size): Declare this. | |
3786 | * io_stream_memory.h: Include errno as it's neded to parse the header. | |
3787 | (io_stream_memory::get_size): Implement this. | |
3788 | (io_stream_memory::st_size): Delete this. | |
3789 | * list.h: Change getnth into the [] operator. | |
3790 | * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified. | |
3791 | (NetIO::set_url): Ditto. | |
3792 | (NetIO::open): Ditto. | |
3793 | * netio.h: As for netio.cc. | |
3794 | * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not | |
3795 | being modified. | |
3796 | * nio-file.h: Ditto. | |
3797 | * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto. | |
3798 | * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto. | |
3799 | * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto. | |
3800 | * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto. | |
3801 | * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto. | |
3802 | * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto. | |
3803 | * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete. | |
3804 | * package_source.cc (packagesource::set_canonical): Ditto. | |
3805 | (packagesource::set_cached): Ditto. | |
3806 | * package_source.h (site::~site): Ditto. | |
cef493d7 | 3807 | * site.cc: Change site_list_type to a class, and search and replace sort_key to |
341988b9 RC |
3808 | key globally. |
3809 | ||
071c1c54 RC |
3810 | 2001-12-01 Robert Collins <rbtcollins@hotmail.com> |
3811 | ||
3812 | * package_source.cc (packagesource::set_canonical): Filename was out by one. | |
3813 | ||
4fe323f9 RC |
3814 | 2001-11-30 Robert Collins <rbtcollins@hotmail.com> |
3815 | ||
3816 | * Makefile.in (OBJS): Remove category_list - it's not needed. | |
3817 | * README: More wishlist updates. | |
3818 | * category.cc (Category::Category): Initialise new members. | |
3819 | (Categorycmp): New function. | |
3820 | * category.h (Category): New member key for template use. | |
3821 | * category_list.cc: Remove. | |
3822 | * category_list.h: Remove. | |
3823 | (Categorycmp): New function prototype. | |
3824 | * choose.cc: Remove category_list - not needed. | |
cef493d7 | 3825 | (set_action): Only show the 'source' option when the source is actually |
4fe323f9 RC |
3826 | available. |
3827 | (add_required): Fix recursion limiter to 5. | |
3828 | (fill_missing_category): Use list access. | |
3829 | (default_trust): Ditto. | |
3830 | (pick_line::paint): Ditto. | |
3831 | (_view::init_headers): Ditto. | |
3832 | (_view::insert_pkg): Ditto. | |
3833 | (_view::insert_category): Ditto. | |
3834 | (_view::click): Ditto. | |
3835 | (set_view_mode): Ditto. | |
3836 | (do_choose): Ditto. | |
3837 | * cygpackage.h: Remove category_list - not needed. | |
3838 | * geturl.cc (get_url_to_string): Fix null byte insertion. | |
3839 | * inipatse.y: Remove category_list - not needed. | |
3840 | (categories): Use list access. | |
3841 | * package_db.cc: Ditto. | |
3842 | * package_db.h: Remove category_list - not needed. | |
3843 | (packagedb): Use the list template for categories. | |
3844 | * package_meta.cc (add_category): Ditto. | |
3845 | * package_meta.h (CategoryPackage): Link to the category as well. | |
cef493d7 | 3846 | (packagemeta): Use a list of CategoryPackages instead of Categories |
4fe323f9 RC |
3847 | for more memory efficient cross-referencing. |
3848 | ||
7d66d192 RC |
3849 | 2001-11-30 Robert Collins <rbtcollins@hotmail.com> |
3850 | ||
3851 | * package_db.cc (packagedb::flush): Write a canonical version for all packages | |
3852 | irrespective of the media they were installed from. | |
3853 | ||
bb849dbd RC |
3854 | 2001-11-29 Robert Collins <rbtcollins@hotmail.com> |
3855 | ||
3856 | * Makefile.in (OBJS): Add package_source and rfc1738. | |
3857 | * README: Wishlist update. | |
3858 | * category_list.cc (register_category): Use references. | |
3859 | * category_list.h (CategoryList): Ditto. | |
3860 | * choose.cc (isinstalled): Remove. | |
3861 | (pkgtrustp): New macro. | |
3862 | (set_action): Use packagemeta. | |
3863 | (add_required): Ditto. | |
3864 | (choose_caption): Example package to choose caption, rather than state flags. | |
3865 | (check_existence): Remove. | |
3866 | (set_existence): Remove old code. | |
3867 | (fill_missing_category): Use packagemeta. | |
3868 | (keep_or_skip): Remove. | |
3869 | (default_trust): Use packagemeta and set trust values directly. | |
3870 | (pick_line::set_line): Use packagemeta. | |
3871 | (_view::insert_pkg): Ditto. | |
3872 | (_view::insert_category): Ditto. | |
3873 | (_view::click): Ditto. | |
3874 | (set_view_mode): Ditto. Also remove "exclude" code. | |
3875 | (create_listview): Use packagemeta. | |
3876 | (dialog_cmd): Ditto. | |
3877 | (getpkgbyname): Remove | |
3878 | (scan2): Use packagemeta. Temporarily comment out the holefinding code. | |
3879 | (read_installed_db): Remove. | |
3880 | (package_sort): Use packagemeta. | |
3881 | (do_choose): Use packagemeta. Don't sort the packages - the db does that. | |
3882 | * choose.h: Use packagemeta. | |
3883 | * cygpackage.cc (cygpackage::cygpackage): Initialise all variables. | |
3884 | (cygpackage::cygpackage): Ditto. | |
3885 | (cygpackage::set_canonical_version): Copy the passed string. | |
3886 | (cygpackage::~cygpackage): Move cleanup code to destroy(). | |
3887 | (cygpackage::destroy): New function. | |
3888 | (cygpackage::getfirstfile): Use a separate buffer. | |
3889 | (cygpackage::getnextfile): Ditto. | |
3890 | (cygpackage::Canonical_version): New function. | |
3891 | (cygpackage::set_sdesc): Ditto. | |
3892 | (cygpackage::set_ldesc): Ditto. | |
3893 | * cygpackage.h (cygpackage::Canonical_version): New method. | |
3894 | (cygpackage::set_sdesc): New method. | |
3895 | (cygpackage::set_ldesc): New method. | |
3896 | (cygpackage::SDesc): New method. | |
3897 | (cygpackage::LDesc): New method. | |
3898 | (cygpackage::set_canonical_version): New method. | |
3899 | * desktop.cc: Include packagedb headers. | |
3900 | (make_password_group): Use packagemeta. | |
3901 | * download.cc: Include packagedb headers. | |
3902 | (check_for_cached): New method to find any cached file and fill out the database | |
3903 | info. | |
3904 | (download_one): Take a packagesource, support multiple mirrors. | |
3905 | (do_download): Use packagemeta. | |
3906 | * from cwd.cc: Include packagedb headers. | |
3907 | (found_file): Use packagemeta. | |
3908 | * ini.cc (do_ini): Beginning of multiple-mirror support. | |
3909 | * ini.h (CategoryPackage): Remove. | |
3910 | (Dependency): Remove. | |
3911 | (Package): Remove. | |
3912 | (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove. | |
3913 | * inilex.l: Support multiple mirrors. | |
3914 | * iniparse.y: Include packagedb headers. | |
3915 | (parser): Use packagemeta. | |
3916 | (new_package): Remove. | |
3917 | (add_correct_version): New function. | |
3918 | (new_requirement): Remove. | |
3919 | (add_category): Remove. | |
3920 | * install.cc (uninstall_one): Use packagemeta. | |
3921 | (install_one_source): New function. | |
3922 | (install_one): Use packagemeta. | |
3923 | (do_install): Use packagemeta. | |
3924 | * io_stream.cc (io_stream::move): Bugfix on move/copy case. | |
3925 | * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file | |
3926 | after setting the mtime, it makes no sense, and results in 0 length files. | |
3927 | * io_stream_file.cc (io-stream_file::set_mtime): Ditto. | |
3928 | * list.h: New file, template class for a form of list. | |
3929 | * package_db.cc (packagedb::registerpackage): New function. | |
3930 | * package_db.h (packagedb::npackages ()): New method. | |
3931 | * package_meta.cc (packagemeta::add_version): Use list template. | |
3932 | (packagemeta::set_installed): Ditto. | |
3933 | (packagemeta::add_category): New method. | |
3934 | * package_meta.h: Include necessary headers to parse the class. | |
3935 | (CategoryPackage): New class. | |
3936 | (packagemeta): Initialise all members. | |
3937 | (packagemeta::SDesc): New method. | |
3938 | (packagemeta::Categories): New method. | |
3939 | (packagemeta::add_category): Ditto. | |
3940 | (packagemeta::versions): Change to be a list instance. | |
3941 | * package_source.cc (packagesource::set_canonical): New method. | |
3942 | (packagesource::set_cached): New method. | |
3943 | * package_source.h: Include necessary headers to parse the class. | |
3944 | (site): New class. | |
3945 | (packagesource::packagesource): Initialize all members. | |
3946 | (packagesource): Make this class non-abstract. | |
3947 | * package_version.cc (packageversion::packageversion): New method. | |
3948 | * package_version.h (Dependency): New class. | |
3949 | (packageversion::Canonical_vesion): New method. | |
3950 | (packageversion::SDesc): New method. | |
3951 | (packageversion::LDesc): New method. | |
3952 | (packageversion::new_requirement): Ditto. | |
3953 | (packageversion::srcpicked, binpicked): What to install. | |
3954 | (packageversion::src, bin): Installation source data. | |
3955 | * rfc1738.cc: New file. Escapes special characters in URL's. | |
3956 | * rfc1738.h: Ditto. | |
3957 | ||
90d14922 RC |
3958 | 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
3959 | ||
3960 | * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when | |
3961 | SimpleSocket::gets() returns a zero-length string, so that we | |
3962 | don't end up eating the entire stream thinking it's all header info. | |
3963 | ||
7c7034e8 RC |
3964 | 2001-11-23 Robert Collins <rbtcollins@hotmail.com> |
3965 | ||
3966 | * install.cc (badrename): Remove. | |
3967 | (do_install): Use packagedb flush method to write /etc/setup/installed.db. | |
3968 | * io_stream.cc (io_stream::move_copy): New method. | |
3969 | (io_stream::move): New method. | |
3970 | * io_stream.h (io_stream): New methods move and move_copy. | |
3971 | * io_stream_cygfile.cc (io_stream_cygfile::move): New method. | |
3972 | * io_stream_cygfile.h (io_stream_cygfile): New method move. | |
3973 | * io_stream_file.cc (io_stream_file::move): New method. | |
3974 | * io_stream_file.h (io_stream_file): New method move. | |
3975 | * package_db.cc (packagedb::flush): New method. | |
3976 | * package_db.h (packagedb): New method flush. | |
3977 | ||
fa0c0d10 RC |
3978 | 2001-11-23 Robert Collins <rbtcollins@hotmail.com> |
3979 | ||
3980 | * Makefile.in (OBJS): Add package_version. | |
3981 | * ategory.cc (Category::Category): Update constructors. | |
3982 | * category_list.cc (CategoryList::register_category): Insert correctly. | |
3983 | * choose.cc: Include package_version.h, not package.h. | |
3984 | * cygpackage.cc: Ditto. | |
3985 | (cygpackage::uninstall): New method. | |
3986 | * cygpackage.h (cygpackage): Rename genericpackage to packageversion. | |
3987 | New method uninstall. | |
3988 | * hash.cc (add, has, enumerate): Change prototype to be accurate. | |
3989 | * hash.h (hash): Change prototypes to be accurate. | |
3990 | * ini.h (_Info): New parameterless constructor. | |
3991 | (CategoryPackage): New constructor. | |
3992 | (Package): Ditto. | |
3993 | * install.cc: Don't include unneeded headers. | |
3994 | Include package database headers. | |
3995 | (hash::add_subdirs): Remove. | |
3996 | (uninstall_one): Use packagemeta->uninstall to perform the uninstallation. | |
3997 | Don't uninstall source packages. | |
3998 | (do_install): Just can uninstall_one once as we ignore source packages now. | |
cef493d7 | 3999 | Don't copy the installed.old database accross, instead iterate through the |
fa0c0d10 RC |
4000 | packagedb packages list and write the isntalled packages out. |
4001 | * package_db.cc: Include package_version.h, not package.h. | |
4002 | (packagedb::packagedb): Never let db be undefined. | |
4003 | Record the installation filename, so we can reconstruct installed.db. | |
4004 | (packagedb::addpackage): Insert packages in alpha sorted order. | |
4005 | (packagedb::categories): Initialise correctly. | |
4006 | * package_meta.cc: Include win32 and mount headers as a workaround to | |
4007 | current io_stream limitations. Include a TODO about that. | |
4008 | (standard_dirs): New, from install.cc. | |
4009 | (hash::add_subdirs): New, from install.cc. | |
4010 | (packagemeta::set_installed): Rename genericpackage to packageversion. | |
4011 | (packagemeta::uninstall): New method. | |
4012 | * package_meta.h: Rename genericpackage to packageversion. | |
4013 | (packagemeta): Update constructor. | |
4014 | (add_version, set_installed): Rename genericpackage to packageversion. | |
4015 | (uninstall): New method. | |
4016 | (installed_from): New member. | |
4017 | * package_source.cc: New file. | |
4018 | * package_source.h: New file. | |
4019 | * package_version.cc: New file. | |
4020 | * package_version.h: New file. | |
4021 | * package.cc: Removed. | |
4022 | * package.h: Removed. | |
cef493d7 | 4023 | |
7b606ae5 RC |
4024 | 2001-11-21 Robert Collins <rbtcollins@hotmail.com> |
4025 | ||
4026 | * Makefile.in (OBJS): Add category.o and category_list.o. | |
4027 | * category.h: New file. | |
4028 | * category.cc: New file. | |
4029 | * category_list.h: New file. | |
4030 | * category_list.cc: New file. | |
4031 | * choose.cc: Include category headers. | |
4032 | (fill_missing_category): Use package_db to access global categories. | |
4033 | (_view::insert_pkg): Ditto. | |
4034 | (_view::insert_category): Ditto. | |
4035 | (set_view_mode): Ditto. | |
4036 | (getcategorybyname): Remove. | |
4037 | * cygpackage.h: Include category_list.h to parse this correctly. | |
4038 | (cygpackage): New virtual &Categories. | |
4039 | * ini.h (_CategoryPackage): More C to C++ conversion. | |
4040 | (Category): Remove. | |
4041 | (getcategorybyname): Remove. | |
4042 | (register_category): Remove. | |
4043 | * iniparse.y: Include package db and category headers. | |
4044 | (categories): Use package_db to access global categories. | |
4045 | (category): Remove. | |
4046 | (ncategories): Remove. | |
4047 | (register_category): Remove. | |
4048 | * package.h: New virtual &Categories. | |
4049 | * package_db.cc (packagedb::packagedb): Don't read the installed db twice. | |
4050 | (packagedb::categories): Declare. | |
4051 | * package_db.h (packagedb): New member categories for global categories list. | |
4052 | ||
d0fa1c4e RC |
4053 | 2001-11-21 Robert Collins <rbtcollins@hotmail.com> |
4054 | ||
4055 | * choose.h: Don't include ini.h | |
4056 | * ini.h: Allow pure c++ in the header file. | |
4057 | ||
24cbae7f RC |
4058 | 2001-11-21 Robert Collins <rbtcollins@hotmail.com> |
4059 | ||
4060 | * install.cc (do_install): Write a version 2 installed.db file. | |
4061 | * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files. | |
4062 | ||
7939f6d1 RC |
4063 | 2001-11-21 Robert Collins <rbtcollins@hotmail.com> |
4064 | ||
4065 | * Makefile.in (OBJS): Add package abstraction objects. | |
4066 | * choose.cc: Include package abstraction headers. | |
4067 | (read_installed_db): Use packagedb class and ignore installed sources. | |
4068 | * cygpackage.cc: New file. | |
4069 | * cygpackage.h: New file. | |
4070 | * filemanip.h (get_file_size): Use unixy types. | |
4071 | * package.h: New file. | |
4072 | * package.cc: New file. | |
4073 | * package_db.cc: New file. | |
4074 | * package_db.h: New file. | |
4075 | * package_meta.cc: New file. | |
4076 | * package_meta.h: New file. | |
4077 | ||
33bc0053 RC |
4078 | 2001-11-21 Robert Collins <rbtcollins@hotmail.com> |
4079 | ||
4080 | * REAME: Updates to wishlist. | |
4081 | ||
12ccadc0 RC |
4082 | 2001-11-16 Robert Collins <rbtcollins@hotmail.com> |
4083 | ||
4084 | * README: Updated and added my list of wishlist and todo items. | |
4085 | ||
ca9506cc RC |
4086 | 2001-11-14 Robert Collins <rbtcollins@hotmail.com> |
4087 | ||
4088 | * Makefile.in (OBJS): Include io_stream_memory in setup.exe. | |
4089 | * archive_tar.cc (archive_tar::write): New prototype. | |
4090 | (archive_tar::seek): New method. | |
4091 | * archive.h (archive_tar_file): Update write() and add seek(). | |
4092 | (archive_tar): Ditto. | |
4093 | * archive_tar_file.cc (archive_tar_file::write): New prototype. | |
4094 | (archive_tar_file::seek): New method. | |
4095 | * compress_bz.cc (compress_bz::write): New prototype. | |
4096 | (compress_bz::seek): New function. | |
4097 | * compress_bz.h (compress_bz): Update write() and add seek(). | |
4098 | * compress_gz.cc (compress_gz::write): New prototype. | |
4099 | (compress_gz::seek): New function. | |
4100 | * compress_gz.h (compress_gz): Update write() and add seek(). | |
4101 | * geturl.cc: Include io_stream headers. | |
4102 | (GUBuf): Remove. | |
4103 | (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf. | |
4104 | * io_stream.h (io_stream_seek_t): New enum. | |
4105 | (io_stream): Update write() and add seek(). | |
4106 | * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype. | |
4107 | (io_stream_cygfile::seek): New function. | |
4108 | * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek(). | |
4109 | * io_stream_file.cc (io_stream_file::write): New prototype. | |
4110 | (io_stream_file::seek): New function. | |
4111 | * io_stream_file.h (io_stream_file): Update write() and add seek(). | |
4112 | ||
2db33f10 RC |
4113 | 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com> |
4114 | ||
4115 | * localdir.cc: Add headers unistd.h and port.h. | |
cef493d7 | 4116 | (save_local_dir): Expand search logic to include local directory for |
2db33f10 RC |
4117 | location of file last-cache. |
4118 | (dialog_cmd): Skip IDD_ROOT when downloading and use Back button. | |
cef493d7 | 4119 | (do_local_dir): Expand search logic to include local directory for file |
2db33f10 RC |
4120 | last-cache. |
4121 | * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button. | |
cef493d7 | 4122 | * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from |
2db33f10 | 4123 | Internet. |
cef493d7 | 4124 | (do_source): Default to Install from Internet on first entry or |
2db33f10 RC |
4125 | previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR. |
4126 | ||
03a6c5b1 RC |
4127 | 2001-11-13 Robert Collins <rbtcollins@hotmail.com> |
4128 | ||
4129 | * choose.cc (find_tar_ext): Only match at the end of the string. | |
4130 | (getpkgbyname): Prevent NULL pointer dereference. | |
4131 | ||
b24c88b3 RC |
4132 | 2001-11-13 Robert Collins <rbtcollins@hotmail.com> |
4133 | ||
4134 | * Makefile.in (CFLAGS): Add warnings and -Werr. | |
4135 | (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what. | |
4136 | (OBJS): Add io_stream class' objects. | |
4137 | (autoload.o): Use WARNONLY_FLAGS. | |
4138 | (inilex.o): Ditto. | |
4139 | (iniparse.o): Ditto. | |
4140 | * archive.cc: New file. | |
4141 | * archive.h: New file. | |
4142 | * archive_tar.cc: New file. | |
4143 | * archive_tar.h: New file. | |
4144 | * archive_tar_file.cc: New file. | |
4145 | * autoload.c: Fix compiler warnings (unused, deprecated conversion). | |
4146 | * choose.cc: Use io_stream.h, not mount.h. | |
4147 | Run indent. | |
4148 | (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension. | |
4149 | (read_installed_db): Use io_streams. | |
4150 | * choose.h: Run indent. | |
4151 | * compress.cc: New file. | |
4152 | * compress.h: New file. | |
4153 | * compress_bz.cc: New file. | |
4154 | * compress_bz.h: New file. | |
4155 | * compress_gz.cc: New file. | |
4156 | * compress_gz.h: New file. | |
4157 | * concat.cc: Run indent. | |
4158 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4159 | * concat.h: Run indent. | |
4160 | * desktop.cc: Run indent. | |
4161 | Include mklink2.h rather than redefining by hand. | |
4162 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4163 | (etc_profile): Fix compiler warning (deprecated conversion). | |
4164 | (make_link): Fix compiler warning (deprecated conversion). | |
4165 | Tidy up use of args variable - consolidate into argbuf. | |
4166 | (start_menu): Fix compiler warning (deprecated conversion). | |
4167 | (desktop_icon): Fix compiler warning (deprecated conversion). | |
4168 | (make_etc_profile): Fix compiler warning (deprecated conversion). | |
4169 | (uexists): Fix compiler warning (deprecated conversion). | |
4170 | (check_desktop): Fix compiler warning (deprecated conversion). | |
4171 | (check_startmenu): Fix compiler warning (deprecated conversion). | |
4172 | * dialog.cc: Run indent. | |
4173 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4174 | (fatal): Fix compiler warning (deprecated conversion). | |
4175 | * dialog.h: Run indent. | |
4176 | * diskfull.cc: Run indent. | |
4177 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4178 | * download.cc: Run indent. | |
4179 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4180 | (download_one): Fix compiler warning (signed vs unsigned comparison). | |
4181 | * filemanip.h: Run indent. | |
4182 | * find.cc: Run indent. | |
4183 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4184 | (find): Fix compiler warning (deprecated conversion). | |
4185 | * find.h: Run indent. | |
4186 | * fromcwd.cc: Run indent. | |
4187 | * geturl.cc: Run indent. | |
4188 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4189 | (dialog_cmd): Return a value. | |
4190 | (dialog_proc): Remove unused variables. | |
4191 | Return a value. | |
4192 | (get_url_to_file): Fix compiler warning (deprecated conversion). | |
4193 | * geturl.h: Run indent. | |
4194 | * hash.cc: Run indent. | |
4195 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4196 | * hash.h: Run indent. | |
4197 | * ini.cc: Run indent. | |
4198 | Use io_streams. | |
4199 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4200 | (do_ini): Use io_streams for local io. | |
4201 | * ini.h: Run indent. | |
4202 | * inilex.l (ignore_line): Fix compiler warning (is not a prototype). | |
4203 | Fix compiler warning (brackets for truth assignment). | |
4204 | * install.cc: Run indent. | |
4205 | Fix compiler warning (/* in comment). | |
4206 | Use io_streams. | |
4207 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4208 | (dialog_cmd): Return a value. | |
4209 | (dialog_proc): Return a value. | |
4210 | (start_tics): Deleted - was unused. | |
4211 | (badrename): Fix compiler warnings (unused, deprecated conversion). | |
4212 | (standard_dirs): Fix compiler warning (deprecated conversion). | |
4213 | (exists): Remove. | |
4214 | (uninstall_one): Convert to io_streams. | |
4215 | (install_one): Convert to io_streams. | |
4216 | (do_install): Convert to io_streans. | |
4217 | Fix compiler warning (deprecated conversion). | |
4218 | * io_stream.cc: New file. | |
4219 | * io_stream.h: New file. | |
4220 | * io_stream_cygfile.cc: New file. | |
4221 | * io_stream_cygfile.h: New file. | |
4222 | * io_stream_file.cc: New file. | |
4223 | * io_stream_file.h: New file. | |
4224 | * localdir.cc: Run indent. | |
4225 | Use io_streams. | |
4226 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4227 | (get_root_dir_now): Remove. | |
4228 | (save_local_dir): Convert to io_streams. | |
4229 | (dialog_cmd): Return a value. | |
4230 | (do_local_dir): Convert to io_streams. | |
4231 | (log.cc): Run indent. | |
4232 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4233 | (log): Fix compiler warning (deprecated conversion). | |
4234 | (log_save): Fix compiler warning (deprecated conversion). | |
4235 | * log.h: Run indent. | |
4236 | (log): Fix compiler warning (deprecated conversion). | |
4237 | (log_save): Fix compiler warning (deprecated conversion). | |
4238 | * main.cc: Run indent. | |
4239 | Don't include "netio.h". | |
4240 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4241 | (netio_test): Remove. | |
4242 | (sid_auth): Fix compiler warning (partially bracketed initialiser). | |
4243 | (WinMain): Return a value. | |
4244 | * mkdir.cc: Run indent. | |
4245 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4246 | * mklink2.c: Run indent. | |
4247 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4248 | (mkcygsymlink): New function. | |
4249 | * mklink2.h: New file. | |
4250 | * mount.cc: Run indent. | |
4251 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4252 | (create_mount): Remove unused variables. | |
4253 | (cygpath): Fix compiler warning (signed vs unsigned comparison). | |
4254 | * mount.h: Run indent. | |
4255 | * msg.cc: Run indent. | |
4256 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4257 | (msg): Fix compiler warning (deprecated conversion). | |
4258 | (mbox): Fix compiler warning (deprecated conversion). | |
4259 | * msg.h: Run indent. | |
4260 | (msg): Fix compiler warning (deprecated conversion). | |
4261 | * net.cc: Run indent. | |
4262 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4263 | (dialog_cmd): Return a value. | |
4264 | * netio.cc: Run indent. | |
4265 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4266 | (auth_cmd): Return a value. | |
4267 | * netio.h: Run indent. | |
4268 | * nio-file.cc: Run indent. | |
4269 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4270 | (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion). | |
4271 | * nio-file.h: Run indent. | |
4272 | * nio-ftp.cc: Run indent. | |
4273 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4274 | * nio-ftp.h: Run indent. | |
4275 | * nio-http.cc: Run indent. | |
4276 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4277 | * nio-http.h: Run indent. | |
4278 | * nio-ie5.cc: Run indent. | |
4279 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4280 | * nio-ie5.h: Run indent. | |
4281 | * other.cc: Run indent. | |
4282 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4283 | (dialog_cmd): Return a value. | |
4284 | * port.h: Run indent. | |
4285 | * postinstall.cc: Run indent. | |
4286 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4287 | (cmd): Fix compiler warning (deprecated conversion). | |
4288 | (eun): Fix compiler warning (deprecated conversion). | |
4289 | * root.cc: Run indent. | |
4290 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4291 | * simpsock.cc: Run indent. | |
4292 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4293 | * simpsock.h: Run indent. | |
4294 | * site.cc: Run indent. | |
4295 | Use io_streams. | |
4296 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4297 | (get_root_dir_now): Remove. | |
4298 | (save_site_url): Convert to io_streams. | |
4299 | (dialog_cmd): Return 0. | |
4300 | (get_initial_list_idx): Convert to io_streans. | |
4301 | * source.cc: Run indent. | |
4302 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4303 | (check_if_enable_next): Remove. | |
4304 | (load_dialog): Remove unused variables. | |
4305 | (save_dialog): Ditto. | |
4306 | (dialog_cmd): Return a value. | |
4307 | * splash.cc: Return a value. | |
4308 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4309 | (dialog_cmd): Return a value. | |
4310 | * state.cc: Run indent. | |
4311 | (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4312 | * state.h: Run indent. | |
4313 | * tar.h: Remove. | |
4314 | * tar.cc: Remove. | |
4315 | ||
398dd7b2 CF |
4316 | 2001-11-12 Christopher Faylor <cgf@redhat.com> |
4317 | ||
4318 | * desktop.cc (start_menu): Change start menu name to "Cygwin". | |
4319 | (check_startmenu): Ditto. | |
4320 | ||
c29ee141 CF |
4321 | 2001-11-11 Christopher Faylor <cgf@redhat.com> |
4322 | ||
4323 | * choose.cc (parse_filename): Finish reorganization by correctly | |
4324 | decrementing p in memmove. | |
4325 | ||
3a8276de CF |
4326 | 2001-11-11 Christopher Faylor <cgf@redhat.com> |
4327 | ||
4328 | * choose.cc (parse_filename): Reorganize code to work around gcc | |
4329 | optimization problem. | |
4330 | ||
6eea52fb RC |
4331 | 2001-11-09 Gareth Pearce <tilps@hotmail.com> |
4332 | ||
4333 | * choose.cc (set_action): Allow skip as an option for installed | |
4334 | packages that have version number not listed in setup.ini. | |
4335 | ||
cf99b153 RC |
4336 | 2001-11-10 Robert Collins <rbtcollins@hotmail.com> |
4337 | ||
4338 | * choose.cc (set_cation): Backout last change. | |
4339 | (choose_caption): Ditto. | |
4340 | ||
55e204f6 RC |
4341 | 2001-11-10 Robert Collins <rbtcollins@hotmail.com> |
4342 | ||
4343 | * ini.h (actions): Remove - transferred to choose.h. | |
4344 | (views): Ditto. | |
4345 | * choose.h: Protect class's from "C" compilers. | |
4346 | (actions): New enum, from ini.h. This may not be the 'right' place | |
4347 | but that place doesn't exist yet. | |
4348 | (_views): New enum, from ini.h. | |
cef493d7 | 4349 | * choose.cc (set_action): Handle installed packages with a version not in |
55e204f6 RC |
4350 | setup.ini. |
4351 | (choose_caption): Ditto. | |
4352 | * iniparse.y: Rearrange header order to handle new ini.h. | |
4353 | ||
4354 | 2001-11-10 Robert Collins <rbtcollins@hotmail.com> | |
4355 | ||
4356 | * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison). | |
4357 | (registry_category): Fix compiler warning (deprecated conversion). | |
4358 | * iniparse.y (registry_category): Ditto. | |
4359 | * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion). | |
4360 | (add_requried): Remove unused variable. | |
4361 | (choose_caption): Handle all enumeration values via a default. | |
4362 | (paint): Fix compiler warnings (unused, deprecated conversion). | |
4363 | (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison). | |
4364 | (list_clicK): Fix compiler warnings (signed vs unsigned comparison). | |
4365 | (note_width): Fix compiler warnings (deprecated conversion). | |
4366 | (keep_or_skip): Fix compiler warnings (unused). | |
4367 | (_view::mode_caption): Fix compiler warnings (deprecated conversion). | |
4368 | (set_view_mode): Fix compiler warnings (unused). | |
4369 | (create_listview): Fix compiler warnings (unused, incorrect format, reaches | |
4370 | end of function). | |
4371 | (dialog_proc): Fix compiler warnings (unused). | |
4372 | (read_installed_db): Fix compiler warnings (unused, deprecated conversion). | |
4373 | * choose.h (_header): Fix compiler warnings (deprecated conversion). | |
4374 | (_view): Ditto. | |
4375 | ||
67a55ad9 | 4376 | 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com> |
cef493d7 | 4377 | |
67a55ad9 RC |
4378 | * simpsock.h (SimpleSocket::invalidate): Declare new method. |
4379 | * simpsock.cc (SimpleSocket::invalidate): Implement new method. | |
4380 | (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate | |
4381 | memory for buf in the constructor. | |
4382 | (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate(). | |
4383 | (SimpleSocket::printf): Use SimpleSocket::write() instead of send(). | |
4384 | (SimpleSocket::write): Check object consistency - return -1 on error. | |
4385 | invalidate() the object on socket write error. | |
4386 | (SimpleSocket::fill): Check object consistency - return -1 on error. | |
4387 | invalidate() the object if socket read error is encountered and there | |
4388 | is no more data available in the internal read buffer. | |
4389 | Allocate memory for the internal read buffer. | |
4390 | (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered | |
4391 | during fill() and no more data is available in the internal read buffer. | |
4392 | (SimpleSocket::read): Check object consistency - return -1 on error. | |
4393 | invalidate() the object if socket read error is encountered. | |
4394 | * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to | |
4395 | the RETR command (fix for MS IIS ftp server 5 - possibly others too). | |
4396 | (NetIO_FTP::ok): Check if the SimpleSocket object is ok(). | |
4397 | (NetIO_FTP::read): Use NetIO_FTP::ok(). | |
4398 | * nio-http.cc: Check for valid return value of SimpleSocket::gets(). | |
4399 | (NetIO_HTTP::ok): Check if the SimpleSocket object is ok(). | |
4400 | ||
5898e300 RC |
4401 | 2001-11-09 Robert Collins <rbtcollins@hotmail.com> |
4402 | ||
4403 | * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion). | |
4404 | (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion). | |
4405 | (SimpleSocket::printf): Ditto. | |
4406 | (SimpleSocket::write): Ditto. | |
4407 | * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor, | |
4408 | printf and write. | |
4409 | * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion). | |
4410 | (NetIO_FTP::NetIO_FTP): Remove unused variable done. | |
4411 | * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion). | |
4412 | ||
8e58f8fd RC |
4413 | 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu> |
4414 | ||
4415 | * geturl.cc (get_url_to_string): clean up memory leak | |
4416 | (get_url_to_file): ditto | |
cef493d7 | 4417 | |
4b4002ab RC |
4418 | 2001-11-06 Robert Collins <rbtcollins@hotmail.com> |
4419 | ||
4420 | * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case. | |
4421 | * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case. | |
4422 | ||
94525fd9 RC |
4423 | 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com> |
4424 | ||
4425 | * fromcwd.cc (found_file): Free() memory containing the version and | |
4426 | filepath information for a given package, before replacing the pointers which | |
4427 | reference this memory. | |
4428 | ||
4429 | 2001-11-06 Robert Collins <rbtcollins@hotmail.com> | |
ca83c665 RC |
4430 | |
4431 | * fromcwd: Fix compiler warnings for cvsid. | |
4432 | (canonicalize_version): Fix compilter warnings. | |
4433 | (do_fromcwd): Ditto. | |
4434 | * version.h: Fix compiler warnings for canonicalize_version. | |
4435 | ||
ce1f9ec2 RC |
4436 | 2001-11-03 Robert Collins <rbtcollins@hotmail.com> |
4437 | ||
4438 | * res.rc (IDD_CHOOSE): Move the view caption to the right hand side. | |
4439 | ||
89d82ec7 RC |
4440 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4441 | ||
4442 | * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen. | |
4443 | ||
c8fea72a RC |
4444 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4445 | ||
8114d309 RC |
4446 | * choose.cc (set_action): Correctly allow skip for any uninstalled package. |
4447 | ||
4448 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> | |
4449 | ||
cef493d7 | 4450 | * choose.cc (default_trust): Change the "Required" forced install category to |
8114d309 | 4451 | "Base". |
c8fea72a | 4452 | |
f557695e RC |
4453 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4454 | ||
4455 | * choose.cc: Ran indent. | |
4456 | (set_action): When the requested trust level is missing and the level was not | |
4457 | user requested, set the action to ACTION_SAME_CURR. | |
4458 | ||
9a60dafc CF |
4459 | 2001-11-01 Christopher Faylor <cgf@redhat.com> |
4460 | ||
cef493d7 | 4461 | * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation. |
f557695e RC |
4462 | |
4463 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> | |
4464 | ||
4465 | * choose.cc (_view::init_headers): Resync with the paint logic. | |
9a60dafc | 4466 | |
878faffd RC |
4467 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4468 | ||
cef493d7 | 4469 | * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed |
878faffd RC |
4470 | packages. |
4471 | ||
05bfdf26 RC |
4472 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4473 | ||
4474 | * choose.cc (default_trust): Autoset currently installed packages per the user's | |
4475 | selection of prev/curr/exp. | |
4476 | ||
0b9af00c RC |
4477 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4478 | ||
4479 | * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API. | |
4480 | ||
7cefe128 RC |
4481 | 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com> |
4482 | ||
4483 | * geturl.cc (is_showing): Remove. | |
4484 | (is_local_install): New static variable. Controls whether the | |
4485 | progress dialog and the supporting thread will be created. | |
4486 | (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API. | |
4487 | (init_dialog): Remove usage of SetForegroundWindow and is_showing. | |
cef493d7 | 4488 | This prevents the progress dialog to gain control over the |
7cefe128 RC |
4489 | application and fixes the "setup.exe going to background" problem. |
4490 | (progress): Use is_local_install. | |
4491 | (get_url_to_string): Set is_local_install. | |
4492 | (dismiss_url_status_dialog): Use is_local_install. | |
4493 | * install.cc (dialog_proc): Return TRUE as specified in WIN32 API. | |
4494 | (init_dialog): Remove usage of SetForegroundWindow. | |
cef493d7 | 4495 | This prevents the progress dialog to gain control over the |
7cefe128 RC |
4496 | application and fixes the "setup.exe going to background" problem. |
4497 | ||
42a99ed1 RC |
4498 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4499 | ||
4500 | * choose.cc (list_click): Change r to row for clarity. | |
4501 | When we shrink the list below 1 page, scroll to the top of the list. | |
4502 | (_view::click): Return the actual change for contractions. | |
4503 | (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API. | |
4504 | ||
45c2d7d3 RC |
4505 | 2001-11-02 Robert Collins <rbtcollins@hotmail.com> |
4506 | ||
4507 | * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order. | |
4508 | * localdir.cc: Ran indent. | |
4509 | (get_root_dir_now): New function. | |
4510 | (save_local_dir): New function. | |
4511 | (dialog_cmd): Use it and swap cygwin root selection and local dir selection order. | |
4512 | (do_local_dir): If there is a saved local dir, read it in. | |
4513 | * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order. | |
4514 | * root.cc (dialog_cmd): Ditto. | |
4515 | * source.cc (dialog_cmd): Ditto. | |
4516 | ||
2399c54d RC |
4517 | 2001-11-01 Robert Collins <rbtcollins@hotmail.com> |
4518 | ||
4519 | * choose.cc(list_vscroll): Return 0 as required by win32. | |
4520 | (list_hscroll): Ditto. | |
4521 | (list_click): Ditto. | |
4522 | ||
8e4402a9 RC |
4523 | 2001-11-01 Robert Collins <rbtcollins@hotmail.com> |
4524 | ||
4525 | * argv.cc: Remove. | |
4526 | * argv.h: Remove. | |
4527 | * main.cc(WinMain): Use __argv to retrieve command line parameters. | |
4528 | * Makefile,in: Remove argv.o. | |
4529 | ||
c168185f RC |
4530 | 2001-11-01 Matt Hargett <matt@use.net> |
4531 | ||
cef493d7 CF |
4532 | * geturl.cc (progress): Change int to unsigned int to eliminate |
4533 | lint warnings. | |
4534 | * (get_url_to_string): Check for NULL pointer. | |
4535 | * mount.cc (find2): Use free instead of delete for malloc'd | |
4536 | memory. | |
4537 | * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak. | |
c168185f | 4538 | |
f97a1ece RC |
4539 | 2001-10-31 Robert Collins <rbtcollins@hotmail.com> |
4540 | ||
4541 | * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither | |
4542 | a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net). | |
4543 | (read_installed_db): Bugfix for testing whether a package has a source tarball. | |
4544 | Reported by Matt (matt@usa.net). | |
cef493d7 | 4545 | * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer |
f97a1ece RC |
4546 | confusion and lint errors. Reported by Matt (matt@usa.net). |
4547 | ||
d52ed64b RC |
4548 | 2001-10-31 Robert Collins <rbtcollins@hotmail.com> |
4549 | ||
cef493d7 | 4550 | * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation |
d52ed64b RC |
4551 | from dcrt0.cc.) |
4552 | * argv.h: New file. | |
4553 | * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list. | |
4554 | Add mingw_getopt.o build rule. | |
4555 | * main.cc(WinMain): Initialise argv and argc for use by getopt. | |
4556 | ||
392ba1ba CF |
4557 | 2001-10-27 Christopher Faylor <cgf@redhat.com> |
4558 | ||
4559 | * res.rc: Rearrange info on top line slightly. | |
4560 | ||
31324d15 CF |
4561 | 2001-10-27 Christopher Faylor <cgf@redhat.com> |
4562 | ||
4563 | * desktop.cc (make_passwd_group): Move file creation earlier in the | |
4564 | process to ensure that passwd-grp.bat reflects desired operation. | |
4565 | ||
4566 | 2001-27-10 Trevor Forbes <t4bs@hotmail.com> | |
4567 | ||
4568 | * postinstall.cc (each): Remove "*.done" file else rename will fail. | |
4569 | ||
ee411d77 CF |
4570 | 2001-10-16 Christopher Faylor <cgf@redhat.com> |
4571 | ||
4572 | * res.rc: Oops. Take 640x480 screen size into account. | |
4573 | ||
e74944da CF |
4574 | 2001-10-16 Christopher Faylor <cgf@redhat.com> |
4575 | ||
4576 | * res.rc: Enlarge chooser screen. | |
4577 | ||
e368cfb9 CF |
4578 | 2001-10-12 Christopher Faylor <cgf@redhat.com> |
4579 | ||
4580 | * Makefile.in: Accomodate changes to w32api_include macro. | |
4581 | ||
a6ba3670 CF |
4582 | 2001-10-12 Christopher Faylor <cgf@redhat.com> |
4583 | ||
4584 | * Makefile.in: Use correct flags for windres. | |
4585 | ||
683e96f6 CF |
4586 | 2001-10-12 Christopher Faylor <cgf@redhat.com> |
4587 | ||
4588 | * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS. | |
4589 | ||
2c18c00b CF |
4590 | 2001-10-12 Christopher Faylor <cgf@redhat.com> |
4591 | ||
4592 | * choose.cc (pick_line::paint): Reorganize after botched patch. | |
4593 | ||
0f61a05a CF |
4594 | 2001-10-12 Christopher Faylor <cgf@redhat.com> |
4595 | ||
4596 | * choose.cc (pick_line::paint): Add missing declaration. | |
4597 | ||
308d6f3e CF |
4598 | 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de> |
4599 | ||
4600 | * choose.cc (pick_line::paint): Add package name to sdesc for display. | |
4601 | ||
3bcf85be RC |
4602 | Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com |
4603 | ||
4604 | * choose.cc (_view::insert_pkg): Correctly exit loop. | |
4605 | * iniparse.y (register_category): Always insert new categories. | |
4606 | ||
fb2cd8f6 CF |
4607 | Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com> |
4608 | ||
4609 | * inilex.l (yylex): For comments, eat all characters up to, but not | |
4610 | including newline. | |
4611 | ||
127b32e1 CF |
4612 | Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org> |
4613 | ||
4614 | * fromcwd.cc (found_file): Use correct package name when adding an | |
4615 | unknown package rather than random stack garbage. | |
4616 | ||
2cd555aa CF |
4617 | Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com> |
4618 | ||
4619 | * desktop.cc (make_passwd_group): .bat files need \r\n endings. | |
4620 | ||
4254cc64 CF |
4621 | Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com> |
4622 | ||
4623 | * desktop.cc (etc_profile): Leave environment variables untouched. | |
4624 | ||
acbae401 CV |
4625 | 2001-08-07 Corinna Vinschen <corinna@vinschen.de> |
4626 | ||
4627 | * autoload.c: Add dynamic load statements for NT/W2K | |
4628 | advapi32 functions not available in 9x/ME. | |
4629 | * main.cc (set_default_dacl): New function. | |
4630 | (WinMain): Call `set_default_dacl' if running on NT/W2K. | |
4631 | ||
969a294c CF |
4632 | Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com> |
4633 | ||
4634 | * ini.h (_CategoryPackage): Change pkg field to pkgname for | |
4635 | consistency. | |
4636 | * choose.cc: Use pkgname field when referencing _CategoryPackage | |
4637 | throughout. | |
4638 | (fill_missing_category): Don't add excluded packages. | |
4639 | (default_trust): Ditto. | |
4640 | (_view::insert_pkg): Ditto. | |
4641 | * iniparse.y (register_category): Use consistent variable name. | |
4642 | ||
9eeb0e83 ED |
4643 | 2001-07-09 Egor Duda <deo@logos-m.ru> |
4644 | ||
4645 | * choose.cc: Use system foreground color for text output. | |
4646 | ||
06560feb CF |
4647 | Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com> |
4648 | ||
4649 | * choose.cc (set_action): Use default trust for determining reinstall | |
4650 | and source only. | |
4651 | (default_trust): Set default trust. | |
4652 | (pick_line::paint): Allow source selection when reinstalling or | |
4653 | retrieving. | |
4654 | ||
1fb09149 CF |
4655 | Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com> |
4656 | ||
4657 | * choose.cc (isinstalled): Modify to properly accomodate special case | |
4658 | of "download only". | |
4659 | (set_action): Check downloaded components, not installed components if | |
4660 | "download only". | |
4661 | (set_existence): Always include full list of files when "download | |
4662 | only". | |
4663 | ||
14cfffa5 CF |
4664 | Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com> |
4665 | ||
4666 | * choose.cc (pick_line::paint): Properly display "na" field when no | |
4667 | source exists. | |
4668 | ||
f54385f6 CF |
4669 | Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com> |
4670 | ||
4671 | * choose.cc (scan2): Ensure that older versions do not show up in | |
4672 | "Test" slot. | |
4673 | ||
85b1fb54 CF |
4674 | Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com> |
4675 | ||
4676 | * choose.cc (set_action): Allow "Skip" action if trust != installed. | |
4677 | * res.rc: Fix copyright. | |
4678 | ||
2dada532 CF |
4679 | Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com> |
4680 | ||
4681 | * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog | |
4682 | boxes. | |
06c6d195 | 4683 | (IDD_CHOOSE): Adjust horizontal size so package names are visible. |
2dada532 CF |
4684 | |
4685 | * choose.cc: Restore some more changes from 2001-06-25, throughout. | |
4686 | (paint): Wrap some excessively long lines. | |
4687 | (pick_line::paint): Ditto. Move the arrow in the "Current" column | |
4688 | right to where it belongs. Move the source checkbox slightly to the | |
4689 | right. | |
4690 | (do_choose): List categories and required packages in setup.log.full. | |
4691 | ||
4692 | Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com> | |
4693 | ||
4694 | * choose.cc (scan2): Restore source scanning eliminated by previous checkin. | |
4695 | ||
1b13eeec CF |
4696 | Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com> |
4697 | ||
4698 | * ini.h (struct _Info): Add "derived" element. | |
4699 | * choose.cc (scan2): Try to place unknown tar files into proper slot | |
4700 | when package exists in setup.ini but tar file does not. | |
4701 | ||
9307254d RC |
4702 | Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com> |
4703 | ||
4704 | * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY. | |
4705 | (do_choose): Log the first category name. | |
4706 | ||
3467d79f CF |
4707 | Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com> |
4708 | ||
4709 | *ini.h: Reapply 2001-06-25 changes. | |
4710 | * choose.cc (add_required): Ditto. Default to "Keep" state if | |
4711 | UNINSTALL and product is installed. Default to curr state if SKIP, | |
4712 | etc. | |
4713 | (keep_or_skip): New function. Returns skip or keep state depending on | |
4714 | installed state of package. | |
4715 | (default_trust): Use keep_or_skip to set state. | |
4716 | (_view::insert_pkg): Use calloc to allocate lines. | |
4717 | (set_view_mode): Adapt 2001-06-25 change to set_full_list here. | |
4718 | ||
8f53e82a RC |
4719 | Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com> |
4720 | ||
1fb09149 | 4721 | * choose.cc: Remove globals full_list, headers, package_indexes and |
8f53e82a RC |
4722 | nindexes. |
4723 | Add globals cat_headers, pkg_headers and chooser. | |
4724 | (add_required): New function. | |
4725 | (paint): Use the chooser for header details. | |
4726 | Call into the chooser to paint each line. | |
1fb09149 | 4727 | (list_click): Use new global variables. |
8f53e82a RC |
4728 | Call into the chooser to handle the click. |
4729 | Repaint the entire view if packages have been added or removed. | |
4730 | (note_width): Get passed a headers struct rather than using a global | |
4731 | variable. | |
4732 | (fill_missing_category): New function. | |
4733 | (default_trust): Skip non-"Required" or "Misc" packages. | |
4734 | (pick_line::set_line (Package *)): New function. | |
4735 | (pick_line::set_line (Category *)): New function. | |
4736 | (pick_line::paint): New function. | |
4737 | (pick_line::click): New function. | |
4738 | (_view::_view): New function. | |
4739 | (_view::set_view_mode): New function. | |
4740 | (_view::mode_caption): New function. | |
4741 | (_view::set_headers): New function. | |
4742 | (_view::init_header): New function. | |
4743 | (_view::insert_pkg): New function. | |
4744 | (_view::insert_category): New function. | |
4745 | (_view::insert_at): New function. | |
4746 | (_view::insert_under): New function. | |
4747 | (_view::clear_view): New function. | |
4748 | (viewsplusplus): New function. | |
4749 | (_view::client): New function. | |
4750 | (set_view_mode): Use new chooser functionality. | |
4751 | (set_full_list): Use new global variables. | |
4752 | (create_listview): Instantiate chooser. | |
4753 | Remove all hardcoded headers[] code. | |
4754 | (dialog_cmd): On trust changes, check dependencies. | |
4755 | (getcategorybyname): New function. | |
4756 | (getpackagecategorybyname): New function. | |
4757 | (scan2): Use case-insensitive package comparison. | |
4758 | (do_choose): Use fill_missing_category (). | |
4759 | Show some category data. | |
4760 | * ini.h: Protect against multiple inclusion. | |
4761 | (views) New enum. | |
4762 | (_CategoryPackage): New struct. | |
4763 | (_Category): New struct. | |
4764 | (_Package): Change category to Category * from char *. | |
4765 | (extern Category category): New global variable. | |
4766 | (extern in ncategories): Ditto. | |
4767 | (getcategorybyname): New prototype. | |
4768 | (catpackagecategorybyname): New prototype. | |
4769 | (register_category): New prototype. | |
4770 | (add_category): New prototype. | |
4771 | * iniparse.y: Parse multiple categories per package. | |
2dada532 CF |
4772 | (category): New global variable. |
4773 | (ncategories): New global variable. | |
8f53e82a RC |
4774 | (new_package): Compare package against NULL, not 0. |
4775 | (new_requirement): Source formatting fix. | |
4776 | (register_category): New function. | |
4777 | (add_category): New function. | |
4778 | * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW. | |
4779 | IDC_CHOOSE_VIEWCAPTION: New control. | |
4780 | * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW. | |
4781 | IDC_CHOOSE_VIEWCAPTION: New control. | |
4782 | Increment _APS_NEXT_CONTROL_VALUE. | |
4783 | ||
26a27c14 CF |
4784 | Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com> |
4785 | ||
e19ad6a3 | 4786 | * choose.cc (paint): Wrap excessively long lines. |
26a27c14 CF |
4787 | (list_click): Ditto. |
4788 | (create_listview): Ditto. | |
4789 | (do_choose): Ditto. Replace TABs and remove CRs in lines written to | |
4790 | setup.log.full. Allow "Yes" for source exists in setup.log.full when | |
4791 | installing from local directories. | |
4792 | ||
97312777 CF |
4793 | Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com> |
4794 | ||
5f9f0d8d CF |
4795 | * choose.cc (set_action): Only clear srcpicked when moving to next |
4796 | state. Allow source installation if it exists in the current "trust" | |
4797 | state. Don't move to skip state when package is installed. | |
97312777 CF |
4798 | (list_click): Don't allow source clicking when no source is available. |
4799 | (set_full_list): Display package when not is_full_action. | |
4800 | * ini.h (is_full_action): Define. | |
4801 | ||
72fd1d1e CF |
4802 | Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com> |
4803 | ||
4804 | * install.cc (check_for_old_cygwin): New function. First stab at | |
4805 | checking for old cygwin versions. | |
4806 | (do_install): Call check_for_old_cygwin if there were no errors during | |
4807 | the install. | |
4808 | ||
41ac91b5 | 4809 | Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com> |
86202506 CF |
4810 | |
4811 | * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather | |
4812 | than zeroed "source" element. | |
4813 | ||
80429b97 CF |
4814 | Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com> |
4815 | ||
4816 | * choose.cc (scan2): Insert unknown tar archives, found on disk, into | |
4817 | the highest available "hole" in the trust array. | |
4818 | ||
654ea642 CF |
4819 | Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com> |
4820 | ||
4821 | * choose.cc (set_existence): Use pointer method for indexing in trust | |
4822 | array. | |
4823 | (create_listview): Ditto. | |
4824 | (scan2): Ditto. Also, use consistent variable name for indexing into | |
4825 | trust array. | |
4826 | * ini.h (Package): Reorganize info array for easier scanning. | |
4827 | ||
e98d90bd CF |
4828 | Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com> |
4829 | ||
4830 | * choose.cc (isinstalled): Eliminate special download only test. | |
4831 | (set_action): Don't move to next state if in ACTION_SAME range and not | |
4832 | incrementing. | |
4833 | (choose_caption): Display "Retrieve" rather than "Reinstall" when just | |
4834 | downloading. | |
4835 | (do_choose): Sort packages after all packages have been read. | |
4836 | Accomodate the fact that first element in trust array is empty so that | |
4837 | log files don't report the wrong trust value. | |
4838 | * iniparse.y (new_package): Malloc space for package name or suffer | |
4839 | memory corruption. | |
4840 | ||
38c97581 CF |
4841 | Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com> |
4842 | ||
4843 | * ini.h (Dependency): New structure. Declare new function. | |
4844 | * inilex.l (yylex): Detect new setup.ini options - category and requires. | |
4845 | * iniparse.y: Declare new setup.ini token values. | |
4846 | (yyparse): Parse new token values. | |
4847 | (new_requirement): New function. | |
4848 | ||
4849 | Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com> | |
4850 | ||
4851 | * choose.cc (read_installed_db): Eliminate obsolete code. | |
4852 | ||
3ae6c15c CF |
4853 | Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com> |
4854 | ||
4855 | * choose.cc (set_action): Set trust on "redo". | |
4856 | (_Info::_Info): New constructor. | |
4857 | (read_installed_db): Use new constructor. Use trusts type for | |
4858 | iterator. | |
4859 | * ini.h (struct _Info): Label struct, add constructor. | |
4860 | (Package): Make installed_ix a type 'trusts.' | |
4861 | * install.cc (uninstall_one): Unset any installed info for current | |
4862 | package. | |
4863 | (install_one): Allocate new Info struct for installed reflecting new | |
4864 | installed info. | |
4865 | (do_install): Don't output line to installed.db if package is being | |
4866 | uninstalled. | |
4867 | ||
9c0a9876 CF |
4868 | Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com> |
4869 | ||
4870 | * choose.cc (getpkgbyname): Use consistent method for scanning package | |
4871 | array. | |
4872 | ||
68b27c12 CF |
4873 | Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com> |
4874 | ||
4875 | * choose.cc: Add some comments. | |
4876 | (getpkgbyname): Use strcasecmp for comparisons. | |
4877 | ||
07108cc2 CF |
4878 | Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com> |
4879 | ||
f0984dcb | 4880 | * install.cc (do_install): Avoid checking for download action if |
07108cc2 CF |
4881 | package wasn't currently retrieved. |
4882 | ||
c46a33a9 CF |
4883 | Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com> |
4884 | ||
4885 | * choose.cc: Eliminate extra array throughout. Use element in package | |
4886 | structure instead. Use pointers rather than array indexes where | |
4887 | appropriate. | |
4888 | (set_action): New function to set next action based on current. | |
4889 | (choose_caption): New function. Returns display caption. | |
4890 | (check_existence): Change arguments. Use pointer to 'info' structure. | |
4891 | (set_existence): Use pointer rather than array index. | |
4892 | (default_trust): Use trusts enum for second argument. | |
4893 | (set_full_list): Honor exclude element in package structure. | |
4894 | (build_labels): Eliminate. | |
4895 | (base): Make global. Use const char * argument. | |
4896 | (get_package_version): Eliminate. | |
4897 | (getpkgbyname): New function. | |
4898 | (read_installed_db): Use parse_filename to get version info. | |
4899 | * desktop.cc (make_passwd_group): Use getpkgbyname function. | |
4900 | * download.cc (get_file_size): const argument. | |
4901 | (do_download): Use is_download_action to determine when something | |
4902 | should be downloaded. | |
4903 | * filemanip.h: Add some functions. | |
4904 | * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment. | |
4905 | * ini.h: Use enums for actions and trusts. | |
4906 | (is_download_action): New macro. | |
4907 | (is_upgrade_action): Ditto. | |
4908 | (is_uninstall_action): Ditto. | |
4909 | (struct Package): Add new fields. | |
4910 | * inilex.l (yylex): Detect new setup.ini options. | |
4911 | * iniparse.y: Declare new tokens. | |
4912 | (yyparse): Detect exclude keyword. Fill out version field even if | |
4913 | version == 0. | |
4914 | (new_package): Use greater granularity when allocating package array to | |
4915 | avoid repeated calls to realloc. | |
4916 | * install.cc (exists): const argument. | |
4917 | (uninstall_one): Take pkg argument. | |
4918 | (install_one): Ditto. Eliminate unneeded arguments which can be | |
4919 | derived from package info. | |
4920 | (do_install): Iterate over package array using a pointer. Use | |
4921 | is_download_action to control when package should be downloaded. | |
4922 | * tar.cc (tar_open): const argument. | |
4923 | * tar.h: Refloect const argument. | |
4924 | ||
7cc06fd3 CF |
4925 | 2001-05-31 Michael Chase mchase@ix.netcom.com |
4926 | ||
4927 | * main.cc (WinMain): Add setup version to starting setup.log entry | |
4928 | ||
9522028b CF |
4929 | Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp> |
4930 | ||
4931 | * inilex.l: Add + to list of valid string characters. | |
4932 | ||
e9b1aaa7 CF |
4933 | Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com> |
4934 | ||
4935 | * Makefile.in: Remove more stuff in the clean target. | |
4936 | ||
8e1299fa CF |
4937 | Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com> |
4938 | ||
4939 | * Makefile.in: Correctly generate iniparse.h. | |
4940 | ||
85553593 CV |
4941 | Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de> |
4942 | ||
4943 | * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'. | |
4944 | * geturl.h: Change declaration of `get_url_to_file' accordingly. | |
4945 | * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'. | |
4946 | Set member `ftp_auth'. | |
4947 | (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls | |
4948 | to constructors of derived classes. | |
4949 | (NetIO::get_ftp_auth): New method. | |
4950 | * netio.h: Change class definition accordingly. | |
4951 | * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'. | |
4952 | Take global variables `net_ftp_user' and `net_ftp_passwd' into account. | |
4953 | Add code for ftp authentication retry. | |
4954 | * nio-ftp.h: Change class definition accordingly. | |
4955 | * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'. | |
4956 | Add code for ftp authentication retry in case of proxy connection. | |
4957 | * nio-http.h: Change class definition accordingly. | |
4958 | * res.rc: Add FTP authentication dialog. | |
4959 | * resource.h: Add new constants used in res.rc. | |
4960 | * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'. | |
4961 | ||
c4174b9c CF |
4962 | Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com> |
4963 | ||
4964 | * res.rc (IDD_SPLASH): Add a copyright year. | |
4965 | ||
0af2d779 CF |
4966 | Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com> |
4967 | ||
4968 | * Makefile.in: Make iniparse.y produce a c++ file. | |
4969 | * choose.cc (set_existence): Revert 2001-05-27 change. | |
4970 | * ini.cc: Remove "C" from declaration of yyparse. | |
4971 | * iniparse.y (yyparse): Fill out version field by default when a binary | |
4972 | install is detected and no version has been set yet. | |
4973 | * install.cc (do_install): Mount things earlier so that we can use | |
4974 | proper mount table settings. Don't remove mounts since they are now | |
4975 | honored. | |
4976 | * mount.cc (create_mount): Reread the mount table after establishing a | |
4977 | new mount. | |
4978 | (read_mounts): Explicitly clear root_here to allow multiple uses of | |
4979 | this function. Ensure that there is no garbage in the table when we've | |
4980 | exhausted all of the mounts in the registry. | |
4981 | (cygpath): Accomodate ./ in path. | |
4982 | ||
85b43844 CF |
4983 | Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com> |
4984 | ||
0af2d779 CF |
4985 | Use parse_filename method to parse filenames throughout. Use |
4986 | get_root_dir to retrieve the current root directory throughout. Set | |
4987 | const in argument list, where appropriate, throughout. | |
4988 | * choose.cc (set_existence): Detect case of uninstalled package with no | |
4989 | version. | |
85b43844 CF |
4990 | (parse_filename): New function. |
4991 | * filemanip.h (fileparse): New structure. | |
4992 | * mount.cc (read_mounts): Remember where we found the root mount. | |
4993 | (set_root_dir): New function. | |
4994 | (get_root_dir): Ditto. | |
4995 | * mount.h: Declare new functions. | |
4996 | * site.cc (get_root_dir_now): Renamed from get_root_dir. | |
4997 | (save_site_url): Use new function name. | |
4998 | (get_initial_list_idx): Ditto. | |
4999 | ||
08f8c762 CF |
5000 | Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com> |
5001 | ||
5002 | * choose.cc: Use a constant throughout to deal with chooser icon | |
5003 | length. | |
5004 | * res.rc (IDD_CHOOSE): Increase size of chooser box. | |
5005 | ||
47f8d8b3 CF |
5006 | 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com> |
5007 | ||
5008 | * choose.cc (do_choose): Fix incorrect assignment of trust setting to | |
5009 | use when Redownload or Sources Only selected. | |
5010 | ||
6a748750 CF |
5011 | Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com> |
5012 | ||
5013 | Reformat file after botched patch formatting. | |
5014 | * choose.cc (which_trust): Eliminate variable. | |
5015 | (default_trust): Don't set which_trust. | |
5016 | (do_choose): Use selected trust when reinstalling or installing source. | |
5017 | ||
a351e48c CF |
5018 | Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com> |
5019 | ||
5020 | Change concat to cygpath throughout. | |
5021 | Change map_filename to cygpath throughout. | |
5022 | * concat.cc (vconcat): New function. | |
5023 | (concat): Use vconcat. | |
5024 | * concat.h: Reflect above. | |
5025 | * install.cc (map_filename): Eliminate. | |
5026 | (install_one): Free dest_file. | |
5027 | * mount.cc (find2): Expect input key to be pointing to mount record. | |
5028 | (in_table): New function. | |
5029 | (is_admin): Move from root.cc. | |
5030 | (read_mounts): New function. | |
5031 | (path_prefix_p): New function. | |
5032 | (cygpath): New function. | |
5033 | * mount.h: Define new functions and structure. | |
5034 | * root.cc (in_table): Move to mount.cc. | |
5035 | (do_root): Call read_mounts to initialize root stuff and mount table. | |
5036 | * site.cc (get_root_dir): Ditto. | |
5037 | ||
e227ee24 CF |
5038 | 2001-05-09 Matt Hargett <matt@use.net> |
5039 | ||
5040 | * Makefile.in: Remove *.rc from clean. | |
5041 | ||
25fd2965 CF |
5042 | Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com> |
5043 | ||
5044 | * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than | |
5045 | TRUST_PREV which produced "0" versions. | |
5046 | ||
42bf5b92 CF |
5047 | 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com> |
5048 | ||
5049 | * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify | |
5050 | _APS_NEXT_CONTROL_VALUE to account for addition of | |
5051 | IDC_CHOOSE_INST_TEXT. | |
5052 | * res.rc (IDD_CHOOSE): Modify choose dialog to use new field | |
5053 | IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow | |
5054 | hot keys to select Prev, Curr, Exp. | |
5055 | * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify | |
5056 | define for LOOP_PACKAGES to include new actions ACTION_REDO and | |
5057 | ACTION_SRC_ONLY. | |
5058 | * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY. | |
5059 | (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for | |
5060 | source Checkbox to use. | |
5061 | (build_labels): Add logic to allow for selection of Source only | |
5062 | Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall | |
5063 | current version binary. | |
5064 | (dialog_proc): Add conditional display for file selection prompt based | |
5065 | on download vs install using IDC_CHOOSE_INST_TEXT. | |
5066 | (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection | |
5067 | and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to | |
5068 | handle the instance where Source Download/Install was selected. Modify | |
5069 | log file to store appropriate information regarding Action selected and | |
5070 | the new actions that were added (I.E.: ACTION_REDO and | |
5071 | ACTION_SRC_ONLY). | |
5072 | * download.cc: Add include for <unistd.h> and "port.h". | |
5073 | (download_one): Modify parameter list to include the selected action | |
5074 | for the file to be downloaded. Modify size check against expected size | |
5075 | to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of | |
5076 | .tmp file to also remove the destination file if exists due to ability | |
5077 | to redownload source and binary now. | |
5078 | (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in | |
5079 | calculation of Download Bytes. Modify to also use ACTION_REDO and | |
5080 | ACTION_SRC_ONLY in determining files selected for download. | |
5081 | * install.cc (uninstall_one): Add check to treat a Reinstall like an | |
5082 | upgrade so current version will be uninstalled prior to reinstall. | |
5083 | (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for | |
5084 | uninstalling and installing binary and source packages. | |
5085 | * desktop.cc (make_passwd_group): Modify logic to account for a Source | |
5086 | only cygwin install when checking for cygwin to determine need for | |
5087 | mkpasswd and mkgroup. | |
5088 | ||
5089 | Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net> | |
8a09aa99 CF |
5090 | |
5091 | * winsup/cinstall/res.rc: Added accelerators and improved focus order. | |
5092 | Removed WS_DISABLED from "OK" buttons to accomodate default focus | |
5093 | changes in net.cc and source.cc. | |
5094 | * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected, | |
5095 | a default is selected. | |
5096 | * winsup/cinstall/source.cc (dialog_proc): Ditto. | |
5097 | (check_if_enable_next): Removed. No longer needed since a radio button | |
5098 | will always be selected. | |
5099 | (load_dialog): Removed call to check_if_enable_next. | |
5100 | (dialog_cmd): Ditto. Also added default to switch. | |
5101 | ||
87bdba0c CF |
5102 | Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com> |
5103 | ||
5104 | * res.rc: Resize affected text. | |
5105 | ||
8293fc16 CF |
5106 | Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com> |
5107 | ||
5108 | * net.cc (do_net): Default to direct download. | |
87bdba0c | 5109 | * res.rc: Move default selections to the top. |
8293fc16 | 5110 | |
ed96c6da EB |
5111 | 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net> |
5112 | ||
5113 | * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME. | |
5114 | Must now include <windows.h> and not the pieces. | |
5115 | * choose.cc (create_listview): Clean up type mismatch problems. | |
5116 | * dialog.h (NEXT(id)): Ditto. | |
5117 | * geturl.cc (dialog): Ditto. | |
5118 | * install.cc (dialog): Ditto. | |
5119 | * splash.cc (load_dialog): Ditto. | |
5120 | ||
fe94cc29 CF |
5121 | Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com> |
5122 | ||
5123 | * tar.cc (class gzbz): Define dummy virtual functions. | |
5124 | ||
fb087b80 CF |
5125 | Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com> |
5126 | ||
5127 | * Makefile.in: Add bz2 include/library support. | |
5128 | * filemanip.h: New file. | |
fe94cc29 CF |
5129 | * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or |
5130 | .tar.bz2 found. | |
fb087b80 CF |
5131 | (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension. |
5132 | (read_installed_db): Ditto. | |
5133 | (do_choose): Ditto. | |
5134 | * fromcwd.cc (found_file): Ditto. | |
5135 | (do_fromcwd): Ditto. | |
5136 | * tar.cc (class gzbz): New super class for uncompression support. | |
5137 | (gz): New class for gzip support. | |
5138 | (bz): New class for bzip2 support. | |
5139 | (tar_open): Use gzbz class to control file opening. | |
5140 | (tar_ftell): Ditto for returning position in file. | |
5141 | (skip_file): Ditto for reading file. | |
5142 | (tar_next_file): Ditto. | |
5143 | (tar_read_file): Ditto. | |
5144 | (tar_close): Ditto for close. | |
5145 | ||
5146 | * zlib/configure.in: Force NM substitution. | |
5147 | ||
5148 | * source.cc (do_source): Default to "Install from Internet". | |
5149 | ||
88bcaf07 CF |
5150 | 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com> |
5151 | ||
5152 | * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of | |
5153 | `stat'. | |
5154 | * choose.cc (list_click): Correct inability to select source code for | |
5155 | download. | |
5156 | (scan2): Modify to skip source tarballs when scanning disk for | |
5157 | installable packages. | |
5158 | ||
ef45c299 CV |
5159 | 2001-03-10 Chris Abbey <chris_abbey@yahoo.com> |
5160 | ||
5161 | * install.cc: install sources into /usr/src instead | |
5162 | of /, also include the sizes of source tarballs | |
5163 | in total_bytes. | |
5164 | * download.cc: include sizes of source tarballs in | |
5165 | total_download_bytes. | |
5166 | ||
9fe1181b CV |
5167 | Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com> |
5168 | ||
5169 | * download.cc (get_file_size): Remove `static'. | |
5170 | ||
2bfdb848 CV |
5171 | Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com> |
5172 | ||
5173 | * tar.cc (tar_open): Use `get_file_size' instead of `stat'. | |
5174 | ||
60c632b3 CV |
5175 | 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com> |
5176 | ||
5177 | * choose.cc (paint): Modify message for nothing to download vs | |
5178 | nothing to install/update based on installation method. | |
5179 | (list_click): Modify to skip versions in selection process if | |
88bcaf07 | 5180 | installing from local directory and installation file does not exist. |
60c632b3 CV |
5181 | Also leaves Source Action set to N/A if the source file does not exist |
5182 | and installing from local directory. | |
5183 | (check_existence): New method to check current existence of installation | |
5184 | files based on selected installation method. | |
5185 | (set_existence): New method to set the current existence of installation | |
5186 | files based on selected installation method. | |
5187 | (best_trust): Modify decision process for best trust to base decision on | |
5188 | current trust selected (IE: Prev, Curr, or Test), existence of file and | |
5189 | installation method selected. | |
5190 | (default_trust): Add logic to capture the current trust level and the | |
5191 | trust selected for the given package. | |
88bcaf07 | 5192 | (set_full_list): Expand decision criteria for displaying a package in |
60c632b3 CV |
5193 | the selection list to include file existence/non-existence and selected |
5194 | installation method. | |
5195 | (build_labels): Modify criteria for label addition to include | |
5196 | installation method and file existence/non-existence. | |
88bcaf07 | 5197 | (create_listview): Modify to establish package trust level for each |
60c632b3 CV |
5198 | package before setting up the display list. Also modification to set |
5199 | current trust button as the default. | |
88bcaf07 | 5200 | (dialog_cmd): Set response for Prev, Curr, Test button push to perform |
60c632b3 CV |
5201 | a reset of the selection list in addition to setting the default trust. |
5202 | (get_package_version): New method to provide reusable code for | |
5203 | determining the package version from the file name for a specified | |
5204 | trust. | |
5205 | (scan2): Modify to use new method get_package_version and | |
5206 | also enhance handling of the build for the structures package and | |
5207 | extra. | |
5208 | (read_installed_db): Modify to use the new method | |
5209 | get_package_version and also enhance handling of the build for the | |
5210 | structures package and extra. | |
88bcaf07 | 5211 | (do_choose): Add additional initialization of package and extra |
60c632b3 CV |
5212 | structures. Modify to use read_installed_db all the time despite |
5213 | install method. Modify output to setup.log.full log file to increase | |
5214 | readability by adding additional spacing, expanded code and available | |
5215 | versions. | |
5216 | * ini.h: Add new fields install_exists, source_exists and | |
88bcaf07 | 5217 | partial_list_display to the structure definition for package. |
60c632b3 CV |
5218 | * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test |
5219 | pushbuttons by replacing with Radio Buttons thus allowing the | |
5220 | operator to better determine which is selected. | |
5221 | ||
2f9645a1 CV |
5222 | 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com> |
5223 | ||
88bcaf07 | 5224 | * download.cc (do_download): Add new variables total_download_bytes and |
2f9645a1 CV |
5225 | total_download_bytes_sofar for download progress meter. Add loop |
5226 | to accumulate the total bytes to download from the selected packages. | |
5227 | * geturl.cc: Add state.h and diskfull.h to include list. Add new | |
5228 | variables gw_iprogress, gw_pprogress, gw_progress_text, | |
5229 | gw_pprogress_text, and gw_iprogress_text to allow for addition of | |
5230 | total packages download progress meter and disk full percent | |
5231 | progress meter. Add variables total_download_bytes and | |
5232 | total_download_bytes_sofar for use by progress meters. | |
88bcaf07 CF |
5233 | (dialog_proc): Add new variables gw_iprogress, gw_pprogress, |
5234 | gw_progress_text, gw_pprogress_text, and gw_iprogress_text to | |
5235 | allow for addition of total packages download progress meter and disk | |
5236 | full percent progress meter. | |
2f9645a1 CV |
5237 | (init_dialog): Ditto. |
5238 | (progress): Ditto. | |
5239 | (get_url_to_file): Ditto. | |
5240 | * geturl.h: Add external definition for total_download_bytes and | |
5241 | total_download_bytes_sofar. | |
88bcaf07 | 5242 | * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS) |
2f9645a1 CV |
5243 | and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT) |
5244 | and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the | |
5245 | download meters. | |
88bcaf07 | 5246 | * resource.h: Add new fields for progress meters and text and update |
2f9645a1 CV |
5247 | _APS_NEXT_CONTROL_VALUE. |
5248 | ||
b41962a3 CV |
5249 | Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com> |
5250 | ||
5251 | * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead | |
5252 | for NULL. | |
5253 | ||
5254 | Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com> | |
01954c34 CV |
5255 | |
5256 | * download.cc (download_one): Add missing parenthesis. | |
5257 | ||
88a77116 CV |
5258 | Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com> |
5259 | ||
5260 | * download.cc (get_file_size): New function. Eliminates the need | |
5261 | to call `stat'. | |
5262 | (download_one): Call `get_file_size' instead of `stat'. This | |
5263 | workarounds a problem with mingw's `stat' call. | |
5264 | ||
577f35ed EB |
5265 | 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net> |
5266 | ||
5267 | * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include). | |
5268 | This is to allow cinstall to build with 2.95.2-7 and to make the | |
5269 | use of headers consistent. | |
5270 | ||
38f5563e DD |
5271 | 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com> |
5272 | ||
5273 | * Makefile.in (autoload.o): Add target to specify -fno-inline-functions | |
5274 | ||
c0a7e0f2 DD |
5275 | Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net> |
5276 | ||
5277 | * winsup/cinstall/res.rc: Added accelerators and improved focus | |
5278 | order. | |
5279 | ||
72826a5b CF |
5280 | 2000-12-10 Egor Duda <deo@logos-m.ru> |
5281 | ||
5282 | * choose.cc (paint): Use system background color for text output. | |
5283 | ||
5284 | Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com> | |
5285 | ||
5286 | * Makefile.in: Use CXX for linking and for compiling .cc files. | |
5287 | * configure.in: Find correct c++ compiler. | |
5288 | * configure: Regenerate. | |
5289 | ||
67bebcb5 DD |
5290 | 2000-11-17 DJ Delorie <dj@redhat.com> |
5291 | ||
5292 | * splash.cc (load_dialog): Make message more obvious. | |
5293 | * res.rc: Ditto. | |
5294 | ||
25fb9139 CF |
5295 | Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com> |
5296 | ||
5297 | * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is | |
5298 | necessary for newer compilers. | |
5299 | ||
ef2007fd CV |
5300 | Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com> |
5301 | ||
5302 | * desktop.cc: Include "ini.h" and "version.h". | |
5303 | (make_passwd_group): Skip the function on 9x/ME boxes when an | |
5304 | older version of Cygwin has been installed which doesn't | |
5305 | support mkpasswd/mkgroup on 9x/ME. | |
5306 | * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to... | |
5307 | * ini.h: ...here. | |
5308 | ||
277b4d56 CV |
5309 | Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com> |
5310 | ||
5311 | * desktop.cc (make_passwd_group): Don't exit when started | |
5312 | on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now. | |
5313 | ||
f8a6415f DD |
5314 | Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com> |
5315 | ||
5316 | * install.cc (do_install): Add call to set_cygdrive_flags to sync | |
5317 | the mount modes. | |
5318 | * mount.cc (set_cygdrive_flags): New function. | |
5319 | (get_cygdrive_flags): Ditto. | |
5320 | (default_cygdrive): Ditto. | |
5321 | (set_cygdrive_flags): Ditto. | |
5322 | * mount.h: Add prototype for set_cygdrive_flags. | |
5323 | ||
3b9077d4 DD |
5324 | 2000-10-23 DJ Delorie <dj@redhat.com> |
5325 | ||
5326 | * ini.h: add source actions | |
5327 | * fromcwd.cc: check for available sources | |
5328 | * res.rc: add checkbox bitmaps | |
5329 | * resource.h: ditto | |
5330 | * check-*.bmp: new | |
5331 | * choose.cc: add source column | |
5332 | * download.cc: download sources if called for | |
5333 | * install.cc: [un]install sources too | |
5334 | ||
1b1b33ac DD |
5335 | 2000-10-22 DJ Delorie <dj@redhat.com> |
5336 | ||
5337 | * choose.cc (build_labels): Don't skip TRUST_PREV completely; only | |
5338 | ignore it wrt full_list if there's already a version installed. | |
5339 | (do_choose): Sort the list. | |
5340 | (package_sort): New. | |
5341 | ||
2a1a01e0 DD |
5342 | 2000-10-12 DJ Delorie <dj@redhat.com> |
5343 | ||
5344 | * res.rc: Add more error strings. | |
5345 | * resource.h: Ditto. | |
5346 | * iniparse.y (new_package): re-initialize if needed. | |
5347 | * download.cc (do_download): Keep track of errors; notify and | |
5348 | allow retry. | |
5349 | * install.cc (do_install): Ditto. | |
5350 | ||
1a9886fe DD |
5351 | 2000-10-05 DJ Delorie <dj@redhat.com> |
5352 | ||
5353 | * Makefile.in: fix %.cc rule | |
5354 | ||
40aef45e DD |
5355 | 2000-10-04 DJ Delorie <dj@redhat.com> |
5356 | ||
5357 | * desktop.cc: quote HOME and USER, don't . ./.profile | |
5358 | ||
5359 | * choose.cc (build_labels): don't include in partial list just | |
5360 | because there's a *previous* version available. | |
5361 | ||
5362 | * install.cc (do_install): if installing from local directory with | |
5363 | setup.ini and the file isn't found, look in "." also. Note errors. | |
5364 | ||
dd3f7f9b DD |
5365 | 2000-10-02 DJ Delorie <dj@redhat.com> |
5366 | ||
5367 | * ini.cc (do_ini): save setup.ini locally | |
5368 | ||
5369 | 2000-10-02 Chris Abbey <cabbey@bresnanlink.net> | |
5370 | ||
5371 | * desktop.cc: quote escapes in prompt | |
5372 | ||
fee2a8d0 DD |
5373 | 2000-10-02 Jason Tishler <jt@dothill.com> |
5374 | ||
5375 | * root.cc (is_admin): New function. | |
5376 | (read_mount_table): Check for administrative priviledges and set | |
5377 | installation scope as appropriate. | |
5378 | ||
a03db251 DD |
5379 | 2000-09-28 DJ Delorie <dj@redhat.com> |
5380 | ||
5381 | * nio-ftp.cc (ftp_line): handle continuations more robustly | |
5382 | ||
b151e01e | 5383 | 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com> |
0b758d4c DD |
5384 | |
5385 | * res.rc: increased the size of the site dialog (IDD_SITE) & the | |
5386 | corresponding list box to provide for more URL's to be listed. | |
5387 | Modified the position of the Back, Next and Cancel buttons to | |
5388 | correspond to the new size of the dialog. | |
5389 | ||
d07591a3 DD |
5390 | 2000-09-13 DJ Delorie <dj@redhat.com> |
5391 | ||
5392 | * install.cc (do_install): update disk fullness once per package | |
5393 | to improve performance | |
5394 | ||
5395 | * choose.cc (create_listview): call ReleaseDC | |
5396 | ||
89725f30 DD |
5397 | Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com> |
5398 | ||
5399 | * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is | |
5400 | returned, as it seems Samba 2.0.6+ returns this instead of | |
5401 | ERROR_PATH_NOT_FOUND | |
88bcaf07 | 5402 | |
6fbc690d CF |
5403 | Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com> |
5404 | ||
5405 | * site.cc (get_initial_list_idx): Don't default to saved URL if it | |
5406 | refers to sources. | |
5407 | ||
13d27274 DD |
5408 | 2000-09-07 DJ Delorie <dj@redhat.com> |
5409 | ||
5410 | * splash.cc: use version.h, not local decl | |
5411 | * res.rc: add "old version" message | |
5412 | * resource.h: ditto | |
5413 | * version.h: new | |
5414 | * fromcwd.cc (canonicalize_version): make global | |
89725f30 DD |
5415 | * iniparse.y: add setup-version support, fix bug in blank line |
5416 | handling | |
5417 | ||
13d27274 DD |
5418 | * inilex.l: add [exp] as alias for [test], add setup-version |
5419 | * Makefile.in (version.c): add setup-version tag | |
5420 | ||
5421 | * desktop.cc (do_desktop): remove 1.1 version number | |
5422 | (do_desktop_setup): ditto | |
5423 | ||
5424 | * ini.cc (do_ini): zero out package list just in case we redo it. | |
5425 | ||
8cfbc487 DD |
5426 | 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu> |
5427 | ||
5428 | * choose.cc (list_click): Check for nindexes==0; if so, return. | |
5429 | ||
c92e1307 DD |
5430 | 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru> |
5431 | ||
5432 | * localdir.cc: new, local package directory selection dialog; cd | |
5433 | into selected directory | |
5434 | * Makefile.in (OBJS): add localdir.o | |
5435 | * dialog.h: add prototype for do_local_dir | |
5436 | * main.cc (WinMain): initialize local_dir to cwd; add call to | |
5437 | do_local_dir | |
5438 | * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog | |
5439 | * source.cc (dialog_cmd): ditto | |
5440 | * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from | |
5441 | presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string | |
5442 | * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR | |
5443 | * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog | |
5444 | * state.h: add local_dir variable | |
5445 | ||
5446 | 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com> | |
50225eae DD |
5447 | |
5448 | * desktop.cc: added logic to handle to the new dialog and to | |
5449 | default the setting for the new checkboxes based on whether the | |
5450 | desktop icon or start menu link already exist. | |
5451 | (desktop_icon): correction to desktop directories for desktop icon | |
5452 | creation. Additional logic added for Win95 which does not appear | |
5453 | to have Common Directories so if Common selected and null uses | |
5454 | normal directory. | |
5455 | (start_menu): Additional logic added for Win95 which does not | |
5456 | appear to have Common Directories so if Common selected and null | |
5457 | uses normal directory. | |
5458 | (do_desktop_setup): moved the saving of the icon, creation of the | |
5459 | bat file, profile, passwd, Start Menu link and desktop shortcut to | |
5460 | this method from do_desktop. Made the creation of the desktop | |
5461 | icon and start menu link conditional on settings of new dialog | |
5462 | created for desktop. | |
5463 | * install.cc (do_install): changed next from IDD_S_DESKTOP to | |
5464 | IDD_DESKTOP. | |
5465 | * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP. | |
5466 | * res.rc: added new resource to create a desktop dialog with 2 | |
5467 | checkboxes for creating the desktop icon and start menu link. | |
5468 | * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two | |
5469 | new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog. | |
5470 | * state.h: added root_menu and root_desktop for use in dialog. | |
5471 | ||
4a83b7b0 DD |
5472 | 2000-08-29 DJ Delorie <dj@redhat.com> |
5473 | ||
5474 | * choose.cc (scan_downloaded_files): scan for existing files, so | |
5475 | that the user only sees new downloads. | |
5476 | ||
5477 | * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up | |
5478 | * site.cc (do_site): if we can't download the mirror list, go back | |
5479 | to the net setup box to choose another transport. | |
5480 | * autoload.c: add more functions | |
5481 | * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a | |
5482 | * resource.h: add WININET message | |
5483 | ||
5484 | * net.cc (do_net): no longer default to IE5 | |
5485 | * simpsock.h (class SimpleSocket): new, simplify socket operations | |
5486 | * simpsock.cc: ditto | |
5487 | * nio-http.h: new, for direct http protocol | |
5488 | * nio-http.cc: ditto | |
5489 | * nio-ftp.h: new, for direct http protocol | |
5490 | * nio-ftp.cc: ditto | |
5491 | * netio.cc (set_url): move initialization here to handle redirections | |
5492 | (open): add direct http/ftp | |
5493 | * netio.h (NetIO::set_url): new | |
5494 | ||
5495 | * log.cc (log_save): create directory for log if needed | |
5496 | ||
5497 | * hash.cc, hash.h: new | |
5498 | * Makefile: add hash.o | |
5499 | * choose.cc: enable "uninstall" option | |
5500 | * download.cc: invert action test to accomodate uninstalling | |
5501 | * ini.h: add ACTION_UNINSTALL | |
5502 | * install.cc: add uninstall functionality | |
5503 | * res.rc: make install tag changeable | |
5504 | * resource.h: add uninstall resources | |
5505 | ||
5506 | * res.rc: update mirror list URL | |
88bcaf07 | 5507 | |
50f64a4b DD |
5508 | 2000-08-24 DJ Delorie <dj@redhat.com> |
5509 | ||
89b1a15b DD |
5510 | * log.cc, log.h: new files |
5511 | * Makefile.in (OBJS): add log.o | |
5512 | * tar.cc: use exit_setup instead of exit | |
5513 | * dialog.cc (fatal): use exit_setup instead of ExitProcess | |
5514 | * msg.cc (fatal): ditto | |
5515 | * install.cc (dialog_cmd): ditto | |
5516 | * ini.cc (do_ini): ditto | |
5517 | * main.cc (main): add logging | |
5518 | * source.cc (do_source): ditto | |
5519 | * root.cc (do_source): ditto | |
5520 | * site.cc (do_site): ditto | |
5521 | * other.cc (do_other): ditto | |
5522 | * net.cc (do_net): ditto | |
5523 | * choose.cc (do_choose): ditto | |
5524 | * download.cc (do_download): ditto | |
5525 | * install.cc (do_install): ditto | |
5526 | * msg.cc (fatal): ditto | |
5527 | ||
5528 | * res.rc: mark password boxes as *being* password boxes. | |
5529 | ||
50f64a4b DD |
5530 | * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple |
5531 | calls won't use the same buffer. | |
5532 | * choose.cc (create_listview): don't default to full list if no changes | |
5533 | (base): return computed value, not temporary :-( | |
5534 | (do_choose): don't use installed.db if we're only downloading. | |
5535 | ||
348860fa DD |
5536 | 2000-08-23 DJ Delorie <dj@redhat.com> |
5537 | ||
5538 | * nio-ie5.cc (NetIO_IE5): Fix authentication logic | |
5539 | * nio-ie5.h (flush_io): new | |
5540 | * netio.cc (load_dialog): note when we're initializing the dialog | |
5541 | box, and ignore changes to the edit fields then. | |
5542 | ||
5f48f258 DD |
5543 | 2000-08-21 DJ Delorie <dj@redhat.com> |
5544 | ||
5545 | * README: Update | |
5546 | ||
5547 | * fromcwd.cc (found_file): don't remember the canonicalized version | |
5548 | ||
5549 | * choose.cc (paint): print "nothing to do" message when list is empty. | |
5550 | (build_labels): Use version "0.0" if no version is available. | |
5551 | (create_listview): default to full list if nothing to install/update. | |
5552 | (base): new, returns basename of file | |
5553 | (read_installed_db): compare base names, not full paths | |
5554 | ||
713bbe5f DD |
5555 | 2000-08-11 DJ Delorie <dj@redhat.com> |
5556 | ||
5557 | * choose.cc: add new chooser dialog | |
5558 | * fromcwd.cc: use IDD_CHOOSE | |
5559 | * ini.cc: use IDD_CHOOSE | |
5560 | * main.cc: use IDD_CHOOSE | |
5561 | * ini.h: cosmetic changes | |
5562 | * res.rc: add choose dialog, bitmaps | |
5563 | * choose-spin.bmp: new | |
5564 | * choose-rtarrow.bmp: new | |
5565 | * resource.h: add choose dialog controls | |
5566 | ||
5567 | * mount.cc: remove debug statement | |
88bcaf07 | 5568 | |
2e9cbac5 DD |
5569 | 2000-08-08 DJ Delorie <dj@redhat.com> |
5570 | ||
5571 | * Makefile.in (version.c): make version checking more robust | |
5572 | * splash.cc (load_dialog): handle case where there's no version | |
5573 | ||
8507f105 DD |
5574 | 2000-08-07 DJ Delorie <dj@redhat.com> |
5575 | ||
5576 | * (all): add cvsid tags | |
5577 | * Makefile.in: generate version.c from ChangeLog, add splash.o | |
5578 | * splash.o: new | |
5579 | * res.rc: add splash screen | |
88bcaf07 | 5580 | |
f5d0464b DD |
5581 | 2000-08-02 DJ Delorie <dj@redhat.com> |
5582 | ||
4e8ff53f DD |
5583 | * net.cc: remove proxy password code |
5584 | * res.rc: remove proxy user/pass from net, add auth dialogs | |
5585 | * netio.cc,h: add sys/proxy auth methods | |
5586 | * nio-ie5: use them, check for http status codes | |
5587 | * state.h: add system authorization | |
5588 | ||
f5d0464b DD |
5589 | * concat.cc (concat): canonicalize x:// to x:/ (exception to :// |
5590 | meaning an url) | |
5591 | ||
76cbfa85 DD |
5592 | 2000-08-02 Norman Vine <nhv@yahoo,com> |
5593 | ||
5594 | * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags | |
5595 | ||
e92c4436 DD |
5596 | 2000-08-01 DJ Delorie <dj@redhat.com> |
5597 | ||
bf74c544 DD |
5598 | * postinstall.cc (each): don't rename files we ignore |
5599 | (do_postinstall): set CYGWINROOT to root_dir, chdir there | |
5600 | ||
e92c4436 DD |
5601 | * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc |
5602 | ||
a6100861 DD |
5603 | 2000-07-31 DJ Delorie <dj@redhat.com> |
5604 | ||
5605 | * desktop.cc: reverse PATH so /usr/bin precedes /bin | |
5606 | ||
b11b49f3 DD |
5607 | 2000-07-18 DJ Delorie <dj@redhat.com> |
5608 | ||
a99bdfd8 DD |
5609 | * autoload.c: new, autoload dlls that might not be available. |
5610 | * Makefile.in (OBJS): add autoload.o | |
5611 | ||
5612 | * res.rc: rewrite root options (text/binary, system/user) to be | |
5613 | more obvious. | |
5614 | ||
b5b282c4 DD |
5615 | * site.cc (get_site_list): trim displayed URL, sort by domain |
5616 | ||
5617 | * net.cc (do_net): make IE5 default to checked, for now | |
5618 | ||
b11b49f3 DD |
5619 | * choose.cc (do_choose): sort packages correctly |
5620 | * ini.cc (do_ini): handle parse errors more gracefully | |
5621 | (yyerror): ditto | |
5622 | (fprintf): line buffer output | |
b5b282c4 | 5623 | (do_ini): if we can't load setup.ini, go back to the site list. |
b11b49f3 DD |
5624 | * ini.h: add "unknown" trust level |
5625 | * inilex.l: absorb unknown trust levels and key/value pairs, | |
5626 | add line number logic | |
5627 | * iniparse.y: handle parse errors more gracefully. | |
5628 | * install.cc: skip packages with no valid install entry | |
5629 | ||
1fd6d0a2 DD |
5630 | 2000-07-17 DJ Delorie <dj@cygnus.com> |
5631 | ||
5632 | * coding standards fixups, many files | |
5633 | * mkdir.cc: warn about deletions *before* deleting them | |
5634 | ||
ed3e8b9b DD |
5635 | 2000-07-17 Jeff Juliano <juliano@cs.unc.edu> |
5636 | ||
5637 | * res.rc (IDD_OTHER_URL): reorder to give default focus to entry | |
5638 | ||
5639 | * other.cc (dialog_cmd): save download site URL | |
5640 | * site.cc (get_root_dir): new | |
5641 | (save_mirror_site): new | |
5642 | (dialog_cmd): save download site URL | |
5643 | (get_site_list): make list big enough to add prev site | |
5644 | (get_initial_list_idx): new, read last-used URL from file and | |
5645 | append it to site_list | |
5646 | (do_site): call get_initial_list_idx | |
5647 | ||
5648 | * concat.cc (concat): avoid segfault when first parm is null | |
88bcaf07 | 5649 | |
f57c332f DD |
5650 | 2000-07-13 DJ Delorie <dj@cygnus.com> |
5651 | ||
5652 | * postinstall.cc: new | |
5653 | * Makefile.in: add postinstall.o | |
5654 | * concat.h: add backslash () | |
5655 | * concat.cc: ditto | |
5656 | * desktop.cc (etc_profile): don't do postinstall | |
5657 | (backslash): moved to concat.cc | |
5658 | (uexists): new | |
5659 | (make_postinstall_script): run directly | |
5660 | (do_desktop): chain to do_postinstall | |
5661 | * dialog.h: add exit_msg, do_postinstall | |
5662 | * download.cc: use exit_msg | |
5663 | * install.cc: ditto | |
5664 | * main.cc: add postinstall, exit_msg | |
5665 | * resource.h: add postinstall | |
d6cda811 | 5666 | * README: add more to-do items |
f57c332f | 5667 | |
3a8e3956 DD |
5668 | 2000-07-12 DJ Delorie <dj@cygnus.com> |
5669 | ||
5670 | * desktop.cc: add /etc/postinstall/ support | |
1a18aed7 | 5671 | * install.cc: add more "standard" directories |
3a8e3956 | 5672 | |
e0c3d906 DD |
5673 | 2000-07-11 DJ Delorie <dj@cygnus.com> |
5674 | ||
5675 | * desktop.cc: create /etc/profile | |
ad09bcd9 DD |
5676 | * desktop.cc: fix include syntax |
5677 | * Makefile.in: add auto-dependencies | |
24e259bb DD |
5678 | * root.cc: support system vs user |
5679 | * desktop.cc: ditto | |
5680 | * mount.h: ditto | |
5681 | * mount.cc: ditto | |
5682 | * install.cc: ditto | |
5683 | * res.rc: ditto | |
5684 | * resource.h: ditto | |
5685 | * state.h: ditto | |
84d58d4c | 5686 | * desktop.cc: make sure we use backslashes, not slashes. |
bf1d5889 DD |
5687 | * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd |
5688 | * geturl.cc: change math for percentage to avoid overflow | |
5689 | * install.cc: ditto | |
5690 | * download.cc: post "download complete" message. | |
5691 | * root.cc: pre-fill in defaults if needed, don't start | |
5692 | browse at root_dir unless it's set. | |
a3f48e18 | 5693 | * desktop.cc: quote $PATH in case it has spaces in it |
88bcaf07 | 5694 | |
904d24fe DD |
5695 | 2000-07-10 DJ Delorie <dj@cygnus.com> |
5696 | ||
5697 | * Makefile.in: add desktop.o and mklink2.o | |
5698 | * dialog.h: add do_desktop | |
5699 | * install.cc: create standard directories, call do_desktop | |
5700 | * res.rc: add cygwin.ico as a file also | |
5701 | * desktop.cc: new, do shortcuts, batch files, and icons | |
5702 | * mklink2.c: new, for COM | |
1ab805b8 | 5703 | * README: update to-do list |
904d24fe | 5704 | |
04d6e06b DD |
5705 | 2000-07-10 DJ Delorie <dj@cygnus.com> |
5706 | ||
5707 | * ini.cc (do_ini): don't worry about timestamps if we're not | |
88bcaf07 | 5708 | actually installing. |
04d6e06b | 5709 | |
5601a13d DD |
5710 | 2000-07-09 DJ Delorie <dj@cygnus.com> |
5711 | ||
5712 | * Makefile.in: add -I$(srcdir) for ini.h | |
5713 | ||
23c9e63c DD |
5714 | 2000-07-06 DJ Delorie <dj@cygnus.com> |
5715 | ||
5716 | * Replace everything with a new GUI version | |
5717 | * zlib/gzio.c: add gzctell() for progress displays | |
5718 | ||
5719 | 2000-06-22 DJ Delorie <dj@cygnus.com> | |
5720 | ||
5721 | * setup.c (tarx): re-add call to write_pkg() | |
5722 | ||
aa32874b DD |
5723 | 2000-06-07 DJ Delorie <dj@cygnus.com> |
5724 | ||
5725 | * cygcalls.c: new, call cygwin1.dll functions directly | |
5726 | * cygcalls.h: header for same | |
5727 | * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount | |
5728 | exes, fix cinstall.rc dependencies. | |
5729 | * path.c: remove unneeded code | |
5730 | * setup.c: use cygcalls instead of xcreate_process. | |
5731 | uncompress embedded files with zlib | |
5732 | add "-d" for "download only" | |
5733 | add "-h" for help | |
5734 | postpone mount changes until very end | |
5735 | add download progress indicators | |
5736 | pack multi-column listings more | |
5737 | auto-delete temp files | |
5738 | customize banner message according to options | |
5739 | prompt user for text/binary mounts | |
5740 | add warnings about empty setup directory, root installs, etc | |
5741 | ||
99d1bf2d DD |
5742 | 2000-05-24 DJ Delorie <dj@cygnus.com> |
5743 | ||
5744 | * tar.c: New file; built-in tar using zlib. | |
5745 | * tar.h: New file; header for same. | |
5746 | * ctar.c: New file; test program for same. | |
5747 | * Makefile.in: add built-in tar, remove tar.exe and gzip.exe | |
5748 | * path.c (pathcat): convert slashes and canonicalize, instead of aborting | |
5749 | * setup.c (tarx): add support for built-in tar | |
5750 | (main): accept unix-style slashes, check root dir for drive letters, | |
5751 | warn about installing in /, make sure cwd is empty for internet installs, | |
5752 | defer mounts to end of install, support built-in tar. | |
5753 | ||
55650749 CF |
5754 | Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com> |
5755 | ||
5756 | Fix compiler warnings throughout. | |
5757 | * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in | |
5758 | get_pkg_stuff. | |
5759 | * setup.c: Make 'root' global. | |
5760 | (istargz): Return pointer to "stem" of matched .tar.gz file. | |
5761 | (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove | |
5762 | bogus check_for_installed check. | |
5763 | (recurse_dirs): Add preliminary support for .bat file execution. | |
5764 | (create_uninstall): Eliminate unneeded parameter. | |
5765 | (do_start_menu): Ditto. | |
5766 | (mkmount): Ditto. | |
5767 | (get_pkg_stuff): Ditto. Check for currently installed cygwin by | |
5768 | scanning for the version number. Eliminate unneeded argument to | |
5769 | create_uninstall. | |
5770 | (getdownloadsource): Add 'name' to list of names rather than url. | |
5771 | (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate | |
5772 | unneeded argument in mkmount and do_start_menu. | |
5773 | ||
f4dda8f0 DD |
5774 | 2000-05-18 DJ Delorie <dj@cygnus.com> |
5775 | ||
5776 | * setup.c (optionprompt): allow multi-column, clean up message | |
5777 | about more options, be more robust about user input. | |
5778 | (getdownloadsource): make the mirror URL a macro. | |
5779 | (main): do mounts after done prompting user. | |
5780 | ||
62844d84 CF |
5781 | Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com> |
5782 | ||
5783 | * setup.c (cleanup): Inverse order of deletion stands a better chance | |
5784 | of deleting cygpath.exe. Still seems to suffer from occasional races, | |
5785 | though. | |
5786 | (cleanup_on_signal): Perform convoluted dance to accomodate win95 and | |
5787 | w2k. | |
5788 | (output_file): Defend against an unlikely handle leak. | |
5789 | (main): Don't set up signal handling until we have something special to | |
5790 | do. | |
5791 | ||
ad6749c8 CF |
5792 | Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com> |
5793 | ||
5794 | * path.c (kill_cygpath): Delete function. | |
5795 | (exit_cygpath): Make more defensive so that it can be called at any | |
5796 | time. | |
5797 | (cygpath_pipe): Don't set up signal here. Do it in main(). | |
5798 | * setup.c (istargz): New function. | |
5799 | (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz | |
5800 | inexplicably fails on samba mounted partitions. Use istargz to match | |
5801 | tar.gz tail. | |
5802 | (processdirlisting) Use istargz to match tar.gz tail. | |
5803 | (cleanup): Renamed from filedel. | |
5804 | (cleanup_on_signal): New function. Called on CTRL-C. | |
5805 | (main): Record handle of main thread so that it can be suspended when | |
5806 | CTRL-C occurs. Set up cleanup_on_signal signal handler. | |
5807 | ||
460cf7b6 CF |
5808 | Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com> |
5809 | ||
5810 | * setup.c (do_start_menu): Don't concatenate paths to already built | |
5811 | paths. | |
5812 | ||
9e76799c CF |
5813 | Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com> |
5814 | ||
5815 | * path.c (exit_cygpath): Wait for subprocess to exit before returning. | |
5816 | (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do | |
5817 | that. | |
5818 | * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin | |
5819 | root"-specific. | |
5820 | * setup.c (filedel): Call exit_cygpath here so that we can be assured | |
5821 | that cygpath subprocess has died. This allows us to delete cygpath.exe | |
5822 | and cygwin1.dll. | |
5823 | (optionprompt): Initialize response to -1 so that second screen of | |
5824 | mirrors will appear. | |
5825 | (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs. | |
5826 | * setup.h: Reflect init_pkgs prototype change. | |
5827 | ||
2cf65e6e CF |
5828 | Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com> |
5829 | ||
5830 | * pkg.c (init_pkgs): Accept an argument to control what root registry | |
5831 | key should be used. | |
5832 | * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails. | |
5833 | * setup.h: Reflect init_pkgs prototype change. | |
5834 | ||
5835 | Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com> | |
5836 | ||
5837 | * error.c (winerror): Respond to gcc warning. | |
5838 | * path.c (cygpath_pipe): Ditto. | |
5839 | * setup.c (filedel): Call sa_cleanup on deleteme. | |
5840 | (create_shortcut): Coerce argument to eliminate compiler warning. | |
5841 | (tarx): Use installed version of cygwin1.dll, overriding tar file name. | |
5842 | (refmatches): New function. Tests if ref is contained in a list of | |
5843 | packages to install. | |
5844 | (filematches): New function. Tests if filename matches one of a list | |
5845 | of packages to install. | |
5846 | (recurse_dirs): Accept list of packages to install. Generalize tar.gz | |
5847 | test to accomodate _tar.gz. | |
5848 | (prompt): Ensure that stdout is flushed prior to asking for input. | |
5849 | (findhref): Initialize variables to quiet a compiler warning. | |
5850 | (processdirlisting): Accept list of packages to install. Special case | |
5851 | cygwin tar file version number. | |
5852 | (downloaddir): Accept list of packages to install. | |
5853 | (downloadfrom): Ditto. | |
5854 | (create_uninstall): Eliminate unneeded variables. Quote arguments to | |
5855 | regtool. | |
5856 | (do_start_menu): Don't create uninstall bat file if updating or user | |
5857 | specified a list of packages. | |
5858 | (mkmount): Eliminate unneeded variables. | |
5859 | (get_pkg_stuff): New function. Checks for previous unversioned | |
5860 | installation. | |
5861 | (main): Accept -u and -f options and package names on the command line. | |
5862 | Use get_pkg_stuff to initialize package information. Umount /etc. | |
5863 | Call recurse_dirs and downloadfrom with list of package to install. | |
5864 | Ensure that all /usr/local directories are created. Output | |
5865 | installation time to setup.log. | |
5866 | * setup.h: Add some prototypes. | |
5867 | * xsystem.c (xcreate_process): Eliminate unneeded variable. | |
5868 | ||
4cf88dd9 CF |
5869 | Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com> |
5870 | ||
5871 | * setup.c (optionprompt): Don't overlap display of already seen options | |
5872 | on next page. | |
5873 | (geturl): Print name of site which we're connecting to rather than "ftp | |
5874 | site". | |
5875 | (processdirlisting): Avoid URLs that contain a /. or ./ . Is this | |
5876 | test too simplistic? | |
5877 | (do_start_menu): Use pathcat to build path to <root>\bin to avoid | |
5878 | problems when user chooses x:\ as their root. | |
5879 | (main): For now, default to "non-update" mode. Allow -u option to | |
5880 | signify an update. | |
5881 | ||
36591a07 CF |
5882 | Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com> |
5883 | ||
5884 | * pkg.c: New file. | |
5885 | * setup.c (tarx): Skip already installed or older packages. Report | |
5886 | when a package has been updated. | |
5887 | (processdirlisting): Skip already installed or older packages. | |
5888 | (main): Detect -f option for forced installation. Initialize pkg stuff | |
5889 | if appropriate. | |
5890 | * setup.h: Add pkg definitions. | |
5891 | ||
c298ea4a CF |
5892 | Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com> |
5893 | ||
5894 | * setup.c (findhref): Return NULL on empty string. Eat any trailing | |
5895 | ";something". | |
5896 | (processdirlisting): Attempt to limit recursively processing the same | |
5897 | directory. | |
5898 | ||
f4cafa7e CF |
5899 | Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com> |
5900 | ||
5901 | * setup.c (filedel): New function. | |
5902 | (output_file): Keep track of files extracted from setup.exe for | |
5903 | subsequent deletion. | |
5904 | (tarx): Close process handle of child tar process or suffer handle | |
5905 | leak. | |
5906 | (getdownloadsource): Close mirror file so that it can be unlinked. | |
5907 | (processdirlisting): Return total number of files extracted. | |
5908 | (main): Initialize array of files to delete. Ensure that files are | |
5909 | closed on exit. Make the directory that setup.exe is started from == | |
5910 | the directory where temporary files are placed. Issue an error if no | |
5911 | files were found to download. | |
5912 | * xsystem.c (xcreate_process): Close the thread handle. Close the | |
5913 | process handle if we waited for it to exit. | |
5914 | ||
cd475210 CF |
5915 | Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com> |
5916 | ||
5917 | * setup.c (main): Change version number output. | |
5918 | ||
7dff5e71 CF |
5919 | Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com> |
5920 | ||
5921 | * setup.c (tarx): Use full path name to tar executable. | |
5922 | (main): Build full pathname to tar executable. Create /usr/local/etc | |
5923 | by default. | |
5924 | ||
99437fdb CF |
5925 | Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com> |
5926 | ||
5927 | * setup.c (findhref): Change method for scanning for href= to choose | |
5928 | the last one on the line. This is still not foolproof and probably | |
5929 | will need to be changed eventually. Don't abort if no "size" field is | |
5930 | evident. | |
5931 | (processdirlisting): Fix boolean algebra. | |
5932 | ||
0f562d55 CF |
5933 | Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com> |
5934 | ||
5935 | * main.c (tarx): Add some code for future task of unmounting | |
5936 | directories encountered in tar file. | |
5937 | ||
4356382d CF |
5938 | Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com> |
5939 | ||
5940 | * setup.c (findhref): Decode file size, when appropriate. | |
5941 | (needfile): New function. Returns 1 when file should be | |
5942 | downloaded. | |
5943 | (processdirlisting): Always download if file size does not | |
5944 | match. Prompt when download fails for some reason. | |
5945 | (getdownloadsource): Accomodate findhref argument changes. | |
5946 | ||
6ab1ce6c CF |
5947 | Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com> |
5948 | ||
5949 | Throughout, use global session handle rather than reinitializing for | |
5950 | each connect. Don't pass session as an argument to setup.c functions. | |
5951 | * setup.c (geturl): Only issue "Connecting to.." message when using | |
5952 | http or first time for ftp since subsequent connections will be fast. | |
5953 | (processdirlisting): Allocate space for "N" when user has specified | |
5954 | "N"ever option so that it can be subsequently freed. | |
5955 | (main): Abort if we can't get the list of mirrors. | |
5956 | ||
37ee316b CF |
5957 | Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com> |
5958 | ||
5959 | * setup.c (main): Umount /bin and /lib. | |
5960 | ||
a59fb4fa CF |
5961 | Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com> |
5962 | ||
5963 | * setup.c (main): Create an empty /var/run/utmp. | |
5964 | ||
75f4b861 CF |
5965 | Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com> |
5966 | ||
5967 | * Makefile.in: Add umount to list of files to include in setup.exe. | |
5968 | * setup.c (xumount): New function for unmounting directories. | |
5969 | (main): Unmount /usr. | |
5970 | (mkmount): Unmount "unix directory" before trying to figure out where | |
5971 | to create the directory. | |
5972 | ||
d4a66789 CF |
5973 | Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com> |
5974 | ||
5975 | * setup.c (mkmount): Use xcreate_process to start mount process, | |
5976 | avoiding the shell. | |
5977 | (main): Don't do buffering on stdout or prompts won't be displayed | |
5978 | correctly if running in a cygwin shell with CYGWIN=tty. | |
5979 | ||
a6c3982d CF |
5980 | Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com> |
5981 | ||
5982 | * setup.c (main): Remove the CYGWIN environment variable before | |
5983 | starting any cygwin programs. | |
5984 | ||
0ffd5e3b CF |
5985 | Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com> |
5986 | ||
5987 | * setup.c (geturl): Use alternative method for finding filename part of | |
5988 | a URL. | |
5989 | (processdirlisting): Accomodate strange output from non-MS ftp proxy. | |
5990 | (downloaddir): Unlink file containing dir listing. | |
5991 | (downloadfrom): Ditto. | |
5992 | ||
3e54bcf9 CF |
5993 | Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com> |
5994 | ||
5995 | * setup.c (main): Disallow running setup.exe from the "root". | |
5996 | ||
005b73c4 CF |
5997 | Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com> |
5998 | ||
2cf65e6e | 5999 | Use "warning" function, where appropriate, to output warnings. |
005b73c4 CF |
6000 | * setup.c (warning): New function -- outputs warning to console and log |
6001 | file. | |
6002 | (tarx): Fix index used to reset file protection. | |
6003 | (main): Open the log file earlier so that more stuff can be sent to it. | |
6004 | ||
36dc5fc8 CF |
6005 | Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com> |
6006 | ||
6007 | * setup.c (processdirlisting): Make "N" option a little less aggressive. | |
6008 | ||
c73320de CF |
6009 | Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com> |
6010 | ||
6011 | * setup.c (tarx): Wait to after tar has completed to reset protections | |
6012 | or suffer races with tar process. | |
6013 | ||
68cdfc92 CF |
6014 | Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com> |
6015 | ||
6016 | * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS. | |
6017 | * setup.c (create_uninstall): Create the uninstall .bat file in the | |
6018 | "root" so that we can remove the /bin directory. Add bin\cygwin.bat to | |
6019 | list of files to be deleted. Fix directory detection for determining | |
6020 | when to use 'rmdir'. | |
6021 | (do_start_menu): Add /usr/local/bin to the path. | |
6022 | (main): Add slop to files.array allocation so that we don't have to | |
6023 | worry about reallocating the array when it grows too large when doing | |
6024 | some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of | |
6025 | files. | |
6026 | ||
35d18861 CF |
6027 | Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com> |
6028 | ||
6029 | * setup.c (processdirlisting): Fix handling of "A" for "A"lways | |
6030 | download. | |
6031 | ||
20904de1 CF |
6032 | Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com> |
6033 | ||
6034 | * path.c (kill_cygpath): New cleanup function. | |
6035 | (exit_cygpath): New cleanup function. | |
6036 | (cygpath_pipe): New function. Sets up cygpath in the background for | |
6037 | translating filenames. | |
6038 | (pathcvt): Use background cygpath for file translation. | |
6039 | * setup.c (tarx): New function. Called to extract tar files, capture | |
6040 | logging output, and translate it to Windows format. | |
6041 | (recurse_dirs): Use 'tarx' function to extract files. | |
6042 | (create_uninstall): Use file list built up by tarx rather than reading | |
6043 | the log file. | |
6044 | (mkmount): Add ability to mount root. | |
6045 | (main): Track elapsed install time. Mount root. | |
6046 | * starry.h: Add index field to strarry for tracking of tarx's usage of | |
6047 | this structure. | |
6048 | * xsystem.c (xcreate_process): Return proces handle when not waiting. | |
6049 | ||
c1246750 CF |
6050 | Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com> |
6051 | ||
6052 | * path.c: New file. | |
6053 | (pathfp): New function. Preliminary work for new -f cygpath | |
6054 | functionality. | |
6055 | * Makefile.in: Add new file. | |
6056 | (pathcvt): Move to new file. | |
6057 | (dtoupath): Ditto. | |
6058 | (utodpath): Ditto. | |
6059 | (pathcat): Ditto. | |
6060 | * setup.c (processdirlisting): Always open file in text mode. | |
6061 | (create_uninstall): Ditto. | |
6062 | (getdownloadsource): Ditto. | |
6063 | (main): Ditto. | |
6064 | ||
4b40edd0 CF |
6065 | Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com> |
6066 | ||
6067 | * xsystem.c: New file. | |
6068 | * Makefile.in: Accomodate new file. | |
6069 | * setup.c (xsystem): Move to new file. | |
6070 | (recurse_dirs): Accept handle to output log file. Don't use ">" | |
6071 | redirection to trap tar output. Use supplied handle instead. | |
6072 | (create_uninstall): Accept FILE pointer to opened log file. Don't | |
6073 | unlink log file here. | |
6074 | (do_start_menu): Accept FILE pointer to pass to create_uninstall. | |
6075 | (main): Open log file here and pass it to various functions. Unlink | |
6076 | when done. | |
6077 | ||
6f8e3b45 CF |
6078 | Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com> |
6079 | ||
6080 | Change occurrences of .usr.bin to .bin throughout. | |
6081 | * setup.c (geturl): Increase number of retries to 20. Let user know | |
6082 | what's going on during long connects. | |
6083 | (processdirlisting): Accept "A"lways and "N"ever as update options. | |
6084 | (create_uninstall): Load cygwin1.dll from the current directory rather | |
6085 | than \bin. | |
6086 | (main): Add some expository text. | |
6087 | ||
2a907b70 CF |
6088 | Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com> |
6089 | ||
6090 | * Makefile.in: Change method for compressing cygwin1.dll to avoid | |
6091 | creating a cygwin1.dll in the current directory. Ensure the addition | |
6092 | of -nostdinc to MINGW_CFLAGS. | |
6093 | ||
c4285a3c CF |
6094 | Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com> |
6095 | ||
6096 | * Makefile.in: Augment clean target. | |
6097 | ||
ea615d51 RP |
6098 | Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com> |
6099 | ||
6100 | * README: Added info about non-working mingw implementation | |
c1246750 | 6101 | * gzip.exe.gz: Replace with a version from the same build as the other |
ea615d51 | 6102 | tools. |
c1246750 | 6103 | * tar.exe.gz: Replace with a version from the same build as the other |
ea615d51 | 6104 | tools. |
c1246750 | 6105 | * mount.exe.gz: Add to repository until, mingw can build setup. |
ea615d51 RP |
6106 | * cygpath.exe.gz: ditto |
6107 | * cygwin1.dll.gz: ditto | |
c1246750 CF |
6108 | * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut |
6109 | for Win9x. Display only a screenfull of options at a time. Call all | |
6110 | tools with an absolute path. | |
6111 | * setup.dsp: Restore the carriage returns, MS Developer Studio needs | |
6112 | them. | |
ea615d51 RP |
6113 | * setup.dsw: ditto |
6114 | * zlib.dsw: ditto | |
6115 | ||
51954e74 CF |
6116 | Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com> |
6117 | ||
c1246750 CF |
6118 | * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab |
6119 | cygwin1.dll from ../cygwin subdirectory. | |
51954e74 CF |
6120 | * gzip.exe.gz: Update. |
6121 | * tar.exe.gz: Update. | |
6122 | ||
7b777418 CF |
6123 | Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com> |
6124 | ||
6125 | * Makefile.in: Use ZLIB variable as a target. | |
6126 | ||
4306b490 CF |
6127 | Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com> |
6128 | ||
5e7eb909 CF |
6129 | * Makefile.in: Eliminate traces of cygwinisms. Don't link with |
6130 | libmsvcrt.a. It's unneeded. Build .rc file on the fly from various | |
6131 | sources. | |
4306b490 CF |
6132 | * configure.in: Locate correct objcopy. |
6133 | * configure: Regenerate. | |
6134 | ||
739457f4 CF |
6135 | Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com> |
6136 | ||
6137 | * Makefile.in: New file. | |
6138 | * configure.in: New file. | |
6139 | * configure: New file. | |
6140 | * zlib/Makefile.am: New file. | |
6141 | * zlib/configure.in: New file. | |
6142 | * zlib/aclocal.m4: New file. | |
6143 | * zlib/acinclude.m4: New file. | |
6144 | * zlib/configure: Regenerate from configure.in. | |
6145 | * zlib/Makefile.in: Regenerate from Makefile.am | |
8507f105 DD |
6146 | |
6147 | %%% $Id$ | |
6148 | $Revision$ |