automatically convert old package.* files to dirs
The portage module on its first run should:
- Check if /etc/portage/package.$type exists
- If it doesn't exist, create a dir, else check if it is a file or dir
- If it is a file, then replace it with a dir and put the old content to /etc/portage/package.$type/old
Let's skip that for the next major version though
I've given a thought on this, and I think the cleanest way to do it is by creating facts. The truth is that I don't want to create facts though for this case, so we could just write a bash script and link it in the README and a blog post. I don't even want to include the bash script in this repo :P Opinions?
this would be handy as I'm trying to bring a slew of Gentoo servers under Puppet and they all have package.* files. As it is now, the files are not changed to directories until late in the the so I get many errors initially. The following run, everything works as it should.
This will be very hard - won't do.