pactest: fix gensync
commitfa933df65b9e024ec3291fcc1f995be3dc000e0c
authorXavier Chantry <chantry.xavier@gmail.com>
Sun, 10 Oct 2010 23:05:04 +0000 (11 01:05 +0200)
committerDan McGee <dan@archlinux.org>
Mon, 11 Oct 2010 15:06:57 +0000 (11 10:06 -0500)
tree35854a375dc5c8bf62d13ca0758b91dba445f155
parent67068b64b9da96a0122591ede25c50ab307a1612
pactest: fix gensync

gensync generated a sync.db file with PKGINFO syntax, this is not quite what
pacman expects.

Also the file was only added to the Server path:
root/var/pub/sync/sync.db
but it was not available in the normal sync db path:
root/var/lib/pacman/sync/sync.db

Change gensync() to generate var/lib/pacman/sync/sync.db and then copy it to
var/pub/sync/sync.db (this is used by sync200 -Sy test).

Signed-off-by: Dan McGee <dan@archlinux.org>
test/pacman/pmdb.py
test/pacman/pmtest.py
test/pacman/util.py