What | Removed | Added |
---|---|---|
Flags | needinfo?(ma@suse.com) | |
CC | ma@suse.com |
I have not seen the same error but seems like addservice (or something else) generates these .repo_1 files which then use the same id. lkocman@localhost:~/Workspace/opensuse> cat /etc/zypp/repos.d/NVIDIA:repo-non-free.repo lkocman@localhost:~/Workspace/opensuse> cat /etc/zypp/repos.d/NVIDIA:repo-non-free.repo_1 [NVIDIA:repo-non-free] name=repo-non-free (${releasever}) enabled=1 autorefresh=1 baseurl=https://download.nvidia.com/opensuse/leap/${releasever} service=NVIDIA lkocman@localhost:~/Workspace/opensuse> I would expect that calling addservice would be an idempotent, where we'd not add new repo files if existing files with same id exists. Otherwise, I can add simple workaround to remove all service-related repo files prior calling addservice or e.g. in post uninstall. lkocman@localhost:~/Workspace/opensuse> sudo rm /etc/zypp/repos.d/NVIDIA:* lkocman@localhost:~/Workspace/opensuse> sudo zypper refs Refreshing service 'NVIDIA'. Adding repository 'repo-non-free (15.5)' ............................................................................................................[done] Refreshing service 'openSUSE'. All services have been refreshed. # The .rpmsave one is expected lkocman@localhost:~/Workspace/opensuse> ls -la /etc/zypp/repos.d/NVIDIA* -rw-r--r-- 1 root root 161 Aug 15 13:46 /etc/zypp/repos.d/NVIDIA:repo-non-free.repo -rw-r--r-- 1 root root 95 May 9 10:56 /etc/zypp/repos.d/NVIDIA.repo.rpmsave lkocman@localhost:~/Workspace/opensuse>