summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-02-18 15:25:01 +0100
committerMichael Schroeder <mls@suse.de>2014-02-18 15:25:01 +0100
commitae9c86853ada4230ca8cb788d0100e5a2bf2c359 (patch)
tree2242412d676235037c9dc5bbf7d43de73a61430b /src
parent7901a05c2b77aacb7113b250400c8d4bebd5a9b1 (diff)
downloadlibsolv-ae9c86853ada4230ca8cb788d0100e5a2bf2c359.tar.gz
libsolv-ae9c86853ada4230ca8cb788d0100e5a2bf2c359.tar.bz2
libsolv-ae9c86853ada4230ca8cb788d0100e5a2bf2c359.zip
fix pseudo packages obsoleting other pseudo packages
This was broken with commit #ea033e29, which fixed pseudo packages obsoleting real packages.
Diffstat (limited to 'src')
-rw-r--r--src/transaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transaction.c b/src/transaction.c
index 2aa4b9d..b6f6bd7 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -296,8 +296,8 @@ transaction_type(Transaction *trans, Id p, int mode)
return type;
if (s->repo == pool->installed)
{
- /* check if we're obsoleted by pseudos only */
- if (obsoleted_by_pseudos_only(trans, s - pool->solvables))
+ /* check if we're a real package that is obsoleted by pseudos */
+ if (!is_pseudo_package(pool, s) && obsoleted_by_pseudos_only(trans, s - pool->solvables))
return SOLVER_TRANSACTION_ERASE;
return SOLVER_TRANSACTION_IGNORE; /* ignore as we're being obsoleted */
}