diff options
-rw-r--r-- | apkbuild-gem-resolver.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apkbuild-gem-resolver.in b/apkbuild-gem-resolver.in index c981cdd..bd44e9f 100644 --- a/apkbuild-gem-resolver.in +++ b/apkbuild-gem-resolver.in @@ -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 |