aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-03-21 07:40:21 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-03-21 07:40:21 (GMT)
commit1ac859dfea03701f02dcd25ba3b91fb17cf520cf (patch)
tree0f4bae9101e9709f443cf3073e361b2df0ad6595
parentMap emerge --buildpkg=n to FEATURES=-buildpkg. (diff)
downloadportage-1ac859dfea03701f02dcd25ba3b91fb17cf520cf.zip
portage-1ac859dfea03701f02dcd25ba3b91fb17cf520cf.tar.gz
portage-1ac859dfea03701f02dcd25ba3b91fb17cf520cf.tar.bz2
Bug #361759: QA check for /etc/udev/rules.d
-rwxr-xr-xbin/misc-functions.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index d2de0a7..b083897 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -258,6 +258,18 @@ install_qa_check() {
eqawarn "$f"
fi
+ if [[ -d ${ED}/etc/udev/rules.d ]] ; then
+ f=
+ for x in $(ls "${ED}/etc/udev/rules.d") ; do
+ f+=" etc/udev/rules.d/$x\n"
+ done
+ if [[ -n $f ]] ; then
+ eqawarn "QA Notice: udev rules should be installed in /lib/udev/rules.d:"
+ eqawarn
+ eqawarn "$f"
+ fi
+ fi
+
# Now we look for all world writable files.
local unsafe_files=$(find "${ED}" -type f -perm -2 | sed -e "s:^${ED}:- :")
if [[ -n ${unsafe_files} ]] ; then