From ce6652ce61b30f6a7aa793b87e16b4f213767580 Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Mon, 6 Mar 2006 13:24:05 +0000 Subject: [PATCH] =?UTF-8?q?=20typo=20yapm=C4=B1=C5=9F=C4=B1m..=20Furkan=20?= =?UTF-8?q?farkedip=20haber=20verdi=20sa=C4=9Folsun.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/actionsapi/shelltools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pisi/actionsapi/shelltools.py b/pisi/actionsapi/shelltools.py index 2df0172c..45e42ba3 100644 --- a/pisi/actionsapi/shelltools.py +++ b/pisi/actionsapi/shelltools.py @@ -133,10 +133,9 @@ def copy(source, destination): elif isLink(filePath): if isDirectory(destination): os.symlink(os.readlink(filePath), join_path(destination, os.path.basename(filePath))) - if isFile(destination): - os.remove(destination) - os.symlink(os.readlink(filePath), destination) else: + if isFile(destination): + os.remove(destination) os.symlink(os.readlink(filePath), destination) elif isDirectory(filePath): copytree(filePath, destination)