summaryrefslogtreecommitdiff
path: root/lib/rpmplugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmplugins.c')
-rw-r--r--lib/rpmplugins.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rpmplugins.c b/lib/rpmplugins.c
index f37416bb0..1022024c2 100644
--- a/lib/rpmplugins.c
+++ b/lib/rpmplugins.c
@@ -215,8 +215,9 @@ static rpmRC rpmpluginsCallInit(rpmPlugin plugin, rpmts ts)
plugin_init_func hookFunc;
RPMPLUGINS_SET_HOOK_FUNC(init);
if (hookFunc)
- if ((rc = hookFunc(plugin, ts)) != RPMRC_OK)
- rpmlog(RPMLOG_ERR, "Plugin %s: hook init failed\n", plugin->name);
+ rc = hookFunc(plugin, ts);
+ if (rc != RPMRC_OK && rc != RPMRC_NOTFOUND)
+ rpmlog(RPMLOG_ERR, "Plugin %s: hook init failed\n", plugin->name);
return rc;
}