On Mon, Aug 04, 2003 at 07:29:39AM +0200, Luca Berra wrote:
> first i have to thank you for urpmc second, i noticed thet urpm does
> not deal well witch changing extension to the release tag.  i.e. when
> upgrading from libfoo-5.1-1mdk to libfoo-5.1-1plf will display the
> full changelog.

That'll work fine, but PLF has to include the Mandrakesoft changelog in
their packages.  Otherwise there's no way of telling where they align.
You can't go by the version numbers because development can be
completely independent of each other.  

urpmc (when running with --tc which is default) looks for the version
number that is on the current packages source package in the changelog.
E.G. if you looked up rpm -qi libfoo-5.1-1mdk you should see say,
libfoo-5.1-1mdk.src.rpm.  With that data urpmc would look for a
changelog that had 5.1-1mdk as the version.  When if found that it would
treat anything before that as new changelog information.  

If it can't find that it means one of two things have happend:
a) The changelog has been truncated.  I.E. the packager removed older
changelog data.  This happens from time to time, esp if you haven't
upgraded in a while.  You'd probably seem some of this upgrading from
9.1 to 9.2.  

b) The changelog (in the new package) doesn't contain the changelog for
the currently installed package.  This happens in cases where there are
two independently developed branches, e.g. PLF and MDK, which do not
combine their changelogs and do not necessarily align.

I can probably fix the first situation by looking at the changelog of
the currently installed package and trying to align the changelogs to
find the overlapping data, if there is any.  I'm skeptical of doing this
because it would be a rather CPU intensive activity... urpmc is already
a tad slower than I'd like.  

The only other way to do it is to get into version comparison which I'd
like to avoid, but it sounds like I may have to do...  I've already
talked about avoiding that in another email, but the short of it is I
think it will introduce a ton of new "bugs" to urpmc.

So I don't see a good way to fix this issue.  But if I come up with a
way or I feel like trying to make one or both of the possible solutions
work I may in the future...

-- 
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org

"What upsets me is not that you lied to me, but that from now on I can
no longer believe you." -- Nietzsche

Reply via email to