Skip to content

Commit

Permalink
config: update for pkgcraft_config_repos_set() format arg change
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Jan 9, 2024
1 parent ca8289d commit 44a46f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/pkgcraft/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.release(ptr)
attach_function :pkgcraft_config_load, [Config], :pointer
attach_function :pkgcraft_config_load_portage_conf, [Config, :string], :pointer
attach_function :pkgcraft_config_repos, [Config, LenPtr.by_ref], :pointer
attach_function :pkgcraft_config_repos_set, [Config, :int], Pkgcraft::Repos::RepoSet
attach_function :pkgcraft_config_repos_set, [Config, :pointer], Pkgcraft::Repos::RepoSet
attach_function :pkgcraft_config_add_repo, [Config, :repo, :bool], :repo
attach_function :pkgcraft_config_add_repo_path, [Config, :string, :int, :string, :bool], :repo
end
Expand Down Expand Up @@ -110,12 +110,13 @@ def initialize(config)
end

def all
@all = C.pkgcraft_config_repos_set(@config, 0) if @all.nil?
@all = C.pkgcraft_config_repos_set(@config, nil) if @all.nil?
@all
end

def ebuild
@ebuild = C.pkgcraft_config_repos_set(@config, 1) if @ebuild.nil?
fmt = FFI::MemoryPointer.new(:pointer, 1)
@ebuild = C.pkgcraft_config_repos_set(@config, fmt) if @ebuild.nil?
@ebuild
end

Expand Down

0 comments on commit 44a46f7

Please sign in to comment.