libglnx porting: Port callers of gs_file_unlink to just unlink()

In the second case it's actually less code too.

Closes: #312
Approved by: giuseppe
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2016-05-30 11:33:28 +00:00
1 parent 9d39d3af85
commit e5eb6f3a22
2 files changed
+9 -19

No files matched your search

+5 -2
View File
@@ -1255,8 +1255,11 @@ impl_repo_remote_delete (OstreeRepo *self,
if (remote->file != NULL)
{
if (!gs_file_unlink (remote->file, cancellable, error))
goto out;
if (unlink (gs_file_get_path_cached (remote->file)) != 0)
{
glnx_set_error_from_errno (error);
goto out;
}
}
else
{