Re: Mock config error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Aug 23, 2020, at 12:07, me@xxxxxxxxxx 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@xxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux