[MacPorts] #17615: Only convert receipts if it's actually needed
MacPorts
noreply at macports.org
Sun Dec 14 12:25:59 PST 2008
#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
More information about the macports-tickets
mailing list