diff options
-rwxr-xr-x | mkmodular | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -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; } |