]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pakfire/patches/0007-QA-Remove-obsoleted-python-hardlink-tool.patch
pakfire: Import latest patches from upstream.
[ipfire-3.x.git] / pakfire / patches / 0007-QA-Remove-obsoleted-python-hardlink-tool.patch
diff --git a/pakfire/patches/0007-QA-Remove-obsoleted-python-hardlink-tool.patch b/pakfire/patches/0007-QA-Remove-obsoleted-python-hardlink-tool.patch
new file mode 100644 (file)
index 0000000..869118d
--- /dev/null
@@ -0,0 +1,39 @@
+From 99c47627b24f5a16897aa85ed83eb3919ea6ea85 Mon Sep 17 00:00:00 2001
+From: Michael Tremer <michael.tremer@ipfire.org>
+Date: Wed, 3 Oct 2012 01:02:06 +0200
+Subject: [PATCH 7/8] QA: Remove obsoleted python hardlink tool.
+
+---
+ tools/quality-agent.d/090-python-hardlinks | 20 --------------------
+ 1 file changed, 20 deletions(-)
+ delete mode 100755 tools/quality-agent.d/090-python-hardlinks
+
+diff --git a/tools/quality-agent.d/090-python-hardlinks b/tools/quality-agent.d/090-python-hardlinks
+deleted file mode 100755
+index e2abf76..0000000
+--- a/tools/quality-agent.d/090-python-hardlinks
++++ /dev/null
+@@ -1,20 +0,0 @@
+-#!/bin/bash
+-
+-. $(dirname ${0})/qa-include
+-
+-DESC="Python byte-code files could be hardlinked if the optimized one is equal"
+-DESC="${DESC} to the other one."
+-
+-function check() {
+-      for py in $(find ${BUILDROOT} -type f -name "*.py"); do
+-              if [ -e "${py}c" ] && [ -e "${py}o" ]; then
+-                      if cmp -s "${py}c" "${py}o"; then
+-                              log DEBUG "  ${py}c -> ${py}o"
+-                              ln -f "${py}c" "${py}o"
+-                      fi
+-              fi
+-      done
+-}
+-
+-run
+-
+-- 
+1.7.11.4
+