[gnome-software] trivial: Actually delete the symlink when it is invalid



commit 19dab95a20e9eadf23ff79c40126ce244215cbf1
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 13 17:18:48 2016 +0100

    trivial: Actually delete the symlink when it is invalid

 src/plugins/gs-flatpak-symlinks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-flatpak-symlinks.c b/src/plugins/gs-flatpak-symlinks.c
index 94bc92e..ee0e482 100644
--- a/src/plugins/gs-flatpak-symlinks.c
+++ b/src/plugins/gs-flatpak-symlinks.c
@@ -108,7 +108,7 @@ gs_flatpak_symlinks_check_exist (FlatpakRemote *xremote,
                           symlink_source,
                           symlink_target,
                           symlink_target_actual);
-               if (!gs_utils_unlink (symlink_target_actual, error))
+               if (!gs_utils_unlink (symlink_source, error))
                        return FALSE;
        }
 


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