On 29/01/11 14:51, Xyne wrote:
Dan McGee wrote:
There is rarely a reason to ever not set up the local DB when getting a libalpm handle, so just do it automatically at this time. It is still a lazy initialization anyway, so there should be little to no fallout from doing it this way.
I'm concerned about the uncertainty of "little to no fallout". What exactly does the "lazy" initialization do? Does it in any way rely on the presence of a local database?
The lazy initialisation means that nothing is actually loaded when registering the local database. The local database is only read in as needed and only the parts that are needed are read in. In fact, all that is done registering the local database is creating a pmdb_t srtuct and assigning the local database operation struct to it. That is the "little to no fallout" if you do not use the local database. Allan