http://bugzilla.opensuse.org/show_bug.cgi?id=1061309 Bug ID: 1061309 Summary: zypper addrepository cannot cope with an existing repository (usability, automation) Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: pavlix@pavlix.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Motivation: If you want to install a package, or better, want to ensure a package is installed (possibly using a script or an automated deployment system), you simply request to get that package installed. Not so with repositories. You can only add repository once and any attempt to do it again will trigger an error. Problem statement: I have a repository. In my case it is based on a build.opensuse.org project, it resides on download.opensuse.org and a .repo file is included. I can easily install it using the .repo URL but the second time I run the script, it will blow up, i.e. the action is not idempotent and cannot be easily made so. See also: https://github.com/ansible/ansible/issues/23257 Notes: While the related link above is about ansible, I'm curious how that is generally being solved using other systems as well. The .repo URL has great advantages over the bare repository URL in that it includes the link to the GPG key and other settings as well. On the other hand the URL cannot unfortunately be used to remove or to modify the local repository configuration, nor is it treated as a noop when no change is necessary. -- You are receiving this mail because: You are on the CC list for the bug.