Jiri Moskovcak jmoskovc@redhat.com writes:
On 05/22/2011 09:28 PM, Denys Vlasenko wrote:
On Fri, 2011-05-20 at 14:08 +0200, Jiri Moskovcak wrote:
I pushed the proposed changes,
add_basics_to_problem_data needs to g_list_free(list) the list of keys. I am going to push a fix.
the only thing which has left to fix is getting the component name (problem_data.c: 129). I need to ask rpm for it and there are few possible solution:
- call abrt-action-save-package-data
- $ rpm -qf executable
- use librpm
Suggestions?
I propose to add abrt-action-save-package-data call to reporters.
- ok, Nikola is working on adding this to bz plugin
Yep, working on it. Denys, Jiri, do you want to simple call SavePackageDescriptionToDebugDump or split that giant function into a small separate functions and be able call those small functions? Do you want to store it into dump dir?
Something like: static char *package_name_from_executable(const char *dump_dir_name, const char *executable, int remote)
static char *script_name_from_executable(const char *executable, const char *cmdline, int remote)