lib/bundler/plugin/index.rb in bundler-1.16.1 vs lib/bundler/plugin/index.rb in bundler-1.16.2

- old
+ new

@@ -27,10 +27,15 @@ @commands = {} @sources = {} @hooks = {} @load_paths = {} - load_index(global_index_file, true) + begin + load_index(global_index_file, true) + rescue GenericSystemCallError + # no need to fail when on a read-only FS, for example + nil + end load_index(local_index_file) if SharedHelpers.in_bundle? end # This function is to be called when a new plugin is installed. This # function shall add the functions of the plugin to existing maps and also