The MinGW.org Installation Manager Tool
Revisão | b2bf3b42999b6fbdf740d585e81c43c4b75e1bf3 (tree) |
---|---|
Hora | 2012-12-11 21:55:31 |
Autor | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Do not preserve unnecessary download requests.
@@ -1,3 +1,12 @@ | ||
1 | +2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Do not preserve unnecessary download requests. | |
4 | + | |
5 | + * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): | |
6 | + [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no | |
7 | + "install" effect do not require a download; cancel any associated | |
8 | + download request. | |
9 | + | |
1 | 10 | 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 11 | |
3 | 12 | Implement GUI bindings for package download agent. |
@@ -771,6 +771,12 @@ void pkgActionItem::DownloadArchiveFiles( pkgActionItem *current ) | ||
771 | 771 | */ |
772 | 772 | current->DownloadSingleArchive( package_name, pkgArchivePath() ); |
773 | 773 | } |
774 | + else | |
775 | + /* The current action has no associated "install" requirement, | |
776 | + * so neither is there any need to request a "download". | |
777 | + */ | |
778 | + current->flags &= ~(ACTION_DOWNLOAD); | |
779 | + | |
774 | 780 | /* Flush out any diagnostics relating to the current package, then |
775 | 781 | * repeat the download action, for any additional packages specified |
776 | 782 | * in the current "actions" list. |