diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/manif/writer.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/luarocks/manif/writer.lua b/src/luarocks/manif/writer.lua index df971fca..daa6b005 100644 --- a/src/luarocks/manif/writer.lua +++ b/src/luarocks/manif/writer.lua | |||
| @@ -353,10 +353,10 @@ function writer.add_to_manifest(name, version, repo, deps_mode) | |||
| 353 | local manifest, err = manif.load_local_manifest(rocks_dir) | 353 | local manifest, err = manif.load_local_manifest(rocks_dir) |
| 354 | if not manifest then | 354 | if not manifest then |
| 355 | util.printerr("No existing manifest. Attempting to rebuild...") | 355 | util.printerr("No existing manifest. Attempting to rebuild...") |
| 356 | -- Manifest built by `manif.make_manifest` should already | 356 | -- Manifest built by `writer.make_manifest` should already |
| 357 | -- include information about given name and version, | 357 | -- include information about given name and version, |
| 358 | -- no need to update it. | 358 | -- no need to update it. |
| 359 | return manif.make_manifest(rocks_dir, deps_mode) | 359 | return writer.make_manifest(rocks_dir, deps_mode) |
| 360 | end | 360 | end |
| 361 | 361 | ||
| 362 | local results = {[name] = {[version] = {{arch = "installed", repo = rocks_dir}}}} | 362 | local results = {[name] = {[version] = {{arch = "installed", repo = rocks_dir}}}} |
| @@ -390,9 +390,9 @@ function writer.remove_from_manifest(name, version, repo, deps_mode) | |||
| 390 | local manifest, err = manif.load_local_manifest(rocks_dir) | 390 | local manifest, err = manif.load_local_manifest(rocks_dir) |
| 391 | if not manifest then | 391 | if not manifest then |
| 392 | util.printerr("No existing manifest. Attempting to rebuild...") | 392 | util.printerr("No existing manifest. Attempting to rebuild...") |
| 393 | -- Manifest built by `manif.make_manifest` should already | 393 | -- Manifest built by `writer.make_manifest` should already |
| 394 | -- include up-to-date information, no need to update it. | 394 | -- include up-to-date information, no need to update it. |
| 395 | return manif.make_manifest(rocks_dir, deps_mode) | 395 | return writer.make_manifest(rocks_dir, deps_mode) |
| 396 | end | 396 | end |
| 397 | 397 | ||
| 398 | local package_entry = manifest.repository[name] | 398 | local package_entry = manifest.repository[name] |
