~xubuntu-dev/ubiquity/lp1437180_feh

« back to all changes in this revision

Viewing changes to run-pychecker

  • Committer: Colin Watson
  • Date: 2009-10-29 11:49:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3576.
  • Revision ID: cjwatson@canonical.com-20091029114944-0k1rrdjq94t6ccwh
pychecker has a habit of emitting extraneous warnings ignoring __pychecker__ unless we process files one at a time

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
}
13
13
trap cleanup EXIT HUP INT QUIT TERM
14
14
 
15
 
find -name debian -prune -o -name \*.py -print | sort | xargs pychecker
 
15
ret=0
 
16
for x in $(find -name debian -prune -o -name \*.py -printf '%P\n' | sort); do
 
17
        pychecker "$x" | grep "^$x:" && ret=1
 
18
done
16
19
 
17
 
exit 0
 
20
exit $ret