apkbuild-gem-resolver: check package name also when version is specified

This commit is contained in:
Kaarle Ritvanen 2014-12-26 08:46:21 +02:00
parent 870149f01d
commit 32656aff47

View File

@ -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