diff options
author | Dan McGee <dan@archlinux.org> | 2011-05-02 16:25:47 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-05 12:10:51 -0500 |
commit | b14c5477e5e4483352d304a1e97de5922948b934 (patch) | |
tree | 83b9d854c9c214d697a0f816f006fa459f8b04de /lib/libalpm/be_local.c | |
parent | 8fd9037cfd8836db7dd35ba0e8825ba86c4e4688 (diff) | |
download | pacman-b14c5477e5e4483352d304a1e97de5922948b934.tar.xz |
Ensure populate error return codes are consistent
It must be -1 to differentiate it from a number of packages loaded
count.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_local.c')
-rw-r--r-- | lib/libalpm/be_local.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index edb62054..d5edf34c 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -384,7 +384,8 @@ static int local_db_populate(pmdb_t *db) dbpath = _alpm_db_path(db); if(dbpath == NULL) { - RET_ERR(PM_ERR_DB_OPEN, -1); + /* pm_errno set in _alpm_db_path() */ + return -1; } dbdir = opendir(dbpath); if(dbdir == NULL) { |