diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/manif.lua | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/luarocks/manif.lua b/src/luarocks/manif.lua index 6b42912d..9213f362 100644 --- a/src/luarocks/manif.lua +++ b/src/luarocks/manif.lua | |||
@@ -422,14 +422,10 @@ function manif.update_manifest(name, version, repo, deps_mode) | |||
422 | local manifest, err = manif_core.load_local_manifest(rocks_dir) | 422 | local manifest, err = manif_core.load_local_manifest(rocks_dir) |
423 | if not manifest then | 423 | if not manifest then |
424 | util.printerr("No existing manifest. Attempting to rebuild...") | 424 | util.printerr("No existing manifest. Attempting to rebuild...") |
425 | local ok, err = manif.make_manifest(rocks_dir, deps_mode) | 425 | -- Manifest built by `manif.make_manifest` should already |
426 | if not ok then | 426 | -- include information about given name and version, |
427 | return nil, err | 427 | -- no need to update it. |
428 | end | 428 | return manif.make_manifest(rocks_dir, deps_mode) |
429 | manifest, err = manif.load_manifest(rocks_dir) | ||
430 | if not manifest then | ||
431 | return nil, err | ||
432 | end | ||
433 | end | 429 | end |
434 | 430 | ||
435 | local results = {[name] = {[version] = {{arch = "installed", repo = rocks_dir}}}} | 431 | local results = {[name] = {[version] = {{arch = "installed", repo = rocks_dir}}}} |