mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
core: local-clone: Delete leftover code assuming file objects are loose
This commit is contained in:
parent
49dfd6c958
commit
bf3abd02cd
@ -101,7 +101,6 @@ import_one_object (OtLocalCloneData *data,
|
||||
GError **error)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
ot_lobj GFile *objfile = NULL;
|
||||
ot_lobj GFileInfo *file_info = NULL;
|
||||
ot_lobj GFile *content_path = NULL;
|
||||
ot_lobj GFileInfo *archive_info = NULL;
|
||||
@ -109,13 +108,6 @@ import_one_object (OtLocalCloneData *data,
|
||||
ot_lvariant GVariant *xattrs = NULL;
|
||||
ot_lobj GInputStream *input = NULL;
|
||||
|
||||
objfile = ostree_repo_get_object_path (data->src_repo, checksum, objtype);
|
||||
file_info = g_file_query_info (objfile, OSTREE_GIO_FAST_QUERYINFO,
|
||||
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, error);
|
||||
|
||||
if (file_info == NULL)
|
||||
goto out;
|
||||
|
||||
if (objtype == OSTREE_OBJECT_TYPE_FILE)
|
||||
{
|
||||
if (!ostree_repo_load_file (data->src_repo, checksum,
|
||||
|
Loading…
x
Reference in New Issue
Block a user