mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
autofs: fix do_install failure and remove unused /var/run directory
If ${D}/run doesn't exist, the following statement will have non-zero
exit code, which leads to do_install failure.
test -d ${D}/run && rmdir ${D}/run
Modify it to use the if statement to make the do_install task succeed
no matter ${D}/run exists or not.
Also, this patch removes the unused /var/run directory. Leaving that
directory there will result in /run directory created before splitting
package, which in turn lead to 'installed-vs-shipped' QA error or QA
warning.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
parent
adb7af3fe9
commit
ddfcd90894
@ -96,7 +96,12 @@ do_configure_prepend () {
|
||||
}
|
||||
|
||||
do_install_append () {
|
||||
test -d ${D}/run && rmdir ${D}/run
|
||||
if [ -d ${D}/run ]; then
|
||||
rmdir ${D}/run
|
||||
fi
|
||||
if [ -d ${D}${localstatedir}/run ]; then
|
||||
rmdir ${D}${localstatedir}/run
|
||||
fi
|
||||
}
|
||||
|
||||
INSANE_SKIP_${PN} = "dev-so"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user