projects
/
platform
/
upstream
/
kmod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4272d08
)
Use index_mm if it's open for moddep search
author
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Fri, 9 Dec 2011 17:47:23 +0000
(15:47 -0200)
committer
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Fri, 9 Dec 2011 17:55:30 +0000
(15:55 -0200)
libkmod/libkmod.c
patch
|
blob
|
history
diff --git
a/libkmod/libkmod.c
b/libkmod/libkmod.c
index
f91e74f
..
847bc4b
100644
(file)
--- a/
libkmod/libkmod.c
+++ b/
libkmod/libkmod.c
@@
-426,6
+426,9
@@
char *kmod_search_moddep(struct kmod_ctx *ctx, const char *name)
DBG(ctx, "file=%s modname=%s\n", fn, name);
+ if (ctx->indexes[KMOD_INDEX_DEP])
+ return index_mm_search(ctx->indexes[KMOD_INDEX_DEP], name);
+
idx = index_file_open(fn);
if (idx == NULL) {
ERR(ctx, "Could not open moddep file '%s'", fn);