aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix luarocks.repos module mutationPeter Melnichenko2016-05-181-3/+2
| | | | Don't set repos.ok and repos.err
* Merge pull request #555 from robooo/masterPeter Melnichenko2016-05-172-2/+31
|\ | | | | Added tests for new install functionality
| * Added tests for new install functionalityroboo2016-05-172-2/+31
|/
* Refactor match_dep()Peter Melnichenko2016-05-161-31/+15
| | | | | | | | * Instead of applying blacklist and sorting versions in separate steps do a single pass over the list. * On success return just the version instead of {name = name, version = version} since rock name is stored inside dependency table already.
* Merge pull request #551 from mpeterv/new-outputHisham Muhammad2016-05-155-60/+63
|\ | | | | Change output and order of deps installation
| * Return missing deps listing in `luarocks install` outputPeter Melnichenko2016-05-141-4/+21
| |
| * Announce each missing dep before its installPeter Melnichenko2016-05-101-41/+31
| | | | | | | | | | | | Instead of lising all missing deps before installing all of them, announce each missing dep right before installing it. Also show current rock versions for missing deps.
| * Don't spam 'Updating manifest for...'Peter Melnichenko2016-05-101-2/+0
| | | | | | | | | | Installation success message is enough and is more important (what's a manifest and why users should care?)
| * Use same messages for installing binary and source rocksPeter Melnichenko2016-05-103-18/+16
| | | | | | | | | | | | | | Move successful installation announcement into an util function. Don't print that the rock was "built": sometimes there is nothing to build (pure Lua rocks), and for C rocks compilation commands are printed already.
| * Shorten logging for `luarocks install`Peter Melnichenko2016-05-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of mentioning URL twice in Installing URL... Using URL... switching to 'build' mode simply print Installing URL and don't print URL at all when it's the argument to `luarocks install` (it's a bit redundant), only when it's a result of a search.
* | Merge pull request #552 from mpeterv/install-forcePeter Melnichenko2016-05-141-1/+1
|\ \ | | | | | | Allow passing --force to `luarocks install` in all cases
| * | Allow passing --force and --force-fast to `luarocks install` in all casesPeter Melnichenko2016-05-101-1/+1
|/ / | | | | | | | | | | | | When installing an old version of a rock that breaks existing dependencies, removing previously installed version fails, and --force is suggested. However, when installing using a rockspec or a source rock --force and --force-fast are not forwarded to build command.
* | Rename broken --force=fast to --force-fastPeter Melnichenko2016-05-107-11/+13
| |
* | Refactor check_outdated() to avoid loops with unconditional breaksPeter Melnichenko2016-05-101-15/+7
| |
* | Fix `luarocks list --outdated`Peter Melnichenko2016-05-101-1/+1
| | | | | | | | | | Compare latest available version with latest installed version, not with lexicographically smallest installed version.
* | Fix some typos in messagesPeter Melnichenko2016-05-102-2/+2
|/
* Fix some luacheck warnings in install.batPeter Melnichenko2016-05-081-6/+3
|
* Merge pull request #549 from keplerproject/permissionsHisham Muhammad2016-05-0710-40/+60
|\ | | | | Set permissions explicitly when copying or moving files.
| * Set permissions explicitly when copying or moving files.Hisham2016-05-0310-40/+60
|/
* Shorten code a bit.Hisham2016-05-031-7/+1
|
* Feature-test rather than version-testHisham2016-05-031-4/+2
|
* Merge pull request #504 from Alloyed/fix-temp-filesHisham Muhammad2016-05-035-21/+55
|\ | | | | Use mkstemp()/mkdtemp() where available
| * Use mkdtemp() where availableKyle McLamb2016-03-275-21/+55
| |
* | Merge pull request #524 from mpeterv/better-suitable-rock-errHisham Muhammad2016-05-035-23/+95
|\ \ | | | | | | Show supported Lua versions on fail in search.find_suitable_rock
| * | Show if rock is supported on other Lua versions on search failmpeterv2016-04-193-19/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Supporting changes: * Change structure of manifest cache: map from repo_url to tables mapping from lua versions to manifests. * New manif_core cache_manifest and get_cached_manifest functions to hide cache implementation. * lua_version optional argument for functions between search.find_suitable_rock and manifest loader. Main changes: * Add a helper function supported_lua_versions that checks which Lua versions can satisfy a query. * Use this helper function when a search for a rock failed, in search.find_suitable_rock, if constraints can be satisfied under a different Lua version mention that in the error message. Examples of error messages: * Constraint "sailor": "sailor supports only Lua 5.1 and Lua 5.2 but not Lua 5.3." * Constraint "sailor 0.5": "sailor 0.5 supports only Lua 5.1 and Lua 5.2 but not Lua 5.3." * Constraint "sailor >= 0.5": "Matching sailor versions support only Lua 5.1 and Lua 5.2 but not Lua 5.3."
| * | Show search error in functions using find_suitable_rockmpeterv2016-04-193-4/+7
| | |
* | | Merge pull request #543 from ryanplusplus/SupportTreeArgumentForPathCommandHisham Muhammad2016-05-034-4/+12
|\ \ \ | |/ / |/| | Add support for the --tree argument to the path command
| * | Add support for the --tree argument to the path commandRyan Hartlage2016-04-184-4/+12
|/ /
* | Merge pull request #541 from BranescuMihai/masterHisham Muhammad2016-04-181-1/+9
|\ \ | | | | | | New tests for the luaRocks test suite.
| * | A number of tests for the luaRocks test suite.Mihai Branescu2016-04-101-1/+9
| | |
* | | Merge pull request #537 from mpeterv/silent-missing-manifHisham Muhammad2016-04-183-8/+10
|\ \ \ | | | | | | | | Don't report missing manifests in 'luarocks list'
| * | | Don't report missing manifests in 'luarocks list'mpeterv2016-04-073-8/+10
| |/ /
* | | Update LuaCovmpeterv2016-04-181-1/+1
| | |
* | | Update LuaSecHisham2016-04-181-1/+1
| | |
* | | Merge pull request #497 from mpeterv/fix-unpack-archiveHisham Muhammad2016-04-141-3/+9
|\ \ \ | | | | | | | | Fix loud archive unpacking
| * | | Fix loud archive unpackingmpeterv2016-04-141-3/+9
|/ / / | | | | | | | | | | | | | | | In luarocks.fs.unix.tools.unpack_archive execute commands in quiet mode (that is, silenced by default, but not with --verbose), like in luarocks.fs.unzip and luarocks.fs.win32.tools.unpack_archive.
* / / Quote archive name when unpackingmpeterv2016-04-141-2/+2
|/ / | | | | | | Also use vars.TAR instead of literal "tar" when unpacking .tar.bz2
* | Merge pull request #533 from mpeterv/fix-get-registryPeter Melnichenko2016-04-031-1/+1
|\ \ | |/ |/| install.bat: fix Wow6432Node substitution
| * install.bat: fix Wow6432Node substitutionmpeterv2016-04-031-1/+1
|/
* Merge pull request #527 from camoy/masterHisham Muhammad2016-03-231-0/+10
|\ | | | | Add tests for more flags
| * Add tests for more flagsCameron Moy2016-03-221-0/+10
| |
* | Merge pull request #499 from mpeterv/show-constraintsHisham Muhammad2016-03-231-3/+31
|\ \ | |/ |/| Show dependency constraints in `luarocks show`
| * luarocks show: split direct and indirect depsmpeterv2016-03-221-2/+28
| | | | | | | | | | Additionally show constraints for direct deps and versions used for all deps.
| * luarocks show: print modules and deps sortedmpeterv2016-03-221-1/+3
| | | | | | | | Affects order when --modules and --deps flags are used.
* | Merge pull request #525 from bhattigurjot/masterHisham Muhammad2016-03-211-0/+6
|\| | | | | Add tests for command_line
| * Add few more tests for command_linebhattigurjot2016-03-211-1/+5
| |
| * Add tests for command_linebhattigurjot2016-03-211-0/+2
|/
* Fix stat error on `luarocks download <provided rock> --all`mpeterv2016-03-201-9/+14
|
* Refactor download.downloadmpeterv2016-03-201-18/+13
| | | | search.find_suitable_rock now can't return a table.
* Don't handle multiple rock queries in find_suitable_rockmpeterv2016-03-203-36/+25
| | | | | | In practice search.find_suitable_rock is always called with a precise query (no fuzzy name matching), and not all callers handle table as return value correctly.