On 11 October 2013 03:41, Thijs Schreijer <[email protected]> wrote:
>> Uploaded! I only changed the "lua" dependencies line from "lua == 5.1,
>> 5.2" to "lua >= 5.1, <= 5.2"; the comma works as logical "and", not
>> "or".
>>
>> -- Hisham
>
> I don't get that (using LuaRocks 2.0.13);
>
> Using    "lua == 5.1, 5.2"
> C:\Users\Thijs\Dropbox\Lua projects\pe-parser>luarocks make
> Updating manifest for c:\users\public\lua\5.1//lib/luarocks/rocks
>
> pe-parser 0.1.0-1 is now built and installed in c:\users\public\lua\5.1/ 
> (license: MIT X11)

Strange.

> C:\Users\Thijs\Dropbox\Lua projects\pe-parser>
>
>
> Using    "lua ~> 5.3"
> C:\Users\Thijs\Dropbox\Lua projects\pe-parser>luarocks make
>
> Missing dependencies for pe-parser:
> lua ~> 5.3
>
>
> Error: Could not satisfy dependency: lua ~> 5.3
>
> C:\Users\Thijs\Dropbox\Lua projects\pe-parser>
>
>
> Using    "lua >= 5.1, <= 5.2"
> C:\Users\Thijs\Dropbox\Lua projects\pe-parser>luarocks make
> Updating manifest for c:\users\public\lua\5.1//lib/luarocks/rocks
>
> pe-parser 0.1.0-1 is now built and installed in c:\users\public\lua\5.1/ 
> (license: MIT X11)
>
> C:\Users\Thijs\Dropbox\Lua projects\pe-parser>
>
>
> I don't recall seeing any fixes/changes in this area (since LR 2.0.13), so is 
> this different from what you get on unix systems?

If it's the case, then we have a bug lurking somewhere. The
documentation doesn't explicitly say so but clearly implies that the
comma is an and-operator:

http://www.luarocks.org/en/Rockspec_format
"dependencies (array of strings) - Each string represents a package
this rock depends on, containing a package name followed by a
comma-separated list of constraints. Example: {"lfs >= 1.0, < 2.0"}.
Accepted operators are the relational operators of Lua: == ~= < > <=
>= , as well as a special operator, ~>, inspired by the "pessimistic
operator" of RubyGems ("~> 2" means ">= 2, < 3"; "~> 2.4" means ">=
2.4, < 2.5"). No operator means an implicit == (i.e., "lfs 1.0" is the
same as "lfs == 1.0"). "lua" is an special dependency name; it matches
not a rock, but the version of Lua in use. Supports per-platform
overrides."

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to