Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix correctly reporting unknown keyword (fixes packages with @stopdaemon)
Baptiste Daroussin committed 13 years ago
commit a51badcd212127da3f863101b920ff2e2db6cea8
parent 1229dd5
1 file changed +2 -1
modified libpkg/pkg_ports.c
@@ -648,7 +648,7 @@ external_keyword(struct plist *plist, char *keyword, char *line)
		if (errno != ENOENT)
			pkg_emit_errno("Unable to open keyword definition", keyfile_path);

-
		return (EPKG_FATAL);
+
		return (EPKG_UNKNOWN);
	}

	yaml_parser_initialize(&parser);
@@ -788,6 +788,7 @@ ports_parse_plist(struct pkg *pkg, char *plist, const char *stage)
				break;
			case EPKG_FATAL:
				ret = EPKG_FATAL;
+
				break;
			}
		} else if ((len = strlen(plist_p)) > 0){
			if (sbuf_len(pplist.unexec_buf) > 0) {