On 28/02/11 05:55, Dan McGee wrote:
---
Any feedback on this going in? One of the checklist items on my 3.5.0 release
list.
It works.... but notice the double print of the found file there:
allan@mugen /home/arch/code/pacman (working)
> sudo touch /var/lib/pacman/local/abs-2.4.2-1/depends
allan@mugen /home/arch/code/pacman (working)
> sudo ./src/pacman/pacman -Syu
:: Synchronizing package databases...
found /var/lib/pacman/local/abs-2.4.2-1/depends
found /var/lib/pacman/local/abs-2.4.2-1/depends
error: local database version 1 is too old, version 2 required
error: failed to init transaction (database is incorrect version)
try running pacman-db-upgrade
[13:57:21] debug: loading package cache for repository 'local'
[13:57:21] debug: database path for tree local set to /var/lib/pacman/local/
found /var/lib/pacman/local/abs-2.4.2-1/depends
[13:57:21] debug: local database version 1
found /var/lib/pacman/local/abs-2.4.2-1/depends
[13:57:21] debug: local database version 1
[13:57:21] error: local database version 1 is too old, version 2 required
[13:57:21] debug: returning error 16 from alpm_trans_init : database is
incorrect version
[13:57:21] [13:57:21] debug: unregistering database 'local'
Is the check being run twice here?
allan@mugen /home/arch/code/pacman (working)
> sudo strace ./src/pacman/pacman -Su 2>&1 | grep "abs-"
access("/var/lib/pacman/local/abs-2.4.2-1/", F_OK) = 0
access("/var/lib/pacman/local/abs-2.4.2-1/depends", F_OK) = 0
access("/var/lib/pacman/local/abs-2.4.2-1/depends", F_OK) = 0
write(1, "found /var/lib/pacman/local/abs-"..., 159found
/var/lib/pacman/local/abs-2.4.2-1/depends
found /var/lib/pacman/local/abs-2.4.2-1/depends
Allan