[pacman-dev] [PATCH] Ignore makedepend and checkdepend entries when parsing .PKGINFO file

Allan McRae allan at archlinux.org
Fri Nov 1 08:17:15 EDT 2013


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 lib/libalpm/be_package.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index 3f577ba..4e814f8 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -218,6 +218,10 @@ static int parse_descfile(alpm_handle_t *handle, struct archive *a, alpm_pkg_t *
 			} else if(strcmp(key, "optdepend") == 0) {
 				alpm_depend_t *optdep = _alpm_splitdep(ptr);
 				newpkg->optdepends = alpm_list_add(newpkg->optdepends, optdep);
+			} else if(strcmp(key, "makedepend") == 0) {
+				/* not used atm */
+			} else if(strcmp(key, "checkdepend") == 0) {
+				/* not used atm */
 			} else if(strcmp(key, "conflict") == 0) {
 				alpm_depend_t *conflict = _alpm_splitdep(ptr);
 				newpkg->conflicts = alpm_list_add(newpkg->conflicts, conflict);
-- 
1.8.4.2



More information about the pacman-dev mailing list