- oops, forgot to set the repo priorities
authorMichael Schroeder <mls@suse.de>
Wed, 24 Jun 2009 14:22:25 +0000 (16:22 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 24 Jun 2009 14:22:25 +0000 (16:22 +0200)
examples/solv.c

index 3b3c19b..35a8637 100644 (file)
@@ -306,6 +306,7 @@ read_repos(Pool *pool, struct repoinfo *repoinfos, int nrepoinfos)
          repo = repo_create(pool, cinfo->alias);
          cinfo->repo = repo;
          repo->appdata = cinfo;
+         repo->priority = 99 - cinfo->priority;
          repo_add_repomdxml(repo, fp, 0);
          fclose(fp);
          primaryfile = 0;
@@ -329,6 +330,7 @@ read_repos(Pool *pool, struct repoinfo *repoinfos, int nrepoinfos)
          repo = repo_create(pool, cinfo->alias);
          cinfo->repo = repo;
          repo->appdata = cinfo;
+         repo->priority = 99 - cinfo->priority;
          descrdir = 0;
          defvendor = 0;
          if ((fp = curlfopen(cinfo->baseurl, "content", 0)) != 0)