diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-09-23 12:14:58 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 12:14:58 -0300 |
commit | 0cf93c431c5ff251324c7f6b875d9d56feeb3cad (patch) | |
tree | 8c0cea6ebc0325a788a868b7835db9e95b8d02a3 /src | |
parent | f162d2ec3ca13d9e757db9dd6eb0f13979bac74b (diff) | |
download | luarocks-0cf93c431c5ff251324c7f6b875d9d56feeb3cad.tar.gz luarocks-0cf93c431c5ff251324c7f6b875d9d56feeb3cad.tar.bz2 luarocks-0cf93c431c5ff251324c7f6b875d9d56feeb3cad.zip |
Support --pin and --only-deps together (#1222)
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/build.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index f11edb6f..c410fbde 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua | |||
@@ -383,6 +383,9 @@ function build.build_rockspec(rockspec, opts) | |||
383 | 383 | ||
384 | local name, version = rockspec.name, rockspec.version | 384 | local name, version = rockspec.name, rockspec.version |
385 | if opts.build_only_deps then | 385 | if opts.build_only_deps then |
386 | if opts.pin then | ||
387 | deplocks.write_file() | ||
388 | end | ||
386 | return name, version | 389 | return name, version |
387 | end | 390 | end |
388 | 391 | ||