summaryrefslogtreecommitdiffstats
path: root/src/cli/CLI.cpp
Commit message (Collapse)AuthorAgeFilesLines
* abrt-gtk: make Delete key actually delete the dump dirDenys Vlasenko2011-02-101-12/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* get rid of FILENAME_DESCRIPTION, rename "release" to "os_release"Denys Vlasenko2011-02-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: suppress errors when we try to read dump dirs which aren't oursDenys Vlasenko2011-02-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ abrt-cli -lf Can't create lock file '/var/spool/abrt/ccpp-1296609283-15129/.lock': Permission denied Can't access '/var/spool/abrt/ccpp-1296609283-15129': Permission denied Can't create lock file '/var/spool/abrt/ccpp-1294848465-26639/.lock': Permission denied Can't access '/var/spool/abrt/ccpp-1294848465-26639': Permission denied Can't create lock file '/var/spool/abrt/ccpp-1294848466-26657/.lock': Permission denied Can't access '/var/spool/abrt/ccpp-1294848466-26657': Permission denied ^^^^^^^^^^^^^^^^^^^^ these messages 0. Crash dump : /home/test/.abrt/spool/ccpp-1296609283-15129.868047 UID : 0 Package : coreutils-8.4-10.fc13 Executable : /bin/sleep Crash Time : Wed 02 Feb 2011 02:14:43 AM CET Crash Count: 1 Hostname : dhcp-25-227.brq.redhat.com 1. Crash dump : /home/test/.abrt/spool/ccpp-1296609283-15129 UID : 0 Package : coreutils-8.4-10.fc13 Executable : /bin/sleep Crash Time : Wed 02 Feb 2011 02:14:43 AM CET Crash Count: 1 Hostname : dhcp-25-227.brq.redhat.com Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: delete half-copied dir on dir copy errorDenys Vlasenko2011-02-071-1/+14
| | | | | | Also, make -d DIR to try deletion itself before resorting to abrtd Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* cli: change user's abrt dir from $HOME/abrt to $HOME/.abrtDenys Vlasenko2011-02-031-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli -r DIR: copy non-writable DIR into $HOME/abrt/spoolDenys Vlasenko2011-02-011-8/+66
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: converted to process events locallyDenys Vlasenko2011-02-011-33/+101
| | | | | | Only -d DIR operation still goes through the daemon. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* preparatory changes for abrt-cli local processing changeDenys Vlasenko2011-01-271-111/+33
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add abrt_ prefixes to abrt-internal functions in libabrt.soDenys Vlasenko2010-12-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removal of C++isms from libabrt, part 1Denys Vlasenko2010-12-081-1/+0
| | | | | | | | | | | | | This patch converts libabrt usage of C++ map<string, string> to a glib-based container, GHashTable. It is typedef-ed to map_string_h. We can't typedef it to map_string_t, since other parts of ABRT (daemon, cli) still use that name for C++ container. Also, exceptions are removed everywhere. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* This patch changes crash data to use C structures.Denys Vlasenko2010-12-061-42/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The smallest data element is: struct crash_item { char *content; unsigned flags; }; where content is, eh, content, and flags is a bit flag field. crash_data_t is a map of crash_item's, implemented as a pointer to heap-allocated GHashTable. vector_of_crash_data_t is a vector of crash_data_t's, implemented as a pointer to heap-allocated GPtrArray. Most operations have light wrappers around them to hide the nature of the containers. For example, to free vector_of_crash_data, you need to use free_vector_of_crash_data(ptr) instead of open-coding g_ptr_array_free. The wrapper is thin. The goal is not so much to hide the implementation, but more to make it easier to use the correct function. dbus (un)marshalling functions convert crash_item to three-element array of strings, in order to keep compatibility with abrt-gui (python). This can be changed later to use native representation. crash_data_t and vector_of_crash_data_t are represented in "natural" way, no funny stuff there. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* preparatory patch: add -v to abrt-cli; remove unused func; make func staticDenys Vlasenko2010-12-031-2/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: dont die if message element is missing in the dump dirDenys Vlasenko2010-11-241-2/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove sqlite DBDenys Vlasenko2010-11-231-24/+15
| | | | | | | | | | | | | | | | | | | | | | This change removes sqlite database. Database was used to find dump dirs by [UID:]UUID. This patch uses more natural way: dump dirs are addressed by their directory names. DB was also used to produce a list of dump dirs. Now it is done by iterating over the /var/spool/abrt directory. And finally, DB was also used to find duplicate UUIDs. Now it is done by iterating over the /var/spool/abrt directory. Crash count, "inform all" and reporting result message are moved from DB field to a file in dump dir. "Reported" DB field is deleted - if message != "", then this dump was reported. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* trivial: remove unused option_index'sDenys Vlasenko2010-10-081-2/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* consolidate HAVE_CONFIG_H in abrtlib.hDenys Vlasenko2010-08-301-3/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli --info: Make coredump and rating fields optionalKarel Klic2010-08-191-5/+12
|
* *: move NLS include and #define _ to abrtlib.hDenys Vlasenko2010-08-171-12/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lower case direcotry(no code changed)Nikola Pajkovsky2010-08-101-0/+436
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>