Downgrade message from ERROR to NOTICE.
[oweals/opkg-lede.git] / libopkg / pkg_hash.c
index 2fc539ea88ec1411db51de3692114e648cfb5848..a7e3f52a5d34c3a8944010979e68c4adcc830e56 100644 (file)
@@ -105,10 +105,10 @@ pkg_hash_add_from_file(const char *file_name,
                        continue;
                }
 
-               if (!pkg->architecture) {
+               if (!pkg->architecture || !pkg->arch_priority) {
                        char *version_str = pkg_version_str_alloc(pkg);
-                       opkg_msg(ERROR, "Package %s version %s has no "
-                                       "architecture specified, ignoring.\n",
+                       opkg_msg(NOTICE, "Package %s version %s has no "
+                                       "valid architecture, ignoring.\n",
                                        pkg->name, version_str);
                        free(version_str);
                        continue;