diff options
author | Michael Schroeder <mls@suse.de> | 2014-04-04 18:46:07 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-04-04 18:46:07 +0200 |
commit | 05f78a79005deadbb1ce69cbbf6219990ac74e71 (patch) | |
tree | aa55a332c59e0b51c5ecd4db96ad6bdc4122b150 /src | |
parent | 0c7c5a5d75bdb61398146e5b7c633c164198620c (diff) | |
download | libsolv-05f78a79005deadbb1ce69cbbf6219990ac74e71.tar.gz libsolv-05f78a79005deadbb1ce69cbbf6219990ac74e71.tar.bz2 libsolv-05f78a79005deadbb1ce69cbbf6219990ac74e71.zip |
do not count problem resolution install jobs as userinstalled
Diffstat (limited to 'src')
-rw-r--r-- | src/problems.c | 2 | ||||
-rw-r--r-- | src/solver.c | 2 | ||||
-rw-r--r-- | src/solver.h | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/problems.c b/src/problems.c index 75aaa88..7258c04 100644 --- a/src/problems.c +++ b/src/problems.c @@ -850,7 +850,7 @@ solver_take_solutionelement(Solver *solv, Id p, Id rp, Id extrajobflags, Queue * if (rp <= 0 && p <= 0) return; /* just in case */ if (rp > 0) - p = SOLVER_INSTALL|SOLVER_SOLVABLE|extrajobflags; + p = SOLVER_INSTALL|SOLVER_SOLVABLE|SOLVER_NOTBYUSER|extrajobflags; else { rp = p; diff --git a/src/solver.c b/src/solver.c index deb0736..f188e3d 100644 --- a/src/solver.c +++ b/src/solver.c @@ -4542,6 +4542,8 @@ solver_get_userinstalled(Solver *solv, Queue *q, int flags) } if ((how & SOLVER_JOBMASK) != SOLVER_INSTALL) continue; + if ((how & SOLVER_NOTBYUSER) != 0) + continue; what = solv->job.elements[i + 1]; select = how & SOLVER_SELECTMASK; FOR_JOB_SELECT(p, pp, select, what) diff --git a/src/solver.h b/src/solver.h index daa0e08..81c5f2b 100644 --- a/src/solver.h +++ b/src/solver.h @@ -234,6 +234,9 @@ typedef struct _Solver Solver; * contain an "installed" package unless the * NO_AUTOTARGET solver flag is set */ #define SOLVER_TARGETED 0x200000 +/* This (SOLVER_INSTALL) job was automatically added + * and thus does not the add to the userinstalled packages */ +#define SOLVER_NOTBYUSER 0x400000 #define SOLVER_SETEV 0x01000000 #define SOLVER_SETEVR 0x02000000 |