[Pulp-list] unable to remove rpms

Martin Collins martin.collins at framestore.com
Wed Jun 11 17:44:54 UTC 2014


Hey Jason,

Rather embarrassingly that's not the patch  meant to send you (or indeed
the one we run) as it's the wrong section (just didn't want to misinform
anyone else that may have stumbled across this post, then taken that and
run with it to realise it was wrong)

well that was unintentional... apologies

---
/usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association.py.orig
2014-06-11
18:38:02.253028438 +0100
+++
/usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association.py
2014-03-20
15:31:08.101345574 +0000
@@ -380,9 +380,7 @@
         for unit_type_id, unit_ids in unit_map.items():
             spec = {'repo_id': repo_id,
                     'unit_type_id': unit_type_id,
-                    'unit_id': {'$in': unit_ids},
-                    'owner_type': owner_type,
-                    'owner_id': owner_id}
+                    'unit_id': {'$in': unit_ids}}
             collection.remove(spec, safe=True)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20140611/c87aa4dd/attachment.htm>


More information about the Pulp-list mailing list