summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-12-20 10:56:45 +0100
committerMathieu Othacehe <othacehe@gnu.org>2020-12-20 10:56:45 +0100
commitee94cd265e03d12eeeccf58cbaf74b90008fcd14 (patch)
tree00a4f5bfe281eb964c4b15a76a0ff1a302e2a430 /guix
parentf9978346e73359ac1d8b88c9ed874edc7225582b (diff)
scripts: discover: Remove previous cache file.
Partially fixes <https://issues.guix.gnu.org/45302>. * guix/scripts/discover.scm (guix-discover): Remove previous cache files.
Diffstat (limited to 'guix')
-rw-r--r--guix/scripts/discover.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/scripts/discover.scm b/guix/scripts/discover.scm
index 2b5b564bbe..6aade81ed1 100644
--- a/guix/scripts/discover.scm
+++ b/guix/scripts/discover.scm
@@ -137,5 +137,6 @@ to synchronize with the writer."
(publish-file (publish-file cache)))
(parameterize ((%publish-file publish-file))
(mkdir-p (dirname publish-file))
+ (false-if-exception (delete-file publish-file))
(avahi-browse-service-thread service-proc
#:types %services)))))