Skip to content

Commit

Permalink
Remove 'obsoletes'
Browse files Browse the repository at this point in the history
This is unnecessary, according to Igor.

re: #5071
https://pulp.plan.io/issues/5071
  • Loading branch information
dralley committed Aug 7, 2019
1 parent 9ed9e0b commit c4cb08f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/pulp_rpm/plugins/importers/yum/pulp_solv.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def module_solvable_name(unit):

def module_basic_deps(pool, solvable, solvable_name, name, stream, version, arch):
"""
Create the basic module `Provides:` and `Obsoletes:` relations
Create the basic module `Provides:` relations
"""
# Prv: module:$n:$s:$v:$c . $a
solvable.nsvca_rel = pool.rel2id(
Expand All @@ -382,11 +382,6 @@ def module_basic_deps(pool, solvable, solvable_name, name, stream, version, arch
dep_n = pool.Dep('module({})'.format(name))
solvable.add_deparray(solv.SOLVABLE_PROVIDES, dep_n)

# Obs: module($n)
# This is a bit of a hack; a weaker than `Conflicts` because same-name module streams should
# repulse each other.
solvable.add_deparray(solv.SOLVABLE_OBSOLETES, dep_n)

# Prv: module($n:$s)
dep_ns = pool.Dep('module({}:{})'.format(name, stream))
solvable.add_deparray(solv.SOLVABLE_PROVIDES, dep_ns)
Expand Down

0 comments on commit c4cb08f

Please sign in to comment.