The MinGW.org Installation Manager Tool
修订版 | c5646aff15c45f59aa49514394f771277c6ea63a (tree) |
---|---|
时间 | 2011-01-06 06:26:44 |
作者 | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Avoid a potential out-of-range action name look-up.
@@ -1,3 +1,11 @@ | ||
1 | +2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Avoid a potential out-of-range action name look-up. | |
4 | + | |
5 | + * src/pkgdeps.cpp: Update copyright notice for new year. | |
6 | + (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to | |
7 | + determine correct action name when diagnosing uninstalled package. | |
8 | + | |
1 | 9 | 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 10 | |
3 | 11 | Make "install" and "remove" notifications symmetric. |
@@ -4,7 +4,7 @@ | ||
4 | 4 | * $Id$ |
5 | 5 | * |
6 | 6 | * Written by Keith Marshall <keithmarshall@users.sourceforge.net> |
7 | - * Copyright (C) 2009, 2010, MinGW Project | |
7 | + * Copyright (C) 2009, 2010, 2011, MinGW Project | |
8 | 8 | * |
9 | 9 | * |
10 | 10 | * Implementation of the package dependency resolver method, of the |
@@ -565,7 +565,7 @@ void pkgXmlDocument::Schedule( unsigned long action, const char* name ) | ||
565 | 565 | * is an error; diagnose it. |
566 | 566 | */ |
567 | 567 | dmh_notify( DMH_ERROR, "%s %s: package is not installed\n", |
568 | - action_name( action ), name | |
568 | + action_name( action & ACTION_MASK ), name | |
569 | 569 | ); |
570 | 570 | } |
571 | 571 |