On Friday 22 October 2010 10:19:31 Michael Andres wrote:
On Friday 22 October 2010 09:30:08 Yang, Yi Y wrote:
How to let RepoManager use setDefaultAccept to accept unsigned file and verification failure, my issue is it still deny to build repo cache although I have set default accept.
Try setting
gpgcheck=0
The above will work too, but may not be what you want. Back to your code: zypp.KeyRing.setDefaultAccept( zypp.KeyRing.ACCEPT_UNSIGNED_FILE | zypp.KeyRing.ACCEPT_VERIFICATION_FAILED ) If your repo is unsigned (no repomd.xml.asc / repomd.xml.key) ACCEPT_UNSIGNED_FILE will help. But if your repo is signed the 1st question is whether to trust an unknown key or not. The 2nd question is how to handle a failed verification (ACCEPT_VERIFICATION_FAILED). So you should also set one out of: TRUST_KEY_TEMPORARILY (for this session only) TRUST_AND_IMPORT_KEY (permanently import to rpmdb) -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org