summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/solv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/solv.c b/examples/solv.c
index c17b06a..3bb8b9c 100644
--- a/examples/solv.c
+++ b/examples/solv.c
@@ -2871,7 +2871,7 @@ main(int argc, char **argv)
}
/* process command line packages */
- if (mainmode == MODE_LIST || mainmode == MODE_INSTALL)
+ if (mainmode == MODE_LIST || mainmode == MODE_INFO || mainmode == MODE_INSTALL)
{
for (i = 1; i < argc; i++)
{
@@ -3233,6 +3233,8 @@ rerunsolver:
if (s->repo == commandlinerepo)
{
loc = solvable_lookup_location(s, &medianr);
+ if (!loc)
+ continue;
if (!(newpkgsfps[i] = fopen(loc, "r")))
{
perror(loc);