mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-10 16:49:48 +00:00
apkbuild-gem-resolver: check package name also when version is specified
This commit is contained in:
parent
870149f01d
commit
32656aff47
@ -69,7 +69,9 @@ class Aport
|
||||
end
|
||||
|
||||
def self.get name
|
||||
@@aports[name]
|
||||
aport = @@aports[name]
|
||||
raise 'Invalid package name: ' + name unless aport
|
||||
aport
|
||||
end
|
||||
|
||||
def self.ruby_subpkgs
|
||||
@ -140,9 +142,7 @@ class Update
|
||||
end
|
||||
|
||||
def require_version name, version
|
||||
aport = Aport.get name
|
||||
raise 'Invalid package name: ' + name unless aport
|
||||
gem = assign(aport.gem, name)
|
||||
gem = assign(Aport.get(name).gem, name)
|
||||
@deps << gem.dependency if gem.require_version version
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user