Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
In pkg_suggest_arch(), use pkg_emit_developer_mode() so it is more clear this is a DEVELOPER_MODE notice
Bryan Drewery committed 13 years ago
commit 3359b5ae710b0992bf3ae433aeb341468117b8b7
parent 45e885e
1 file changed +10 -10
modified libpkg/pkg_elf.c
@@ -689,29 +689,29 @@ pkg_suggest_arch(struct pkg *pkg, const char *arch, bool isdefault)
	iswildcard = (strchr(arch, 'c') != NULL);

	if (iswildcard && isdefault)
-
		pkg_emit_error("Configuration error: arch \"%s\" cannot use "
-
		    "wildcards as default", arch);
+
		pkg_emit_developer_mode("Configuration error: arch \"%s\" "
+
		    "cannot use wildcards as default", arch);

	if (pkg->flags & (PKG_CONTAINS_ELF_OBJECTS|PKG_CONTAINS_STATIC_LIBS)) {
		if (iswildcard) {
			/* Definitely has to be arch specific */
-
			pkg_emit_error("Error: arch \"%s\" -- package installs "
-
			    "architecture specific files", arch);
+
			pkg_emit_developer_mode("Error: arch \"%s\" -- package "
+
			    "installs architecture specific files", arch);
		}
	} else {
		if (pkg->flags & PKG_CONTAINS_H_OR_LA) {
			if (iswildcard) {
				/* Could well be arch specific */
-
				pkg_emit_error("Warning: arch \"%s\" -- package"
-
				    " installs C/C++ headers or libtool "
-
				    "files,\n**** which are often architecture "
-
				    "specific", arch);
+
				pkg_emit_developer_mode("Warning: arch \"%s\" "
+
				    "-- package installs C/C++ headers or "
+
				    "libtool files,\n**** which are often "
+
				    "architecture specific", arch);
			}
		} else {
			/* Might be arch independent */
			if (!iswildcard)
-
				pkg_emit_error("Notice: arch \"%s\" -- no "
-
				    "architecture specific files found:\n"
+
				pkg_emit_developer_mode("Notice: arch \"%s\" -- "
+
				    "no architecture specific files found:\n"
				    "**** could this package use a wildcard "
				    "architecture?", arch);
		}