Re: prettify xml output of modifyrepo

Christoph Thiel <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.