]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
fix pseudo packages obsoleting other pseudo packages
authorMichael Schroeder <mls@suse.de>
Tue, 18 Feb 2014 14:25:01 +0000 (15:25 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 21 Feb 2014 16:51:47 +0000 (17:51 +0100)
This was broken with commit #ea033e29, which fixed pseudo packages
obsoleting real packages.

src/transaction.c

index 538515bef71a51916e9f668f4fd823940e347ed5..f3a54ca32c3434b5170526183298182caf1b111d 100644 (file)
@@ -255,8 +255,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 */
        }