@@ -119,7 +119,7 @@ def dispense
119
119
120
120
# Do not extract source again because it might destroy changes
121
121
# that have been made to the source. (like patches)
122
- if File . exists ?( extract_cookie )
122
+ if File . exist ?( extract_cookie )
123
123
extracted_source = File . read ( extract_cookie ) . chomp
124
124
Log . debug "Extract cookie exists, using existing source directory: #{ extracted_source } "
125
125
else
@@ -149,7 +149,7 @@ def dispense
149
149
150
150
build_cookie = build_cookie_name ( package_name )
151
151
152
- if File . exists ?( build_cookie )
152
+ if File . exist ?( build_cookie )
153
153
Log . warn "Skipping build of #{ recipe . name } because build cookie found (#{ build_cookie } )," \
154
154
" use \" fpm-cook clean\" to rebuild!"
155
155
else
@@ -161,7 +161,7 @@ def dispense
161
161
end
162
162
163
163
FileUtils . rm_rf ( recipe . destdir ) unless keep_destdir?
164
- recipe . destdir . mkdir unless File . exists ?( recipe . destdir )
164
+ recipe . destdir . mkdir unless File . exist ?( recipe . destdir )
165
165
166
166
begin
167
167
recipe . installing = true
@@ -243,7 +243,7 @@ def add_scripts(recipe, input)
243
243
script_file = File . expand_path ( "../#{ script_file . to_s } " , recipe . filename )
244
244
end
245
245
246
- if File . exists ?( script_file )
246
+ if File . exist ?( script_file )
247
247
input . add_script ( script , File . read ( script_file . to_s ) )
248
248
else
249
249
Log . error "#{ script } script '#{ script_file } ' is missing"
0 commit comments