mirror of
git://git.savannah.gnu.org/guix/guix-cuirass.git
synced 2023-12-14 06:03:04 +01:00
Use notifications and outputs from the existing specification.
This commit is contained in:
parent
8f9b791e5b
commit
9d8fe4ca8a
|
@ -526,8 +526,18 @@ into a specification record and return it."
|
|||
|
||||
(('POST "admin" "specification" "edit")
|
||||
(let* ((spec (body->specification body))
|
||||
(name (specification-name spec)))
|
||||
(db-add-or-update-specification spec)
|
||||
(name (specification-name spec))
|
||||
(old-spec (db-get-specification name))
|
||||
(old-outputs (specification-build-outputs old-spec))
|
||||
(old-notifications (specification-notifications old-spec)))
|
||||
;; XXX: It is not possible yet to edit build outputs and notifications
|
||||
;; using the web interface. Use the outputs and notifications from the
|
||||
;; existing specification.
|
||||
(db-add-or-update-specification
|
||||
(specification
|
||||
(inherit spec)
|
||||
(build-outputs old-outputs)
|
||||
(notifications old-notifications)))
|
||||
(respond
|
||||
(build-response #:code 302
|
||||
#:headers
|
||||
|
|
Loading…
Reference in a new issue