rpm-devel  

Filedigests -> Filemd5s index name revert

Jeff Johnson
Thu, 07 Jun 2007 05:32:08 -0700

When I generalized rpm metadat to handle more than MD5 digest,
I also renamed RPMTAG_FILEMD5S to RPMTAG_FILEDIGESTS to
reflect the (possible) change in content, leaving the old name as a
#define alias.

Changing the name was the right thing to do looking forward.

However, "everywhere compatible" is backward looking,
and so the old Filemd5s tag name needs to prefered so
that --rebuilddb will interoperate with older rpm.

So choosing the name for the index depends on whether one wants to
be forward or backward looking.

I'm likely not to attempt to automatically detect that choice. (that's a subtle dry joke, just in case).

So the least common denominator is to use Filemd5s as a name
even if the index (possibly) contains more than MD5 digests.

What that means is that after --rebuilddb whatever forward looking rpm
you had chosen may not find Filedigests, and perhaps there are a few more
name mismatch failure cases.

Just use the newer/larger of Filedigests/Filemd5s, rename appropriately.

The rpm-4_5 branch now expects "Filemd5s". A --rebuilddb will ensure
that Filemd5s exists.

The Filemd5s index is not used on any critical path, so I do not expect any large
problems reverting (or eventually moving forward again).

73 de Jeff


______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org
  • Filedigests -> Filemd5s index name revert Jeff Johnson