diff --git a/osbuild/pipeline.py b/osbuild/pipeline.py index 5bee5b26..4bcc30f3 100644 --- a/osbuild/pipeline.py +++ b/osbuild/pipeline.py @@ -96,11 +96,13 @@ class Stage: def prepare_arguments(self, args, location): args["options"] = self.options - args["meta"] = { + args["meta"] = meta = { "id": self.id, - "source-epoch": self.source_epoch } + if self.source_epoch is not None: + meta["source-epoch"] = self.source_epoch + # Root relative paths: since paths are different on the # host and in the container they need to be mapped to # their path within the container. For all items that