
Adrian Schröter <adrian@suse.de> writes:
On Montag, 25. Januar 2021, 16:21:43 CET Dan Čermák wrote:
Hi Andreas,
Andreas Schwab <schwab@linux-m68k.org> writes:
On Jan 25 2021, Dan Čermák wrote:
I am wondering, how is the md5sum of a package[1] calculated? I have tried the md5sum of all the files[2], but that did not appear to match
For non-linked packages: md5sum * | md5sum Ie., the MD5 sum of the md5sum output.
Is that done exactly via this shell command in bash?
For linked packages, it is quite a bit more complicated.
Could you elaborate what is done differently here? I would have expected to run above command over the expanded sources.
you would get the verifymd5 sum then. But not the xsrcmd5, which includes also the linkinformation of the _link files.
Uh, what's verifymd5? My google-skills have failed me here.
So it depends which md5sum you actually want.
I want to calculate some unique hash of a (potentially modified and checked-out) package. I could use some custom scheme, but I thought it would be more productive to use the same method that OBS itself employs. Using the packages md5sum appeared like the simplest choice to me. Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nuremberg Germany (HRB 36809, AG Nürnberg) Managing Director: Felix Imendörffer