libxbps: ignore updates for pkgs with held deps. Close #143

This commit is contained in:
Juan RP
2016-02-06 09:03:54 +01:00
parent 27e36fcbf9
commit 067687ce28
3 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2008-2014 Juan Romero Pardines.
* Copyright (c) 2008-2016 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -280,6 +280,10 @@ find_repo_deps(struct xbps_handle *xhp,
break;
}
}
if (xbps_dictionary_get(curpkgd, "hold")) {
xbps_dbg_printf(xhp, "%s on hold state! ignoring package.\n", curpkg);
continue;
}
/*
* Pass 4: find required dependency in repository pool.
* If dependency does not match add pkg into the missing