[Rpm-metadata] prettify xml output of modifyrepo

Christoph Thiel cthiel at suse.de
Fri Dec 21 10:13:54 UTC 2007


On Thu, Dec 20, 2007 at 02:18:58PM -0500, Luke Macken wrote:
> On Wed, Dec 05, 2007 at 06:22:49PM +0100, Christoph Thiel wrote:
> > Hi folks,
> > 
> > please commit the attached modifyrepo-prettyxml.patch
> 
> Hi Christoph,
> 
> Wouldn't something like this also suffice?
> 
> luke
> 
> --- a/modifyrepo.py
> +++ b/modifyrepo.py
> @@ -108,7 +108,7 @@ class RepoMetadata:
>  
>          ## Write the updated repomd.xml
>          outmd = file(self.repomdxml, 'w')
> -        self.doc.writexml(outmd)
> +        outmd.write(self.doc.toprettyxml())
>          outmd.close()
>          print "Wrote:", self.repomdxml

Nope, that didn't work, IIRC :(


Best,
Christoph
-- 
Christoph Thiel, Tech. Project Management, Research & Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)



More information about the Rpm-metadata mailing list