<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">No worries mon.  I repatched with this oneā€¦thanks for sending an update!</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Martin Collins [mailto:martin.collins@framestore.com]
<br>
<b>Sent:</b> Wednesday, June 11, 2014 1:45 PM<br>
<b>To:</b> Ashby, Jason (IMS)<br>
<b>Cc:</b> Barnaby Court; pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] unable to remove rpms</span></p>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hey Jason, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">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) </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">well that was unintentional... apologies</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">--- /usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association.py.orig        2014-06-11 18:38:02.253028438 +0100</p>
<div>
<p class="MsoNormal">+++ /usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association.py            2014-03-20 15:31:08.101345574 +0000</p>
</div>
<div>
<p class="MsoNormal">@@ -380,9 +380,7 @@</p>
</div>
<div>
<p class="MsoNormal">         for unit_type_id, unit_ids in unit_map.items():</p>
</div>
<div>
<p class="MsoNormal">             spec = {'repo_id': repo_id,</p>
</div>
<div>
<p class="MsoNormal">                     'unit_type_id': unit_type_id,</p>
</div>
<div>
<p class="MsoNormal">-                    'unit_id': {'$in': unit_ids},</p>
</div>
<div>
<p class="MsoNormal">-                    'owner_type': owner_type,</p>
</div>
<div>
<p class="MsoNormal">-                    'owner_id': owner_id}</p>
</div>
<div>
<p class="MsoNormal">+                    'unit_id': {'$in': unit_ids}}</p>
</div>
<div>
<p class="MsoNormal">             collection.remove(spec, safe=True)</p>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
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.<br>
</font>
</body>
</html>