Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/2] Fix some options for rocks
@ 2019-11-15 15:44 Leonid
  2019-11-15 15:44 ` [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search Leonid
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Leonid @ 2019-11-15 15:44 UTC (permalink / raw)
  To: alexander.turenko; +Cc: tarantool-patches

https://github.com/tarantool/tarantool/issues/3632
https://github.com/tarantool/tarantool/issues/4529
https://github.com/tarantool/tarantool/tree/lvasiliev/gh-4529-fix-show-all

Leonid (2):
  luarocks: add a kludge for option all of luarocks search
  luarocks: add a kludge for option force of luarocks remove

 extra/dist/tarantoolctl.in | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search
  2019-11-15 15:44 [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Leonid
@ 2019-11-15 15:44 ` Leonid
  2020-03-15 17:54   ` Vladislav Shpilevoy
  2019-11-15 15:44 ` [Tarantool-patches] [PATCH 2/2] luarocks: add a kludge for option force of luarocks remove Leonid
  2020-03-15 17:54 ` [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Vladislav Shpilevoy
  2 siblings, 1 reply; 6+ messages in thread
From: Leonid @ 2019-11-15 15:44 UTC (permalink / raw)
  To: alexander.turenko; +Cc: tarantool-patches

---
 extra/dist/tarantoolctl.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
index 6daf866ac..09302ea9c 100755
--- a/extra/dist/tarantoolctl.in
+++ b/extra/dist/tarantoolctl.in
@@ -937,6 +937,7 @@ local function rocks()
     local util = require("luarocks.util")
     local command_line = require("luarocks.cmd")
     local options = keyword_arguments
+
     local key = nil
     if options["only-server"] ~= nil then
         key = find_arg("only%-server")
@@ -945,6 +946,10 @@ local function rocks()
     end
     table.insert(positional_arguments, key)
 
+    if positional_arguments[1] == "search" and  find_arg("all") then
+        table.insert(positional_arguments, "--all")
+    end
+
     -- Tweak help messages
     util.see_help = function(command, program)
         -- TODO: print extended help message here
@@ -1400,6 +1405,7 @@ local function populate_arguments()
         { 'only-server', 'string'  },
         { 'server',      'string'  },
         { 'language',    'string'  },
+        { 'all',         'boolean' },
     })
 
     local cmd_name
-- 
2.17.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Tarantool-patches] [PATCH 2/2] luarocks: add a kludge for option force of luarocks remove
  2019-11-15 15:44 [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Leonid
  2019-11-15 15:44 ` [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search Leonid
@ 2019-11-15 15:44 ` Leonid
  2020-03-15 17:54 ` [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Vladislav Shpilevoy
  2 siblings, 0 replies; 6+ messages in thread
From: Leonid @ 2019-11-15 15:44 UTC (permalink / raw)
  To: alexander.turenko; +Cc: tarantool-patches

---
 extra/dist/tarantoolctl.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
index 09302ea9c..25c3fb1a2 100755
--- a/extra/dist/tarantoolctl.in
+++ b/extra/dist/tarantoolctl.in
@@ -950,6 +950,10 @@ local function rocks()
         table.insert(positional_arguments, "--all")
     end
 
+    if positional_arguments[1] == "remove" and  find_arg("force") then
+        table.insert(positional_arguments, "--force")
+    end
+
     -- Tweak help messages
     util.see_help = function(command, program)
         -- TODO: print extended help message here
@@ -1406,6 +1410,7 @@ local function populate_arguments()
         { 'server',      'string'  },
         { 'language',    'string'  },
         { 'all',         'boolean' },
+        { 'force',       'boolean' },
     })
 
     local cmd_name
