diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-12-26 08:46:21 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-12-26 08:46:44 +0200 |
commit | 32656aff47ab1cc214457f5294cdfcccf400de9b (patch) | |
tree | ca24a8fa77734a3ed0749286b90de34023dea52d | |
parent | 870149f01d7ddceed7382bcfa604649743a0fd9d (diff) | |
download | abuild-32656aff47ab1cc214457f5294cdfcccf400de9b.tar.gz abuild-32656aff47ab1cc214457f5294cdfcccf400de9b.tar.bz2 abuild-32656aff47ab1cc214457f5294cdfcccf400de9b.tar.xz abuild-32656aff47ab1cc214457f5294cdfcccf400de9b.zip |
apkbuild-gem-resolver: check package name also when version is specified
-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 |