diff options
author | morganamilo <morganamilo@gmail.com> | 2018-10-09 03:05:15 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-10 05:04:59 +0100 |
commit | f9eb2aacb4655cce5faa8a2e7295a96cab91c68c (patch) | |
tree | 7741c8a66a4f2e0c1e94ce4d19707b17808e5c5d /lib/libalpm/be_sync.c | |
parent | 238fa4af4507c573ae4d478d1d7e176429d2c5c5 (diff) | |
download | pacman-f9eb2aacb4655cce5faa8a2e7295a96cab91c68c.tar.gz pacman-f9eb2aacb4655cce5faa8a2e7295a96cab91c68c.tar.xz |
libalpm: parse {check, make}depends when reading database
Commit 0994893b0e6b627d45a63884ac01af7d0967eff2 added the
alpm_pkg_get_{make,check}depends functions but forgot to include
logic for parsing these fields from the database. As a result these
functions will always return an empty list.
This commit adds the parsing logic.
Signed-off-by: morganamilo <morganamilo@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r-- | lib/libalpm/be_sync.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 4a4be548..deaec27c 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -700,17 +700,9 @@ static int sync_db_read(alpm_db_t *db, struct archive *archive, } else if(strcmp(line, "%OPTDEPENDS%") == 0) { READ_AND_SPLITDEP(pkg->optdepends); } else if(strcmp(line, "%MAKEDEPENDS%") == 0) { - /* currently unused */ - while(1) { - READ_NEXT(); - if(strlen(line) == 0) break; - } + READ_AND_SPLITDEP(pkg->makedepends); } else if(strcmp(line, "%CHECKDEPENDS%") == 0) { - /* currently unused */ - while(1) { - READ_NEXT(); - if(strlen(line) == 0) break; - } + READ_AND_SPLITDEP(pkg->checkdepends); } else if(strcmp(line, "%CONFLICTS%") == 0) { READ_AND_SPLITDEP(pkg->conflicts); } else if(strcmp(line, "%PROVIDES%") == 0) { |