From: Michael Schroeder Date: Thu, 31 Oct 2013 12:58:12 +0000 (+0100) Subject: do not rewrite the command line repo X-Git-Tag: 0.6.4~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9d4dbaf43423d9e094f0cb784c764a92f53486b;p=thirdparty%2Flibsolv.git do not rewrite the command line repo --- diff --git a/examples/solv.c b/examples/solv.c index a440b617..6bacc194 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -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);