summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-06-04 18:33:19 +0200
committerLudovic Courtès <ludo@gnu.org>2018-06-14 11:16:58 +0200
commitf8f9f7cabca3f0ea1f8b8cb4fecfc45889bdfb94 (patch)
tree9dbaccc4b647b39acd0dc0c3a03990f250583546 /gnu/system
parent3931c76154d4f418d5ea9acc5e47bf911d371c24 (diff)
downloadpatches-f8f9f7cabca3f0ea1f8b8cb4fecfc45889bdfb94.tar
patches-f8f9f7cabca3f0ea1f8b8cb4fecfc45889bdfb94.tar.gz
database: Fail registration when encountering unregistered references.
* guix/store/database.scm (add-reference-sql): Remove nested SELECT. (add-references): Expect REFERENCES to be a list of ids. (sqlite-register): Call 'path-id' for each of REFERENCES and pass it to 'add-references'. * tests/store-database.scm ("register-path with unregistered references"): New test.
Diffstat (limited to 'gnu/system')
0 files changed, 0 insertions, 0 deletions