author | drw <drw> | 2004-09-09 14:15:52 (UTC) |
---|---|---|
committer | drw <drw> | 2004-09-09 14:15:52 (UTC) |
commit | 317734f41201bf25fa3a1b38c2867bb9557053b9 (patch) (unidiff) | |
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 | 8 |
1 files changed, 5 insertions, 3 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 | |||
@@ -37,28 +37,30 @@ | |||
37 | 37 | ||
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | 39 | ||
40 | const QString IPKG_CONF = "/etc/ipkg.conf"; // Fully-qualified name of Ipkg primary configuration file | 40 | const QString IPKG_CONF = "/etc/ipkg.conf"; // Fully-qualified name of Ipkg primary configuration file |
41 | const QString IPKG_CONF_DIR = "/etc/ipkg"; // Directory of secondary Ipkg configuration files | 41 | const QString IPKG_CONF_DIR = "/etc/ipkg"; // Directory of secondary Ipkg configuration files |
42 | const QString IPKG_PKG_PATH = "/usr/lib/ipkg/lists"; // Directory containing server package lists | 42 | const QString IPKG_PKG_PATH = "/usr/lib/ipkg/lists"; // Directory containing server package lists |
43 | const QString IPKG_STATUS_PATH = "usr/lib/ipkg/status"; // Destination status file location | 43 | const QString IPKG_STATUS_PATH = "usr/lib/ipkg/status"; // Destination status file location |
44 | 44 | ||
45 | OIpkg *oipkg; | 45 | OIpkg *oipkg; |
46 | 46 | ||
47 | // Ipkg callback functions | 47 | // Ipkg callback functions |
48 | 48 | ||
49 | int fsignalIpkgMessage( ipkg_conf_t */*conf*/, message_level_t /*level*/, char *msg ) | 49 | int fsignalIpkgMessage( ipkg_conf_t *conf, message_level_t level, char *msg ) |
50 | { | 50 | { |
51 | oipkg->ipkgMessage( msg ); | 51 | if ( conf && ( conf->verbosity < level ) ) |
52 | return 0; | 52 | return 0; |
53 | else | ||
54 | oipkg->ipkgMessage( msg ); | ||
53 | } | 55 | } |
54 | 56 | ||
55 | char *fIpkgResponse( char */*question*/ ) | 57 | char *fIpkgResponse( char */*question*/ ) |
56 | { | 58 | { |
57 | return 0x0; | 59 | return 0x0; |
58 | } | 60 | } |
59 | 61 | ||
60 | int fIpkgStatus( char */*name*/, int /*status*/, char *desc, void */*userdata*/ ) | 62 | int fIpkgStatus( char */*name*/, int /*status*/, char *desc, void */*userdata*/ ) |
61 | { | 63 | { |
62 | oipkg->ipkgStatus( desc ); | 64 | oipkg->ipkgStatus( desc ); |
63 | return 0; | 65 | return 0; |
64 | } | 66 | } |