Skip to content

Commit

Permalink
[reposync] Ignore only modular excludes (RhBug:1750273)
Browse files Browse the repository at this point in the history
This is a regression, reposync always used to apply excludes and
includes. It only needs to ignore modular dependencies to be able to
synchronize non-enabled streams.

https://bugzilla.redhat.com/show_bug.cgi?id=1750273

Closes: #368
Approved by: pkratoch
  • Loading branch information
m-blaha authored and rh-atomic-bot committed Nov 21, 2019
1 parent 05cea66 commit 27ce7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/reposync.py
Expand Up @@ -204,7 +204,7 @@ def download_metadata(self, repo):
return True

def get_pkglist(self, repo):
query = self.base.sack.query(flags=hawkey.IGNORE_EXCLUDES).available().filterm(
query = self.base.sack.query(flags=hawkey.IGNORE_MODULAR_EXCLUDES).available().filterm(
reponame=repo.id)
if self.opts.newest_only:
query = query.latest()
Expand All @@ -219,7 +219,7 @@ def download_packages(self, pkglist):
progress = base.output.progress
if progress is None:
progress = dnf.callback.NullDownloadProgress()
drpm = dnf.drpm.DeltaInfo(base.sack.query(flags=hawkey.IGNORE_EXCLUDES).installed(),
drpm = dnf.drpm.DeltaInfo(base.sack.query(flags=hawkey.IGNORE_MODULAR_EXCLUDES).installed(),
progress, 0)
payloads = [RPMPayloadLocation(pkg, progress, self.pkg_download_path(pkg))
for pkg in pkglist]
Expand Down

0 comments on commit 27ce7c8

Please sign in to comment.