author | drw <drw> | 2004-09-09 14:15:52 (UTC) |
---|---|---|
committer | drw <drw> | 2004-09-09 14:15:52 (UTC) |
commit | 317734f41201bf25fa3a1b38c2867bb9557053b9 (patch) (side-by-side diff) | |
tree | 7ce5e9d735483415f42b15ae6939e37e8fc35a0c | |
parent | 4e798036b423bcb8800f125357591e48b84594c8 (diff) | |
download | opie-317734f41201bf25fa3a1b38c2867bb9557053b9.zip opie-317734f41201bf25fa3a1b38c2867bb9557053b9.tar.gz opie-317734f41201bf25fa3a1b38c2867bb9557053b9.tar.bz2 |
Fix for too much verbosity while performing ipkg functions. Thanks to Seb for fix
-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 @@ -25,52 +25,54 @@ -- :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "oipkg.h" #include <qdir.h> #include <qfile.h> #include <qtextstream.h> #include <stdlib.h> const QString IPKG_CONF = "/etc/ipkg.conf"; // Fully-qualified name of Ipkg primary configuration file 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*/ ) { oipkg->ipkgStatus( desc ); return 0; } int fIpkgFiles( char */*name*/, char *desc, char */*version*/, pkg_state_status_t /*status*/, void */*userdata*/ ) { oipkg->ipkgList( desc ); return 0; } OIpkg::OIpkg( Config *config, QObject *parent, const char *name ) : QObject( parent, name ) , m_config( config ) , m_confInfo( NULL ) |