guix-devel/guix/scripts
Ludovic Courtès f3f1d0a557
guix system: Make 'init' idempotent again.
This fixes a regression introduced in
df2f6400b1fbc282ef4d6dd7124ea1c17adc23c2: since the new
'register-path' (actually 'reset-timestamps') would make files
read-only, 'delete-file-recursively' would fail to delete them.  Thus,
re-running 'guix system init' on an already-populated store would fail
with a 'delete-file' EPERM.

* guix/scripts/system.scm (copy-item): Use 'lstat' instead of
'file-exists?'.  Call 'make-file-writable' on each directory below
DEST.
2018-07-03 17:50:04 +02:00
..
container ui: Rename '_' to 'G_'. 2017-05-03 16:16:17 +02:00
import import: elpa: Add recursive import. 2018-06-08 14:58:33 +03:00
system guix system: search: Display all provision names as 'shepherdnames'. 2018-05-01 23:29:03 +02:00
archive.scm scripts: All commands enable build hooks by default. 2017-12-07 23:12:37 +01:00
authenticate.scm ui: Rename '_' to 'G_'. 2017-05-03 16:16:17 +02:00
build.scm guix build: Nicely report unbound variables with hints. 2018-05-04 15:07:08 +02:00
challenge.scm scripts: Factorize option parsing sans 'GUIX_BUILD_OPTIONS'. 2017-10-28 09:45:53 +02:00
container.scm ui: Rename '_' to 'G_'. 2017-05-03 16:16:17 +02:00
copy.scm scripts: All commands enable build hooks by default. 2017-12-07 23:12:37 +01:00
download.scm Add (guix progress). 2017-10-19 23:21:49 +02:00
edit.scm ui: Rename '_' to 'G_'. 2017-05-03 16:16:17 +02:00
environment.scm guix environment: load manifest files like "guix package" does 2018-03-27 23:26:15 +02:00
gc.scm scripts: gc: Report size in MiBs instead of bytes. 2018-06-28 00:29:46 +02:00
graph.scm graph: Add "module" node type. 2018-03-27 14:51:44 +02:00
hash.scm scripts: Factorize option parsing sans 'GUIX_BUILD_OPTIONS'. 2017-10-28 09:45:53 +02:00
import.scm import: Add JSON importer. 2017-09-28 13:10:11 +02:00
lint.scm packages: Add 'package-patched-vulnerabilities'. 2018-06-09 12:02:28 +02:00
offload.scm offload: Fix error message in 'guix offload test'. 2018-06-15 10:04:59 +02:00
pack.scm pack: Squashfs build expression refers to (guix store database) & co. 2018-06-25 23:34:38 +02:00
package.scm profiles: Add '%current-profile', 'user-friendly-profile', & co. 2018-06-09 12:02:28 +02:00
perform-download.scm derivations: Introduce 'read-derivation-from-file'. 2017-06-12 17:53:51 +02:00
publish.scm publish: Restore gzip compression in cache-less mode. 2018-01-22 11:15:50 +01:00
pull.scm pull: Add '--list-generations'. 2018-06-13 23:41:21 +02:00
refresh.scm refresh: Account for hidden packages. 2017-11-07 00:12:10 +01:00
size.scm store: Add 'query-path-info*'. 2018-07-03 00:39:10 +02:00
substitute.scm substitute: Make progress message shorter. 2018-06-12 15:23:34 +02:00
system.scm guix system: Make 'init' idempotent again. 2018-07-03 17:50:04 +02:00
weather.scm weather: Fix type error when reporting CI stats. 2018-04-30 23:41:21 +02:00