do not rewrite the command line repo
authorMichael Schroeder <mls@suse.de>
Thu, 31 Oct 2013 12:58:12 +0000 (13:58 +0100)
committerMichael Schroeder <mls@suse.de>
Thu, 31 Oct 2013 12:58:12 +0000 (13:58 +0100)
examples/solv.c

index a440b61..6bacc19 100644 (file)
@@ -2320,6 +2320,8 @@ rewrite_repos(Pool *pool, Queue *addedfileprovides, Queue *addedfileprovides_ins
       if (repo->nrepodata < 2)
        continue;
       cinfo = repo->appdata;
+      if (repo != pool->installed && !cinfo)
+       continue;
       if (cinfo && cinfo->incomplete)
        continue;
       data = repo_id2repodata(repo, 1);