[Sugar-devel] Full Licence field

Jakub Jelinek jakub at redhat.com
Sat Mar 21 04:40:00 EDT 2009


On Sat, Mar 21, 2009 at 04:58:11AM +0100, Ralf Corsepius wrote:
> Tom "spot" Callaway wrote:
>> Now, if there were a clever way to handle this behind the scenes so that
>> these license files were not duplicated if they were identical, but
>> instead, symlinked to the license files in a generic license rpm, I
>> might be more interested. (If they weren't bit for bit identical, it
>> wouldn't be symlinked).
>
> /usr/sbin/hardlink -c /usr/share/doc
> is pretty close to what you want.

Yes, but if you have %license support in rpm where all %license files
would
1) not be excluded with --excludedocs
2) for rpm -V ignore timestamp verification
rpm could just cheaply look up if there is already some %license file
with identical {md5,sha{256,512}} sum and size installed and if so, do
a byte by byte comparison and hardlink the files if they are indeed identical.

	Jakub


More information about the Sugar-devel mailing list