aboutsummaryrefslogtreecommitdiffhomepage
path: root/sisu-install
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-02-17 11:02:17 -0500
committerRalph Amissah <ralph@amissah.com>2010-02-17 11:02:17 -0500
commit40e51344170464f45135901b9f239240f9fd468c (patch)
tree5dbea1e5c928296d3c8d37134c11367013b73ee4 /sisu-install
parentMerge branch 'upstream' into debian/sid (diff)
parentchangelog & version update (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'sisu-install')
-rwxr-xr-xsisu-install42
1 files changed, 21 insertions, 21 deletions
diff --git a/sisu-install b/sisu-install
index 3d78c6c1..2b981b94 100755
--- a/sisu-install
+++ b/sisu-install
@@ -631,28 +631,28 @@ module Rant
@items.unshift(entry) if entry !~ ignore_rx
self
end
-if Object.method_defined?(:fcall) || Object.method_defined?(:funcall) # in Ruby 1.9 like __send__
- @@__send_private__ = Object.method_defined?(:fcall) ? :fcall : :funcall
- def resolve
- @pending = false
- @actions.each{ |action| self.__send__(@@__send_private__, *action) }.clear
- ix = ignore_rx
- if ix
- @items.reject! { |f| f =~ ix && !@keep[f] }
- end
- self
- end
-else
- def resolve
- @pending = false
- @actions.each{ |action| self.__send__(*action) }.clear
- ix = ignore_rx
- if ix
- @items.reject! { |f| f =~ ix && !@keep[f] }
- end
- self
+ if Object.method_defined?(:fcall) || Object.method_defined?(:funcall) # in Ruby 1.9 like __send__
+ @@__send_private__ = Object.method_defined?(:fcall) ? :fcall : :funcall
+ def resolve
+ @pending = false
+ @actions.each{ |action| self.__send__(@@__send_private__, *action) }.clear
+ ix = ignore_rx
+ if ix
+ @items.reject! { |f| f =~ ix && !@keep[f] }
+ end
+ self
+ end
+ else
+ def resolve
+ @pending = false
+ @actions.each{ |action| self.__send__(*action) }.clear
+ ix = ignore_rx
+ if ix
+ @items.reject! { |f| f =~ ix && !@keep[f] }
+ end
+ self
+ end
end
-end
def include(*pats)
@def_glob_dotfiles ? glob_all(*pats) : glob_unix(*pats)
end