diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-03 16:11:12 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-03 16:11:12 +0100 |
commit | 136534f6e97f51cdb3608cfc4bdf95321653822e (patch) | |
tree | 63a6cb1657d31d2f83b82c5557fc7ce2db709776 | |
parent | 81f18c8fd1435306138f329e4df5a72a5f5b4575 (diff) |
CS
-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; } |