From 200347c5bdc82266c1f9d56898e1db048d7e6b0d Mon Sep 17 00:00:00 2001 From: Stuart Shelton Date: Tue, 14 Jul 2015 01:17:17 +0100 Subject: Add net-dns/bind-9.10.2_p2, update QA check to ignore instances of '/run' in comments --- metadata/install-qa-check.d/95run-directory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'metadata/install-qa-check.d') diff --git a/metadata/install-qa-check.d/95run-directory b/metadata/install-qa-check.d/95run-directory index 2227eeb3..7cd23c3a 100755 --- a/metadata/install-qa-check.d/95run-directory +++ b/metadata/install-qa-check.d/95run-directory @@ -3,12 +3,12 @@ run_check() { if [[ -d "${D%/}"/etc ]]; then if [[ -d "${D%/}"/etc/init.d || -d "${D%/}"/etc/conf.d ]]; then - if grep '/run/' "${D%/}"/etc/{init,conf}.d/* | grep -v '/var/run/' | grep -q '/run/'; then + if sed 's/#.*$//' "${D%/}"/etc/{init,conf}.d/* | grep '/run/' | grep -v '/var/run/' | grep -q '/run/'; then local -A list=() local -a files=() while read -r i; do list["${i#${D}}"]=1 - done < <(grep -H '/run/' "${D%/}"/etc/{init,conf}.d/* | grep -v '/var/run/' | cut -d':' -f 1) + done < <(grep -H '/run/' "${D%/}"/etc/{init,conf}.d/* | sed 's/#.*$//' | grep -v '/var/run/' | grep '/run/' | cut -d':' -f 1) files="${!list[@]}" if (( 1 == ${#files[@]} )) && [[ "${files[*]}" =~ etc/init.d/bootmisc ]]; then : -- cgit v1.2.3-65-gdbad