[pacman-dev] FS#7308 implementation questions
rprinse at planet.nl
rprinse at planet.nl
Fri Aug 24 20:08:47 EDT 2007
As I was browsing through the task list I stumbled upon FS#7308.
This was a feature I also would like to have implemented so I thought why not try it myself!
Because I'm lazy sometimes (who isn't) I don't always take care of any .pacnew or .pacsave files immediately so a nice timestamp suffix would prevent them from getting overwritten by pacman. Especially when you would like to see what changed overtime or when you just don't want that your old saved settings might get overwritten.
So this is what i came up with:
an AddDateSuffix directive in pacman.conf to enable this behaviour.
If the option was enabled by the user add this timestamp suffix -YYYYMMDDHHMM (maybe even seconds??) right after .pac{new,save}. But while while going through some code I noticed the PATH_MAX constant, so can't we get in trouble if this is too small??
Flyspray link: http://bugs.archlinux.org/task/7308
I would really like to get some feedback,
Thanks in advance,
--DeliQ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20070825/a143d929/attachment.htm>
More information about the pacman-dev
mailing list