Skip to content

Commit

Permalink
context: Remove hack for double ldconfig
Browse files Browse the repository at this point in the history
LDM has evolved now and no longer butchers the filesystem, so the second
ldconfig is no longer required.

Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeydoherty committed Feb 2, 2018
1 parent 7b1a3ea commit 8012608
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ static const UscHandler *usc_handlers[] = {

#ifdef HAVE_LDM
&usc_handler_ldm, /**<Update drivers/GL-links/etc */
/* Very likely that LDM caused a cache invalidation for lib dirs */
&usc_handler_ldconfig,
#endif

#ifdef HAVE_SYSTEMD
Expand Down Expand Up @@ -347,14 +345,8 @@ static void usc_context_sync(UscContext *self)
void usc_context_list_triggers(void)
{
fputs("Currently known triggers:\n\n", stdout);
static int ld_count = 0;

for (size_t i = 0; i < ARRAY_SIZE(usc_handlers); i++) {
if (strcmp(usc_handlers[i]->name, "ldconfig") == 0) {
if (++ld_count > 1) {
continue;
}
}
fprintf(stdout,
"%*s - %s\n",
30,
Expand Down

0 comments on commit 8012608

Please sign in to comment.