[tor-commits] [thandy/master] Paths inside a Thp cfg will use / from now on

nickm at torproject.org nickm at torproject.org
Thu Nov 3 19:14:20 UTC 2011


commit 78e260013786d048589172a74dbe6288ef4edba6
Author: Tomás Touceda <chiiph at torproject.org>
Date:   Thu Oct 20 10:55:51 2011 -0300

    Paths inside a Thp cfg will use / from now on
---
 lib/thandy/packagesys/ThpPackages.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/thandy/packagesys/ThpPackages.py b/lib/thandy/packagesys/ThpPackages.py
index da76c6b..84e55c5 100644
--- a/lib/thandy/packagesys/ThpPackages.py
+++ b/lib/thandy/packagesys/ThpPackages.py
@@ -249,8 +249,8 @@ class ThpInstaller(PS.Installer):
               logging.info("Processing file: %s" % file)
               try:
                   # Create all the needed dirs
-                  os.makedirs(os.sep.join((os.path.join(destPath, file['name'])
-                    .split(os.path.sep)[:-1])))
+                  os.makedirs(os.path.join((os.path.join(destPath, file['name'])
+                    .split("/")[:-1])))
               except:
                   # Ignore if it already exists
                   pass





More information about the tor-commits mailing list