Mercurial > gub
changeset 954:4cd11a9b5b85
always remove symlinks.
author | Han-Wen Nienhuys <hanwen@xs4all.nl> |
---|---|
date | Thu, 12 Jan 2006 11:43:21 +0100 |
parents | 74de7dc5f3be |
children | b22dca837d99 |
files | specs/xpm.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/specs/xpm.py Thu Jan 12 11:43:03 2006 +0100 +++ b/specs/xpm.py Thu Jan 12 11:43:21 2006 +0100 @@ -217,8 +217,9 @@ files = [] for i in lst: f = os.path.join (self.root, i) - if (not os.path.exists (f) - and not os.path.islink (f) + if os.path.islink (f): + files.append (f) + elif (not os.path.exists (f) and not package.settings.is_distro): print 'xpm: uninstall: %s' % package print 'xpm: no such file: %s' % f