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:
Colin Walters 2017-12-05 15:38:41 -05:00 committed by Atomic Bot
parent 25cf4589e1
commit 44b938a6ac

View File

@ -540,7 +540,7 @@ build_objid_map_for_package (RpmOstreeCommit2JigdoContext *self,
* "content-identical objects" i.e. they differ only in metadata.
*/
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;
if (objsize >= BIG_OBJ_SIZE)
{