On Aug 23, 2020, at 12:07, me at tdiehl.org wrote: > > Hi, > > I am trying to create a mock configuration file that points to my local dnf repo. > I have the following in the mock config template: > > [local-repo] > name=my-Local > baseurl=http://yumrepo.example.com/yum-repository/local/centos/8/x86_64/ failovermethod=priority > skip_if_unavailable=False > > When I try to run mock I get the following error: > > (vgeppetto3 pts18) $ mock -v -r epel-8-x86_64 /home/mock/rpmbuild/SRPMS/centos-release-8.2-2.2004.0.1.el8.1.src.rpm > > File "<string>", line 238 > > baseurl=http://yumrepo.example.com/yum-repository/local/centos/8/x86_64/ > > ^ > SyntaxError: invalid syntax > > ERROR: Error in configuration > (vgeppetto3 pts18) $ > > I copied the url out of a yum repo file I am using that works with dnf on a centos 8 machine. > > Can someone tell me what I am doing wrong? I assume you added the yum repo after a line that looks like this: config_opts['dnf.conf'] += """ And before a line that looks like this: “”” -- Jonathan Billings <billings at negate.org>