diff options
| author | Karel Klic <kklic@redhat.com> | 2010-08-19 11:11:58 +0200 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2010-08-19 11:11:58 +0200 |
| commit | d6f6a7a98b83de0d0aa3792fb187b66d9d15953d (patch) | |
| tree | 3f88861519c32e3180d506507f1de3f8e34dfe45 /lib/plugins/RHTSupport.cpp | |
| parent | 8b22e91dc2ac3e73d628486c91f83da5a0e5ec44 (diff) | |
| parent | 96071530ea85635cf87a6bf650b7f5ddbd219f44 (diff) | |
| download | abrt-d6f6a7a98b83de0d0aa3792fb187b66d9d15953d.tar.gz abrt-d6f6a7a98b83de0d0aa3792fb187b66d9d15953d.tar.xz abrt-d6f6a7a98b83de0d0aa3792fb187b66d9d15953d.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/plugins/RHTSupport.cpp')
| -rw-r--r-- | lib/plugins/RHTSupport.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/plugins/RHTSupport.cpp b/lib/plugins/RHTSupport.cpp index f056056d..d13ff467 100644 --- a/lib/plugins/RHTSupport.cpp +++ b/lib/plugins/RHTSupport.cpp @@ -18,6 +18,9 @@ */ #define _GNU_SOURCE 1 /* for stpcpy */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif #include <libtar.h> #include "abrtlib.h" #include "abrt_curl.h" @@ -28,9 +31,6 @@ #include "comm_layer_inner.h" #include "RHTSupport.h" #include "strbuf.h" -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif using namespace std; @@ -110,6 +110,9 @@ string CReporterRHticket::Report(const map_crash_data_t& pCrashData, const map_plugin_settings_t& pSettings, const char *pArgs) { + /* Gzipping e.g. 0.5gig coredump takes a while. Let client know what we are doing */ + update_client(_("Compressing data")); + string retval; map_plugin_settings_t::const_iterator end = pSettings.end(); @@ -311,9 +314,9 @@ void CReporterRHticket::SetSettings(const map_plugin_settings_t& pSettings) /* Should not be deleted (why?) */ const map_plugin_settings_t& CReporterRHticket::GetSettings() { - m_pSettings["URL"] = m_strata_url; - m_pSettings["Login"] = m_login; - m_pSettings["Password"] = m_password; + m_pSettings["URL"] = (m_strata_url)? m_strata_url: ""; + m_pSettings["Login"] = (m_login)? m_login: ""; + m_pSettings["Password"] = (m_password)? m_password: ""; m_pSettings["SSLVerify"] = m_ssl_verify ? "yes" : "no"; return m_pSettings; |
