]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
1feefeb96ab09fbd0523135137f0727f992a9ce3
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 ca-certificates is a package from Debian, but some host distros such as Fedora
2 have a leaner run-parts provided by cron which doesn't support --verbose or the
3 -- separator between arguments and paths.
4
5 This solves errors such as
6
7 | Running hooks in [...]/rootfs/etc/ca-certificates/update.d...
8 | [...]/usr/sbin/update-ca-certificates: line 194: Not: command not found
9 | [...]/usr/sbin/update-ca-certificates: line 230: Not a directory: --: command not found
10 | E: Not a directory: -- exited with code 127.
11
12
13 Upstream-Status: Inappropriate
14 Signed-off-by: Ross Burton <ross.burton@intel.com>
15 Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
16 ---
17 sbin/update-ca-certificates | 4 +---
18 1 file changed, 1 insertion(+), 3 deletions(-)
19
20 Index: git/sbin/update-ca-certificates
21 ===================================================================
22 --- git.orig/sbin/update-ca-certificates
23 +++ git/sbin/update-ca-certificates
24 @@ -202,9 +202,7 @@ if [ -d "$HOOKSDIR" ]
25 then
26
27 echo "Running hooks in $HOOKSDIR..."
28 - VERBOSE_ARG=
29 - [ "$verbose" = 0 ] || VERBOSE_ARG="--verbose"
30 - eval run-parts "$VERBOSE_ARG" --test -- "$HOOKSDIR" | while read -r hook
31 + eval run-parts --test "$HOOKSDIR" | while read -r hook
32 do
33 ( cat "$ADDED"
34 cat "$REMOVED" ) | "$hook" || echo "E: $hook exited with code $?."