- 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 779692514e337a396e852ed1a7236d63b45db8f7..3758ce9f5147e3b4168ca6207bf0d927e177902f 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 5a759906205e200fe62d0e8805ed2e5342bc7861..d62ab38263fb377710246dd0e9ca6ae949d02d77 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 bf5bbca4e38970bbb8dadffef4882211dae01ee5..227ae0b3669442020c429edce51b52c7fc662836 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];