[Pulp-list] unable to remove rpms

Ashby, Jason (IMS) AshbyJ at imsweb.com
Wed Jun 11 19:09:00 UTC 2014


No worries mon.  I repatched with this one…thanks for sending an update!

From: Martin Collins [mailto:martin.collins at framestore.com]
Sent: Wednesday, June 11, 2014 1:45 PM
To: Ashby, Jason (IMS)
Cc: Barnaby Court; pulp-list at redhat.com
Subject: Re: [Pulp-list] unable to remove rpms

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)

________________________________

Information in this e-mail may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender of the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20140611/e52568e7/attachment.htm>


More information about the Pulp-list mailing list