OSDN Git Service

Improve conditionally enabled state manipulation for menu items.
[mingw/mingw-get.git] / ChangeLog
1 2012-12-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2
3         Improve conditionally enabled state manipulation for menu items.
4
5         * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
6
7         * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
8         [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
9         provision, until the GUI is updated to support "reinstall" capability.
10         [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
11         [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
12
13 2012-12-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
14
15         Implement GUI bindings for processing a schedule of actions.
16
17         * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
18         (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
19         (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
20
21         * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
22
23         * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
24         (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
25         (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
26         (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
27
28         * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
29         (pkgActionItem::~pkgActionItem): Unlink chained references.
30
31         * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
32
33 2012-12-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
34
35         Do not preserve unnecessary download requests.
36
37         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
38         [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
39         "install" effect do not require a download; cancel any associated
40         download request.
41
42 2012-12-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
43
44         Implement GUI bindings for package download agent.
45
46         * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
47         (IDD_PROGRESS_PCT): New manifest resource IDs; define them.  They will
48         be used to identify dialogue controls, to be associated with...
49         (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
50         (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
51
52         * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
53
54         * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
55         inline method; declare it.  It overloads an existing private method of
56         the same name, which it subsequently invokes.
57
58         * src/pkginet.h: New header file; it declares...
59         (pkgInvokeDownload): ...this new extern "C" function prototype, and...
60         (pkgDownloadMeter): ...this abstract class; it is factored from its
61         original implementation in pkginet.cpp, augmented by addition of...
62         (pkgDownloadMeter::primary): New static member variable; declare it.
63         (pkgDownloadMeter::UseGUI): New public method; implement it inline.
64         (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
65         a do-nothing inline default implementation.  Any derived class, which
66         supports GUI capability, should override this.
67
68         * src/pkgnget.cpp: New file; it implements...
69         (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
70         (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
71         (AppWindowMaker::DownloadArchiveFiles): New inline method.
72         (pkgInvokeDownload): New dialogue box worker thread handler.
73
74         * src/pkginet.cpp: Include pkginet.h; hence...
75         (pkgDownloadMeter): ...remove redundant class declaration.
76         (pkgDownloadMeter::primary): Define and initialise it.
77         (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
78         progress metering to referenced pkgDownloadMeterGUI class instance.
79         [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
80         pkgDownloadMeterTTY mechanism.
81         (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
82         this initially; subsequently clear it on successful completion.
83         (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
84         into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
85
86         * src/guixmld.cpp: Include pkginet.h; it is required by...
87         (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
88
89         * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
90
91 2012-12-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
92
93         Implement "Discard" handler for GUI "Apply Changes" dialogue.
94
95         * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
96         (pkgActionItem::Clear): New public method; declare two overloaded
97         variants, of which implement one inline.
98         (pkgXmlDocument::ClearScheduledActions): New public method; declare
99         and implement it inline.
100
101         * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
102         manifest bit-flag constants; define them.  They provide a mechanism
103         for blocking the discard event in respect of failed actions.
104
105         * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
106         (pkgActionItem::Clear): Implement second, out-of-line variant.
107         (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
108         it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
109         (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
110
111 2012-12-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
112
113         Implement GUI dialogue for "Apply Changes" action approval.
114
115         * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
116         ("&Repository"): ...this drop-down menu entry...
117         ("&Installation"): ...this; add...
118         ("&Apply Changes"): ...this new selection.
119         (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
120         (SS_CTEXTBOX): New aggregate style convenience macro; define it.
121         (ES_VT100): Likewise.
122
123         * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
124         (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
125         (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
126         (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
127         (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
128         (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
129         (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
130         (AppWindowMaker::EnumerateActions): New inline method; declare it.
131         (AppWindowMaker::DialogueResponse): New inline method; declare and
132         implement it.
133
134         * src/guixmld.cpp (pkglist.h): #included.
135         (dmh_setpty): Add locally declared prototype.
136         (AppWindowMaker::EnumerateActions): Implement it.
137         (pkgActionCount): New static helper function; implement it.
138         (ACTION_APPLY, APPLIES_TO): New macros; define them.
139         (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
140         manifest string constants; define them.
141         (pkgApplyApproved): New static call-back function; implement...
142         (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
143
144 2012-12-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
145
146         Implement enhanced action item enumeration capability.
147
148         * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
149         method; declare it.  It provides the capability to enumerate scheduled
150         actions, filtered by action classification; when invoked such that it
151         selects all actions, it may be used as a replacement for...
152         (pkgActionItem::Unapplied): ...this; delete declaration.
153
154         * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
155         it; it is derived, with enhancement, from original implementation...
156         (pkgActionItem::Unapplied): ...of this; delete it, and...
157         (AppWindowMaker::OnClose): ...update calling reference accordingly.
158
159 2012-12-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
160
161         Implement PTY display emulation for GUI mode DMH.
162
163         * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
164         method; declare it, providing inline default do-nothing implementation.
165         (dmhTypeGeneric::severity_tag): New protected static method; declare it.
166         (dmhTypeGeneric::notification_format): New protected static property;
167         declare it.
168
169         * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
170         (dmhTypeGeneric::notification_format): Define and initialise it.
171         (dmhTypeTTY::notify): Use them.
172         (dmh_setpty): New function; declare prototype and implement it.
173
174         * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
175         (dmhTypeGUI::set_console_hook): New virtual method; declare and
176         implement it; it stores a dmhTypePTY reference pointer into...
177         (dmhTypeGUI::console_hook): ...this new private member variable.
178         (dmhTypeGUI::dmhTypeGUI): Initialise it.
179         (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
180         (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
181
182 2012-12-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
183
184         Implement generalised API for dialogue boxes with worker threads.
185
186         * src/guimain.h (pkgDialogueThread): New typedef; declare it.
187         (AppWindowMaker::DialogueThread): New static property; declare it.
188         (AppWindowMaker::DispatchDialogueThread): New method; declare it.
189
190         * src/guixmld.cpp: Formatting of several comments adjusted.
191         (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
192         (pkgDialogue): ...this new static call-back function; implement it.
193         (AppWindowMaker::DialogueThread): Instantiate and initialise it.
194         (AppWindowMaker::DispatchDialogueThread): Implement it.
195         (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
196         (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
197
198 2012-12-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
199
200         Consolidate GUI implementation for package list view management.
201
202         * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
203         method; remove all declarations.
204         (pkgListViewMaker::GetVersionString): Disused method; remove
205         declaration.
206         (pkgListViewMaker::GetItem): New private inline method; declare it.
207         (pkgListViewMaker::UpdateItem): New private method; declare it.
208         (pkgListViewMaker::UpdateListView): New public method; declare it.
209         (pkgListViewMaker::MarkScheduledActions): Likewise.
210
211         * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
212         method; declare it, but defer implementation to...
213
214         * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
215         elsewhere, it is derived from, and replaces...
216         (pkgMarkSchedule): ...this function; factor out redundant code, in
217         favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
218         following call to AppWindowMaker::UpdatePackageMenuBindings(); update
219         calling function references...
220         (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
221         (AppWindowMaker::Schedule): ...here.
222
223         * src/pkglist.cpp (pkgVersionString): New static function; implement
224         it as a local replacement for...
225         (pkgListViewMaker::GetVersionString): ...this defunct class method.
226         (pkgGetTitle): New overloaded static function; implement two variants,
227         as local replacements for...
228         (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
229         (pkgListViewMaker::UpdateItem): Implement it; factor code from...
230         (pkgListViewMaker::InsertItem): ...here, whence use it.
231         (pkgListViewMaker::MarkScheduledActions): Implement it.
232         (pkgListViewMaker::UpdateListView): Implement it.
233         (pkgListViewMaker::pkgListViewMaker): Remove references to...
234         (LVIF_TEXT): ...this.
235
236 2012-11-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
237
238         Increase width of window sash bars by 50%.
239
240         * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
241         it easier to grab the sash bars, so they may be dragged; IMO, it also
242         results in a better appearance.
243
244 2012-11-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
245
246         Maintain consistent internal vs. external installation records.
247
248         * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
249         package reference, to "yes", after installation; CLI didn't need this,
250         but GUI will do so, for any package revisited in a single session.
251
252         * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
253         after package removal.
254
255 2012-11-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
256
257         Refactor to consolidate three instances of duplicate code.
258
259         * src/pkglist.h (pkgGetStatus): New function; declare it.
260         * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
261         (pkgListViewMaker::InsertItem): ...here, whence use it.
262         * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
263         (DataSheetMaker::DisplayGeneralData): ...and here.
264
265 2012-11-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
266
267         Add GUI support for install, upgrade, and remove action scheduling.
268
269         * src/guimain.h (EXTERN_C): Ensure it is defined.
270         (pkgActionItem): Add forward declaration of class name.
271         (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
272         (AppWindowMaker::OnClose): New virtual method; declare it.
273         (AppWindowMaker::Schedule): New public method; declare it.
274         (AppWindowMaker::UnmarkSelectedPackage): Likewise.
275
276         * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
277         protective logic; ignore attempts to access non-existent objects.
278         (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
279         (pkgActionItem::Selection) [this == NULL]: Likewise.
280         (pkgActionItem::GetReference): New overloaded public method; declare
281         prototype variant with argument type of pkgXmlNode*.
282         (pkgActionItem::Unapplied): New public method; declare it.
283         (pkgActionItem::CancelScheduledAction): Likewise.
284         (pkgXmlDocument::Schedule): Change return type from void to
285         pkgActionItem*; add default argument values.
286
287         * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
288         [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
289         [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
290         [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
291         [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
292         [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
293
294         * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
295         (pkgActionItem::CancelScheduledAction): Implement it.
296         (pkgActionItem::Unapplied): Implement it.
297         (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
298         (AppWindowMaker::UnmarkSelectedPackage): Implement it.
299         (AppWindowMaker::Schedule): Implement it.
300         (AppWindowMaker::OnClose): Implement it.
301
302         * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
303         (pkgXmlDocument::Schedule): Change return type, and return value.
304         [this == NULL]: Add protective logic; ignore non-existent objects.
305         [name == NULL]: Do not schedule; just return existing action list.
306
307 2012-11-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
308
309         Add dynamically enabled state control for package menu items.
310
311         * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
312         private method; declare it.
313
314         * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
315         Implement it, and...
316         (AppWindowMaker::OnNotify): ...use it.
317
318 2012-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
319
320         Avoid excessive inter-word spaces in adjusted text.
321
322         * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
323         padding to be added at each inter-word space, when adjusting text; do
324         not adjust, if it exceeds 5% of available display pane width.
325
326 2012-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
327
328         Elide unbreakable text which will not fit within display width.
329
330         * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
331         over-width unbreakable text; elide characters from the right, to make
332         it fit within the display width, with trailing ellipsis.
333
334 2012-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
335
336         Add content compiler for package data sheet "general" tab.
337
338         * src/pkgbase.h (pkgActionItem::PrintURI): Make it public.  Add a
339         call-back reference argument, for output function; assign puts() as
340         default, where previously had hard coded printf() emulating puts()
341
342         * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
343
344         * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
345         stores a reference to the active class instance, so static call-back
346         methods may delegate processing requests to non-static methods.
347         (DataSheetMaker::Advance): New static property; it is used to instruct
348         call-back methods to interpose paragraph leading it the output stream.
349         (DataSheetMaker::FormatRecord): New private method; implement it.
350         (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
351         can access it directly as a class property.  Update all callers as
352         necessary, to conform to modified function prototype.
353         (pkgListSelection): New static function; implement it, and...
354         (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
355         [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
356         [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
357         (DataSheetMaker::DisplayGeneralData): New public method; implement it.
358         (DataSheetMaker::DisplayPackageURL): New static method; implement it.
359         (DataSheetMaker::DisplayLicenceURL): Likewise.
360         (DataSheetMaker::DisplaySourceURL): Likewise.
361
362 2012-10-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
363
364         Fix error in counting of catalogue files during loading.
365
366         * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
367         variable once only, at start of each cycle of the catalogue loading
368         loop; previous strategy of counting in discrete logic paths could
369         miss several required increments, particularly in CLI mode.
370
371 2012-10-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
372
373         Avoid DMH message digest fragmentation when downloading.
374
375         * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
376         * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
377         locally opened message digest, when called with one already open.
378
379 2012-10-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
380
381         Initiate progress metering for catalogue load and update operations.
382
383         * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
384         (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
385
386         * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
387         (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
388         resource identification manifest constants; define them.
389         (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
390         (AppWindowMaker::AttachedProgressMeter): New private data; define...
391         (AppWindowMaker::AppWindowMaker): ...and initialise it.
392         (AppWindowMaker::AttachProgressMeter): New public method; declare it.
393         (AppWindowMaker::DetachProgressMeter): Likewise.
394         (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
395         (AppWindowMaker::UpdatePackageList): Make them public.
396
397         * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
398         (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
399         (pkgXmlDocument::progress_meter): New private data member; declare...
400         (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
401         (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
402         (pkgXmlDocument::DetachProgressMeter): New public inline methods;
403         implement them.
404
405         * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
406         (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
407         * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
408         (ProgressMeterMaker): ...this new locally implemented class.
409         (AppWindowMaker::AttachProgressMeter): Implement it.
410         (AppWindowMaker::AttachProgressMeter): Likewise.
411         (pkgProgressMeter::~pkgProgressMeter): Likewise.
412         (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
413         (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
414         an indirect invocation, via a progress metering dialogue box using...
415         (pkgInitDataLoad): ...this new static callback function, invoking...
416         (pkgInvokeInitDataLoad): ...this new static thread function, whence...
417         (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
418         (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
419
420         * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
421         private static properties; declare and instantiate them; provide...
422         (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
423         static methods to manipulate them; declare and implement them inline.
424         (pkgRepository::GetPackageList): Use them to manage updates to the
425         pkgProgressMeter class instance, if any, which has been bound to
426         the controlling pkgXmlDocument class instance, when invoking...
427         (pkgXmlXmlDocument::BindRepositories): ...this.
428
429 2012-10-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
430
431         Associate DMH message boxes with active dialogues.
432
433         * src/guidmh.cpp (last_active_popup): New static inline function.
434         (dmhTypeGUI::dispatch_message): Use it.
435
436 2012-10-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
437
438         Fix Diagnostic Message Handler initialisation logic.
439
440         * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
441         it previously fell through after any successful initialisation of the
442         DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
443         handler.  Also, assign a heap copy of the passed "progname" string
444         resource, which is volatile, to ensure that the handler retains a
445         valid reference.
446
447 2012-10-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
448
449         Implement preliminary GUI mode data sheet compiler.
450
451         * src/guimain.h (DataSheetMaker): New class; forward declare it.
452         (AppWindowMaker::InitPackageTabControl): New private method; declare it.
453         (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
454         (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
455         private data members; declare them.
456         (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
457         (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
458         define them.
459
460         * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
461
462         * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
463         (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
464         ...this group of sash pane child window entities.
465         (AppWindowMaker::OnNotify): Comment out disused stub implementation.
466
467         * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
468         (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
469         (utf32_t): ...and this typedef; relocate to, and #include...
470         * src/pkgdata.h: ...this new header file.
471
472         * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
473         (AppWindowMaker::InitPackageTabControl): Implement it.
474         (AppWindowMaker::OnNotify): Reimplement it.
475
476         * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
477
478         * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
479         AppWindowMaker::InitPackageTabControl()
480
481 2012-10-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
482
483         Remove a grossly heuristic list view hack.
484
485         * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
486         heuristic deletion of any redundant package name prefixes from package
487         title attributes; by now, all such prefixes should have been removed
488         from the catalogue, explicitly, at source.
489
490 2012-10-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
491
492         Implement GUI list view compiler for XML catalogue.
493
494         * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
495         [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
496
497         * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
498         (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
499         (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
500         (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
501         (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
502         (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
503         (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
504         (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
505         (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
506         (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
507         (AppWindowMaker::InitPackageListView): New private method; declare it.
508         (AppWindowMaker::UpdatePackageList): New private method; declare it.
509         (AppWindowMaker::ClearPackageList): New private method; declare and
510         implement it inline.
511
512         * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
513         (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
514         (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
515         (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
516         (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
517         (ID_PKGSTATE_PURGE): New icon resources; implement them.
518
519         * icons/state01.ico icons/state02.ico icons/state03.ico:
520         * icons/state04.ico icons/state05.ico icons/state06.ico:
521         * icons/state07.ico icons/state08.ico icons/state09.ico:
522         * icons/state10.ico icons/state11.ico icons/state12.ico:
523         * icons/state13.ico: New files.  All are cloned from synaptic icons;
524         see src/guimain.rc for symbolic/functional reference names.
525
526         * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
527         declare it for use in modules which #include guimain.h
528
529         * src/pkglist.cpp: New file; it implements...
530         (pkgListViewMaker): ...this new class, and its clients...
531         (AppWindowMaker::InitPackageListView): New method.
532         (AppWindowMaker::UpdatePackageList): Likewise.
533
534         * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
535
536         * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
537         as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
538         calling AppWindowMaker::AdjustLayout().
539
540 2012-10-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
541
542         Add GUI initialiser hook for XML catalogue interface.
543
544         * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
545         it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
546         providing the initialiser hook which will invoke this...
547         (AppWindowMaker::LoadPackageData): ...new private method; declare it.
548
549         * src/guixmld.cpp: New file.
550         (AppWindowMaker::Invoke): Implement it.
551         (AppWindowMaker::LoadPackageData): Likewise.
552
553         * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
554
555 2012-09-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
556
557         Add initial working GUI mode DMH class implementation.
558
559         * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
560         (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
561         (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
562
563         * src/dmhcore.h: New header file; it declares...
564         (dmhTypeGeneric): ...this abstract base class, factored from...
565
566         * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
567         still required, thus include dmhcore.h so that it remains visible.
568         (dmh_exception): Remove errant namespace qualifier from constructor.
569         (dmhTypeGUI): Delete class declaration and original constructor.
570         (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
571         (dmh_init_gui): ...this new static function; it is a stub which
572         invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
573         (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
574         original method stubs.
575
576         * src/guidmh.cpp: New file; it reimplements...
577         (dmhTypeGUI): ...this class; declare it and implement its constructor.
578         (dmh_init_gui): Provide its DLL exported implementation.
579         (dmhTypeGUI::dispatch_message): New private method; add it to the
580         class declaration and implement it; it is a helper method for...
581         (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
582         (dmhTypeGUI::printf): Provide a replacement stub.
583
584         * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
585
586         * src/guimain.h (AppWindowMaker::Create): New method; add it to the
587         class declaration; it overrides the default Create() method inherited
588         from WTK::MainWindowMaker
589
590         * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
591         window class registration and dmhTypeGUI initialisation, in addition
592         to the inherited CreateWindow() behaviour.
593
594         * src/guimain.cpp: Include dmh.h
595         (WinMain): Add catch block for dmh_exception.  Remove window class
596         registration request; it is now delegated to AppWindowMaker::Create()
597
598 2012-09-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
599
600         Add .hgignore as tracked file.
601
602         * .hgignore: New file.
603
604 2012-09-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
605
606         Defer generation of version.c until "make" time.
607
608         * version.c.in: Move it...
609         * src/version.c.in: ...to here.
610         (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
611         Change substitution field marker character from "@" to "%".
612
613         * configure.ac (AC_CONFIG_FILES): Remove version.c
614
615         * Makefile.in (TAG_SCRIPT): New macro, factored out from...
616         (RC_SCRIPT): ...here, whence use it; also use it to implement...
617         (VERSION_SCRIPT): ...this further new macro; use it in...
618         (%.c): ...this generic template rule for version.c
619         (time-stamp, %.time, %.tagged.time, %.tag): New generic build
620         goals; use them to track package release progression via...
621         (build.tag): ...this new intermediate; make it a pre-requisite...
622         (guidata.OBJEXT, version.c): ...of these.
623
624 2012-09-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
625
626         Implement framework for GUI sash window layout controller.
627
628         * configure.ac (AC_INIT): Bump version number to 0.6
629         (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
630         (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
631         (SNAPSHOT_CLASS): Recognise as user specified environent variable
632         override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
633         (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
634         (WINDRES): ...this, as reference name for the resource compiler.
635         (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
636         "lua-dev" and "wtklite-dev" support.
637
638         * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
639         (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
640         (RC): ...with this, to implement new target rule for compiling...
641         (%.rc): ...resource definition files to %.OBJEXT objects.
642         (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
643         (guimain.EXEEXT): ...to implement build rule for this.
644         (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
645         (lastrites.EXEEXT): Use GUI_LDFLAGS.
646         
647         * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
648         * src/pkgview.cpp: New file.
649
650 2012-09-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
651
652         Adjust incorrectly resolved 2012-09-14 merge from master.
653
654         * src/Makefile.in: Restore lost reference to guistub.cpp
655
656 2012-09-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
657
658         Implement GUI hooks in "rites of passage" internal API.
659
660         * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
661         inline wrapper functions, through which the GUI application acquires
662         and manages an exclusive access lock for the XML catalogue.
663
664         * src/rites.c (lockfile_name): Explicitly cast memory allocated for
665         the returned name to (char *), so this may be embedded in C++ code.
666         (pkgInitRites): Factor out lock acquisition failure diagnostics...
667         (pkgLockFail): ...to this inline helper function; conditionally...
668         [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
669         [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
670
671 2012-09-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
672
673         Be case agnostic when matching shortcut targets.
674
675         * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
676         toLowerCase() on both sides of the comparison.
677
678 2012-09-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
679
680         Note relocation of m4 when packaging source distribution.
681
682         * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
683
684 2012-09-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
685
686         Move guimain.cpp out of the way.
687
688         * src/guimain.cpp: Rename file as...
689         * src/guistub.cpp: ...this; we want to keep current features for now,
690         but to use the guimain.cpp name for main GUI application development.
691         * Makefile.in: Adjust references accordingly.
692
693 2012-09-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
694
695         Fix typo, and update licensing terms for embedded getopt.c
696
697         * src/getopt.c: Incorporate MIT/X style licence; update copyright
698         notice, to reflect chronology of publication; correct degenerate RCS
699         keyword usage in EOF marker comment.
700
701 2012-09-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
702
703         Correct omission from copyright notice.
704
705         * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
706
707 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
708
709         Redefine paragraph_key with project global scope.
710
711         * src/pkgkeys.h (paragraph_key): Declare it.
712         * src/pkgkeys.c (paragraph_key): Define it.
713
714         * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
715         function local definition; use global definition instead.
716
717 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
718
719         Correct defect introduced by 2012-08-03 commit.
720
721         * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
722         pointer isn't moved after the APPROOT prefix is truncated.
723
724 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
725
726         Remap Mercurial subrepository reference via local hg-git clone.
727
728         * .hgsub (build-aux): Point to ../build-aux; this must be a locally
729         hosted hg clone of the git origin repository, and it must pre-exist as
730         a sibling of any created hg clone of the mingw-get repository.
731
732         * .hgsubstate: New file, automatically generated by Mercurial.
733
734 2012-08-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
735
736         Add Mercurial subrepository reference for build-aux.
737
738         * .hgsub: New file.
739
740 2012-08-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
741
742         More code refactoring, to facilitate GUI implementation.
743
744         * src/clistub.c (AppPathNameW): Factor out; relocate to...
745         * src/approot.c: ...this new file; it reproduces the original
746         implementation, modified to also consider any "libexec" directory in
747         the executable path as the first child of the APPROOT prefix.  Note
748         also, that no longer terminates APPROOT with a trailing backslash.
749
750         * src/approot.h: New file; it trivially declares the prototype for...
751         (AppPathNameW): ...this relocated extern "C" function.
752
753         * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
754         trailing backslash on assignment to APPROOT environment variable.
755
756         * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
757         set of prerequisites, with the addition of approot.OBJEXT, for...
758         (mingw-get.EXEEXT): ...this; use it.
759
760         * src/rites.c: Add comment regarding APPROOT usage.
761
762 2012-08-02  Earnie Boyd  <earnie@users.sourceforge.net>
763
764         Find missing.m4 in build-aux/m4 directory.
765
766         * aclocal.m4: Change path  m4/missing.m4 to build-aux/m4/missing.m4.
767
768 2012-07-31  Earnie Boyd  <earnie@users.sourceforge.net>
769
770         Add build-aux as a submodule.
771         Move .cvsignore to .gitignore.
772
773         * .gitmodules: New file.
774         * build-aux: New submodule directory.
775         * .cvsignore: Remove.
776         * .gitignore: New file.
777
778 2012-07-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
779
780         Disable globbing of command line arguments.
781
782         * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
783         need globbing, and it may cause case transliteration of case-sensitive
784         action keywords, when a file system entity with a case-insensitively
785         matching name exists.
786
787 2012-06-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
788
789         Refactor API to facilitate implementation of GUI ListView hooks.
790
791         * src/pkgkeys.h (title_key, description_key): Declare them.
792         * src/pkgkeys.c (title_key, description_key): Define them; relocate...
793         * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
794         (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
795         (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
796         (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
797         implement as a concrete method of this abstract base class; factor...
798         (pkgDirectoryViewer::Dispatch): ...from original inline implementation
799         within this method of the concrete derived class, whence use it.
800         (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
801         * src/pkglist.h: ...into this new header file; include it.
802
803         * src/pkgbase.h (pkgDirectory): Add forward class declaration.
804         (pkgXmlDocument::CatalogueAllPackages): Declare it.
805
806 2012-05-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
807
808         Update help text to document package version selection capability.
809
810         * src/clistub.c (help_text): Add description of command line syntax
811         which may be used to specify an alternative to the default package
812         version selection, for install and upgrade actions.
813
814 2012-05-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
815
816         Support options set by preferences assigned within profile.xml
817
818         * xml/profile.xml (preferences): New element; add defaults.
819
820         * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
821         (OPTION_START_MENU_ARGS): New enumerated constants; define them.
822         (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
823         (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
824         (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
825         least significant 12-bits of full-range index value.
826         (pkgOpts::IsSet): New inline method; implement it.
827
828         * src/clistub.c (main): Reimplement --desktop and --start-menu
829         options; each now becomes an OPTION_GENERIC optarg string store.
830         (set_script_hook): Function no longer used; delete it; delegate to...
831         * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
832         method; declare it, providing its implementation in...
833         * src/pkgopts.cpp: ...this new file; invoke it...
834         * src/climain.cpp (climain): ...here.
835
836         * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
837
838 2012-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
839
840         Correct sequence of installation/removal progress reporting.
841
842         * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
843         message, until after pre-remove hooks have run; this ensures that any
844         output from the pre-remove hook scripts appears in correct sequence.
845
846         * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
847         message, in relation to pre-install hooks.
848
849 2012-04-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
850
851         mingw-get-0.5-beta-20120426-1 released.
852
853         * configure.ac (AC_INIT): Version number updated.
854         * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
855         * All files (r0-5-beta-20120426-1): Tag assigned.
856
857 2012-04-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
858
859         Interim work-around for MinGW-Bug #3520864.
860
861         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
862         [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
863         the scheduling of installation activities.
864
865         * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
866         hooks to confirm request flags; bracket them with #if 0 ... #endif.
867         [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
868         when updating the pre-existing action item data.
869
870 2012-04-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
871
872         Fix MinGW-Bug #3520488
873
874         * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
875         passed as action request string; also reject ambiguous abbreviations.
876
877         * src/climain.cpp (climain): Discriminate between NULL pointer and
878         other forms of invalid action keyword matching failures.
879
880 2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
881
882         mingw-get-0.5-beta-20120416-1 released.
883
884         * configure.ac (AC_INIT): Version number updated.
885         (YEARS_OF_ISSUE): 2012 added.
886
887         * srcdist-doc/NEWS.in: Updated; release notes added.
888         * All files (r0-5-beta-20120416-1): Tag assigned.
889
890 2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
891
892         Assign icon to temporary GUI executable file.
893
894         * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
895
896         * configure.ac: Add identification for windres; propagate it to...
897         * Makefile.in: ...here; use it to compile object from icon files...
898         (srcdir/icons) [%.ico]: ...from this new vpath location.
899         (gui.exe): Link to compiled icon's object file.
900         (SRCDIST_SUBDIRS): Add icons directory.
901
902 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
903
904         Ensure that package removal requests are correctly scheduled.
905
906         * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
907         as a distinct case, when the installed version is not the most recent
908         available release; consideration of this distinct case was previously
909         erroneously overlooked.
910
911 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
912
913         Correct scheduling of new prerequisites when upgrading.
914
915         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
916         [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
917         case of a prerequisite with no previously installed version; it may be
918         a delegated primary requirement of a meta-package.
919
920 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
921
922         Don't require subsystem within user specified version bounds.
923
924         * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
925         "*" wild-card matches for subsystem, if user doesn't specify it.
926
927 2012-04-09  Charles Wilson  <mingw@cwilson.fastmail.fm>
928
929         Fix missing include.
930
931         * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
932         (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
933
934 2012-04-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
935
936         Correct a srcdist package construction defect.
937
938         * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
939         (mkinstalldirs): ...this, to create package image directories.
940
941 2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
942
943         Add scripting hooks to support creation of MS-Windows shortcuts.
944
945         * src/clistub.c (progname): New static variable with file scope; it
946         replaces former automatic variable, of same name, in main() function.
947         (set_script_hook): New static function; implement it, and call it...
948         (main) [--desktop, --start-menu]: ...from here, to interpret these new
949         command line options; they are propagated to scripts via...
950         (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
951         internally assigned environment variables.
952         (help_text): Document --desktop and --start-menu.
953
954         * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
955         files; they implement a lua scripting API; they delegate requests to
956         the Windows Scripting Host, via either of this pair of...
957         * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
958         * scripts/libexec/unlink.js: ...its complement, to remove them.
959         * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
960         (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
961         (install): ...install them.
962
963 2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
964
965         Initialise $LUA_PATH to locate mingw-get specific scripts.
966
967         * src/pkgexec.cpp (lua_path_init): New static inline function.
968         (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
969         [lua_path_setup == false]: ...this static function local variable.
970
971 2012-04-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
972
973         Support installation of releases other than latest available.
974
975         * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
976
977         * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
978         (pkgXmlDocument::Schedule): Use it to interpret user specified version
979         bounds, and apply them to scheduled action items.  Having used...
980         (get_version_bounds): ...this new static inline function...
981         ...to acquire any user specified version bounds, check that they can
982         be honoured, before scheduling any action; delegate diagnostics to...
983         (dmh_notify_no_match): ...this new local helper function, to report
984         when they can't, and to indicate viable alternatives.
985
986 2012-03-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
987
988         Rework previously inadequate solution for MinGW-Bug #3424406
989
990         * src/pkgtask.h: Update copyright notice for current year.
991         (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
992         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
993
994         * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
995         (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
996         (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
997         (with_flags): Original macro deleted; replace it with...
998         (with_request_flags): ...this new static inline function.
999         (if_noref, if_match, if_alias, with_download, promote): New static
1000         inline functions; they replace original macros of the same names.
1001         (is_recursive_action): Function no longer used; delete it.
1002         (action_class): New static inline function; implement and use it...
1003         (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
1004         requirements for packages which are already installed; depends on...
1005         (request_mode): ...this new automatic variable; it augments and...
1006         (recursive_mode): ...replaces this one; rename it accordingly.
1007         (viable): Automatic variable no longer used; delete it.
1008         [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
1009         scheduled installation.
1010         (pkgXmlDocument::Schedule): Add an implied...
1011         (ACTION_REMOVE): ...when scheduling a reinstallation.
1012
1013 2012-03-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
1014
1015         Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
1016
1017         * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
1018         (pkgActionItem::Execute): Use it to identify cases where...
1019         [--reinstall]: ...implicit package removal is required, and also to
1020         facilitate improved progress reporting in such cases.
1021
1022         * src/pkgdeps.cpp (is_recursive_action): New inline function.
1023         (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
1024         (recursive_mode): ...this new automatic variable, so as to handle...
1025         [meta-package dependency]: ...implicit recursion, to extend the scope
1026         of the current action to the first level of non-meta dependency.
1027         [install --reinstall]: ...reinstall original version of nominated
1028         package, ignoring any available upgrade; extend scope of operation...
1029         [install --reinstall --recursive]: ...to all prerequisite packages.
1030         [upgrade --reinstall]: ...upgrade nominated package if possible; if no
1031         upgrade available, reinstall current version; extend scope...
1032         [upgrade --reinstall --recursive]: ...to all prerequisites.
1033         (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
1034         reimplement selectively; never promote...
1035         [install, install --reinstall]: ...these operations to become...
1036         [upgrade]: ...this, even if available; issue diagnostic instead.
1037
1038 2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1039
1040         Rationalise implementation and usage of --all-related option.
1041
1042         * src/pkgopts.h: Update copyright notice; add year 2012.
1043         (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
1044         (pkgOpts::SetFlags): New method; declare and implement it inline.
1045
1046         * src/clistub.c: Update copyright notice; add year 2012.
1047         (options) [recursive, all-related]: Redefine in terms of...
1048         (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
1049         (help_text): Update appropriately.
1050
1051         * src/climain.cpp: Update copyright notice; add year 2012.
1052         (climain) [all-related]: Associate its use exclusively with...
1053         (source, licence): ...these package processing operations; use...
1054         (pkgOptions::SetFlags): ...this, to propagate its effect.
1055
1056 2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1057
1058         Don't report failed downloads in respect of virtual packages.
1059
1060         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
1061         [ACTION_DOWNLOAD]: ...this status flag for any package identified as
1062         a meta-package; this corrects a further regression introduced with the
1063         2011-11-09 update, whereby pending download requests for such virtual
1064         packages were not cancelled, resulting in failure to install due to
1065         failed downloads, when no download is actually required.
1066
1067 2012-03-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1068
1069         Don't suppress implied downloads for top-level actions.
1070
1071         * src/pkgdeps.cpp: Update copyright notice for new year.
1072         (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
1073         [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
1074         an upgrade action for a package specified as a command line argument;
1075         this corrects a regression introduced on 2011-11-09, which resulted in
1076         ACTION_DOWNLOAD being enabled only for second tier dependent actions.
1077
1078 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
1079
1080         Copyright notice updates.
1081
1082         * Makefile.in: Add 2012 as year of republication.
1083         * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
1084         * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
1085
1086 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
1087
1088         Fix ill-advised optimisation in $APPROOT environment lookup.
1089
1090         * src/rites.c (approot_path): Don't save result of getenv() lookup
1091         across calls; the environment may have been moved in the interim,
1092         making the original result invalid on any subsequent call.  Also,
1093         prefer MS-Windows style (with backslashes) for default.
1094         (pkgLastRites): Report full path name for lastrites.exe, on execl()
1095         failure, rather than only the path relative to $APPROOT.
1096
1097 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
1098
1099         Propagate sysroot path settings to scripts via the environment.
1100
1101         * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
1102         (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
1103         (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
1104         they are used to specify optional behavioural choices for...
1105         (pkgPutEnv): ...this new function; declare it.
1106
1107         * src/sysroot.cpp (pkgPutEnv): Implement it.
1108         (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
1109         specifications to the environment, for each named subsystem associated
1110         with the active system map.
1111
1112         * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
1113         to processing of each package install, upgrade, or remove action, so
1114         as to update environment variable $SYSROOT to represent the sysroot
1115         path for each package processed, during execution of script hooks.
1116
1117 2012-02-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1118
1119         Implement hooks to support lua scripting interface.
1120
1121         * Makefile.in (LIBS): Add -llua.
1122
1123         * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
1124         as private, and provide overloaded public inline API implementation.
1125         (pkgXmlNode::DispatchScript): New private method; declare it.
1126
1127         * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
1128         (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
1129         (pkgInvokeScript): ...this new static function; implement it.
1130
1131         * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
1132         * src/pkgunst.cpp (pkgRemove): Likewise.
1133
1134 2011-11-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
1135
1136         Avoid implicit cast warnings; reported by Robert Hartmann.
1137
1138         * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
1139         (DMH_END_DIGEST): Likewise.
1140
1141 2011-11-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
1142
1143         Avoid unnecessary downloads for already installed packages.
1144
1145         * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
1146         external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
1147         on completion, or when not required due to pre-existing local copy.
1148
1149         * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
1150         prepared to download the associated archive; enable ACTION_DOWNLOAD.
1151
1152         * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
1153         May need to download the archive, even when the requested package was
1154         previously installed; schedule ACTION_DOWNLOAD to enable this.
1155
1156         * src/pkgdeps.cpp (promote): Macro redefined in terms of...
1157         (with_flags, with_download): ...these new macros; implement and...
1158         (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
1159         ACTION_DOWNLOAD only when expected that it may be necessary.
1160
1161 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1162
1163         Fix packaging anomalies for source and licence distributions.
1164
1165         * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
1166         (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
1167         rather than as implied prerequisite; this avoids a bogus attempt to
1168         link srcdist-doc into src/pkginfo.
1169
1170 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1171
1172         Bump version number for subsequent CVS snapshots.
1173
1174         * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
1175
1176 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1177
1178         mingw-get-0.4-mingw32-alpha-1 released.
1179
1180         * configure.ac (AC_INIT): Adjust version number.
1181         * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1182         * All files (r0-4-alpha-1): Tag assigned.
1183
1184 2011-11-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
1185
1186         Don't upgrade installed DLL components to incompatible version.
1187         Provide clearer diagnostics for failed requests on implied packages.
1188
1189         * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
1190         (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
1191         (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
1192         Clean up and improve diagnostic message content and formatting.
1193         (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
1194         Downgrade diagnostic to WARNING, for implicitly specified component
1195         packages; provide additional explanatory diagnostics.
1196
1197         * src/pkgspec.cpp (pkgSpecs::VersionComparator):
1198         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
1199         [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
1200
1201 2011-10-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1202
1203         Fix --download-only vs. --reinstall conflict.
1204
1205         * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
1206         Test for explicit inequality, rather than equality to zero; since the
1207         2011-08-30 update, which made --download-only also imply --reinstall,
1208         it will test as non-zero when --reinstall is specified, even though
1209         --download-only is not.
1210
1211 2011-10-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1212
1213         Add support for non-specific upgrade of all installed packages.
1214
1215         * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
1216         New public method; declare it.
1217
1218         * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
1219         Implement it.
1220
1221         * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
1222         pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
1223         request for all packages currently registered as installed.
1224
1225 2011-10-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1226
1227         Implement "source" and "licence" operations.
1228
1229         * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
1230         * src/clistub.c (main): Associate it with...
1231         (all-related, recursive): ...these synonymous option names...
1232         (options): ...defined within this local structured array.
1233         (help_text): Document them; also document "source" and "licence" as
1234         new operations which may be specified on the command line.
1235
1236         * src/pkgtask.h (action_source, action_licence): Enumerate them.
1237         (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
1238         * src/pkgexec.cpp (action_name): ...associate with operation names.
1239
1240         * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
1241         (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1242         New public methods; declare them for external implementation.
1243         (pkgXmlDocument::GetScheduledSourceArchives): New public method;
1244         implement it as inline.
1245
1246         * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
1247         (pkgArchiveNameList): ...this new locally defined class; implement it.
1248         (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1249         (pkgActionItem::GetScheduledSourceArchives): Implement them.
1250         (climain): Add invocation hooks.
1251
1252 2011-10-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
1253
1254         Establish mapping from release tarname to source tarname.
1255
1256         * src/pkgreqs.cpp (inherited_requirement): New inline function.
1257         (requirement): Use it; adapt to propagate release archive format and
1258         compression type fields, in addition to version fields, when resolving
1259         "%" wildcard matches within the template for the resultant tarname.
1260         (pkgAssociateName): New public function; implement it for use by...
1261         * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
1262         (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
1263         selector, so it may resolve source or licence tarnames on demand.
1264
1265         * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
1266         add category selector argument to support source/licence choice.
1267
1268 2011-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1269
1270         Facilitate downloads using diverse cache directories.
1271
1272         * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
1273         method; declare it; it handles the download for a single named archive
1274         file, and stores it in a specifed cache directory.
1275
1276         * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
1277         it; factor its code from the original implementation within...
1278         (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
1279
1280 2011-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1281
1282         Establish cache directory for source archive downloads.
1283
1284         * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
1285         * src/mkpath.c (pkgSourceArchivePath): Implement it.
1286
1287 2011-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1288
1289         Support archive extraction to arbitrary destination without install.
1290
1291         * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
1292         helper method for use, as core helper, by derived classes; declare it.
1293         (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
1294         (pkgTarArchiveProcessor): Declare overloaded default constructor.
1295         (pkgTarArchiveExtractor): New class definition; it is derived from
1296         pkgTarArchiveProcessor.
1297
1298         * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
1299         (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
1300         (pkgTarArchiveExtractor): Implement constructor, together with...
1301         (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
1302         (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
1303         declared as abstract, in the pkgTarArchiveProcessor base class.
1304         (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
1305         directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
1306         (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
1307         handling to pkgArchiveProcessor::ExtractFile, as appropriate.
1308
1309 2011-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1310
1311         Make --download-only and --print-uris imply --reinstall.
1312
1313         * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
1314         (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
1315
1316 2011-08-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1317
1318         Implement --download-only and --print-uris options.
1319
1320         * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
1321         New manifest constants, identifying flag bits; define them.
1322         (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
1323
1324         * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
1325         * src/pkginet.cpp: Implement it.
1326
1327         * src/clistub.c (options): Add "download-only" and "print-uris".
1328         (help_text): Document them.
1329         * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
1330
1331 2011-07-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1332
1333         mingw-get-0.3-mingw32-alpha-2.1 released.
1334
1335         * configure.ac (AC_INIT): Adjust version number.
1336         * srcdist-doc/NEWS.in: Updated; document bugs fixed.
1337         * All files (r0-3-alpha-2-1): Tag assigned.
1338
1339 2011-07-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1340
1341         Adopt tar.xz as default package archive format.
1342
1343         * Makefile.in (TARZIP, TAREXT): New macros; define them.
1344         (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
1345         (maintainer-clean): Expunge tar files of any compression format.
1346
1347 2011-07-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
1348
1349         Correct handling of release status in requirements specifications.
1350
1351         * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
1352         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
1353         function entry/exit tracing report hooks.
1354         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
1355         also add internal trace point reporting, which may also require...
1356         (show_required): ...this new static inline DEBUG_INVOKED function.
1357
1358         * src/pkgreqs.cpp (requirement): Propagate release status and release
1359         reference index fields from requirer, when package version requirement
1360         is specified by a '%' token, and no explicit release status override
1361         is included in the requirement specification.
1362
1363         * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
1364         (pkgSpecs::VersionComparator): Use it to identify any package version
1365         specification which may require the extension of a wildcard match, to
1366         span the package version and release status fields; also add tracing
1367         hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
1368
1369 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1370
1371         Avoid accidental RCS keyword substitutions.
1372
1373         * Makefile.in (DOLLAR): New macro; define it.
1374         (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
1375         matching is intended.
1376
1377 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1378
1379         Mercurial support revisited.
1380
1381         * .cvsignore (.hgtags): Add to CVS untracked list.
1382
1383 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1384
1385         Update readme.txt ID tag-line to track NEWS rather than README.
1386
1387         * Makefile.in (readme.txt.in): New rule; implement it.
1388         (readme.txt.tag): Likewise; this implements the tag-line tracking.
1389         (readme.txt): Rule redefined in terms of the preceding pair.
1390
1391 2011-06-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1392
1393         mingw-get-0.3-mingw32-alpha-2 released.
1394
1395         * configure.ac (AC_INIT): Adjust version number.
1396         * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1397         * All files (r0-3-alpha-2): Tag assigned.
1398
1399 2011-06-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1400
1401         Add internal documentation for --reinstall option.
1402
1403         * src/clistub.c (help_text): Add description for "--reinstall".
1404
1405 2011-06-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
1406
1407         Support use of Mercurial within a CVS working copy.
1408
1409         * .cvsignore (.hg, .hgignore): Don't have CVS track these.
1410
1411 2011-06-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
1412
1413         Implement --reinstall option.
1414
1415         * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
1416         (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
1417         (OPTION_EXTRA_FLAGS): New field; declare it.
1418
1419         * src/clistub.c (options): Add "reinstall".
1420         (OPTION_GENERIC): Use it where appropriate; within its scope...
1421         (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
1422         default case of flag type options requiring an alignment shift.
1423
1424         * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
1425         (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
1426         (pkgActionItem::Execute): Check for "upgrade" request on any package
1427         which is already up to date; report this state, otherwise...
1428         [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
1429         avoid bail-out on "package already installed", when calling...
1430         (pkgInstall): ...this.
1431
1432 2011-06-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1433
1434         Don't require -vv to report progress of update operation.
1435
1436         * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
1437         basename() calls; `dname' already tells us what it should return.
1438         [update]: Report progress, irrespective of verbosity setting.
1439
1440 2011-06-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1441
1442         Fix MinGW-Bug #3313806.
1443
1444         * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
1445         PACKAGE_NAME field; this avoids misinterpretation as a release status
1446         qualifier when intended as part of the package name, as in msys-cvs.
1447
1448 2011-06-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1449
1450         Provisional correction for MinGW-Bug #3309438.
1451
1452         * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
1453         (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
1454
1455         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1456         (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
1457         enable runtime trace activation for previous compile time choices.
1458
1459 2011-05-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1460
1461         mingw-get-0.3-mingw32-alpha-1 released.
1462
1463         * configure.ac (AC_INIT): Adjust version number.
1464         * srcdist-doc/NEWS.in: Updated; document new features.
1465         * All files (r0-3-alpha-1): Tag assigned.
1466
1467 2011-05-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1468
1469         Support assignment of DEBUGLEVEL at configure time.
1470
1471         * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
1472         AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
1473
1474         * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
1475
1476 2011-05-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1477
1478         Work around bugs in MinGW and GNU getopt_long_only() implementations.
1479
1480         * src/getopt.c: New file; this is a free-standing replacement for any
1481         implementation provided by system libraries.  We will always use this
1482         to ensure correct operation irrespective of system bugs; (different
1483         bug manifestations have been identified in the stock MinGW and GNU
1484         implementations).
1485
1486         * Makefile.in (mingw-get.EXEEXT): Use it.
1487
1488         * src/clistub.c (options): Remove redundant declaration of `-v' as a
1489         long form option.
1490
1491 2011-05-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1492
1493         Implement user selection of traceable features at run-time.
1494
1495         * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
1496
1497         * src/debug.h (DEBUG_ENABLED): New macro; define it.
1498         (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
1499
1500         * src/clistub.c (main) [--trace]: Don't make it available unless...
1501         [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
1502         [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
1503         (atmost): ...this new macro; define it.
1504         (options): Declare `-v' as both long and short form, pending bug fix
1505         in MinGW's getopt_long_only() implementation.
1506
1507         * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
1508         (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
1509         (pkgInternetStreamingAgent::TransferData): Likewise.
1510         (pkgInternetStreamingAgent::Get): Likewise.
1511
1512         * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
1513         (pkg_rmdir, pkg_unlink): Likewise.
1514
1515         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
1516
1517 2011-05-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1518
1519         Implement protocol for processing global program options.
1520
1521         * src/pkgopts.h: New file.
1522
1523         * src/climain.cpp (cli_setopts): New function; implement it.
1524         (pkgOptions): Likewise.
1525
1526         * src/clistub.c (xatoi): New function; implement it.
1527         (cli_setargv): New inline helper function; implement it.
1528         (main): Use it.  Also incorporate implementation of...
1529         (parsed_options): New structure; it accommodates...
1530         (verbose, trace): New options; interpret them, and...
1531         (help_text): ...document them.
1532
1533         * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
1534         loading notifications and progress reports conditional on...
1535         [OPTION_VERBOSE > 1]: ...this.
1536
1537 2011-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1538
1539         Augment known development status keywords and accept CMS labels.
1540
1541         * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
1542         add transitional state scanner rule and code to interpret them.
1543         (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
1544         code to maintain consistency with CMS_KEYWORDS processing; also extend
1545         this coding strategy to other rules.
1546
1547         * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
1548         field values; (we expect it only for a CMS_KEYWORDS field value).
1549
1550         * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
1551         from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
1552         decomposition transformation.
1553
1554 2011-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1555
1556         Correct omission from 2011-02-18 commit.
1557
1558         * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
1559
1560 2011-05-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
1561
1562         mingw-get-0.2-mingw32-alpha-4 released.
1563
1564         * configure.ac (AC_INIT): Adjust version number.
1565         * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
1566         * All files (r0-2-alpha-4): Tag assigned.
1567
1568 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1569
1570         Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
1571
1572         * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
1573         (pkgActionItem::HasAttribute): New inline method; implement it.
1574
1575         * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
1576
1577         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1578         [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
1579         clear it again, on successful download completion.
1580
1581         * src/pkginst.cpp (pkgtask.h): #include it.
1582         (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
1583         set; this indicates failed download; diagnose it.
1584
1585         * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
1586         Don't proceed with pre-emptive removal when both set; this indicates
1587         failed download of replacement package; diagnose it.
1588
1589 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1590
1591         Fix MinGW-Bug #3295526 (reported by Charles Wilson).
1592
1593         * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
1594         (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
1595
1596 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1597
1598         Diagnose and aggressively retry failed download connections.
1599
1600         * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
1601
1602         * src/pkginet.cpp (debug.h): #include it.
1603         (pkgDownloadMeter): New abstract class; declare it and implement its
1604         default (non-abstract) data and methods; derive...
1605         (pkgDownloadMeterTTY): ...this new class from it; implement it...
1606         (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
1607         now), as associated pkgDownloadMeter object; add tracing diagnostic.
1608         (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
1609         of line; add retry loops to aggressively retry failed connections.
1610         (pkgInternetAgent::QueryContentLength): New method; implement it.
1611         (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
1612         data type `DWORD'; prefer equivalent standard `unsigned long'.  Add
1613         tracing diagnostic.  Remove progress diagnostic; replace it with an
1614         `Update' request to associated pkgDownloadMeter.
1615         (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
1616         (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
1617         diagnostic on failure.
1618
1619 2011-03-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
1620
1621         mingw-get-0.2-mingw32-alpha-3 released.
1622
1623         * configure.ac (AC_INIT): Adjust version number.
1624         * srcdist-doc/NEWS.in: Updated; add bug-fix description.
1625         * All files (r0-2-alpha-3): Tag assigned.
1626
1627 2011-03-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1628
1629         Provisional handling for http proxy authentication.
1630         (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
1631         (ref: MinGW-Patch #3158453)
1632
1633         * src/pkginet.cpp: Several format/layout adjustments; add comments.
1634         Eliminate several instances of Microsoft specific typedef nastiness.
1635         (dmh_dialogue_context): New macro; kludge definition to support...
1636         (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
1637         and handle it.
1638
1639 2011-03-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1640
1641         Expand macros in path names for files and directories to be removed.
1642
1643         * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
1644         (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
1645         full path name for each file or directory to be removed.
1646
1647 2011-03-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1648
1649         Correct defective activation logic for some debugging hooks.
1650
1651         * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
1652         (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
1653         operator, not `&&', to evaluate DEBUGLEVEL state.
1654
1655 2011-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
1656
1657         Avoid Unicode hyphens in generated ASCII document files.
1658
1659         * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
1660         (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
1661
1662 2011-03-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1663
1664         mingw-get-0.2-mingw32-alpha-2 released.
1665
1666         * configure.ac (AC_INIT): Adjust version number.
1667         * srcdist-doc/NEWS.in: Updated; add bug-fix description.
1668         * All files (r0-2-alpha-2): Tag assigned.
1669
1670 2011-03-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1671
1672         Fix MinGW-Bug 3212246.
1673
1674         * src/keyword.c (has_keyword): Avoid incrementing the comparison
1675         pointers when a significant character in one string is not matched in
1676         the other; previously the pointers were left pointing one character to
1677         the right of the mismatch, and this was overlooked if the mismatch
1678         occurred at the rightmost character in both strings.
1679
1680 2011-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1681
1682         mingw-get-0.2-mingw32-alpha-1 released.
1683
1684         * configure.ac (AC_INIT): Set version number; correct capitalisation
1685         in URI reference to bug reporting instructions.
1686
1687         * srcdist-doc/NEWS.in: Confirm release date.
1688         [bug reporting]: Remove redundant paragraph; the information is
1689         provided, via reference to mingw.org. in the README and INSTALL files.
1690
1691         * All files (r0-2-alpha-1): Tag assigned.
1692
1693 2011-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1694
1695         * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
1696         add earliest acceptable snapshot release date.
1697
1698 2011-03-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1699
1700         Remove unused 7zip and boost source code from CVS trunk.
1701
1702         * 7z: Directory and all content removed.
1703         * boost: Likewise.
1704
1705 2011-03-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1706
1707         Refactor and update existing installation and usage instructions.
1708
1709         * src/clistub.c (help_text): Updated.
1710
1711         * srcdist-doc: New directory.
1712
1713         * README: Deleted; its content refactored into...
1714         * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
1715         ...these new template files, updated for current development state.
1716
1717         * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
1718         generated text files derived from the srcdist-doc templates.
1719
1720         * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
1721         (SRCDIST_FILES): Add NEWS and INSTALL.
1722         (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
1723         (srcdist, licdist): Adjust path to locate them.
1724         (readme.txt): New build rule to generate on-line package description.
1725         (dist): Require it.
1726         (distclean): Don't remove Makefile...
1727         (maintainer-clean): ...but do it here instead.  Also remove generated
1728         README, NEWS and INSTALL, the autom4te cache, and all distributable
1729         zip files, in addition to tarballs, for the current version.
1730
1731 2011-02-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
1732
1733         Initial implementation for "remove" feature.
1734
1735         * src/pkgbase.h: Update copyright notice; add current year.
1736         (pkgActionItem::SetPrimary): New inline public method; declare it.
1737         (pkgActionItem::SetAuthorities): New public method; declare it.
1738
1739         * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
1740
1741         * src/pkgproc.h: Update copyright notice; add current year.
1742         (pkgManifest::GetSysRootReference): New public method; declare it.
1743         (pkgManifest::GetRoot): New inline method; declare and implement it.
1744         (pkgManifest::DetachSysRoot): Argument type changed to const char*.
1745         (pkgRemove): New extern "C" function; declare it.
1746
1747         * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
1748         (pkgXmlDocument::Schedule): ...use it to promote actions on all user
1749         specified packages, as listed on the command line, to primary status.
1750         (pkgActionItem::Execute): Repeatedly invoke...
1751         (pkgActionItem::SetAuthorities): ...this; incorporate call of...
1752         (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
1753         that we retry failed downloads at least a second time.
1754         [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
1755
1756         * src/pkgunst.cpp: New file.
1757         (pkgActionItem::SetAuthorities): Implement it.
1758         (pkgManifest::GetSysRootReference): Implement it.
1759         (pkgManifest::DetachSysRoot): Implement it per new declaration.
1760         (pkgRemove): Implement it.
1761
1762         * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
1763
1764 2011-02-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
1765
1766         Work-around for improper stderr buffering in MSYS mintty and rxvt.
1767         (Merged from r0-1-alpha-5 branch).
1768
1769         * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
1770         (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
1771         after each output record is written to stderr.
1772
1773         * README: Update as appropriate.
1774
1775 2011-02-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1776
1777         Tidy up some debugging hooks.
1778
1779         * src/debug.h (DEBUG_INVOKED): New macro; define it.
1780         (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
1781         conditional invocation of code when DEBUGLEVEL is non-zero; make it
1782         expand to nothing, when DEBUGLEVEL is zero.
1783         (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
1784         (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
1785         (DEBUG_UPDATE_INVENTORY): New macros; define them.
1786
1787         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1788         (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
1789         implement them in terms of DEBUGLEVEL, with reference to...
1790         (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
1791
1792 2011-02-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1793
1794         Make package version comparisons more robust.
1795
1796         Fixes an issue reported by Chris Sutcliffe: previously, version
1797         comparisons were evaluated solely on the basis of differences in the
1798         package version field itself.  Henceforth, if this field compares as
1799         equal, then the comparison is extended to also consider differences
1800         between development phase qualifiers, and, if these too compare as
1801         equal, to differences in the target subsystem version fields.
1802
1803         * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
1804         method; declare it.
1805
1806         * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
1807         (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
1808         (pkgSpecs::operator>): Use it, replacing...
1809         (version): ...this static function; now unreferenced; delete it.
1810
1811         * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
1812         now delegates the entire class construction operation to...
1813         (pkgVersionInfo::Parse): ...this new private method; declare it.  This
1814         is also used to facilitate implementation of...
1815         (pkgVersionInfo::Reset): ...this new inline method, also requiring...
1816         (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
1817         the class destructor, it encapsulates separate calls to...
1818         (pkgVersionInfo::Free): ...this original inline method, renamed...
1819         (pkgVersionInfo::FreeEntry): ...as this.
1820
1821         * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
1822
1823 2011-02-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
1824
1825         Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
1826
1827         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
1828         "install" action on new prerequisites, where a previously uninstalled
1829         package is required to satisfy any "upgrade" dependency.
1830
1831         * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
1832         claims concerning package removal.
1833
1834         * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
1835         level of parentheses around defining expressions.
1836
1837 2011-02-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1838
1839         Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
1840
1841         * README: Updated to reflect changes.
1842
1843 2011-02-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1844
1845         Improve diagnostics for failed GUI invocation.
1846
1847         * src/guimain.cpp: New file; currently delivers only a diagnostic
1848         stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
1849         pop-up a message block explaining why GUI mode cannot be invoked.
1850
1851         * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
1852         (gui$EXEEXT): ...this new build rule; add to prerequisites of...
1853         (all): ...this [default] build rule; redefine this in terms of...
1854         (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
1855         define them, and also use them as loop iterator objectives for...
1856         (install, install_strip): ...these; also schedule them...
1857         (clean): ...for removal by this.
1858
1859         * src/clistub.c (Copyright): Add new year.
1860         (main): Amend error message, if gui$EXEEXT doesn't start; make it
1861         more intelligible to normal users.
1862
1863 2011-02-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1864
1865         Correct omissions from packaged source tarball.
1866
1867         * Makefile.in (Copyright): Add new year.
1868         (SRCDIST_FILES): Add aclocal.m4
1869         (SRCDIST_SUBDIRS): Add m4
1870
1871 2011-01-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1872
1873         Reduce path names to base names, in some diagnostic message contexts.
1874
1875         * src/climain.cpp: Update copyright notice for new year.
1876         (climain): Extract base name from argv[0], to pass as program name tag
1877         in initialisation of diagnostic message handler.
1878
1879         * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
1880         adjustments, for more consistent formatting style.
1881
1882         * src/pkgbind.cpp: Update copyright notice.
1883         (pkgRepository::GetPackageList): Reduce path names for catalogue files
1884         to their base names, when reporting them in diagnostic messages.
1885
1886 2011-01-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1887
1888         Avoid a potential out-of-range action name look-up.
1889
1890         * src/pkgdeps.cpp: Update copyright notice for new year.
1891         (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
1892         determine correct action name when diagnosing uninstalled package.
1893
1894 2011-01-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
1895
1896         Make "install" and "remove" notifications symmetric.
1897
1898         * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
1899         (YEARS_OF_ISSUE): Add new year.
1900         
1901         * src/pkginst.cpp: Update copyright notice for new year.
1902         (pkgInstall): Add notification for package being installed.
1903
1904 2010-12-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1905
1906         Add preliminary CLI support for "list" and "show" actions.
1907
1908         * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
1909         (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
1910         (action_list, action_show): ...these; define them.
1911
1912         * src/pkgexec.cpp (action_name): Add defining text for...
1913         (action_list, action_show): ...these.
1914
1915         * src/climain.cpp: Partially revert 2010-11-01 change...
1916         (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
1917         the "switch" block within it, but without the ACTION_UPDATE case.
1918         [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
1919         (pkgXmlDocument::DisplayPackageInfo): ...this new method.
1920
1921         * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
1922         (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
1923         (pkgXmlNode::GetSysRoot): Make declaration style consistent with
1924         others in the class; do not name arguments in the declaration.
1925         (pkgXmlNode::FindFirstAssociate): Likewise.
1926         (pkgXmlNode::FindNextAssociate): Likewise.
1927
1928         * src/pkgshow.cpp: New file.
1929         (pkgXmlDocument::DisplayPackageInfo): Implement it.
1930
1931         * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
1932         implement it temporarily, pending a future i18n reimplementation.
1933         (assert_installed): Drop "inline" attribute; leave it as "static".
1934         Set "tarname" correctly, to match the installed package version; (it
1935         previously incorrectly returned the latest available version).
1936         (pkgActionItem::ConfirmInstallationStatus): Implement it.
1937         (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
1938         (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
1939         if requested package is not recorded as having been installed.
1940         (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
1941         invoke it recursively.
1942
1943         * Makefile.in (pkgshow.$OBJEXT): Add reference.
1944
1945 2010-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
1946
1947         Lay groundwork for implentation of additional actions.
1948
1949         * src/climain.cpp (climain): Adjust indentation; replace `if' block...
1950         [action != ACTION_UPDATE]: ...with this default `switch' case, and...
1951         [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
1952
1953 2010-10-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1954
1955         mingw-get-0.1-mingw32-alpha-5 released.
1956
1957         * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
1958         * README: Update release notes accordingly.
1959         * All files (r0-1-alpha-5): Tag assigned.
1960
1961 2010-10-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
1962
1963         Make pkgInitRites/pkgLastRites processing more robust;
1964         avoid a potential race condition in mingw-get-inst.
1965
1966         * src/rites.c: Refactor conditional code to segregate execution of...
1967         [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
1968         (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
1969         (do_init_rites): Renamed to...
1970         (invoke_rites): ...this; inline it.
1971         (pkgLastRites): Invoke it, to pre-empt rename action of...
1972         (lastrites.exe): ...this, subsequently exec()ed process.
1973         (perror): Issue more informative diagnostic on exec() failure.
1974
1975         * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
1976         (PHASE_ONE_RITES): ...this phase of implementation only.
1977
1978         * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
1979         (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
1980         (self_upgrade_rites): ...this locally defined RITES_INLINE function.
1981         (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
1982         [init_rites_pending]: ...new loop local variable remains true.
1983
1984 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1985
1986         Fix packaging bug in -lic package.
1987
1988         * Makefile.in (licdist): Use directory named
1989         "share", not "shared".
1990
1991 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1992
1993         mingw-get-0.1-mingw32-alpha-4 released.
1994
1995         * All files (r0-1-alpha-4): Tag assigned.
1996
1997 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1998
1999         Add rudimentary help option.
2000
2001         * README: Update release notes.
2002
2003         * src/clistub.c: Add --help option.
2004
2005 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
2006
2007         Fix "mingw-get deletes itself" bug in last rites handling.
2008
2009         * README: Add new release notes.
2010
2011         * configure.ac: Bump version to 0.1-alpha-4.
2012
2013         * src/dmh.h: If __cplusplus, include <exception> and
2014         declare dmh_exception class.
2015
2016         * src/dmh.cpp (class dmh_exception): Implement.
2017         (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
2018         than calling exit().
2019
2020         * src/climain.cpp (climain): Wrap entire function body in try/
2021         catch block. If dmh_exception is caught, return EXIT_FAILURE.
2022
2023         * src/clistub.c (main): Capture return value of climain(). If
2024         non-zero, perform last rites and return EXIT_FAILURE.
2025
2026 2010-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2027
2028         mingw-get-0.1-mingw32-alpha-3 released.
2029
2030         * README: Add new release notes.
2031
2032         * All files (r0-1-alpha-3): Tag assigned.
2033
2034 2010-08-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
2035
2036         Add runtime hooks to support self-upgrade for future releases.
2037
2038         * src/rites.c: New file; compile it free-standing, to provide...
2039         (lastrites.exe): ...this helper application for context clean-up;
2040         alternatively, use it as an include file, with pre-definition of...
2041         (IMPLEMENT_INITIATION_RITES): ...this, to implement...
2042         (pkgInitRites, pkgLastRites): ...these inline functions.
2043
2044         * src/clistub.c (main) [argc > 1]: Use them.
2045         (progname): New local variable within `main'; set it once, then use it
2046         instead of repeated references to `basename(*argv)' in diagnostics.
2047         (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
2048
2049         * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
2050         (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
2051         defines; they facilitate debugging of the src/rites.c code.
2052
2053         * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
2054         (all): ...of this primary target.
2055         (install, install-strip): Install it.
2056         (SRCDIST_FILES): Remove install-sh; it is now included in...
2057         (build-aux): ...this directory; add it to...
2058         (SRCDIST_SUBDIRS): ...this.
2059
2060 2010-08-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
2061
2062         Set default sysroots relative to mingw-get installation directory.
2063
2064         * xml/profile.xml (system-map) [name == default]: For each of...
2065         [subsystem == mingw32]: ...set sysroot path to value of %R macro...
2066         [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
2067
2068 2010-08-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
2069
2070         Some dependency resolver enhancements and bug fixes.
2071
2072         * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
2073         declare it.
2074
2075         * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
2076         it is used to retrieve package name attributes from the containing
2077         'package' element, when given a pointer to a 'release' element by...
2078         (assert_unmatched, assert_installed): ...these new static functions.
2079         (pkgXmlDocument::Schedule): Use them to reconstruct and register
2080         dependency reference data for previously installed packages which are
2081         no longer included in the distribution manifest.
2082         (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
2083         catch and diagnose unresolved dependencies; don't look beyond the XML
2084         document root node, (tinyxml error not caught?), when searching for
2085         requirements specified on container nodes.
2086
2087 2010-08-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2088
2089         Improve scheduling of package processing requests.
2090
2091         * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
2092         list, when checking for duplicate package processing requests; decline
2093         to schedule any such duplicate, or any request which lacks a package
2094         association.
2095
2096 2010-08-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2097
2098         Lay foundation for selective compilation of debugging code.
2099
2100         * src/debug.h: New file...
2101         * src/sysroot.cpp: Include it.
2102         (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
2103         [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
2104
2105 2010-08-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2106
2107         * src/pkgkeys.h: Typo in comment: file was previously identified as
2108         pkgkeys.c; corrected.
2109
2110 2010-08-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
2111
2112         Improve diagnostics for invalid references to non-release XML nodes.
2113
2114         * src/pkgkeys.h (value_unknown): New global string; declare it.
2115         * src/pkgkeys.c (value_unknown): Implement it.
2116
2117         * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
2118         diagnosing references to elements of types other than release; use...
2119         (value_unknown): ...this, as appropriate.
2120
2121 2010-08-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2122
2123         Guard against a potential buffer overrun.
2124
2125         * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
2126         byte to accommodate an extra field separator, when inserting a new
2127         data value into a previously empty field.
2128
2129 2010-07-27  Cesar Strauss  <cestrauss@gmail.com>
2130
2131         Handle the GNU long name tar header format.
2132
2133         * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
2134         define it.
2135         (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
2136         declare and...
2137         * src/tarproc.cpp: ...implement it.
2138         (pkgTarArchiveProcessor::Process): Before building the entry pathname,
2139         check for a GNU long name type header; when found, read pathname from
2140         the entry data area, before fetching the following header, from which
2141         to retrieve the associated entity data.
2142
2143 2010-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
2144
2145         Work around an autoconf bug (reported by Stefano Sabatini).
2146
2147         * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
2148         autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
2149         substituting within a VPATH specification for building `in-source'.
2150         Also, prefer colons to blanks as path name separators, for improved
2151         portability to non-GNU implementations of make; (recommendation by
2152         Ralf Wildenhues).
2153
2154 2010-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
2155
2156         Include alias search, when matching component package name.
2157
2158         * src/keyword.c (has_keyword): Rearrange argument declarations for
2159         more natural order; update all callers accordingly.  Simplify; compare
2160         keyword to be matched with each successive candidate from match-list,
2161         character-by-character and in-place, so avoiding memory allocation
2162         for any local duplicate of the passed match-list; thus...
2163         (safe_strdup): ...this static function no longer required; delete it.
2164         (string.h): No references remain; do not include it.
2165
2166         * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
2167         package name matching to include potential matches of the look-up name
2168         with trailing component name stripped off, when that matches the class
2169         name of an identified component package, and the initial substring of
2170         the look-up name, after stripping, matches any specified alias name
2171         for the containing package.
2172
2173 2010-06-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
2174
2175         Address FIXME relating to identification of distributable files.
2176
2177         * install-sh: Move to...
2178         * build-aux: ...this new directory.
2179
2180         * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
2181         it depend on, and ensure that it incorporates the expansion of...
2182         (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
2183         (host_os): ...this autoconf variable, set by...
2184
2185         * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
2186         (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
2187
2188         * build-aux/config.guess, build-aux/config.sub: ...these new standard
2189         files; import them from the standard `build-aux' repository.
2190
2191 2010-05-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2192
2193         Bump version for next release cycle.
2194
2195         * configure.ac (AC_INIT): Bump version suffix to alpha-3.
2196
2197 2010-05-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2198
2199         mingw-get-0.1-mingw32-alpha-2 released.
2200
2201         * README: Add new release notes.
2202
2203         * xml/profile.xml: Update to use default referencing for...
2204         (package-list.xml.lzma): ...this repository master catalogue.
2205
2206         * All files (r0-1-alpha-2): Tag assigned.
2207
2208 2010-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2209
2210         Make provision to protect user's profile settings during upgrade.
2211
2212         * Makefile.in (install): Remove `profile.xml'; replace it with...
2213         (install-profile): ...this new prerequisite installation goal; it
2214         renames the installed copy of `profile.xml' as `defaults.xml', within
2215         the installed package image.
2216
2217         * src/pkgkeys.h (defaults_key): New key; declare it.
2218         * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
2219         (defaults_key): Implement it; it refers to the `defaults.xml' file.
2220
2221         * src/climain.cpp (climain): Check `profile_key' for accessibility of
2222         the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
2223         back on `defaults_key', and attempt to load configuration from the
2224         distributed `defaults.xml' file.
2225
2226 2010-05-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
2227
2228         Add preliminary support for future `-reinstall' option.
2229
2230         * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
2231         installation if `-reinstall' option is selected, overriding state of
2232         any prior installation; temporarily assume that this option is always
2233         selected, to permit proper `upgrade' operation in the absence of any
2234         functional `uninstall' capability, and pending implementation of a
2235         mechanism for interpreting user specified options.
2236
2237 2010-05-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
2238
2239         Correct handling for "%R" macro in relative sysroot path specs.
2240
2241         * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
2242         sysroot path specification a second time, to capture the effect of any
2243         embedded macros, before computing the recorded `sysroot_len' value.
2244
2245 2010-05-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
2246
2247         Handle "%" wildcard matches in package and subsystem version strings.
2248
2249         * src/pkgbase.h (pkgSpecs): Forward declare it.
2250         (pkgActionItem::~pkgActionItem): Declare explicit destructor.
2251         (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
2252         update references, passing additional argument in...
2253
2254         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
2255
2256         * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
2257         (pkgActionItem::SetRequirements): Delete obsolete implementation.
2258
2259         * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
2260         (pkgSpecs::GetTarName): New public method; declare it.
2261         (pkgSpecs::SetProperty): New private method; declare it.
2262         (pkgSpecs::SetPackageName): New inline method; implement it.
2263         (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
2264         (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
2265         (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
2266         (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
2267         (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
2268         (pkgSpecs::SetCompressionType): Likewise.
2269
2270         * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
2271         (TRANS): Interpret "%" as wildcard in version string matches.
2272
2273         * src/pkgreqs.cpp: New file.
2274         (pkgActionItem::SetRequirements): Reimplement per new declaration;
2275         it now always allocates heap memory for requirements specifications.
2276         (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
2277
2278         * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
2279
2280 2010-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2281
2282         Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
2283
2284         * src/tarinst.cpp: File removed; its content merged into...
2285         * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
2286
2287         * Makefile.in (tarinst.$OBJEXT): Remove reference.
2288
2289 2010-04-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
2290
2291         Handle "*" wildcard matches in package and subsystem version strings.
2292
2293         * src/vercmp.h (pkgVersionInfo::version_string): New private member
2294         variable; it stores a pointer to a dynamically allocated local copy of
2295         the invariant `version' argument, to facilitate correct parsing.
2296         (pkgVersionInfo::build_string): Likewise; it provides similar handling
2297         for the invariant `build' argument.
2298         (pkgVersionInfo::Free): New private inline method; it provides a NULL
2299         pointer safe wrapper, calling the C library `free()' function, (since
2300         some implementations are believed to be unsafe); it is used by...
2301         (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
2302         release the memory allocated by the constructor, for `version_string'
2303         and `build_string'.
2304
2305         * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
2306         `version_string' and `build_string', as required; populate it.
2307         Explicitly handle "*" as a `match anything' wildcard...
2308         (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
2309
2310 2010-04-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
2311
2312         Correct omission from configure script prerequisite checks.
2313
2314         * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
2315         adding a trap to force an abort if any preceding prerequisite check
2316         was handled by MINGW_AC_ASSERT_MISSING.
2317
2318         * configure.ac: Qualify package component types, in prerequisite
2319         checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
2320         in place of AC_OUTPUT.
2321
2322 2010-04-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2323
2324         Add configure script checks for prerequisite library headers.
2325         (Thanks to Cesar Strauss for proposing a rudimentary implementation).
2326
2327         * aclocal.m4: New file; it does no more than include...
2328         * m4/missing.m4: ...this; new file incorporated from build-aux module.
2329
2330         * configure.ac: Add AC_CHECK_HEADER assertions for...
2331         (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
2332         respect of each failing assertion.
2333
2334 2010-04-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2335
2336         Case-insensitive subsystem name matching revisited.
2337
2338         * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
2339         (subsystem_strcmp): ...this to match subsystem names, instead of...
2340         (match_if_explicit): ...this.
2341
2342 2010-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2343
2344         Enable recursive processing of repository package lists.
2345
2346         * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
2347
2348         * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
2349         class; it facilitates recursive loading and parsing of package lists,
2350         replacing much of the original non-recursive functionality within...
2351         (pkgXmlDocument::BindRepositories): ...this; use it.
2352
2353 2010-04-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
2354
2355         Implement installer function; use per-package file manifests.
2356
2357         * src/pkgproc.h (pkgManifest): New class; declare it.
2358         (pkgArchiveProcessor::origin): New protected member variable.
2359         (pkgArchiveProcessor::sysroot_len): New protected member variable.
2360         (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
2361         (pkgTarArchiveInstaller::Process): Declare specialisation hook.
2362         (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
2363         function; remove redundant declaration from class definition.
2364         (pkgInstall): New generalised installation function; declare it.
2365         (pkgRegister): New function; declare it.
2366
2367         * src/pkginst.cpp: New file.
2368         (pkgManifest, pkgInstall, pkgRegister): Implement them.
2369
2370         * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
2371         of stub formerly provided here.
2372
2373         * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
2374         * src/pkgkeys.c (manifest_key, reference_key): Implement them.
2375
2376         * src/tarproc.cpp: Code refactored.
2377         (pkgTarArchiveProcessor::sysroot_len): Initialise it.
2378         (pkgTarArchiveProcessor::origin): Initialise it.
2379         (pkgTarArchiveProcessor::installed): Initialise; associate it with a
2380         pkgManifest class entity, and populate this as appropriate.
2381         (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
2382         up of linked `pkgManifest *' entity referenced by `installed'.
2383         (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
2384         braces to demarcate localised inner scope of string scan for removal
2385         of trailing directory name separators; (thanks to Cesar Strauss for
2386         reporting invalid local pointer declaration error in GCC >= 4.4).
2387         (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
2388         (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
2389         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2390         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
2391         (commit_saved_entity): Likewise.
2392
2393         * src/tarinst.cpp: New file; it implements...
2394         (pkgTarArchiveInstaller::Process): ...this new specialisation
2395         of the original pkgTarArchiveProcessor::Process method...
2396         (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
2397         refactored code, abstracted from src/tarproc.cpp and modified to
2398         use the pkgManifest class for installation tracking.
2399         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2400         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
2401         (commit_saved_entity): Relocated from src/tarproc.cpp.
2402
2403         * Makefile.in (CORE_DLL_OBJECTS): Add...
2404         (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
2405
2406 2010-03-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2407
2408         Guard against NULL pointer dereferences in tinyxml code.
2409
2410         * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
2411         non-NULL, before invoking the underlying tinyxml method.
2412         (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
2413         (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
2414         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2415         (pkgXmlNode::GetDocumentRoot): Likewise.
2416         (pkgXmlNode::IsElementOfType): Likewise.
2417
2418 2010-03-28  Cesar Strauss  <cestrauss@gmail.com>
2419
2420         Avoid running InternetAttemptConnect in pkgInternetAgent
2421         constructor, since it is called during DLL initialisation.
2422
2423         * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
2424         InternetAttemptConnect call from constructor...
2425         (pkgInternetAgent::OpenURL): ...to here.
2426
2427 2010-03-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
2428
2429         Automate object code dependency tracking.
2430
2431         * Makefile.in (DEPFLAGS): New macro; define it.
2432         (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
2433         (%.d): ...to create these dependency maps; `sinclude' them, and...
2434         (clean): ...remove them.
2435         
2436         * .cvsignore (*.d): Add wild card template to match them.
2437
2438 2010-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2439
2440         Support case insensitive matching for file and subsystem names.
2441
2442         * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
2443         argument safe comparison of strings, returning the boolean inverse of
2444         the `strcmp' result, using either case-sensitive or case-insensitive
2445         semantics; derive it from...
2446         (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
2447         using explicitly case-sensitive semantics.
2448         (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
2449         case-sensitive or case-insensitive semantics, depending on...
2450         (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
2451         fixes the choice between case-sensitive and case-insensitive matching
2452         semantics for any given implementation, at compile time.
2453         (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
2454         case-sensitive or case-insensitive semantics, depending on...
2455         (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
2456         fixes the choice between case-sensitive and case-insensitive matching
2457         semantics for any given implementation, at compile time.
2458
2459         * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
2460
2461 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2462
2463         Add preliminary support for virtual packages.
2464
2465         * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
2466         (value_yes, value_no): ...for these new global strings; declare them.
2467         (value_none, value_virtual): New global strings; declare them.
2468
2469         * src/pkgkeys.c (yes_value, no_value): Rename...
2470         (value_yes, value_no): ...to implement these, respectively.
2471         (value_none, value_virtual): Implement them.
2472
2473         * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
2474         node for `class' attribute set to `value_virtual'; if present, always
2475         return the effective `tarname' property as `value_none'.
2476
2477         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
2478         with an effective `tarname' of `value_none', do not download anything.
2479
2480         * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
2481         effective `tarname' of `value_none', do not invoke any tar archive
2482         processing function.
2483
2484 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2485
2486         Don't write installation records for unavailable packages.
2487
2488         * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
2489         archive is ready for processing, before initialising an installation
2490         manifest record.
2491
2492 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2493
2494         Rationalise path identification for XML file locations.
2495
2496         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
2497         function to locate `sysroot' map file; free memory when done.
2498         (pkgXmlDocument::UpdateSystemMap): Likewise.
2499         (sigpath): Static global variable disused; delete it.
2500
2501 2010-03-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
2502
2503         Extend package name search to include component packages.
2504
2505         * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
2506         (pkgXmlNode::FindPackageByName): ...this; augment to extend search
2507         within package definition elements, seeking a potential match on an
2508         included component package name or component class-implied name.
2509
2510         * src/pkgkeys.h (class_key): New global string constant; declare it.
2511         * src/pkgkeys.c (class_key): Implement it.
2512
2513 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2514
2515         Bump version for next release cycle.
2516
2517         * configure.ac (AC_INIT): Bump version suffix to alpha-2.
2518
2519 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2520
2521         mingw-get-0.1-mingw32-alpha-1 released.
2522
2523 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2524
2525         Prepare initial package release.
2526
2527         * README: New file; use it to source release notes.
2528
2529         * Makefile.in (SRCDIST_FILES): Use ...
2530         (LICENCE_FILES): ...this new macro; define it.
2531         (licdist): New build goal; implement it.
2532         (bindist): Require it; add alternative `zip' format package.
2533
2534         * xml/profile.xml (repository): Set default `package-index' name.
2535         (system-map): Normalise spelling for default `sysroot' path names.
2536
2537 2010-02-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
2538
2539         Add directory/file records in installation manifests.
2540
2541         * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
2542         * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
2543
2544         * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
2545         variable; declare it.
2546         (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
2547         declare it.
2548
2549         * src/tarproc.cpp: Miscellaneous comment updates.
2550         (pkgTarArchiveInstaller): In constructor...
2551         (pkgTarArchiveInstaller::installed): ...use new member variable...
2552         (pkgArchiveProcessor::installed): ...inherited from this.
2553         (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
2554         (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
2555         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2556
2557 2010-02-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2558
2559         Work around a deficiency in Microsoft's stat() implementation.
2560
2561         * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
2562         pass a `pathname' argument with trailing slashes; strip them off.
2563
2564 2010-02-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2565
2566         Add machinery for installation and packaging for distribution.
2567
2568         * install-sh: New file; source it from autoconf distribution.
2569
2570         * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
2571         (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
2572         (STRIP): New output variable; use AC_CHECK_TOOL to define it.
2573
2574         * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
2575         (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
2576         (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
2577         (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
2578         (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
2579         (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
2580         (LN_S): New macro; define it as AC_PROG_LN_S result.
2581         (dist, srcdist, bindist): New build objectives; implement them.
2582         (install, installdirs, install-strip, maintainer-clean): Likewise.
2583         (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
2584         (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
2585         (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
2586         (PACKAGE_CONFIG_DIR): Likewise.
2587
2588 2010-02-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2589
2590         Implement package installer for tar archives.
2591
2592         * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
2593         stub implementation of installer, using methods provided by...
2594         * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
2595         * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
2596         (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
2597         `install' requests for packages which are aleady installed.
2598
2599         * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
2600         dependencies as appropriate.
2601
2602         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
2603         newly created `sysroot' mapping records to disk; defer to...
2604         (pkgXmlDocument::UpdateSystemMap): ...this new method.
2605         (sigpath): Make it a global variable, with file (static) scope.
2606
2607         * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
2608
2609         * src/pkgkeys.h (download_key, modified_key, source_key): New global
2610         string variables; declare them, providing their implementations...
2611         * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
2612         * src/pkgname.cpp (download_key, source_key): Use them.
2613
2614         * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
2615         * src/mkpath.c (pkgArchivePath): ...with this free standing function.
2616         * src/mkpath.h (pkgArchivePath): Declare its prototype.
2617
2618         * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
2619         (pkgXmlDocument): Add a default constructor; implement as `inline'.
2620         (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
2621         declaration object, instead of `auto' variable, to avoid scope error.
2622         (pkgXmlDocument::UpdateSystemMap): Declare it.
2623
2624 2010-01-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
2625
2626         Implement rudimentary dependency resolver.
2627
2628         * src/pkgdeps.cpp: New file.
2629
2630         * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
2631         establish header file dependencies.
2632
2633         * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
2634         (pkgActionItem::selection): Extend it to store as enumerated pair...
2635         (pkgActionItem::SelectPackage): New inline method; assign them.
2636         (pkgActionItem::Selection): New inline method; retrieve them.
2637         (pkgXmlNode::GetInstallationRecord): New method; declare it.
2638
2639         * src/pkgexec.cpp (pkgActionItem): In constructor...
2640         (selection): ...initialise both references in enumerated pair.
2641         (pkgActionItem::GetReference): Use `Selection()' method.
2642         (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
2643         making selection, and assign to `to_install' element.
2644         (pkgXmlDocument::Schedule): Don't update `request'.
2645         (pkgActionItem::Execute): Implement as stub.
2646
2647         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
2648         `Selection()' method.
2649
2650         * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
2651         * src/pkgkeys.c (yes_value, no_value): Implement them.
2652
2653         * src/vercmp.cpp: Update copyright notice.
2654         (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
2655
2656 2010-01-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
2657
2658         Avoid segmentation faults when processing invalid data streams.
2659
2660         * src/pkgstrm.h: Update copyright notice.
2661         (pkgArchiveStream::IsReady): New pure virtual method.
2662         (pkgRawArchiveStream::IsReady): Provide inline implementation.
2663         (pkgGzipArchiveStream::IsReady): Likewise.
2664         (pkgBzipArchiveStream::IsReady): Likewise.
2665         (pkgLzmaArchiveStream::IsReady): Likewise.
2666         (pkgXzArchiveStream::IsReady): Likewise.
2667
2668         * src/pkgstrm.cpp: Update copyright notice.
2669         (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
2670         perform any form of read or decode processing.
2671
2672         * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
2673         pseudo-descriptor for the pkgLzmaArchiveStream derived component of
2674         this internet data streaming class.
2675
2676 2010-01-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
2677
2678         Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
2679
2680         * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
2681         comment; it was required to permit, (but not to enforce), linking to
2682         the static liblzma.a library, with earlier beta releases, but this
2683         anomaly has now been corrected.
2684
2685 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2686
2687         Remove zlib sources from trunk.
2688         (Application builders should use free standing implementation of
2689          zlib, from MinGW's package distribution page on SourceForge).
2690
2691 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2692
2693         Remove bzip2 sources from trunk.
2694         (Application builders should use free standing implementation of
2695          bzip2, from MinGW's package distribution page on SourceForge).
2696
2697 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2698
2699         Add subsystem specific sysroot mapping facility.
2700
2701         * src/pkghash.c: New file; required by...
2702         * src/sysroot.cpp: New file; it implements...
2703         (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
2704
2705         * src/pkgbase.h: Update copyright notice.
2706         (pkgXmlDocument::LoadSystemMap): Declare it.
2707         (pkgXmlDocument::AddDeclaration): New inline method.
2708         (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
2709         (pkgXmlNode::GetSysRoot): Declare it.
2710         (pkgXmlNode::GetDocumentRoot): New inline method.
2711         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2712
2713         * src/climain.cpp: Update copyright notice.
2714         (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
2715
2716         * Makefile.in (CORE_DLL_OBJECTS): Add ...
2717         (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
2718         (DEBUGLEVEL): New macro; define it.
2719         (CPPFLAGS): Use it.
2720
2721 2010-01-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2722
2723         Assign standardised keys for XML database lookup.
2724
2725         * src/pkgkeys.h: New file; provide public key declarations.
2726         * src/pkgkeys.c: New file; implement them.
2727
2728         * src/pkgbind.cpp: Use them; update copyright notice.
2729         * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
2730         * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
2731
2732         * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2733         dependencies accordingly.
2734
2735 2010-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
2736
2737         Add CLI version reporting option.
2738
2739         * configure.ac: Update copyright notice for new year.
2740         (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
2741         (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
2742         (AC_CONFIG_FILES): Add `version.c'; source it from...
2743
2744         * version.c.in: ...this new file.
2745
2746         * Makefile.in: Update copyright notice for new year.
2747         (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
2748         (distclean): Add `version.c'.
2749
2750         * configure: Regenerated.
2751
2752         * src/clistub.c: Update copyright notice for new year.
2753         (options): New array of `struct option'; define and use it as the
2754         reference for `argv' parsing with `getopt_long_only()'.
2755
2756 2009-12-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2757
2758         Add CLI support for "update" action.
2759
2760         * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
2761         (action_update): ...this new entry in anonymous enumeration.
2762         
2763         * src/pkgexec.cpp (action_name): Add "update" keyword identification.
2764
2765         * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
2766         (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
2767         * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
2768         (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
2769         a `true' flag, in addition to (as previously) first time reference.
2770
2771         * src/climain.cpp (climain): Interpret "update" keyword for...
2772         [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
2773         (pkgXmlDocument::BindRepositories): ...this method, then...
2774         [!ACTION_UPDATE]: Follow with normal action processing.
2775
2776 2009-12-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2777
2778         Add status checking for Internet URL connections.
2779
2780         * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
2781         (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
2782         value, deferring failure diagnostics to callers, i.e. to...
2783         (pkgXmlDocument::SyncRepositories): ...this, and to...
2784         (pkgActionItem::DownloadArchiveFiles): ...this.
2785
2786 2009-11-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
2787
2788         Add package download and repository synchronisation machinery.
2789
2790         * src/pkgstrm.h: New header file.
2791
2792         * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
2793         src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
2794         * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
2795
2796         * xml: New directory.
2797
2798         * src/climain.cpp (climain): Establish repository bindings from...
2799         * xml/profile.xml: ...this new configuration file.
2800
2801 2009-11-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2802
2803         Add XML database bindings and preliminary action executive for CLI.
2804
2805         * src/pkgbase.h, src/pkgtask.h,
2806         src/mkpath.h, src/vercmp.h: New header files.
2807
2808         * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
2809         src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
2810
2811         * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
2812         (mingw-get-0.dll): ...build them into this new DLL target; add it...
2813         (all): ...as prerequisite for this primary build goal.
2814
2815 2009-11-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2816
2817         Avoid some potential GCC warnings.
2818
2819         * src/clistub.c: Include process.h for `execv' prototype...
2820         (main): Cast `argv' to appropriately matched type when calling it.
2821
2822         * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
2823
2824 2009-11-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
2825
2826         Create diagnostic message handler for CLI usage.
2827
2828         * src/dmh.h: New header file; it defines the public interface.
2829         * src/dmh.cpp: New file; it implements the message handler.
2830
2831 2009-11-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
2832
2833         Correct some identified TinyXML issues.
2834
2835         * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
2836         probable redundancy of checks for '\n' and '\r'.
2837         * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
2838         all such redundancies in IsWhiteSpace() calls throughout.
2839
2840         * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
2841         specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
2842         with "%f".
2843
2844 2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2845
2846         Add CLI loader stub.
2847
2848         * src/clistub.c: New file.
2849         * Makefile.in: Add build rule for it; build as...
2850         (mingw-get.exe): ...this; also add to...
2851         (clean): ...this goal.
2852
2853 2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2854
2855         Set up build mechanism.
2856
2857         * configure.ac, Makefile.in: New files.
2858         * .cvsignore (configure, autom4te.cache): Add to ignored files.
2859
2860 2009-10-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2861
2862         Add GPL-v3 licensing terms.
2863
2864         * COPYING: New file, sourced from gnu.org.
2865
2866 2009-10-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2867
2868         Add pkginfo implementation.
2869
2870         * src, src/pkginfo: New directories.
2871         * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
2872         * src/pkginfo/driver.c: New file.
2873
2874 2009-10-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2875
2876         Create tdm-branch.
2877
2878         * All files (tdm-branch): Assign new branch tag.
2879         * All top-level files: Remove from trunk.
2880         * ChangeLog: New file.