[MacPorts] #16234: portindex should be atomic
#16234: portindex should be atomic -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Keywords: | -------------------------------------+-------------------------------------- The `portindex` script should work atomically -- it should replace the old PortIndex file with the new one in a single step. Currently `portindex` clears the PortIndex and starts rebuilding it. This means that while the `portindex` script is running, you really can't use MacPorts (for example to install other ports) because the PortIndex is incomplete until the script finishes. `portindex` should rebuild the PortIndex in a temporary file, and only move the temporary file over the real PortIndex once it's completely done. I initially [http://lists.macosforge.org/pipermail/macports- dev/2008-August/005886.html brought this up on macports-dev]. -- Ticket URL: <http://trac.macports.org/ticket/16234> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16234: portindex should be atomic --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by blb@macports.org): Simple patch attached; rename the PortIndex.regen if a better name (or safe temp-naming) is desired. -- Ticket URL: <http://trac.macports.org/ticket/16234#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16234: portindex should be atomic --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.7.0 Component: base | Version: 1.7.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * milestone: MacPorts base bugs => MacPorts 1.7.0 -- Ticket URL: <http://trac.macports.org/ticket/16234#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16234: portindex should be atomic --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.7.0 Component: base | Version: 1.7.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Comment(by ryandesign@macports.org): Let's use mktemp to make the temporary file in the tmp directory. -- Ticket URL: <http://trac.macports.org/ticket/16234#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16234: portindex should be atomic --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts 1.7.0 Component: base | Version: 1.7.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * owner: macports-tickets@lists.macosforge.org => ryandesign@macports.org * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/16234#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16234: portindex should be atomic --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts 1.7.0 Component: base | Version: 1.7.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Comment(by ryandesign@macports.org): Fixed in r41701. -- Ticket URL: <http://trac.macports.org/ticket/16234#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16234: portindex should be atomic --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.7.0 Component: base | Version: 1.7.0 Resolution: fixed | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * status: assigned => closed * resolution: => fixed Comment: Updated ChangeLog in r41702. -- Ticket URL: <http://trac.macports.org/ticket/16234#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts