[pacman-dev] [PATCH] get_filename : use the FILENAME field from the db.

Xavier shiningxc at gmail.com
Thu Feb 14 13:53:02 EST 2008


Xavier wrote:
> 
> Oh crap, but that means we have a bigger issue here. The delta code 
> needs the filename of the locally installed package, and we don't store 
> that filename in the local db. So it actually relies on the broken way 
> to construct the filename.
> Well, it looks like it works in a default database generated by repo-add 
> (where filename = name-version-arch.pkgext), so that probably explains 
> why it worked fine with pacman-git and delta-test repo.
> However, all official databases (core,extra,testing,unstable,community) 
> breaks this assumption for most packages.

As Dan suggested off list, the delta machine should probably work on 
filenames rather than just versions (in the delta metainfo file from the 
sync databases for a start).
That way we don't need to store filenames in the local db (which 
wouldn't be used otherwise anyway).




More information about the pacman-dev mailing list