-rw-r--r-- | noncore/settings/packagemanager/oipkg.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/settings/packagemanager/oipkg.cpp b/noncore/settings/packagemanager/oipkg.cpp index eca5861..1978ad5 100644 --- a/noncore/settings/packagemanager/oipkg.cpp +++ b/noncore/settings/packagemanager/oipkg.cpp @@ -41,20 +41,22 @@ const QString IPKG_CONF = "/etc/ipkg.conf"; // Fully-qualified name const QString IPKG_CONF_DIR = "/etc/ipkg"; // Directory of secondary Ipkg configuration files const QString IPKG_PKG_PATH = "/usr/lib/ipkg/lists"; // Directory containing server package lists const QString IPKG_STATUS_PATH = "usr/lib/ipkg/status"; // Destination status file location OIpkg *oipkg; // Ipkg callback functions -int fsignalIpkgMessage( ipkg_conf_t */*conf*/, message_level_t /*level*/, char *msg ) +int fsignalIpkgMessage( ipkg_conf_t *conf, message_level_t level, char *msg ) { - oipkg->ipkgMessage( msg ); + if ( conf && ( conf->verbosity < level ) ) return 0; + else + oipkg->ipkgMessage( msg ); } char *fIpkgResponse( char */*question*/ ) { return 0x0; } int fIpkgStatus( char */*name*/, int /*status*/, char *desc, void */*userdata*/ ) |