summaryrefslogtreecommitdiff
path: root/src/problems.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2018-11-30 12:40:15 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2018-11-30 12:40:16 +0900
commit51a3a2ac14ea0b18ccbe47ce771d5c962aa0800a (patch)
tree778194706f6f8a417899f6070be7308107bc92bb /src/problems.c
parent22e701e553344eeb22f88ed0906d76c9a5e39d83 (diff)
downloadlibsolv-51a3a2ac14ea0b18ccbe47ce771d5c962aa0800a.tar.gz
libsolv-51a3a2ac14ea0b18ccbe47ce771d5c962aa0800a.tar.bz2
libsolv-51a3a2ac14ea0b18ccbe47ce771d5c962aa0800a.zip
Imported Upstream version 0.6.25upstream/0.6.25
Change-Id: I4c41182d0968927b2dc78980b41c0b7c2e931a4a Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'src/problems.c')
-rw-r--r--src/problems.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/problems.c b/src/problems.c
index 063d47b..a9bbdce 100644
--- a/src/problems.c
+++ b/src/problems.c
@@ -1089,6 +1089,7 @@ solver_problemruleinfo2str(Solver *solv, SolverRuleinfo type, Id source, Id targ
{
Pool *pool = solv->pool;
char *s;
+ Solvable *ss;
switch (type)
{
case SOLVER_RULE_DISTUPGRADE:
@@ -1114,6 +1115,12 @@ solver_problemruleinfo2str(Solver *solv, SolverRuleinfo type, Id source, Id targ
return pool_tmpjoin(pool, "cannot install the best update candidate for package ", pool_solvid2str(pool, source), 0);
return "cannot install the best candidate for the job";
case SOLVER_RULE_PKG_NOT_INSTALLABLE:
+ ss = pool->solvables + source;
+ if (pool_disabled_solvable(pool, ss))
+ return pool_tmpjoin(pool, "package ", pool_solvid2str(pool, source), " is disabled");
+ if (ss->arch && ss->arch != ARCH_SRC && ss->arch != ARCH_NOSRC &&
+ pool->id2arch && (ss->arch > pool->lastarch || !pool->id2arch[ss->arch]))
+ return pool_tmpjoin(pool, "package ", pool_solvid2str(pool, source), " does not have a compatible architecture");
return pool_tmpjoin(pool, "package ", pool_solvid2str(pool, source), " is not installable");
case SOLVER_RULE_PKG_NOTHING_PROVIDES_DEP:
s = pool_tmpjoin(pool, "nothing provides ", pool_dep2str(pool, dep), 0);