From 903f138eb429ee1a78d3845a627a6d761fa649c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Tue, 28 Jun 2005 13:48:28 +0000 Subject: [PATCH] Build error fix --- pisi/actionsapi/pisitools.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pisi/actionsapi/pisitools.py b/pisi/actionsapi/pisitools.py index afa40905..f8b6fe8d 100644 --- a/pisi/actionsapi/pisitools.py +++ b/pisi/actionsapi/pisitools.py @@ -11,11 +11,13 @@ def dodoc(*documentList): srcTag = src_name + '-' + src_version + '-' + src_release - # FIXME: Exception yiyoruz eğer klasör mevcutsa, adam edilecek! - os.makedirs(install_dir + '/' + 'usr/share/doc/' + srcTag) - + try: + os.makedirs(install_dir + '/' + 'usr/share/doc/' + srcTag) + except OSError: + pass + for document in documentList: if os.access(document, os.F_OK): shutil.copyfile(document, os.path.join(install_dir, \ 'usr/share/doc/' + srcTag + '/' + os.path.basename(document))) - \ No newline at end of file +