aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-10-29Adjust changes by @mpeterv in #638 to new locations.Hisham2-67/+126
2016-10-29Move admin commands to luarocks.admin.cmd.*; fix references to modules.Hisham10-35/+36
2016-10-29This doesn't produce an error, only a warning.Hisham1-1/+2
2016-10-29Improve performance of manif_core.get_versionsPeter Melnichenko1-11/+10
To get all installed versions of a package using deps_mode, instead of deeply merging all manifests of corresponding trees, shallowly merge only tables related to that package. This affects speed of manifest manipulation and dependency resolution. Minimal performance testing suggests 3x-4x speed-up on reinstallation of a package using `luarocks make`.
2016-10-28Keep only command driver functions in luarocks.cmdHisham5-1086/+36
2016-10-28Keep only functions shared among commandsHisham5-312/+9
2016-10-28Move files that will live in base dir back.Hisham19-1896/+0
2016-10-28Duplicate files to preserve git-blameHisham38-0/+3286
2016-10-28Update manifest after removal without rebuildingPeter Melnichenko2-9/+84
Rename `manif.update_manifest` to `manif.add_to_manifest`. Add `manif.remove_from_manifest` that performs reverse action. Use it in `repos.delete_version` to avoid rebuilding manifest everytime a package is removed.
2016-10-28manif.update_manifest: do not update manifest if rebuiltPeter Melnichenko1-8/+4
2016-10-28manif.update_manifest: load manifest as localPeter Melnichenko1-1/+1
2016-10-28Rename a variable in manif.update_manifestPeter Melnichenko1-6/+6
`repo` sometimes means root dir and sometimes means rock dir. At least do not reuse the same variable for both.
2016-10-28Refactor store_results in luarocks.manif (2)Peter Melnichenko1-21/+8
Do not accept a hook function to call after storing results. Simply call it on the outside after calling store_results.
2016-10-28Refactor store_results in luarocks.manifPeter Melnichenko1-22/+22
Instead of passing a function and its arguments to a helper function for it to call it, make a copy of result, and return it, call the function on the outer level and pass the result to helper.
2016-10-28Prefer versioned Lua interpreter if it exists.Hisham1-1/+1
This avoids in practice a problem that occurs in this scenario: 1. user installs Lua 5.1, gets lua and lua5.1 binaries 2. user installs LuaRocks, it detects and uses lua 3. user installs Lua 5.2, gets lua and lua5.2 binaries (lua is replaced) 4. user installs LuaRocks with --lua-version=5.2, it detects and uses lua 5. luarocks-5.1 now uses lua, which is Lua 5.2, rockspecs get passed the wrong value of $(LUA)
2016-10-28Fix absolute path detection on WindowsPeter Melnichenko1-8/+31
Do not use "^[%.a-zA-Z]?:?[\\/]" as a pattern when checking if a path is absolute on Windows. Check if there is a directory separator after an optional drive letter instead.
2016-10-28Add test for #632.Hisham1-0/+13
2016-10-28Fix merge.Hisham1-1/+0
2016-10-28Refactor windows argument quoting functionsPeter Melnichenko1-21/+9
Use string replacements instead of functions in calls to gsub.
2016-10-28Move Unix-specific fs.Q implementation into luarocks.fs.unixPeter Melnichenko2-11/+9