Compare verbosity to a message_level_t.
[oweals/opkg-lede.git] / libopkg / pkg_hash.c
index a445839a9f391d7543919de690b572f8ad153575..62e6f0acdda5212ff816eeb1da37d5bbab9c2c54 100644 (file)
@@ -325,7 +325,7 @@ pkg_t *pkg_hash_fetch_best_installation_candidate(opkg_conf_t *conf, abstract_pk
           
           }
 
           
           }
 
-     if (matching_apkgs->len > 1 && conf->verbosity > 1) {
+     if (conf->verbosity >= OPKG_NOTICE && matching_apkgs->len > 1) {
          opkg_message(conf, OPKG_NOTICE, "%s: for apkg=%s, %d matching pkgs\n",
                       __FUNCTION__, apkg->name, matching_pkgs->len);
          for (i = 0; i < matching_pkgs->len; i++) {
          opkg_message(conf, OPKG_NOTICE, "%s: for apkg=%s, %d matching pkgs\n",
                       __FUNCTION__, apkg->name, matching_pkgs->len);
          for (i = 0; i < matching_pkgs->len; i++) {