mirror of
https://github.com/Fishwaldo/yocto-meta-kf5.git
synced 2025-03-15 19:51:45 +00:00
Allow "?=" for HOMEPAGE assignments in QA script
This commit is contained in:
parent
7ec04dfa5d
commit
aebc193243
1 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ function validate_url()
|
||||||
local recipe=$1
|
local recipe=$1
|
||||||
local url=$2
|
local url=$2
|
||||||
|
|
||||||
local schema=`echo $url | cut -c 1-6`
|
local schema=$(echo $url | cut -c 1-6)
|
||||||
if [ $schema != "https:" ]; then
|
if [ $schema != "https:" ]; then
|
||||||
echo "Warning: $url in $recipe is not using SSL."
|
echo "Warning: $url in $recipe is not using SSL."
|
||||||
fi
|
fi
|
||||||
|
@ -20,12 +20,12 @@ function validate_url()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
for r in `find -name *.inc -o -name *.bb`; do
|
for r in $(find -name *.inc -o -name *.bb); do
|
||||||
if ! [ -z "`egrep '/usr|/etc' $r`" ]; then
|
if ! [ -z "$(egrep '/usr|/etc' $r)" ]; then
|
||||||
echo "ERROR: $r uses hard-coded paths."
|
echo "ERROR: $r uses hard-coded paths."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
url=`cat $r | grep HOMEPAGE | sed -e 's,HOMEPAGE\s*?=\s*\"\(.*\)\",\1,'`
|
url=$(cat $r | grep HOMEPAGE | sed -e 's,HOMEPAGE\s?\?=\s"\(.*\)",\1,')
|
||||||
if ! [ -z "$url" ]; then
|
if ! [ -z "$url" ]; then
|
||||||
validate_url "$r" "$url"
|
validate_url "$r" "$url"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue