]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pakfire/patches/0007-QA-Remove-obsoleted-python-hardlink-tool.patch
pakfire: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / pakfire / patches / 0007-QA-Remove-obsoleted-python-hardlink-tool.patch
1 From 99c47627b24f5a16897aa85ed83eb3919ea6ea85 Mon Sep 17 00:00:00 2001
2 From: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Wed, 3 Oct 2012 01:02:06 +0200
4 Subject: [PATCH 7/8] QA: Remove obsoleted python hardlink tool.
5
6 ---
7 tools/quality-agent.d/090-python-hardlinks | 20 --------------------
8 1 file changed, 20 deletions(-)
9 delete mode 100755 tools/quality-agent.d/090-python-hardlinks
10
11 diff --git a/tools/quality-agent.d/090-python-hardlinks b/tools/quality-agent.d/090-python-hardlinks
12 deleted file mode 100755
13 index e2abf76..0000000
14 --- a/tools/quality-agent.d/090-python-hardlinks
15 +++ /dev/null
16 @@ -1,20 +0,0 @@
17 -#!/bin/bash
18 -
19 -. $(dirname ${0})/qa-include
20 -
21 -DESC="Python byte-code files could be hardlinked if the optimized one is equal"
22 -DESC="${DESC} to the other one."
23 -
24 -function check() {
25 - for py in $(find ${BUILDROOT} -type f -name "*.py"); do
26 - if [ -e "${py}c" ] && [ -e "${py}o" ]; then
27 - if cmp -s "${py}c" "${py}o"; then
28 - log DEBUG " ${py}c -> ${py}o"
29 - ln -f "${py}c" "${py}o"
30 - fi
31 - fi
32 - done
33 -}
34 -
35 -run
36 -
37 --
38 1.7.11.4
39