[pacman-dev] [PATCH] [WIP] Extend database upgrade script to handle alpm db version 9
andrew.gregory.8 at gmail.com
Mon Aug 4 02:18:27 EDT 2014
On 08/04/14 at 03:43pm, Allan McRae wrote:
> On 03/08/14 15:31, Andrew Gregory wrote:
> > Original-work-by: Allan McRae <allan at archlinux.org>
> > Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> > ---
> > Changes:
> > * set alternate root with PACROOT environment variable
> > * filter results through grep and sort to remove empty lines and duplicates
> > * add parent directories (duplicates filtered out by sort)
> > * verify that the resolved directory is inside our root
> > * replace longer symlinks first
> > * handle conflict between resolved directory and existing filelist entry
> This looks fine on first pass to me. Why do you think this is a WIP?
> Is there something more needing done?
I think it's substantively ready but my bash and awk are not particularly great
and probably in need of some cleanup and the PACROOT variable needs a little
work. It at least needs to be documented, and I'm considering making it an
option rather than an environment variable and making the default dbpath
relative to it.
More information about the pacman-dev