Revert "Fix a memleak involving lazy DB loading"
This doesn't quite work, as can be seen by the pactest results:
Total = 179
Pass = 108 ( 60.34%)
Expected Fail = 5 ( 2.79%)
Unexpected Pass = 0 ( 0.00%)
Fail = 66 ( 36.87%)
If you peek inside '_alpm_db_new' when it gets called for the sync
databases, the base dbpath is still at the default value, causing things
like pactest to fail miserably. We need some further work to do fully lazy
loading, and that belongs on master, not maint.
This reverts commit a2cd48960e
.
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
a2cd48960e
commit
bc24c002fe
1 changed files with 4 additions and 1 deletions
|
@ -749,8 +749,11 @@ static int _parseconfig(const char *file, const char *givensection,
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
/* if we are not looking at the options section, register a db */
|
/* if we are not looking at the options section, register a db and also
|
||||||
|
* ensure we have set all of our library paths as the library is too stupid
|
||||||
|
* at the moment to do lazy opening of the databases */
|
||||||
if(strcmp(section, "options") != 0) {
|
if(strcmp(section, "options") != 0) {
|
||||||
|
setlibpaths();
|
||||||
db = alpm_db_register_sync(section);
|
db = alpm_db_register_sync(section);
|
||||||
if(db == NULL) {
|
if(db == NULL) {
|
||||||
pm_printf(PM_LOG_ERROR, _("could not register '%s' database (%s)\n"),
|
pm_printf(PM_LOG_ERROR, _("could not register '%s' database (%s)\n"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue