Skip to content

Commit

Permalink
removed missed reference to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Jan 2, 2024
1 parent 159865d commit 2b8f385
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions _plugins/rosindex_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2b8f385

Please sign in to comment.