[GSoC] migration

Rainer Müller raimue at macports.org
Wed Jun 14 10:28:54 UTC 2017

On 2017-06-14 05:47, Umesh Singla wrote:
>     > 4. Another thing that ran my mind while pondering that there are 2
>     options for sqlite database as well: make the tables in the very
>     beginning (while initial installation) or while running the snapshot
>     for the first time. I suggest to go with the first one because it's
>     simple.
>     > The major target is to finish the snapshot action before Jun 24.
>     Does “port selfupdate” constitute an “initial installation”?
> The way I went through macports1.0 -> selfupdate.tcl file, I don't see
> any such thing.
>     Does port currently perform schema checks?
> If there's sql.c -> update_db() function, then it should be called
> somewhere. I only see it at one place inside registry attach function
> which is not really relevant here. 

It is called every time the registry is opened, therefore there is
nothing special in selfupdate. The registry will be upgraded when the
newly installed port command is called for the first time (which already
happens during selfupdate).


More information about the macports-dev mailing list