- export repo_add_cudf, use SOLVER_ORUPDATE for cudf update jobs
authorMichael Schroeder <mls@suse.de>
Mon, 25 Jun 2012 09:28:31 +0000 (11:28 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 25 Jun 2012 09:28:31 +0000 (11:28 +0200)
ext/libsolvext.ver
ext/repo_cudf.c
tools/cudftest.c

index 7796925..3758ce9 100644 (file)
@@ -7,6 +7,7 @@ SOLV_1.0 {
                repo_add_code11_products;
                repo_add_content;
                repo_add_comps;
+               repo_add_cudf;
                repo_add_deb;
                repo_add_debdb;
                repo_add_debpackages;
index 5a75990..d62ab38 100644 (file)
@@ -281,7 +281,7 @@ repo_add_cudf(Repo *repo, Repo *installedrepo, FILE *fp, Queue *job, int flags)
              Id id, *idp;
              Offset off = makedeps(xrepo, p, 0, 0);
              for (idp = xrepo->idarraydata + off; (id = *idp) != 0; idp++)
-               queue_push2(job, SOLVER_UPDATE|SOLVER_SOLVABLE_PROVIDES, id);
+               queue_push2(job, SOLVER_INSTALL|SOLVER_ORUPDATE|SOLVER_SOLVABLE_PROVIDES, id);
            }
          continue;
        }
index bf5bbca..227ae0b 100644 (file)
@@ -68,7 +68,7 @@ main(int argc, char **argv)
     }
   if (argc < 2)
     {
-      fprintf(stderr, "Usage: cudftest <cudfin> [cudfout]");
+      fprintf(stderr, "Usage: cudftest <cudfin> [cudfout]\n");
       exit(1);
     }
   cudfin = argv[1];