projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
310204f
)
make 'solv info' work with command line packages
author
Michael Schroeder
<mls@suse.de>
Wed, 16 Oct 2013 14:13:33 +0000
(16:13 +0200)
committer
Michael Schroeder
<mls@suse.de>
Wed, 16 Oct 2013 14:13:33 +0000
(16:13 +0200)
examples/solv.c
patch
|
blob
|
history
diff --git
a/examples/solv.c
b/examples/solv.c
index
c17b06a
..
3bb8b9c
100644
(file)
--- 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_IN
FO || mainmode == MODE_IN
STALL)
{
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);