mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Do not show ".SRCINFO unchanged" warning on restore
Since 612300b
(Show a warning if .SRCINFO is unchanged, 2015-09-29), the
git-update script displays a warning when a ref update does not affect
the content of the package base meta data. We also invoke git-update to
rebuild the package base details in the aurweb database when a package
base is restored via the SSH interface. In that case, fake information
is passed to the update hook: Both the old and the new object IDs refer
to the current HEAD. Check for such "Everything up-to-date" updates and
not display the ".SRCINFO unchanged" in these cases.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
4fe513d838
commit
62c13e2c0c
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ for commit in walker:
|
||||||
die_commit('missing source file: {:s}'.format(fname), str(commit.id))
|
die_commit('missing source file: {:s}'.format(fname), str(commit.id))
|
||||||
|
|
||||||
# Display a warning if .SRCINFO is unchanged.
|
# Display a warning if .SRCINFO is unchanged.
|
||||||
if sha1_old != "0000000000000000000000000000000000000000":
|
if sha1_old not in ("0000000000000000000000000000000000000000", sha1_new):
|
||||||
srcinfo_id_old = repo[sha1_old].tree['.SRCINFO'].id
|
srcinfo_id_old = repo[sha1_old].tree['.SRCINFO'].id
|
||||||
srcinfo_id_new = repo[sha1_new].tree['.SRCINFO'].id
|
srcinfo_id_new = repo[sha1_new].tree['.SRCINFO'].id
|
||||||
if srcinfo_id_old == srcinfo_id_new:
|
if srcinfo_id_old == srcinfo_id_new:
|
||||||
|
|
Loading…
Add table
Reference in a new issue