<div dir="ltr"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Thanks for the script.  I'll have to give that a try and see what the</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">results are..</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">My use case would be if, say, httpd is updated by Red Hat for a specific</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">vulnerability and I wanted to progress only that advisory and associated</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">packages through to my dev channels and on to the production channels in</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">order to quickly implement it.  My errata flow is Red Hat --> DEV Channel</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">-->PROD Channel</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">So knowing that, where does the errata.clone call use as it's source?  If</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">my prod channel's original channel is the dev channel, would it use that?</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Will</span><br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Sep 25, 2013 at 11:23 AM, Matt Micene <span dir="ltr"><<a href="mailto:matt.micene@dlt.com" target="_blank">matt.micene@dlt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I knocked together this python script to look at the behavior of the API around cloning errata.  It looks to me like once you've published an errata, cloning it to the channel takes care of linking the package.<br>
<br>
So the script will wants a source, target and date range then lists all the available errata in the source, clones them to the target and then publishes anything that's left.<br>
<br>
This probably isn't the right workflow by a long shot (off the top of my head I think you'd probably want to get the unpublished list first maybe?), and there's no error checking but it may prove interesting just for the behavior.<br>

<br>
HTH,<br>
Matt<br>
<br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [mailto:<a href="mailto:spacewalk-list-">spacewalk-list-</a><br>
> <a href="mailto:bounces@redhat.com">bounces@redhat.com</a>] On Behalf Of Matt Micene<br>
> Sent: Wednesday, September 25, 2013 9:09 AM<br>
> To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
> Subject: Re: [Spacewalk-list] API. Merge single new errata and packages<br>
><br>
> Will,<br>
><br>
> I haven't looked at the Errata workflow in a while but I believe the<br>
> next step isn't to mergePackages but to use the errata.publish call.<br>
><br>
> If you look at the UI after your clone step, the errata should show up<br>
> in the clone as unpublished.  The next step is publish, which moves the<br>
> package into the channel.  You can also use<br>
> errata.listUnpublishedErrata to make sure the errata you are trying to<br>
> merge are ready.<br>
><br>
> One thing to note, you say you are trying to merge a single errata.<br>
> errata.mergeErrata will merge all errata from the source channel<br>
> constrained by the date range or list.  While you are probably passing<br>
> a single value in that list, it may have odd side effects.  You may<br>
> want to look at the errata.clone* methods which only operate on the<br>
> provided list rather than using that list as a constraint.<br>
><br>
> HTH,<br>
> Matt<br>
<div class=""><div class="h5">><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [mailto:<a href="mailto:spacewalk-list-">spacewalk-list-</a><br>
> > <a href="mailto:bounces@redhat.com">bounces@redhat.com</a>] On Behalf Of wm-lists<br>
> > Sent: Tuesday, September 24, 2013 8:45 PM<br>
> > To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
> > Subject: [Spacewalk-list] API. Merge single new errata and packages<br>
> ><br>
> > I'm sure there's a simple way to do this, but I'm probably over-<br>
> > complicating it.<br>
> > I'm looking to write a python script, that, given an Errata Advisory<br>
> > Name, will merge the Errata and associated package from one channel<br>
> > (say Red Hat source) to another channel (say our development<br>
> channel).<br>
> ><br>
> > I've got the Errata merge fine with the mergeErrata api call,<br>
> ><br>
> lient.channel.software.mergeErrata(key,channelinfo.get('clone_original'<br>
> > ), mychannel.get('label'),[errata])<br>
> ><br>
> > But there isn't a mergePackage that only merges one package.<br>
> ><br>
> > Any help or guidance?<br>
> ><br>
> > Thanks<br>
> > Will<br>
> ><br>
> > Sent from my iPhone<br>
> > Sent from my iPhone<br>
> ><br>
> > _______________________________________________<br>
> > Spacewalk-list mailing list<br>
> > <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div></div>