From 847f7141d77d43a604e89dbb442be04f779ee2d3 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Wed, 12 Dec 2007 00:12:19 +0000 Subject: [PATCH] fix python and sqlite trigger git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@845 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/triggerTools.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/triggerTools.py b/client/triggerTools.py index 4a48fc0d8..c8c4ac91e 100644 --- a/client/triggerTools.py +++ b/client/triggerTools.py @@ -518,7 +518,7 @@ def pygtksetup(pkgdata): sympath = os.path.basename(file) if os.path.isfile(file): try: - if os.path.isfile(filepath): + if os.path.lexists(filepath): os.remove(filepath) os.symlink(sympath,filepath) except OSError: @@ -794,12 +794,12 @@ def python_update_symlink(): bins.sort() latest = bins[-1] - latest = etpConst['systemroot']+latest + latest = etpConst['systemroot']+"/usr/bin/"+latest filepath = os.path.dirname(latest)+"/python" sympath = os.path.basename(latest) if os.path.isfile(latest): try: - if os.path.isfile(filepath): + if os.path.lexists(filepath): os.remove(filepath) os.symlink(sympath,filepath) except OSError: @@ -816,12 +816,13 @@ def sqlite_update_symlink(): if bins: bins.sort() latest = bins[-1] + latest = etpConst['systemroot']+"/usr/bin/"+latest filepath = os.path.dirname(latest)+"/lemon" sympath = os.path.basename(latest) if os.path.isfile(latest): try: - if os.path.isfile(filepath): + if os.path.lexists(filepath): os.remove(filepath) os.symlink(sympath,filepath) except OSError: