core: Fix regression when committing symlinks in archive mode

Commit 802959f398 broke this because it
made all archived content files be S_IFREG, which is clearly wrong.
This commit is contained in:
Colin Walters committed 2012-02-24 10:05:26 -05:00
1 parent f14ea4b2bf
commit 16c0cfe9b5
2 files changed
+6 -2

No files matched your search

+2 -1
View File
@@ -938,8 +938,9 @@ impl_stage_archive_file_object_from_raw (OstreeRepo *self,
cancellable, error))
goto out;
if (ret_checksum)
if (out_checksum)
{
g_assert (ret_checksum);
ostree_checksum_update_stat (ret_checksum,
g_file_info_get_attribute_uint32 (file_info, "unix::uid"),
g_file_info_get_attribute_uint32 (file_info, "unix::gid"),