diff test-svn.py @ 20:5bfa23cd638d

More ZIP archive fixes One typo and one Windows incompatibility fixed.
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 14 Jun 2010 21:02:06 +0000
parents d4fc9341664e
children f90bd2d1a12b
line wrap: on
line diff
--- a/test-svn.py	Sun Jun 13 12:46:49 2010 +0000
+++ b/test-svn.py	Mon Jun 14 21:02:06 2010 +0000
@@ -356,14 +356,14 @@
 			f = zipfile.ZipFile(os.path.join(oldcwd, 'tests.zip'))
 			try:
 				m = f.getinfo(name)
-				m.filename = target[1:]
+				m.filename = os.path.relpath(target)
 				f.extract(m)
 				f.close()
 				os.chdir(oldcwd)
 				return True
 			except KeyError:
 				f.close()
-				os.chdir(oldwcd)
+				os.chdir(oldcwd)
 	if os.path.isfile('tests.tgz'):
 		f = tarfile.open('tests.tgz')
 		try: