Skip to content

Commit

Permalink
Prefer control.xml to ProductFeatures for community repos (bsc#1132613)
Browse files Browse the repository at this point in the history
so that /etc/YaST2/ProductFeatures left over from a previous version
will not point us to repos for that version
  • Loading branch information
mvidner committed May 2, 2019
1 parent cc7b94e commit c08927f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/y2packager/clients/inst_productsources.rb
Expand Up @@ -444,6 +444,10 @@ def InitializeSources
end

def ReadControlFile
# Prefer control.xml to /etc/YaST2/ProductFeatures (bsc#1132613)
ProductControl.Init
# Notably GetSection does not call ProductFeatures.Restore
# which would overwrite the ProductControl data we've just read
software_features = ProductFeatures.GetSection("software")
if !software_features.nil?
@main_link = software_features["external_sources_link"]
Expand Down

0 comments on commit c08927f

Please sign in to comment.