Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only use EPKG_XXX values that exist. Remove redundant else
Matthew Seaman committed 13 years ago
commit 449cab4bf935662aea907d7df66fc460fe88b936
parent d3b96c4
1 file changed +4 -4
modified pkg/search.c
@@ -141,10 +141,10 @@ exec_search(int argc, char **argv)
	pkgdb_close(db);

	if (!atleastone)
-
		ret = EPKG_ERROR;
-
	else
-
		if (ret == EPKG_END)
-
			ret = EPKG_OK;
+
		ret = EPKG_FATAL;
+

+
	if (ret == EPKG_END)
+
		ret = EPKG_OK;

	return ((ret == EPKG_OK) ? EX_OK : EX_SOFTWARE);
}