summary: delete summary.sig on an update
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
6aeeba4280
commit
70d9599246
|
|
@ -3704,6 +3704,15 @@ ostree_repo_regenerate_summary (OstreeRepo *self,
|
||||||
error))
|
error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
if (unlinkat (self->repo_dir_fd, "summary.sig", 0) < 0)
|
||||||
|
{
|
||||||
|
if (errno != ENOENT)
|
||||||
|
{
|
||||||
|
gs_set_error_from_errno (error, errno);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
out:
|
out:
|
||||||
if (ordered_keys)
|
if (ordered_keys)
|
||||||
|
|
|
||||||
|
|
@ -53,3 +53,8 @@ ${CMD_PREFIX} $OSTREE commit -b test -s "Another commit..." test
|
||||||
echo "ok commit 3"
|
echo "ok commit 3"
|
||||||
|
|
||||||
assert_not_streq "$OLD_MD5" "$(md5sum repo/summary)"
|
assert_not_streq "$OLD_MD5" "$(md5sum repo/summary)"
|
||||||
|
|
||||||
|
# Check that summary --update deletes the .sig file
|
||||||
|
touch repo/summary.sig
|
||||||
|
${CMD_PREFIX} $OSTREE summary --update
|
||||||
|
assert_not_has_file repo/summary.sig
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue