commit2jigdo: Query objsize from correct repo when building objid map
I have hit multiple times the bug with `bare-user` repos: https://github.com/ostreedev/ostree/pull/1297 (Need to rebuild my dev container rather than relying on an updated `sudo make install` from ostree git) Anyways if things are out of sync, this bug would manifest as the main repo wouldn't have the object. Closes: #1135 Approved by: jlebon
This commit is contained in:
parent
25cf4589e1
commit
44b938a6ac
@ -540,7 +540,7 @@ build_objid_map_for_package (RpmOstreeCommit2JigdoContext *self,
|
|||||||
* "content-identical objects" i.e. they differ only in metadata.
|
* "content-identical objects" i.e. they differ only in metadata.
|
||||||
*/
|
*/
|
||||||
guint32 objsize;
|
guint32 objsize;
|
||||||
if (!query_objsize_assert_32bit (self->repo, checksum, &objsize, error))
|
if (!query_objsize_assert_32bit (self->pkgcache_repo, checksum, &objsize, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (objsize >= BIG_OBJ_SIZE)
|
if (objsize >= BIG_OBJ_SIZE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user