+2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Don't report failed downloads in respect of virtual packages.
+
+ * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
+ [ACTION_DOWNLOAD]: ...this status flag for any package identified as
+ a meta-package; this corrects a further regression introduced with the
+ 2011-11-09 update, whereby pending download requests for such virtual
+ packages were not cancelled, resulting in failure to install due to
+ failed downloads, when no download is actually required.
+
2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
Don't suppress implied downloads for top-level actions.
* $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 download machinery for mingw-get.
*/
const char *package_name = current->Selection()->ArchiveName();
- /* An explicit package name of "none" is a special case, indicating
- * a "virtual" meta-package; it requires nothing to be downloaded...
+ /* An explicit package name of "none" is a special case;
+ * it identifies a "virtual" meta-package...
*/
- if( ! match_if_explicit( package_name, value_none ) )
+ if( match_if_explicit( package_name, value_none ) )
/*
- * ...but we expect any other package to provide real content,
+ * ...which requires nothing to be downloaded...
+ */
+ current->flags &= ~(ACTION_DOWNLOAD);
+
+ else
+ /* ...but we expect any other package to provide real content,
* for which we may need to download the package archive...
*/
current->DownloadSingleArchive( package_name, pkgArchivePath() );