Bug 1161820

Summary: zypp.conf wrong default value for "solver.dupAllowVendorChange"
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ignacio Taranto <itaranto7>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fkrueger, pujos.michael
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ignacio Taranto 2020-01-25 18:58:32 UTC
Looking at /etc/zypp/zypp.conf I see:

##
## EXPERTS ONLY: TUNE DISTRIBUTION UPGRADE (DUP)
## Set whether to allow changing the packages vendor upon DUP. If you
## are following a continuous distribution like Tumbleweed or Factory
## where you use 'zypper dup --no-allow-vendor-change' quite frequently,
## you may indeed benefit from disabling the VendorChange. Packages from
## OBS repos will then be kept rather than being overwritten by Tumbleweeds
## version.
##
## CHANGING THE DEFAULT IS NOT RECOMMENDED.
##
## Valid values:  boolean
## Default value: true
##
solver.dupAllowVendorChange = false

This should be:

##
## EXPERTS ONLY: TUNE DISTRIBUTION UPGRADE (DUP)
## Set whether to allow changing the packages vendor upon DUP. If you
## are following a continuous distribution like Tumbleweed or Factory
## where you use 'zypper dup --no-allow-vendor-change' quite frequently,
## you may indeed benefit from disabling the VendorChange. Packages from
## OBS repos will then be kept rather than being overwritten by Tumbleweeds
## version.
##
## CHANGING THE DEFAULT IS NOT RECOMMENDED.
##
## Valid values:  boolean
## Default value: true
##
# solver.dupAllowVendorChange = true
Comment 1 Michael Pujos 2020-01-26 11:59:20 UTC
I think it is meant to be false by default, hence the default in the comment is wrong and should be updated instead.
Comment 2 Ignacio Taranto 2020-01-26 14:28:09 UTC
Are you sure? Shouldn't be true by default to handle repos like Packman or similar?
Comment 3 Ignacio Taranto 2020-01-26 14:29:38 UTC
Notice that this is solver.dupAllowVendorChange and not solver.allowVendorChange.
Comment 4 Frank Krüger 2020-01-26 15:01:13 UTC
Tumbleweed's "zypper dup" defaults to "--no-allow-vendor-change".
Comment 5 Michael Andres 2020-01-27 09:52:39 UTC
(In reply to Ignacio Taranto from comment #0)
> Looking at /etc/zypp/zypp.conf I see:
> 
> ## Valid values:  boolean
> ## Default value: true
> ##
> solver.dupAllowVendorChange = false
> 
> This should be:
> 
> ## Valid values:  boolean
> ## Default value: true
> ##
> # solver.dupAllowVendorChange = true

No, it's correct. Libzypps builtin default for dup* values is TRUE (allow *). 

In 2017 Tumbleweed started shipping a zypp.conf with solver.dupAllowVendorChange set to false, mostly because dup became the recommended way of updating TW.