]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pakfire/patches/0016-Quality-Agent-Replace-env-ruby.patch
pakfire: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / pakfire / patches / 0016-Quality-Agent-Replace-env-ruby.patch
CommitLineData
91d1c8a9
MT
1From 0f41600f3e2e38352f87b0a2d130e12b0da26ee3 Mon Sep 17 00:00:00 2001
2From: Stefan Schantl <stefan.schantl@ipfire.org>
3Date: Tue, 12 Feb 2013 20:26:41 +0100
4Subject: [PATCH 16/17] Quality Agent: Replace "env ruby".
5
6This commit adds a rule to replace "env ruby" with the correct run command "/usr/bin/ruby".
7---
8 tools/quality-agent.d/050-invalid-interpreters | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11diff --git a/tools/quality-agent.d/050-invalid-interpreters b/tools/quality-agent.d/050-invalid-interpreters
12index deac7a3..63847c7 100755
13--- a/tools/quality-agent.d/050-invalid-interpreters
14+++ b/tools/quality-agent.d/050-invalid-interpreters
15@@ -28,7 +28,8 @@ check() {
16 sed -i ${file} \
17 -e "s,/usr/bin/env python\(.*\),/usr/bin/python\1," \
18 -e "s,/usr/bin/env python,/usr/bin/python," \
19- -e "s,/usr/bin/env perl,/usr/bin/perl,"
20+ -e "s,/usr/bin/env perl,/usr/bin/perl," \
21+ -e "s,/usr/bin/env ruby,/usr/bin/ruby,"
22
23 # If we could not fix it, raise an error
24 if [ "${interpreter}" = "$(file_get_interpreter ${file})" ]; then
25--
261.8.1.2
27