[MacPorts] #17615: Only convert receipts if it's actually needed
#17615: Only convert receipts if it's actually needed ------------------------------+--------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts base enhancements Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- In Mk/macports.upgrade.mk, we currently run sed on every receipt to replace db/dports with macports, and create a .mpsaved backup regardless of whether anything was replaced. It would be nice if we only did this when it's needed. -- Ticket URL: <http://trac.macports.org/ticket/17615> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17615: Only convert receipts if it's actually needed ------------------------------+--------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts base enhancements Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- Comment(by blb@…): Should we just test for ${prefix}/var/macports/.mprename or use something else? -- Ticket URL: <http://trac.macports.org/ticket/17615#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17615: Only convert receipts if it's actually needed ------------------------------+--------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- Comment(by jmpp@…): Replying to [ticket:17615 jmr@…]:
In Mk/macports.upgrade.mk, we currently run sed on every receipt to replace db/dports with macports, and create a .mpsaved backup regardless of whether anything was replaced. It would be nice if we only did this when it's needed.
This would certainly be an enhancement to my upgrade code. I guess you've seen that, when reinstalling even freshly new MacPorts sources, the upgrade code taps into the receipts of newly installed ports, which of course have no need of being upgraded from the dp namespace. This should not happen, period, so performing an extra check to determine the necessity of the upgrade is definitely advisable. Maybe grep'ping first for dp/dports per receipt and examining the exit value...? However, please notice my recent ticket #17619 in the 1.8.0 milestone, in which I request considering the removal of the dp2mp upgrade code altogether, now that we are well into the lifespan of the MacPorts namespace. -jmpp -- Ticket URL: <http://trac.macports.org/ticket/17615#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17615: Only convert receipts if it's actually needed -------------------------------+-------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.0 Resolution: duplicate | Keywords: Port: | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => duplicate Comment: Let's just nuke the upgrade code as per #17619. -- Ticket URL: <http://trac.macports.org/ticket/17615#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts