summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* split libreport to a separate packageJiri Moskovcak2011-06-0846-7945/+14
|
* wizard: hook selection checkboxes to reporters.Denys Vlasenko2011-06-015-21/+120
| | | | | | | | | | | | | | | | | | | | | Checkboxes are controlled by the following elements in .xml: <requires-items> ITEM1,ITEM2 </requires-items> <exclude-items-by-default> ITEM1,ITEM2 </exclude-items-by-default> <exclude-items-always> ITEM1,ITEM2 </exclude-items-always> <exclude-binary-items> yes / no </exclude-binary-items> <include-items-by-default> ITEM1,ITEM2 </include-items-by-default> exclude-items-by-default and exclude-items-always can be "*" meaning "all". include-items-by-default specifies which items are included (checked) is exclude-items-by-default is "*". Else, all are checked by default. the set of iters NOT included is passed in $EXCLUDE_FROM_REPORT variable. bugzilla, kerneloops, mailx, print and rhtsupport are made aware of this variable. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* include/report/report.h: change API from having more functions to having ↵Denys Vlasenko2011-05-241-77/+26
| | | | | | | | | | | | | | | more flags Now we have three functions instead of four: int report_problem_in_dir(const char *dirname, int flags); int report_problem_in_memory(problem_data_t *pd, int flags); int report_problem(problem_data_t *pd); (third one is a trivial wrapper around report_problem_in_memory), and two new flags LIBREPORT_ANALYZE and LIBREPORT_RELOAD_DATA. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-action-bugzilla: fold make_description_comment into its only callsiteDenys Vlasenko2011-05-241-25/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* run_event: support VAR~=REGEX matchDenys Vlasenko2011-05-231-2/+37
| | | | | | | This makes in possible to configure analyze_xsession_errors to appear only for X-related stuff Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* run_event: add comment. No code changesDenys Vlasenko2011-05-231-0/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* assorted cleanups, memory leak fix (g_list_free in add_basics_to_problem_data)Denys Vlasenko2011-05-222-47/+41
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* more fixes to report C API (based on Denys's review)Jiri Moskovcak2011-05-202-72/+94
|
* Merge branch 'master' of git://git.fedorahosted.org/git/abrtJiri Moskovcak2011-05-191-7/+23
|\
| * dump_dir: fix loading of Unicode texts. Closes bz#622223Denys Vlasenko2011-05-191-7/+23
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | Merge branch 'master' of git://git.fedorahosted.org/git/abrtJiri Moskovcak2011-05-194-8/+145
|\|
| * move vector of pd's cod to cli, its only userDenys Vlasenko2011-05-191-8/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * reenable kernel taintNikola Pajkovsky2011-05-193-0/+145
| | | | | | | | | | | | | | | | abrt-dump-oops stores two new files into dump dir. kernel_tainted_short which is representation of kernel tainted value (P----T). kernel_tainted_long contains human readable strings of short version Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* | Merge branch 'master' of git://git.fedorahosted.org/git/abrtJiri Moskovcak2011-05-181-1/+1
|\|
* | report C API improvementsJiri Moskovcak2011-05-182-30/+164
|/
* run_event: explain pop_next_command, move free_rule_list inside it.Denys Vlasenko2011-05-171-4/+13
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* bigger WIDTH for usageNikola Pajkovsky2011-05-171-1/+1
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* add additional headers into abrt_post()Nikola Pajkovsky2011-05-172-9/+20
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* run_event.c: fix "EVENT=post-create component=mypkg doesn't work" bug. ↵Denys Vlasenko2011-05-171-234/+200
| | | | | | Closes bz#531365 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* smart_event.conf: suppress stray output of "which" commandDenys Vlasenko2011-05-172-5/+3
| | | | | | Also, fix some typos in comments Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removed accidentally pushed codeJiri Moskovcak2011-05-161-28/+0
|
* fixed copyright textJiri Moskovcak2011-05-161-2/+30
|
* fix the report API according to the reviewJiri Moskovcak2011-05-161-8/+17
|
* Merge branch 'master' into report_apiJiri Moskovcak2011-05-138-135/+201
|\
| * Merge branch 'bz/xmlrpc-c'Nikola Pajkovsky2011-05-124-126/+154
| |\ | | | | | | | | | | | | | | | | | | * bz/xmlrpc-c: remove c++ism from configure abrt-action-bugzilla.cpp -> src/plugins/abrt-action-bugzilla.c xmlrpc and bugzilla in a new C coat
| | * xmlrpc and bugzilla in a new C coatNikola Pajkovsky2011-05-124-126/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bugzilla is splitted into two parts. One of them is core of bugzilla and second one is small module called librhbz. I did it, because I want to add a new functionality into bugzilla and I don't want to squash it into one big module. Librhbz is not a part of our libreport, because almost every function dies when feels badly (print error msg and then die). Server sends error or abrt sends corrupted xml or server sends corrupted xml. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
| * | abrt_curl: add curl logging, active on -vv and -vvv levels. Closes bz#695744Denys Vlasenko2011-05-121-5/+43
| |/ | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * whitespace fixes. no code changesDenys Vlasenko2011-05-114-4/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | report api proposalJiri Moskovcak2011-05-132-1/+99
|/
* wizard: return control to analyze step if non-executed analyzers existDenys Vlasenko2011-05-101-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Add analyzer which collects /var/log/messages. Closes bz#565725Denys Vlasenko2011-05-101-4/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Do away with reanalyze eventsDenys Vlasenko2011-05-102-2/+11
| | | | | | | | Now code determines whether analyze event can be skipped by looking at <creates-elements>backtrace</creates-elements> element in .xml file. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: incorporate most of abrt-handle-crashdump functionalityDenys Vlasenko2011-05-041-5/+5
| | | | | | The only finction not included is -l[PFX] - list possible events. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move $ABRT_foo checking and setting into helper routines.Denys Vlasenko2011-05-042-4/+54
| | | | | | | I'm sick of fixing incorrect PROGNAME defines. Now g_progname is a variable and it is set from argv[0]. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Logger: output "END:" line to delimit appended reports. closes bz#698458Denys Vlasenko2011-04-284-181/+210
| | | | | | Also changes Bugzilla and abrt-cli output format. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* mass replace of crash_data with problem_dataDenys Vlasenko2011-04-236-50/+50
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* run_event: prevent infinite recursion in include directives in abrt_event.confDenys Vlasenko2011-04-211-5/+11
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* delete ugly parse_conf(), use load_abrt_conf() insteadDenys Vlasenko2011-04-206-78/+225
| | | | | | Therefore moved abrt_conf.* to libreport Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: simplify parsing of settings; remove remaining c++isms in daemonDenys Vlasenko2011-04-201-1/+2
| | | | | | | | This change will not compile, because in C++, void* cannot be automatically cast to char*. Next change renames Settings.cpp to *.c and fixes this. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: remove unused dbus calls and their support codeDenys Vlasenko2011-04-192-250/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* slightly more clear code for command line and environ escapingDenys Vlasenko2011-04-191-20/+34
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91Denys Vlasenko2011-04-181-19/+50
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* switch python and oops hashing to sha1Denys Vlasenko2011-04-185-607/+128
| | | | | | | Update sha1 code to a smaller version. Verified that ccpp hashing produces the same results as the old code. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* make <note-html> translatableJiri Moskovcak2011-04-171-3/+14
|
* make <name> in event xml description translatableJiri Moskovcak2011-04-171-4/+15
|
* Implement the possibility to add text labels to even config GUI. Closes #199.Denys Vlasenko2011-04-152-64/+78
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* wizard: implement long descriptionsDenys Vlasenko2011-04-142-7/+25
| | | | | | | | The change is somewhat big because I can no longer (ab)use tooltip to store event name. So I created a bit more generic method of remembering which events are shown and selected. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fixes for i18n in xml parserDenys Vlasenko2011-04-131-42/+55
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* send "User-Agent: ABRT/n.n.n" header in RHTS http transactionsDenys Vlasenko2011-04-081-0/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-action-print: add -r option which records reported_toDenys Vlasenko2011-04-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>