diff options
author | Stuart Shelton <stuart@shelton.me> | 2016-02-18 15:17:41 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2016-02-18 15:17:41 +0000 |
commit | d7544ca41f86785a3ad87cbbd7bc1c29a5129dfd (patch) | |
tree | 7dadc5ecac89604d536f6f5cfdb720ac5d11e5f9 /metadata | |
parent | Add dev-php/pecl-memcache-3.0.9 with PHP 7.x compatibililty, update README.md (diff) | |
download | srcshelton-d7544ca41f86785a3ad87cbbd7bc1c29a5129dfd.tar.gz srcshelton-d7544ca41f86785a3ad87cbbd7bc1c29a5129dfd.tar.bz2 srcshelton-d7544ca41f86785a3ad87cbbd7bc1c29a5129dfd.zip |
Update QA check to silence cosmetic warnings when init scripts are added without conf.d counterparts
Diffstat (limited to 'metadata')
-rwxr-xr-x | metadata/install-qa-check.d/95run-directory | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/metadata/install-qa-check.d/95run-directory b/metadata/install-qa-check.d/95run-directory index 47ef30ae..be2177be 100755 --- a/metadata/install-qa-check.d/95run-directory +++ b/metadata/install-qa-check.d/95run-directory @@ -3,14 +3,14 @@ run_check() { if [[ -d "${D%/}"/etc ]]; then if [[ -d "${D%/}"/etc/init.d || -d "${D%/}"/etc/conf.d ]]; then - if sed 's/#.*$//' "${D%/}"/etc/{init,conf}.d/* | grep '/run/' | grep -v '/var/run/' | grep -q '/run/'; then + if sed 's/#.*$//' "${D%/}"/etc/{init,conf}.d/* 2>/dev/null | grep '/run/' | grep -v '/var/run/' | grep -q '/run/'; then local -A list=() local -a files=() while read -r i; do if ! grep -q " /${i#${D}} " <<<" ${QA_RUN_ALLOWED[*]:-} "; then list["${i#${D}}"]=1 fi - done < <(grep -H '/run/' "${D%/}"/etc/{init,conf}.d/* | sed 's/#.*$//' | grep -v '/var/run/' | grep '/run/' | cut -d':' -f 1) + done < <(grep -H '/run/' "${D%/}"/etc/{init,conf}.d/* 2>/dev/null | sed 's/#.*$//' | grep -v '/var/run/' | grep '/run/' | cut -d':' -f 1) files="${!list[@]}" # It'd be nicer to fix this in the ebuild itself, but this |