[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r931 -
From:       codesite-noreply () google ! com
Date:       2008-01-27 20:08:10
Message-ID: 000e0cd2bd280444b9c0287aaf11909 () google ! com
[Download RAW message or body]

Author: KillerKiwi2005
Date: Sun Jan 27 12:01:05 2008
New Revision: 931

Modified:
   trunk/client/trunk/klikclient/lib/klik/create.py

Log:
Escape recipe name so we dont run into issues with odd chars

Modified: trunk/client/trunk/klikclient/lib/klik/create.py
==============================================================================
--- trunk/client/trunk/klikclient/lib/klik/create.py	(original)
+++ trunk/client/trunk/klikclient/lib/klik/create.py	Sun Jan 27 
12:01:05 2008
@@ -70,7 +70,7 @@
 		self.recipe = recipe
 		
 		# Create the temp folder
-		build_path = tempfile.mkdtemp('.build.' + recipe.name , self.klik.settings.temp_directory_path)
+		build_path = tempfile.mkdtemp('.build.' + 
urllib.quote(recipe.name) , self.klik.settings.temp_directory_path)
 		# Take user out privacy issue with error post .. + '.' + os.environ["USER"]
 		
  		cache_path = os.path.join( 
self.klik.settings.temp_directory_path, "cache" )
@@ -90,7 +90,7 @@
 		else:
 			separator =""

-		app_path = os.path.expanduser(u"%s/%s%s%s.cmg" % (location, 
recipe.name, separator, recipe.version))
+		app_path = os.path.expanduser(u"%s/%s%s%s.cmg" % (location, 
urllib.quote(recipe.name), separator, recipe.version))
 		
 		# Download all packages
 		self.events.print_to_stdout( "" )
@@ -230,9 +230,9 @@

 		# create a new build path if we dont have one yet
 		if build_path == None:
-			build_path = tempfile.mkdtemp('.build.' + recipe.name + '.' + 
os.environ["USER"] , self.klik.settings.temp_directory_path)
+			build_path = tempfile.mkdtemp('.build.' + urllib.quote(recipe.name) 
+ '.' + os.environ["USER"] , self.klik.settings.temp_directory_path)

-		cmg_path = os.path.join(build_path, recipe.name + "_" + 
recipe.version + ".cmg")
+		cmg_path = os.path.join(build_path, urllib.quote(recipe.name) + "_" 
+ recipe.version + ".cmg")

  		self.events.on_download_progress( -1, _("Compressing Application 
Image...") )

_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic