Skip to content

Commit

Permalink
Do not apply the self-update addon packages to the inst-sys
Browse files Browse the repository at this point in the history
Exctracting files like /installation.xml does not make sense.
  • Loading branch information
lslezak committed Sep 14, 2018
1 parent 041dfe3 commit b573c30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/installation/update_repository.rb
Expand Up @@ -18,6 +18,7 @@

require "packages/package_downloader"
require "packages/package_extractor"
require "y2packager/selfupdate_addon_filter"

Yast.import "Pkg"
Yast.import "Progress"
Expand Down Expand Up @@ -149,7 +150,10 @@ def packages
add_repo
candidates = Yast::Pkg.ResolvableProperties("", :package, "")
@packages = candidates.select { |p| p["source"] == repo_id }.sort_by! { |a| a["name"] }
log.info "Considering #{@packages.size} packages: #{@packages}"
log.info "Found #{@packages.size} packages: #{@packages}"
# remove packages which are used as addons, these should not be applied to the inst-sys
@packages -= Y2Packager::SelfupdateAddonFilter.packages(repo_id)
log.info "Using #{@packages.size} packages: #{@packages}"
@packages
end

Expand Down

0 comments on commit b573c30

Please sign in to comment.