summaryrefslogtreecommitdiffstats
path: root/mkmodular
diff options
context:
space:
mode:
Diffstat (limited to 'mkmodular')
-rwxr-xr-xmkmodular24
1 files changed, 13 insertions, 11 deletions
diff --git a/mkmodular b/mkmodular
index 1b5eb178..82242b6c 100755
--- a/mkmodular
+++ b/mkmodular
@@ -183,17 +183,19 @@ function findPackages($from, $dest, $pat) {
}
function genDefaults($name, $def, Array $vers) {
- $meta = "---\n" .
- "document: modulemd-defaults\n" .
- "version: 1\n" .
- "data:\n" .
- " module: $name\n";
- if ($def)
- $meta .= " stream: $def\n";
- $meta .= " profiles:\n";
- foreach ($vers as $ver)
- $meta .= " $ver: [common]\n";
- $meta .= "...\n";
+ $meta = "---\n" .
+ "document: modulemd-defaults\n" .
+ "version: 1\n" .
+ "data:\n" .
+ " module: $name\n";
+ if ($def) {
+ $meta .= " stream: $def\n";
+ }
+ $meta .= " profiles:\n";
+ foreach ($vers as $ver) {
+ $meta .= " $ver: [common]\n";
+ }
+ $meta .= "...\n";
return $meta;
}