clearlinux / swupd-server

Software update server (deprecated)
Other
13 stars 17 forks source link

Fix bundle manifest hashes from MoM #17

Closed tmarcu closed 8 years ago

tmarcu commented 8 years ago

The bundle manifest hashes were calculated from the STATE_DIR Manifest.bundle files, which caused a problem when they the permissions/owner were changed. The hashes should be calculated by untarring the Manifest.BUNDLE.tar files referenced in the Manifest.MoM.

Signed-off-by: Tudor Marcu tudor.marcu@intel.com

bryteise commented 8 years ago

+1

tmarcu commented 8 years ago

Updated branch with appropriate changes.

phmccarty commented 8 years ago

This change looks good. I followed up with a fix for a couple functional tests that add deleted entries to the MoM, to make sure we don't try to untar nonexistent bundle manifests.