Remove parsing of long removed files in .PKGINFO

Message ID 20220102080759.427800-1-allan@archlinux.org
State Accepted, archived
Headers show
Series Remove parsing of long removed files in .PKGINFO | expand

Commit Message

Allan McRae Jan. 2, 2022, 8:07 a.m. UTC
These fields have not existed for many years.

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

Patch

diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index eeecb491..99826e15 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -244,10 +244,6 @@  static int parse_descfile(alpm_handle_t *handle, struct archive *a, alpm_pkg_t *
 				CALLOC(backup, 1, sizeof(alpm_backup_t), return -1);
 				STRDUP(backup->name, ptr, FREE(backup); return -1);
 				newpkg->backup = alpm_list_add(newpkg->backup, backup);
-			} else if(strcmp(key, "force") == 0) {
-				/* deprecated, skip it */
-			} else if(strcmp(key, "makepkgopt") == 0) {
-				/* not used atm */
 			} else {
 				_alpm_log(handle, ALPM_LOG_DEBUG, "%s: unknown key '%s' in description file line %d\n",
 									newpkg->name ? newpkg->name : "error", key, linenum);