[augeas-devel] Creating new files from tree additions

David Lutterkort dlutter at redhat.com
Wed Apr 23 22:51:17 UTC 2008


On Wed, 2008-04-23 at 15:43 -0700, David Lutterkort wrote:
> Yes. I just tried that with new file in /etc/yum.repos.d, which worked;
> but for some reason
> 
>         set /files/etc/apt/sources.list.d/bar/type deb
>         set /files/etc/apt/sources.list.d/bar/uri http://server.com/
>         set /files/etc/apt/sources.list.d/bar/distribution etch
>         save
>         
> gives me an empty file, with no indication of error. I am looking into
> that.

That's because the path should start with
"/files/etc/apt/sources.list.d/bar/1", i.e. have an additional "1/"
component after the "bar/" - if I do that, I get something that works. I
need to flag the above as an error and complain loudly.

David





More information about the augeas-devel mailing list