[pacman-dev] [PATCH] Fix SyncFirst Not Checking For Ignored Packages
commit b6d3336284e4097b56aea098c18f3f551460d7cb Author: Richard Pougnet <richard@pougnet.ca> Date: Mon Feb 20 23:50:08 2012 -0400 Fix FS#26445 Add a new function to determine if the package selected to be upgr aded is also inside the ignore list. If so, override the SyncFirst option and skip the package installation. diff --git a/src/pacman/sync.c b/src/pacman/sync.c index f370f82..64099e2 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -556,6 +556,9 @@ static alpm_list_t *syncfirst(void) { for(i = config->syncfirst; i; i = alpm_list_next(i)) { const char *pkgname = i->data; + if(alpm_list_find_str(config->ignorepkg, pkgname)){ + continue; + } alpm_pkg_t *pkg = alpm_db_get_pkg(db_local, pkgname); if(pkg == NULL) { continue;
On 21.02.2012 04:53, Richard Pougnet wrote:
commit b6d3336284e4097b56aea098c18f3f551460d7cb
Author: Richard Pougnet <richard@pougnet.ca>
Date: Mon Feb 20 23:50:08 2012 -0400
Fix FS#26445
Add a new function to determine if the package selected to be upgr
aded is also inside the ignore list. If so, override the SyncFirst
option and skip the package installation.
Please use git-send-email instead of copying the patch text somewhere and sending it. Also don't send it as an attachment. If you don't use git-send-email, clients can break formatting. In this case by adding tons of empty lines. Also, we have yet to decide what to do with SyncFirst so depending on the outcome patches for it might not be needed. -- Florian Pritz
participants (2)
-
Florian Pritz
-
Richard Pougnet