[augeas-devel] Lens aptsource cannot save new entry

Niklaus Giger niklaus.giger at member.fsf.org
Sat Jun 18 14:02:12 UTC 2011


Hi

I started working with puppet and augeas and found it very inspiring!

I tried to add a new entry to /etc/apt/sources.list. Everything seems to be 
okay, but saving failes.

Here is my transcript.

> sudo augtool
> augtool> ins last()+1 after /files/etc/apt/sources.list/*[last()]
> augtool> print /files/etc/apt/sources.list/*[last()]
> /files/etc/apt/sources.list/last()+1
> augtool> set /files/etc/apt/sources.list/*[last()]/distribution
> experimental augtool> set /files/etc/apt/sources.list/*[last()]/type deb
> augtool> set /files/etc/apt/sources.list/*[last()]/component main
> augtool> set /files/etc/apt/sources.list/*[last()]/uri"
> http://mirror.switch.ch/ftp/mirror/debian/neu augtool> print
> /files/etc/apt/sources.list/*[last()]
> /files/etc/apt/sources.list/last()+1
> /files/etc/apt/sources.list/last()+1/distribution = "experimental"
> /files/etc/apt/sources.list/last()+1/type = "deb"
> /files/etc/apt/sources.list/last()+1/component = "main"
> /files/etc/apt/sources.list/last()+1/uri" =
> "http://mirror.switch.ch/ftp/mirror/debian/neu" augtool> save
> Saving failed
> augtool>

Is this a bug of this lens or did I oversees someghing?

Best regards

Niklaus




More information about the augeas-devel mailing list