autofs: fix do_install failure and remove unused /var/run directory
authorChen Qi <Qi.Chen@windriver.com>
Thu, 24 Oct 2013 04:47:39 +0000 (12:47 +0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:34:09 +0000 (08:34 -0800)
commit9dc8025af91d3e37a53a346a976f99b9f154f52c
tree144be0d1b1faee6fe830bd2cb7f1c1fedf332026
parentb4e8c0693f3449504fb800b0b892e381c39cb7b5
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.

(From meta-openembedded rev: ddfcd90894a9b16e13b471d75745ae7b9cf7fca7)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-networking/recipes-daemons/autofs/autofs_5.0.7.bb