diff options
author | Allan McRae <allan@archlinux.org> | 2012-06-07 16:21:05 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-06-25 23:08:15 -0500 |
commit | e253968b4df079faf91266639be1b8b2cff6e2b5 (patch) | |
tree | a62b47f13c653fe908e929ff8f1b3c9a5abbf104 /lib | |
parent | 81dd6ddf0cdd4034771828529c65d61e5bc94e5d (diff) |
repo-add: add checkdepends information
Similar to the case for makedepends, it is useful to be able to
access this information without parsing a PKGBUILD.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/be_sync.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 29ef1900..2abd3e69 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -597,6 +597,12 @@ static int sync_db_read(alpm_db_t *db, struct archive *archive, READ_NEXT(); if(strlen(line) == 0) break; } + } else if(strcmp(line, "%CHECKDEPENDS%") == 0) { + /* currently unused */ + while(1) { + READ_NEXT(); + if(strlen(line) == 0) break; + } } else if(strcmp(line, "%CONFLICTS%") == 0) { READ_AND_SPLITDEP(pkg->conflicts); } else if(strcmp(line, "%PROVIDES%") == 0) { |