From d98dbebcfc264489723d04d8358071c1204d5a2f Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Wed, 1 Mar 2006 10:44:45 +0000 Subject: [PATCH] =?UTF-8?q?bi=20hetaa=20olmu=C5=9F,=20=C3=A7a=C4=9Flar'a?= =?UTF-8?q?=20kahvalt=C4=B1=20=C4=B1smarlayaca=C4=9F=C4=B1m.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/actionsapi/shelltools.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pisi/actionsapi/shelltools.py b/pisi/actionsapi/shelltools.py index 683bef63..8053d737 100644 --- a/pisi/actionsapi/shelltools.py +++ b/pisi/actionsapi/shelltools.py @@ -59,15 +59,15 @@ def echo(destionationFile, content): def chmod(filePath, mode = 0755): '''change the mode of filePath to the mode''' - for filePath in glob.glob(filePath): - if can_access_file(filePath): + for fileName in glob.glob(filePath): + if can_access_file(fileName): try: - os.chmod(filePath, mode) + os.chmod(fileName, mode) except OSError: ctx.ui.error(_('ActionsAPI [chmod]: Operation not permitted: %s (mode: %s)') \ - % (filePath, mode)) + % (fileName, mode)) else: - ctx.ui.error(_('ActionsAPI [chmod]: File %s doesn\'t exists.') % (filePath)) + ctx.ui.error(_('ActionsAPI [chmod]: File %s doesn\'t exists.') % (fileName)) def chown(filePath, uid = "root", gid = "root"): '''change the owner and group id of filePath to uid and gid'''