]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks
avahi: Update to 0.6.30.
[ipfire-3.x.git] / pkgs / build-essentials / quality-agent / quality-agent.d / 090-python-hardlinks
1 #!/bin/bash
2
3 . $(dirname ${0})/qa-include
4
5 DESC="Python byte-code files could be hardlinked if the optimized one is equal"
6 DESC="${DESC} to the other one."
7
8 function check() {
9 for py in $(find ${BUILDROOT} -type f -name "*.py"); do
10 if [ -e "${py}c" ] && [ -e "${py}o" ]; then
11 if cmp -s "${py}c" "${py}o"; then
12 log DEBUG " ${py}c -> ${py}o"
13 ln -f "${py}c" "${py}o"
14 fi
15 fi
16 done
17 }
18
19 run
20