<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><font face="arial, helvetica, sans-serif">Hi Brad,</font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif">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'.</font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif">This led me to a further research and I came across this in the migration guide:</font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0)">"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..."</span><br></font></div><div class="gmail_quote"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">Do you think it can be solved by merely adding active field? What possible conflicts is it talking about?</font></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">The example I went through is installing of vim. I ran:</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><b>port install vim -huge +tiny +x11</b> -> this is active now</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">followed by,</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><b>port install vim -huge +tiny</b> -> now this becomes active and previous one deactivated (different ports, therefore). Of course, both are requested = True.</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">So, in the snapshot database, it is:</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">ports:</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">id      snapshot_id  portname  req</font></div><div class="gmail_quote">







<p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1">







</span></p><p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1">2540<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>104 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">          </span>vim <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>1         ...</span></p><p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1">2593<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>104 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">          </span>vim <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>1</span></p></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">with variants stored as:</font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif">id            port_id          variant    sign</font></div><div class="gmail_quote">







<p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1"><font face="arial, helvetica, sans-serif">242 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>2540 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">              </span>tiny<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">         </span>+<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">           </span></font></span></p>
<p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1"><font face="arial, helvetica, sans-serif">243 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>2540 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">              </span>x11 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>+<span class="gmail-m_1906261118756340718gmail-Apple-converted-space"> </span></font></span></p><p class="gmail-m_1906261118756340718gmail-p1"><span style="font-family:arial,helvetica,sans-serif">244 </span><span class="gmail-m_1906261118756340718gmail-Apple-converted-space" style="font-family:arial,helvetica,sans-serif">        </span><span style="font-family:arial,helvetica,sans-serif">2540 </span><span class="gmail-m_1906261118756340718gmail-Apple-converted-space" style="font-family:arial,helvetica,sans-serif">              </span><span style="font-family:arial,helvetica,sans-serif">huge</span><span class="gmail-m_1906261118756340718gmail-Apple-converted-space" style="font-family:arial,helvetica,sans-serif">       </span><span style="font-family:arial,helvetica,sans-serif">-</span><span class="gmail-m_1906261118756340718gmail-Apple-converted-space" style="font-family:arial,helvetica,sans-serif">           ...</span></p>
<p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1"><font face="arial, helvetica, sans-serif">250 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>2593 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">              </span>tiny<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">         </span>+<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">           </span></font></span></p>
<p class="gmail-m_1906261118756340718gmail-p1"><span class="gmail-m_1906261118756340718gmail-s1"><font face="arial, helvetica, sans-serif">251 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">        </span>2593 <span class="gmail-m_1906261118756340718gmail-Apple-converted-space">              </span>huge<span class="gmail-m_1906261118756340718gmail-Apple-converted-space">       </span>-<span class="gmail-m_1906261118756340718gmail-Apple-converted-space"> </span></font></span></p></div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote">Reproducing the install commands for these two, is that a conflict? I used reg_entry_imaged which doesn't give info on a port being active. Probably, I should use a combination of reg_entry_installed and reg_entry_imaged OR registry::installed which is more straightforward and serves my purpose. Can you help me with the next step here?</div><div class="gmail_quote"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif">Regards,</font></div><div class="gmail-m_1906261118756340718gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif">Umesh Singla</font></div></div>
</div></div>