diff --git a/_plugins/rosindex_generator.rb b/_plugins/rosindex_generator.rb index 5b5232b..6a452bd 100644 --- a/_plugins/rosindex_generator.rb +++ b/_plugins/rosindex_generator.rb @@ -1256,55 +1256,6 @@ def generate(site) end end - # add additional repo instances to the main dict - Dir.glob(File.join(site.config['repos_path'],'*.yaml')) do |repo_filename| - - # limit repos if requested - #if site.config['max_repos'] > 0 and @all_repos.length > site.config['max_repos'] then break end - - # read in the repo data - repo_name = File.basename(repo_filename, File.extname(repo_filename)).to_s - repo_data = YAML.load_file(repo_filename) - - puts " - Adding repositories for " << repo_name - - # add all the instances - repo_data['instances'].each do |instance| - - # create a new repo structure for this remote - repo = Repo.new( - repo_name, - instance['type'], - instance['uri'], - instance['purpose'], - @checkout_path) - - uri = repo.uri - - dputs " -- Added repo for " << repo.name << " instance: " << repo.id << " from uri " << repo.uri.to_s - - # add distro versions for instance - $all_distros.each do |distro| - - # get the explicit version identifier for this distro - explicit_version = if instance.key?('distros') and instance['distros'].key?(distro) and instance['distros'][distro].key?('version') then instance['distros'][distro]['version'] else nil end - - # add the specific version from this instance - repo.snapshots[distro].version = explicit_version - repo.snapshots[distro].released = false - end - - # store this repo in the unique index - @all_repos[repo.id] = repo - - # store this repo in the name index - @repo_names[repo.name].instances[repo.id] = repo - if instance['default'] or @repo_names[repo.name].default.nil? - @repo_names[repo.name].default = repo - end - end - end - puts "Found " << @all_repos.length.to_s << " repositories corresponding to " << @repo_names.length.to_s << " repo identifiers." end