[pacman-dev] [PATCH 1/3] Combine reading from depends and desc in sync db

2010-10-30 Thread Allan McRae
This will allow us to eventually combine the depends and desc entries within the sync database. Signed-off-by: Allan McRae al...@archlinux.org --- lib/libalpm/be_sync.c |9 ++--- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c

[pacman-dev] [PATCH 2/3] Merge desc and depends files in local db

2010-10-30 Thread Allan McRae
Whenever depends is needed from the local db, so is desc. The only disadvantage to merging them is the additional time taken to read the depends entries when they are not needed. As depends is in general relatively small, the additional time taken to read it in will be negligable. Also, merging

[pacman-dev] [PATCH 3/3] Update pactest suite for change in db structure

2010-10-30 Thread Allan McRae
Merging desc and depends files in sync and local db. Signed-off-by: Allan McRae al...@archlinux.org --- test/pacman/pmdb.py | 62 ++--- test/pacman/pmpkg.py |4 --- 2 files changed, 18 insertions(+), 48 deletions(-) diff --git

Re: [pacman-dev] [PATCH 2/3] Merge desc and depends files in local db

2010-10-30 Thread Allan McRae
On 30/10/10 16:03, Allan McRae wrote: Whenever depends is needed from the local db, so is desc. The only disadvantage to merging them is the additional time taken to read the depends entries when they are not needed. As depends is in general relatively small, the additional time taken to read

[pacman-dev] [PATCH] Sync data after writing to the local db

2010-10-30 Thread Allan McRae
This should hopefully reduce local db corruption issues. Signed-off-by: Allan McRae al...@archlinux.org --- lib/libalpm/be_local.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index 4574bd4..cb12abb 100644 ---

Re: [pacman-dev] [PATCH 2/3] Merge desc and depends files in local db

2010-10-30 Thread Allan McRae
On 30/10/10 16:19, Allan McRae wrote: On 30/10/10 16:03, Allan McRae wrote: Whenever depends is needed from the local db, so is desc. The only disadvantage to merging them is the additional time taken to read the depends entries when they are not needed. As depends is in general relatively

Re: [pacman-dev] [PATCH] Sync data after writing to the local db

2010-10-30 Thread Nagy Gabor
This should hopefully reduce local db corruption issues. Signed-off-by: Allan McRae al...@archlinux.org --- lib/libalpm/be_local.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index 4574bd4..cb12abb 100644

Re: [pacman-dev] [PATCH] Sync data after writing to the local db

2010-10-30 Thread Xavier Chantry
On Sat, Oct 30, 2010 at 3:01 PM, Nagy Gabor ng...@bibl.u-szeged.hu wrote: Wouldn't this cause a notable slow-down? I thought the issue was rather that the local db entries would be synced when the actual package files are probably not synced. But if we sync everything, then it's very likely to

Re: [pacman-dev] epoch (was: Chat with toofis...@jabber.org)

2010-10-30 Thread Xavier Chantry
On Mon, Oct 25, 2010 at 1:03 PM, Nagy Gabor ng...@bibl.u-szeged.hu wrote: Nagy and I discussed a bit that topic. Don't we already read all local depends file for conflict and/or dep checking ? So this means we'll now read all local depends + all desc files ? Why not put epoch stuff in the

Re: [pacman-dev] epoch

2010-10-30 Thread Xavier Chantry
On Sat, Oct 30, 2010 at 11:26 PM, Allan McRae al...@archlinux.org wrote: That is because none of the packages know about epoch yet.   You are going to have to manually update packages that use the force flag for the time being. BTW, the db update in [testing] has epoch=1 as the db-4.9

Re: [pacman-dev] [PATCH] Sync data after writing to the local db

2010-10-30 Thread Allan McRae
On 30/10/10 23:40, Xavier Chantry wrote: On Sat, Oct 30, 2010 at 3:01 PM, Nagy Gaborng...@bibl.u-szeged.hu wrote: Wouldn't this cause a notable slow-down? I thought the issue was rather that the local db entries would be synced when the actual package files are probably not synced. But if