# GNU Guix --- Functional package management for GNU # Copyright © 2013, 2014, 2015 Ludovic Courtès # # This file is part of GNU Guix. # # GNU Guix is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or (at # your option) any later version. # # GNU Guix is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Guix. If not, see . # # Test the 'guix-register' command-line utility. # guix-register --version new_store="t-register-$$" closure="t-register-closure-$$" rm -rf "$new_store" exit_hook=":" trap "chmod -R +w $new_store ; rm -rf $new_store $closure ; \$exit_hoo
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/installer/final.scm')
0 files changed, 0 insertions, 0 deletions
we can't use # that name in a 'valid-path?' query because 'assertStorePath' would kill # us because of the wrong prefix. So we just list dead paths instead. guile -c " (use-modules (guix store) (srfi srfi-1)) (define s (open-connection \"$GUIX_DAEMON_SOCKET\")) (exit (lset= string=? (pk 1 (list \"$copied\" \"$copied_duplicate1\" \"$copied_duplicate2\")) (pk 2 (dead-paths s))))" # Kill the daemon so we can access the database below (otherwise we may # get "database is locked" errors.) kill $subdaemon_pid exit_hook=":" while kill -0 $subdaemon_pid ; do sleep 0.5 ; done # When 'sqlite3' is available, check the name in the database. if type -P sqlite3 then echo "select * from ValidPaths where path=\"$final_name\";" | \ sqlite3 "$NIX_DB_DIR/db.sqlite" fi done