@@ -106,7 +106,7 @@ subroutine get_global_settings(global_settings, error)
106
106
call use_default_registry_settings(global_settings)
107
107
end if
108
108
109
- end subroutine get_global_settings
109
+ end
110
110
111
111
! > Default registry settings are typically applied if the config file doesn't exist or no registry table was found in
112
112
! > the global config file.
@@ -117,7 +117,7 @@ subroutine use_default_registry_settings(global_settings)
117
117
global_settings% registry_settings% url = official_registry_base_url
118
118
global_settings% registry_settings% cache_path = join_path(config_path(global_settings), &
119
119
& ' dependencies' )
120
- end subroutine use_default_registry_settings
120
+ end
121
121
122
122
! > Read registry settings from the global config file.
123
123
subroutine get_registry_settings (table , global_settings , error )
@@ -208,38 +208,38 @@ subroutine get_registry_settings(table, global_settings, error)
208
208
if (allocated (error)) return
209
209
end if
210
210
else if (.not. allocated (path)) then
211
- global_settings% registry_settings% cache_path = join_path(config_path(global_settings), &
212
- & ' dependencies' )
211
+ global_settings% registry_settings% cache_path = join_path(config_path(global_settings), &
212
+ & ' dependencies' )
213
213
end if
214
- end subroutine get_registry_settings
214
+ end
215
215
216
216
! > True if the global config file is not at the default location.
217
217
pure logical function has_custom_location(self)
218
218
class(fpm_global_settings), intent (in ) :: self
219
219
220
220
has_custom_location = allocated (self% path_to_config_folder) .and. allocated (self% config_file_name)
221
- if (.not. has_custom_location) return
222
- has_custom_location = len_trim (self% path_to_config_folder)> 0 .and. len_trim (self% config_file_name)> 0
223
- end function
221
+ if (.not. has_custom_location) return
222
+ has_custom_location = len_trim (self% path_to_config_folder) > 0 .and. len_trim (self% config_file_name) > 0
223
+ end
224
224
225
225
! > The full path to the global config file.
226
226
function full_path (self ) result(result)
227
227
class(fpm_global_settings), intent (in ) :: self
228
228
character (len= :), allocatable :: result
229
229
230
230
result = join_path(config_path(self), self% config_file_name)
231
- end function
231
+ end
232
232
233
233
! > The path to the global config directory.
234
234
function config_path (self )
235
235
class(fpm_global_settings), intent (in ) :: self
236
236
character (len= :), allocatable :: config_path
237
237
238
238
if (allocated (self% path_to_config_folder)) then
239
- config_path = self% path_to_config_folder
239
+ config_path = self% path_to_config_folder
240
240
else
241
- config_path = " "
241
+ config_path = " "
242
242
end if
243
- end function config_path
243
+ end
244
244
245
- end module fpm_settings
245
+ end
0 commit comments