[ostree/wip/ostbuild-v2] triggers: Print name of each trigger we're running
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree/wip/ostbuild-v2] triggers: Print name of each trigger we're running
- Date: Thu, 3 May 2012 17:27:38 +0000 (UTC)
commit de5cb92ac5ba539aa35c46c0f4f2ff57049dbae9
Author: Colin Walters <walters verbum org>
Date: Thu May 3 08:49:29 2012 -0400
triggers: Print name of each trigger we're running
src/triggers/ostree-run-triggers.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/triggers/ostree-run-triggers.c b/src/triggers/ostree-run-triggers.c
index 6662c2e..bf3df47 100644
--- a/src/triggers/ostree-run-triggers.c
+++ b/src/triggers/ostree-run-triggers.c
@@ -171,11 +171,18 @@ run_triggers (GCancellable *cancellable,
for (i = 0; i < triggers->len; i++)
{
+ const char *basename;
GFile *trigger_path = triggers->pdata[i];
g_free (path);
path = g_file_get_path (trigger_path);
+ basename = strrchr (path, '/');
+ if (basename)
+ basename += 1;
+ else
+ basename = path;
+ g_print ("ostree-run-triggers: %s\n", basename);
if (!run_trigger (path, cancellable, error))
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]