aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-15 15:20:07 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-15 15:20:07 +0000
commit3e6f3aed7d449515caca1110cccebf432291d4c6 (patch)
tree0d367bbb51a24cc4afda83ff7f789f7ecb3c34c2
parent230e07415d434a5432d330965559ead1a10e001c (diff)
downloadpaludis-3e6f3aed7d449515caca1110cccebf432291d4c6.tar.gz
paludis-3e6f3aed7d449515caca1110cccebf432291d4c6.tar.xz
Support, use full_name var
-rw-r--r--paludis/environments/paludis/output_managers.cc2
-rw-r--r--paludis/environments/paludis/output_managers/keep_stdout_as_messages.part.conf2
-rw-r--r--paludis/environments/paludis/output_managers/logged_only.part.conf2
3 files changed, 4 insertions, 2 deletions
diff --git a/paludis/environments/paludis/output_managers.cc b/paludis/environments/paludis/output_managers.cc
index b448da9..cffd707 100644
--- a/paludis/environments/paludis/output_managers.cc
+++ b/paludis/environments/paludis/output_managers.cc
@@ -127,6 +127,7 @@ namespace
m->insert("type", "repository");
m->insert("action", "sync");
m->insert("name", stringify(i.repository().name()));
+ m->insert("full_name", stringify(i.repository().name()));
m->insert("pid", stringify(getpid()));
m->insert("time", stringify(time(0)));
}
@@ -137,6 +138,7 @@ namespace
m->insert("action", action_to_string(i.action()));
m->insert("name", stringify(i.package_id()->name()));
m->insert("id", escape(stringify(*i.package_id())));
+ m->insert("full_name", escape(stringify(*i.package_id())));
if (i.package_id()->slot_key())
m->insert("slot", stringify(i.package_id()->slot_key()->value()));
m->insert("version", stringify(i.package_id()->version()));
diff --git a/paludis/environments/paludis/output_managers/keep_stdout_as_messages.part.conf b/paludis/environments/paludis/output_managers/keep_stdout_as_messages.part.conf
index ebbb5ee..9c0605e 100644
--- a/paludis/environments/paludis/output_managers/keep_stdout_as_messages.part.conf
+++ b/paludis/environments/paludis/output_managers/keep_stdout_as_messages.part.conf
@@ -1,7 +1,7 @@
# Keep message logs. For use by keep_messages.part; do not use directly.
handler = file
-stdout = /var/log/paludis/%{time}-%{action}-%{id}.messages
+stdout = /var/log/paludis/%{time}-%{action}-%{full_name}.messages
stderr = ${stdout}
keep_on_success = true
keep_on_empty = false
diff --git a/paludis/environments/paludis/output_managers/logged_only.part.conf b/paludis/environments/paludis/output_managers/logged_only.part.conf
index 08ba32d..ecbe032 100644
--- a/paludis/environments/paludis/output_managers/logged_only.part.conf
+++ b/paludis/environments/paludis/output_managers/logged_only.part.conf
@@ -2,7 +2,7 @@
# not directly usable.
#
handler = file
-stdout = /var/log/paludis/%{time}-%{action}-%{id}.out
+stdout = /var/log/paludis/%{time}-%{action}-%{full_name}.out
stderr = ${stdout}
keep_on_success = false
keep_on_empty = true