- allow downgrade for INSTALL_SOLVABLE
authorMichael Schroeder <mls@suse.de>
Wed, 31 Oct 2007 11:54:49 +0000 (11:54 +0000)
committerMichael Schroeder <mls@suse.de>
Wed, 31 Oct 2007 11:54:49 +0000 (11:54 +0000)
- add support for "version" in deptestomatic's select_solvable()
- comment to repo_content

src/solver.c
tools/repo_content.c

index cf11b79..311b305 100644 (file)
@@ -2816,6 +2816,9 @@ solve(Solver *solv, Queue *job)
          }
           addrule(solv, what, 0);                      /* install by Id */
          queue_push(&solv->ruletojob, i);
+         FOR_PROVIDES(p, pp, what)
+           if (pool->solvables[what].name == pool->solvables[p].name)
+             MAPSET(&noupdaterule, p);
          break;
        case SOLVER_ERASE_SOLVABLE:
           addrule(solv, -what, 0);                     /* remove by Id */
index 3014d6f..2b1f71f 100644 (file)
@@ -224,11 +224,12 @@ pool_addrepo_content(Pool *pool, FILE *fp)
              pack++;
            }
          else if (istag ("VERSION"))
+           /* without a release? but that's like zypp implements it */
            s->evr = makeevr(pool, value);
          else if (istag ("DISTPRODUCT"))
-           ; // DISTPRODUCT is only for Yast, not for the package manager
+           ; /* DISTPRODUCT is only for Yast, not the package manager */
          else if (istag ("DISTVERSION"))
-           ; // DISTVERSION is only for Yast
+           ; /* DISTVERSION is only for Yast, not the package manager */
          else if (istag ("VENDOR"))
            s->vendor = str2id(pool, value, 1);
          else if (istag ("ARCH"))