From 429e0caf17427b7a1d78b667c1bb1dd107379bf4 Mon Sep 17 00:00:00 2001
From: Aleric Inglewood <Aleric.Inglewood@gmail.com>
Date: Wed, 15 Dec 2010 17:31:18 +0100
Subject: [PATCH] SNOW-744: scripts/install.py --uninstall does not remove
 symbolic links.

This fixes the problem that when some package contains symbolic
links, they were never removed anymore (after an uninstall of
that package).
---
 doc/contributions.txt | 1 +
 scripts/install.py    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/contributions.txt b/doc/contributions.txt
index 740c2f470c6..3f080dfb6d2 100644
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -74,6 +74,7 @@ Aleric Inglewood
 	VWR-14426
 	SNOW-84
 	SNOW-477
+	SNOW-744
 	SNOW-766
 	STORM-163
 Ales Beaumont
diff --git a/scripts/install.py b/scripts/install.py
index c2adf4d0a27..d3bdf522837 100755
--- a/scripts/install.py
+++ b/scripts/install.py
@@ -486,7 +486,7 @@ def _uninstall(self, installables):
         for filename in remove_file_list:
             print "rm",filename
             if not self._dryrun:
-                if os.path.exists(filename):
+                if os.path.lexists(filename):
                     remove_dir_set.add(os.path.dirname(filename))
                     try:
                         os.remove(filename)
-- 
GitLab