Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: populate package index on first access #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/qbot/arch_repos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
@index = self.class.mk_index(@path)

super(@index)

populate_from_global_cache
end

def pkg_names_query(str)
Expand Down Expand Up @@ -72,7 +74,7 @@
end
end

IndexEntry = Data.define(:name, :description) do

Check warning on line 77 in lib/qbot/arch_repos.rb

View check run for this annotation

Check Run Reporter / Lint / lint

com.puppycrawl.tools.checkstyle.Style/BlockDelimiters

com.puppycrawl.tools.checkstyle.Style/BlockDelimiters: Style/BlockDelimiters: Prefer `{...}` over `do...end` for functional blocks.
alias_method :id, :name
alias_method :name_tok, :name
end
Expand Down
Loading