[GSoC] migration

Joshua Root jmr at macports.org
Tue Jul 11 18:58:50 UTC 2017


On 2017-7-12 04:43 , Umesh Singla wrote:
> Hi Brad,
> 
> While I was writing for restoring of ports, it seems that I need to 
> include another field 'active' along with ports while taking snapshot. 
> This might sound obvious now but it wasn't to me before I looked at what 
> is going on, closely. While there is something like 'active' port but 
> there's no such state as being 'inactive'.

You want the 'state' property, which is either 'imaged' for installed 
but inactive or 'installed' for active.

> This led me to a further research and I came across this in the 
> migration guide:
> 
> "Though it is now quite well-tested, the restore_ports script may fail 
> in some cases. One known issue is that the script will fail if there are 
> conflicting ports in the list. It's possible to have conflicting ports 
> installed provided at most one of the conflicting set is active. If the 
> script fails for this reason, you can delete one of the conflicting 
> ports..."
> 
> Do you think it can be solved by merely adding active field? What 
> possible conflicts is it talking about?

This is referring to a case such as having jpeg installed and inactive 
and mozjpeg installed and active. The ports themselves conflict.

- Josh


More information about the macports-dev mailing list