-- 
2.17.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search
  2019-11-15 15:44 ` [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search Leonid
@ 2020-03-15 17:54   ` Vladislav Shpilevoy
  2020-03-16 11:58     ` Leonid Vasiliev
  0 siblings, 1 reply; 6+ messages in thread
From: Vladislav Shpilevoy @ 2020-03-15 17:54 UTC (permalink / raw)
  To: Leonid, alexander.turenko; +Cc: tarantool-patches

Thanks for the patch!

Please, provide a more detailed message of what and why was
done, exactly. And how to test it. And a docbot request, if
you change any publicly visible behaviour of a documented
module.

All the same for the second patch. If you will add a docbot
request, it is enough to make one for two commits.

Also, please, rebase the branch on the latest master.

See 2 comments below.

On 15/11/2019 16:44, Leonid wrote:
> ---
>  extra/dist/tarantoolctl.in | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
> index 6daf866ac..09302ea9c 100755
> --- a/extra/dist/tarantoolctl.in
> +++ b/extra/dist/tarantoolctl.in
> @@ -937,6 +937,7 @@ local function rocks()
>      local util = require("luarocks.util")
>      local command_line = require("luarocks.cmd")
>      local options = keyword_arguments
> +

1. Please, don't do stray changes not related to the issues.

>      local key = nil
>      if options["only-server"] ~= nil then
>          key = find_arg("only%-server")
> @@ -945,6 +946,10 @@ local function rocks()
>      end
>      table.insert(positional_arguments, key)
>  
> +    if positional_arguments[1] == "search" and  find_arg("all") then

2. Double whitespace after 'and'. The same in the next patch.

> +        table.insert(positional_arguments, "--all")
> +    end
> +
>      -- Tweak help messages
>      util.see_help = function(command, program)
>          -- TODO: print extended help message here
> @@ -1400,6 +1405,7 @@ local function populate_arguments()
>          { 'only-server', 'string'  },
>          { 'server',      'string'  },
>          { 'language',    'string'  },
> +        { 'all',         'boolean' },
>      })
>  
>      local cmd_name
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Tarantool-patches] [PATCH 0/2] Fix some options for rocks
  2019-11-15 15:44 [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Leonid
  2019-11-15 15:44 ` [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search Leonid
  2019-11-15 15:44 ` [Tarantool-patches] [PATCH 2/2] luarocks: add a kludge for option force of luarocks remove Leonid
@ 2020-03-15 17:54 ` Vladislav Shpilevoy
  2 siblings, 0 replies; 6+ messages in thread
From: Vladislav Shpilevoy @ 2020-03-15 17:54 UTC (permalink / raw)
  To: Leonid, alexander.turenko; +Cc: tarantool-patches

Hi! Thanks for the patch!

Please, provide a changelog record, and a patchset description.

On 15/11/2019 16:44, Leonid wrote:
> https://github.com/tarantool/tarantool/issues/3632
> https://github.com/tarantool/tarantool/issues/4529
> https://github.com/tarantool/tarantool/tree/lvasiliev/gh-4529-fix-show-all
> 
> Leonid (2):
>   luarocks: add a kludge for option all of luarocks search
>   luarocks: add a kludge for option force of luarocks remove
> 
>  extra/dist/tarantoolctl.in | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search
  2020-03-15 17:54   ` Vladislav Shpilevoy
@ 2020-03-16 11:58     ` Leonid Vasiliev
  0 siblings, 0 replies; 6+ messages in thread
From: Leonid Vasiliev @ 2020-03-16 11:58 UTC (permalink / raw)
  To: Vladislav Shpilevoy, alexander.turenko; +Cc: tarantool-patches

Hi. Thanks for the review!

On 3/15/20 8:54 PM, Vladislav Shpilevoy wrote:
> Thanks for the patch!
> 
> Please, provide a more detailed message of what and why was
> done, exactly. And how to test it. And a docbot request, if
> you change any publicly visible behaviour of a documented
> module.

Behavior has't been changed, just fixed.

> 
> All the same for the second patch. If you will add a docbot
> request, it is enough to make one for two commits.
> 
> Also, please, rebase the branch on the latest master.
> 

Done. See V2

> See 2 comments below.
> 
> On 15/11/2019 16:44, Leonid wrote:
>> ---
>>   extra/dist/tarantoolctl.in | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
>> index 6daf866ac..09302ea9c 100755
>> --- a/extra/dist/tarantoolctl.in
>> +++ b/extra/dist/tarantoolctl.in
>> @@ -937,6 +937,7 @@ local function rocks()
>>       local util = require("luarocks.util")
>>       local command_line = require("luarocks.cmd")
>>       local options = keyword_arguments
>> +
> 
> 1. Please, don't do stray changes not related to the issues.
> 
>>       local key = nil
>>       if options["only-server"] ~= nil then
>>           key = find_arg("only%-server")
>> @@ -945,6 +946,10 @@ local function rocks()
>>       end
>>       table.insert(positional_arguments, key)
>>   
>> +    if positional_arguments[1] == "search" and  find_arg("all") then
> 
> 2. Double whitespace after 'and'. The same in the next patch.
> 
>> +        table.insert(positional_arguments, "--all")
>> +    end
>> +
>>       -- Tweak help messages
>>       util.see_help = function(command, program)
>>           -- TODO: print extended help message here
>> @@ -1400,6 +1405,7 @@ local function populate_arguments()
>>           { 'only-server', 'string'  },
>>           { 'server',      'string'  },
>>           { 'language',    'string'  },
>> +        { 'all',         'boolean' },
>>       })
>>   
>>       local cmd_name
>>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-16 11:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 15:44 [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Leonid
2019-11-15 15:44 ` [Tarantool-patches] [PATCH 1/2] luarocks: add a kludge for option all of luarocks search Leonid
2020-03-15 17:54   ` Vladislav Shpilevoy
2020-03-16 11:58     ` Leonid Vasiliev
2019-11-15 15:44 ` [Tarantool-patches] [PATCH 2/2] luarocks: add a kludge for option force of luarocks remove Leonid
2020-03-15 17:54 ` [Tarantool-patches] [PATCH 0/2] Fix some options for rocks Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox