[pacman-dev] [PATCH] repo-add: fix db creation one last time

Allan McRae allan at archlinux.org
Wed Jun 29 23:01:35 EDT 2011


On 29/06/11 10:58, Dan McGee wrote:
> We fubar-ed this pretty good.
>
> 1. The whole old/new move shuffle was totally busted if you used a
> relative path to your database, as we would just build the database in
> place.
> 2. Our prior temp directory layout had the database files extracted
> directly into it. When we tried to create a xxx.db.tar.gz file in this
> same directory, due to the fact that we were no longer using a shell
> wildcard, we tried to include the db in ourself, which is a big failure.
> Fix all this by extracting to tree/ so we can have a clean top-level
> temp directory.
> 3. Fix the inclusion of the './' directory entry; ensure the regex
> prunes both leading paths of '.' as well as './'.
>
> Where is that test suite again?
>
> Signed-off-by: Dan McGee<dan at archlinux.org>

Signed-off-by: Allan

Updating my repo without this patch resulted in fun!



More information about the pacman-dev mailing list