[Spacewalk-list] Download rhn errata to file
Franky Van Liedekerke
liedekef at telenet.be
Wed May 14 14:07:36 UTC 2014
On 2014-05-14 14:56, Johan Petersson wrote:
> I guess that is the
path i need to take then... I had hoped that i could avoid having to
create another Spacewalk server. I hoped there was a script out there
that grabbed the errata directly and packed it into a file or directory.
I could then move it to the closed network through a cd or usb stick and
import into the Spacewalk server.
>
> I will definitely try your
script if i have to set up another Spacewalk then.
>
> Thank you for
the tip.
I guess it's not that difficult to split the script in 2,
where you save the output in a file and further down the road you read
in the file again.
The function parse_redhat_errata is the one that
creates the needed xml. So in the first script, just change that file to
output the result in a file.
And in the second script, change the call
to parse_redhat_errata() to just a function that reads in that file
again in the same resulting var.
Franky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140514/309abd44/attachment.htm>
More information about the Spacewalk-list
mailing list