From e815e81ba995d698ae8a238b132be2e52263c2ac Mon Sep 17 00:00:00 2001 From: Michal Toman Date: Fri, 6 May 2011 15:58:27 +0200 Subject: retrace server: fix running jobs regexp --- src/retrace/retrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/retrace/retrace.py b/src/retrace/retrace.py index b1568891..56bfd46e 100644 --- a/src/retrace/retrace.py +++ b/src/retrace/retrace.py @@ -21,7 +21,7 @@ PACKAGE_PARSER = re.compile("^(.+)-([0-9]+(\.[0-9]+)*-[0-9]+)\.([^-]+)$") DF_OUTPUT_PARSER = re.compile("^([^ ^\t]*)[ \t]+([0-9]+)[ \t]+([0-9]+)[ \t]+([0-9]+)[ \t]+([0-9]+%)[ \t]+(.*)$") DU_OUTPUT_PARSER = re.compile("^([0-9]+)") URL_PARSER = re.compile("^/([0-9]+)/?") -WORKER_RUNNING_PARSER = re.compile("^([0-9]+)[ \t]+[0-9]+[ \t]+([^ ^\t]+)[ \t]+.*abrt-retrace-worker ([0-9]+)$") +WORKER_RUNNING_PARSER = re.compile("^[ \t]*([0-9]+)[ \t]+[0-9]+[ \t]+([^ ^\t]+)[ \t]+.*abrt-retrace-worker ([0-9]+)$") HANDLE_ARCHIVE = { "application/x-xz-compressed-tar": { -- cgit From e4200116d227ac159d45d84bfbdbaf85d188c4bb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 6 May 2011 22:27:40 +0200 Subject: reinstated g_set_prgname("abrt") Signed-off-by: Denys Vlasenko --- src/applet/applet.c | 2 +- src/gui-gtk/main.c | 2 ++ src/gui-wizard-gtk/main.c | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/applet/applet.c b/src/applet/applet.c index e965a3ba..aff82841 100644 --- a/src/applet/applet.c +++ b/src/applet/applet.c @@ -221,7 +221,7 @@ int main(int argc, char** argv) /* Parse options */ int opt; - while ((opt = getopt(argc, argv, "dv")) != -1) + while ((opt = getopt(argc, argv, "v")) != -1) { switch (opt) { diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c index e9b175aa..39d9f7ec 100644 --- a/src/gui-gtk/main.c +++ b/src/gui-gtk/main.c @@ -204,6 +204,8 @@ int main(int argc, char **argv) * desktops which uses the name to find the corresponding .desktop file * trac#180 */ + g_set_prgname("abrt"); + gtk_init(&argc, &argv); /* Can't keep these strings/structs static: _() doesn't support that */ diff --git a/src/gui-wizard-gtk/main.c b/src/gui-wizard-gtk/main.c index d1341b4b..cdcf9e43 100644 --- a/src/gui-wizard-gtk/main.c +++ b/src/gui-wizard-gtk/main.c @@ -69,6 +69,12 @@ int main(int argc, char **argv) textdomain(PACKAGE); #endif + /* without this the name is set to argv[0] which confuses + * desktops which uses the name to find the corresponding .desktop file + * trac#180 + */ + g_set_prgname("abrt"); + gtk_init(&argc, &argv); /* Can't keep these strings/structs static: _() doesn't support that */ -- cgit