From df0304095d1b9feafc8b778b43561ea8268c3d0d Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 9 Dec 2015 14:58:20 -0500 Subject: [PATCH] Add 'topdir' to all fedmsg/notifier messages. This will be useful for fedmsg recipients so they can construct URLs back to the compose. They may need to know the compose topdir to distinguish between https://kojipkgs.fedoraproject.org/compose/rawhide/ and https://kojipkgs.fedoraproject.org/compose/f24/ Signed-off-by: Ralph Bean --- pungi/notifier.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pungi/notifier.py b/pungi/notifier.py index 814b65e8..5ab912f9 100644 --- a/pungi/notifier.py +++ b/pungi/notifier.py @@ -33,6 +33,7 @@ class PungiNotifier(object): def _update_args(self, data): """Add compose related information to the data.""" data.setdefault('compose_id', self.compose.compose_id) + data.setdefault('topdir', self.compose.paths.compose.topdir()) def send(self, msg, **kwargs): """Send a message.