mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
scripts: system: Do not pull checkouts for same commit.
In case a user reconfigures to the same commit, do not update cached checkout unnecessarily. * guix/scripts/system/reconfigure.scm (channel-relations): Return early for matching old and new commits. Change-Id: Ia4b7300bbce40f7d809946dd3514715b74cd17f9 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
This commit is contained in:
parent
2a0ac4cba5
commit
0ecfe335b9
1 changed files with 13 additions and 9 deletions
|
|
@ -407,6 +407,10 @@ to commits of channels in NEW."
|
|||
(channel-name old)))
|
||||
new)))
|
||||
(and new
|
||||
(if (string=? (channel-commit old) (channel-commit new))
|
||||
(list new
|
||||
(channel-commit old) (channel-commit new)
|
||||
'self)
|
||||
(let ((checkout commit relation
|
||||
(update-cached-checkout
|
||||
(channel-url new)
|
||||
|
|
@ -415,7 +419,7 @@ to commits of channels in NEW."
|
|||
#:check-out? #f)))
|
||||
(list new
|
||||
(channel-commit old) (channel-commit new)
|
||||
relation)))))
|
||||
relation))))))
|
||||
old))
|
||||
|
||||
(define* (check-forward-update #:optional
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue