Closed PrimaryCanary closed 3 years ago
Well, zypper --xmlout repos
prints the effective settings. They are computed from the (optional) values in the .repo file and the global settings (or builtin defaults). I dare not changing the semantic of the attributes, but I can add (optional) raw_*gpgcheck
attributes showing the values as they occur in the .repo file.
Will be available with libzpp-17.27.0 (Will go as online update to all Code15 distributions and TW)
Zypper (version 1.14.43) seems to output incorrect XML when a repo with any GPG option is printed using the
--xmlout
option.Steps to reproduce:
Start by adding any repo with a GPG option:
sudo zypper addrepo --gpgcheck-allow-unsigned https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
Verify its correctness:
$ cat /etc/zypp/repos.d/packman.repo [packman] enabled=1 autorefresh=0 baseurl=https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ gpgcheck=1 repo_gpgcheck=0 pkg_gpgcheck=0
$ zypper --xmlout repos <?xml version='1.0'?>