Commit 90048b76 authored by James Antill's avatar James Antill

Fix follow_obsoletes in versionlock

parent 7ba47e99
......@@ -56,13 +56,11 @@ def exclude_hook(conduit):
if conduit.confBool('main', 'follow_obsoletes', default=False):
# If anything obsoletes something that we have versionlocked ... then
# remove all traces of that too.
obs = conduit._base.pkgSack.returnObsoletes()
for ob in obs:
for po in obs[ob]:
if po.name not in pkgs:
continue
# If anyone versions a pkg this, they need a good kicking
pkgs.setdefault(ob[0], []).append(('0', '0', '0'))
for (pkgtup, instTup) in conduit._base.up.returnObsoletes():
if instTup[0] not in pkgs:
continue
# If anyone versions a pkg this, they need a good kicking
pkgs.setdefault(pkgtup[0], []).append(('0', '0', '0'))
for pkgname in pkgs:
for pkg in vl_search(conduit, pkgname):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment