On Fri, Feb 15, 2008 at 08:27:18PM -0600, Dan McGee wrote:
> Note both my comments above in the commit message, as well as taking a look
> at how not trying to even worry about the filename simplifies the code in
> sync.c a good amount.
The simplification is very nice. This will allow us to completely get
rid of the patches list, which I always thought was a bit hacky.
The main reason I wanted to keep the old version in addition to the
filename is for the function pkg_upgrade_delta_path:
The line
const char *oldname = alpm_pkg_get_filename(oldpkg);
would change to
const char *oldname = alpm_deltas_find_old_filename(pkg->deltas, oldpkg->version);
and everything would work as before.