From d3316e31b64ba3b7679568cc92dcc6e82f6c8691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Mon, 19 Aug 2013 13:00:32 +0200 Subject: [PATCH] fix kms bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/kms.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/kms.py b/src/kms.py index c012c081..f10baf12 100755 --- a/src/kms.py +++ b/src/kms.py @@ -156,13 +156,15 @@ class KMS(): @staticmethod - def __createKMSPony(pony, kmspony, cachedir): + def __createKMSPony(pony, kmspony, cachedir, palette, shared): ''' Create KMS pony - @param pony:str Choosen pony file - @param kmspony:str The KMS pony file - @param cachedir:str The cache directory + @param pony:str Choosen pony file + @param kmspony:str The KMS pony file + @param cachedir:str The cache directory + @param palette:str The palette + @parma shared:str Whether shared cache is used ''' ## kmspony directory kmsponydir = kmspony[:kmspony.rindex('/')] @@ -216,7 +218,7 @@ class KMS(): palettefile = env_kms.replace('\033]P', '') ## Get and if necessary make cache directory - (cachedir, share) = KMS.__getCacheDirectory(home) + (cachedir, shared) = KMS.__getCacheDirectory(home) ## KMS support version control, clean everything if not matching if KMS.__isCacheOld(cachedir): @@ -228,7 +230,7 @@ class KMS(): ## If the kmspony is missing, create it if not os.path.isfile(kmspony): - KMS.__createKMSPony(pony, kmspony, cachedir) + KMS.__createKMSPony(pony, kmspony, cachedir, palette, shared) return kmspony