[gnome-control-center/gnome-3-28] user-accounts: Force symlink creation



commit 4f3035effef08e72cffea75ec8b3dd5b8051d0c7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Mar 6 22:02:58 2018 -0300

    user-accounts: Force symlink creation
    
    So that we can run Settings more than once in GNOME Builder.
    Without the -f flag, ln errs out after these symlinks are
    created, and Builder refuses to run after that.
    
    Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/107

 panels/user-accounts/meson.build | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/user-accounts/meson.build b/panels/user-accounts/meson.build
index 65341410d..0b0a4fecf 100644
--- a/panels/user-accounts/meson.build
+++ b/panels/user-accounts/meson.build
@@ -78,9 +78,9 @@ install_data(
 
 # create symlinks for legacy images to not break current images for people
 meson.add_install_script('sh', '-c',
-                         'for f in $DESTDIR@0@/*; do
-                          ln -s legacy/$(basename $f) $DESTDIR@1@/$(basename $f);
-                          done'.format(legacy_image_dir, image_dir))
+                         '''for f in $DESTDIR@0@/*; do
+                          ln -sf legacy/$(basename $f) $DESTDIR@1@/$(basename $f);
+                          done'''.format(legacy_image_dir, image_dir))
 
 polkit = 'org.gnome.controlcenter.@0@.policy'.format(cappletname)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]