From 442c1431446bf48ad0092b3ae248450bd442bd32 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 7 Nov 2017 15:00:08 -0800 Subject: [PATCH] Try to fix quoting in printf --- lib/utils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index 47baf48a..325e5869 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -328,7 +328,8 @@ sub _repo_setup_compose { # add a disabled non-modular release repo; we have to use this # to install some things we need for testing which aren't in # Modular Server composes - assert_script_run 'printf "[fedora]\nname=Fedora $releasever - $basearch\nmetalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch\nenabled=0\nmetadata_expire=7d\nrepo_gpgcheck=0\ntype=rpm\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch\nskip_if_unavailable=True" > /etc/yum.repos.d/fedora.repo'; + assert_script_run 'printf \'[fedora]\nname=Fedora $releasever - $basearch\nmetalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch\nenabled=0\nmetadata_expire=7d\nrepo_gpgcheck=0\ntype=rpm\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch\nskip_if_unavailable=True\' > /etc/yum.repos.d/fedora.repo'; + script_run 'cat /etc/yum.repos.d/fedora.repo'; # FIXME use the compose repo, as per below - easier if the repo # files had commented-out baseurl lines }