]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 May 2010 14:09:46 +0000 (16:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 May 2010 14:09:46 +0000 (16:09 +0200)
Conflicts:
tools/quality-agent.d/095-directory-layout

1  2 
naoki/backend.py
tools/quality-agent.d/095-directory-layout

Simple merge
index 7d3ddb24e683240483b9e1858978d3123edb119a,c2896d93e6770e9e3f00659a03e0aea33568d78b..14f600d7bcf2c7f3d580f53f74c2ff15bbe506a8
@@@ -2,27 -2,22 +2,22 @@@
  
  . $(dirname ${0})/qa-include
  
- function check() {
-       local dir=${1}
+ DESC="The filelayout should comply to the FHS."
  
-       log "    ...${dir}"
 -DIRS="/etc/init.d /etc/rc.d /lib/pkgconfig /usr/etc /usr/libexec /usr/local /usr/man /usr/var"
++DIRS="/etc/init.d /etc/rc.d /lib/pkgconfig /usr/etc /usr/libexec /usr/local /usr/man /usr/usr /usr/var"
  
-       if [ -d "${BUILDROOT}/${dir}" ]; then
-               log "ERROR: This directory should not be there: ${dir}"
-               exit 1
-       fi
- }
+ function check() {
+       local failed=0
  
- log "Check directory layout"
+       local dir
+       for dir in ${DIRS}; do
+               if [ -d "${BUILDROOT}${dir}" ]; then
+                       log_error "Bad directory: ${dir}"
+                       failed=1
+               fi
+       done
  
- log "  Checking for directories that should not be there"
- check /etc/init.d
- check /etc/rc.d
- check /lib/pkgconfig
- check /usr/etc
- check /usr/local
- check /usr/man
- check /usr/usr
- check /usr/var
+       return ${failed}
+ }
  
- exit 0
+ run