[MacPorts] #55492: move: case-only renames fail when no arguments are given

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
#55492: move: case-only renames fail when no arguments are given
------------------------+------------------------
 Reporter:  ryandesign  |      Owner:  ryandesign
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.4.99
 Keywords:              |       Port:
------------------------+------------------------
 See https://lists.macports.org/pipermail/macports-
 dev/2017-December/036965.html

 In `proc move` we have an `options` variable, but if the caller didn't
 supply any arguments (e.g. didn't supply `-force`, which is the only
 recognized argument), then it's empty. But we still use the empty
 `options` variable when calling `file rename`, which then misinterprets it
 as the name of a file we want to move.

--
Ticket URL: <https://trac.macports.org/ticket/55492>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+------------------------
Changes (by ryandesign):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"acc1e62d8560609652977e563734f805c41244cf/macports-base"
 acc1e62d8560609652977e563734f805c41244cf/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="acc1e62d8560609652977e563734f805c41244cf"
 portutil.tcl: Fix case-only renames when no arguments given

 Closes: https://trac.macports.org/ticket/55492
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+------------------------

Comment (by ryandesign):

 In [changeset:"29d9709a183c9c8646e45e6ffb658329b73950ba/macports-base"
 29d9709a183c9c8646e45e6ffb658329b73950ba/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="29d9709a183c9c8646e45e6ffb658329b73950ba"
 portutil.tcl: Fix non-case-only renames

 Closes: https://trac.macports.org/ticket/55495
 See: https://trac.macports.org/ticket/55492
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+------------------------

Comment (by ryandesign):

 In [changeset:"db2bba84d5e8cd82ec94a19129deb91ef62287bb/macports-base"
 db2bba84d5e8cd82ec94a19129deb91ef62287bb/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="db2bba84d5e8cd82ec94a19129deb91ef62287bb"
 portutil.tcl: Fix renames that supply the -force option

 Treat $options as a list not as a string.

 See: https://trac.macports.org/ticket/55492
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+-----------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts Future
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+-----------------------------
Changes (by neverpanic):

 * milestone:   => MacPorts Future


--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.4.3
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------
Changes (by raimue):

 * milestone:  MacPorts Future => MacPorts 2.4.3


--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.4.3
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by ryandesign):

 In [changeset:"6b5f7905cb3173eb334236b38b18eab983d1cc92/macports-base"
 6b5f7905cb3173eb334236b38b18eab983d1cc92/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="6b5f7905cb3173eb334236b38b18eab983d1cc92"
 portutil.tcl: Fix case-only renames when no arguments given

 Closes: https://trac.macports.org/ticket/55492
 (cherry picked from commit acc1e62d8560609652977e563734f805c41244cf)
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.4.3
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by ryandesign):

 In [changeset:"a98fe3b89fba99f8bb873663f85a04831718583b/macports-base"
 a98fe3b89fba99f8bb873663f85a04831718583b/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="a98fe3b89fba99f8bb873663f85a04831718583b"
 portutil.tcl: Fix non-case-only renames

 Closes: https://trac.macports.org/ticket/55495
 See: https://trac.macports.org/ticket/55492
 (cherry picked from commit 29d9709a183c9c8646e45e6ffb658329b73950ba)
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55492: move: case-only renames fail when no arguments are given

MacPorts
In reply to this post by MacPorts
#55492: move: case-only renames fail when no arguments are given
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.4.3
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by ryandesign):

 In [changeset:"47d219119281a5f574ee6298c9e731293bca464e/macports-base"
 47d219119281a5f574ee6298c9e731293bca464e/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="47d219119281a5f574ee6298c9e731293bca464e"
 portutil.tcl: Fix renames that supply the -force option

 Treat $options as a list not as a string.

 See: https://trac.macports.org/ticket/55492
 (cherry picked from commit db2bba84d5e8cd82ec94a19129deb91ef62287bb)
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55492#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS