From 33843772fca43f8f4dbb4285a7aee8aac25ad37f Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 10 Mar 2010 12:15:08 +0300 Subject: [PATCH 04/10] Fedora-specific patch for not to fixing fully qualified paths in scripts --- plugins-scripts/subst.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins-scripts/subst.in b/plugins-scripts/subst.in index a70ad88..08f2895 100644 --- a/plugins-scripts/subst.in +++ b/plugins-scripts/subst.in @@ -52,11 +52,11 @@ BEGIN { # returned from the which subroutine. run before changes to INC to add libexecdir # FIXME: Prepend executables with a substitution keyword instead. # -/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { - match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); - c=substr($0,RSTART,RLENGTH); - sub(c,which(c,path)); -} +#/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { +# match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); +# c=substr($0,RSTART,RLENGTH); +# sub(c,which(c,path)); +#} # add to libexecdir to INC for perl utils.pm /^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } -- 1.8.3.1