summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-03 16:11:12 +0100
committerRemi Collet <remi@remirepo.net>2020-03-03 16:11:12 +0100
commit136534f6e97f51cdb3608cfc4bdf95321653822e (patch)
tree63a6cb1657d31d2f83b82c5557fc7ce2db709776
parent81f18c8fd1435306138f329e4df5a72a5f5b4575 (diff)
CS
-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;
}