+2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Don't suppress implied downloads for top-level actions.
+
+ * src/pkgdeps.cpp: Update copyright notice for new year.
+ (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
+ [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
+ an upgrade action for a package specified as a command line argument;
+ this corrects a regression introduced on 2011-11-09, which resulted in
+ ACTION_DOWNLOAD being enabled only for second tier dependent actions.
+
2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
Copyright notice updates.
* $Id$
*
* Written by Keith Marshall <keithmarshall@users.sourceforge.net>
- * Copyright (C) 2009, 2010, 2011, MinGW Project
+ * Copyright (C) 2009, 2010, 2011, 2012, MinGW Project
*
*
* Implementation of the package dependency resolver method, of the
return ((version != NULL) && (strcmp( version, ref_version ) == 0));
}
-#define with_flags( request ) ((request) & ~(ACTION_MASK))
+#define with_flags( request ) ((request) & ~(ACTION_MASK | ACTION_DOWNLOAD))
#define promote( request, action ) (with_flags( request ) | with_download( action ))
#define with_download( action ) ((action) | (ACTION_DOWNLOAD))
*/
action |= ACTION_PRIMARY;
+ /* Furthermore, any primary action must be supported by
+ * an implied download activity, unless the '--print-uris'
+ * option is in effect.
+ */
+ if( ((action & ACTION_UPGRADE) == ACTION_UPGRADE)
+ && (pkgOptions()->Test( OPTION_PRINT_URIS ) != OPTION_PRINT_URIS) )
+ action |= ACTION_DOWNLOAD;
+
/* For each candidate release in turn...
*/
while( release != NULL )