Commit 32656aff authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

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

parent 870149f0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment