We can still update deptree if needed services are missing
This commit is contained in:
parent
85648ee5cd
commit
af510fb316
@ -618,7 +618,7 @@ bool rc_deptree_update_needed (void)
|
|||||||
/* Create base directories if needed */
|
/* Create base directories if needed */
|
||||||
for (i = 0; depdirs[i]; i++)
|
for (i = 0; depdirs[i]; i++)
|
||||||
if (mkdir (depdirs[i], 0755) != 0 && errno != EEXIST)
|
if (mkdir (depdirs[i], 0755) != 0 && errno != EEXIST)
|
||||||
fprintf (stderr, "mkdir `%s': %s", depdirs[i], strerror (errno));
|
fprintf (stderr, "mkdir `%s': %s\n", depdirs[i], strerror (errno));
|
||||||
|
|
||||||
/* Quick test to see if anything we use has changed */
|
/* Quick test to see if anything we use has changed */
|
||||||
if (! is_newer_than (RC_DEPTREE, RC_INITDIR) ||
|
if (! is_newer_than (RC_DEPTREE, RC_INITDIR) ||
|
||||||
@ -816,9 +816,8 @@ bool rc_deptree_update (void)
|
|||||||
if (strcmp (deptype->type, "ineed") == 0)
|
if (strcmp (deptype->type, "ineed") == 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"Service `%s' needs non existant service `%s'",
|
"Service `%s' needs non existant service `%s'\n",
|
||||||
depinfo->service, service);
|
depinfo->service, service);
|
||||||
retval = false;
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user