diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/repos.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua index 4610c734..8eecf8fd 100644 --- a/src/luarocks/repos.lua +++ b/src/luarocks/repos.lua | |||
| @@ -523,7 +523,14 @@ function repos.delete_version(name, version, deps_mode, quick) | |||
| 523 | assert(type(deps_mode) == "string") | 523 | assert(type(deps_mode) == "string") |
| 524 | 524 | ||
| 525 | local rock_manifest, load_err = manif.load_rock_manifest(name, version) | 525 | local rock_manifest, load_err = manif.load_rock_manifest(name, version) |
| 526 | if not rock_manifest then return nil, load_err end | 526 | if not rock_manifest then |
| 527 | if not quick then | ||
| 528 | local writer = require("luarocks.manif.writer") | ||
| 529 | writer.remove_from_manifest(name, version, nil, deps_mode) | ||
| 530 | return nil, "rock_manifest file not found for "..name.." "..version.." - removed entry from the manifest" | ||
| 531 | end | ||
| 532 | return nil, load_err | ||
| 533 | end | ||
| 527 | 534 | ||
| 528 | local repo = cfg.root_dir | 535 | local repo = cfg.root_dir |
| 529 | local renames = {} | 536 | local renames = {} |
