]> err.no Git - dak/commitdiff
And don't strip the leading / anymore
authorMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 18:28:44 +0000 (18:28 +0000)
committerMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 18:28:44 +0000 (18:28 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/generate_releases.py

index 258677ee47d0b282c96a8d53948fc4c5824423ee..37b4290e19f3ea2ecb145dce20fe35738fb8f6fd 100755 (executable)
@@ -149,7 +149,7 @@ class ReleaseWriter(object):
 
         cnf = Config()
 
-        outfile = os.path.join(cnf["Dir::Root"][1:], 'dists', suite.suite_name, "Release")
+        outfile = os.path.join(cnf["Dir::Root"], 'dists', suite.suite_name, "Release")
         print outfile
         out = open(outfile, "w")
 
@@ -187,7 +187,7 @@ class ReleaseWriter(object):
                 if not re_gensubrelease.match(dirpath):
                     continue
 
-                subfile = os.path.join(dirpath[1:], "Release")
+                subfile = os.path.join(dirpath, "Release")
                 subrel = open(subfile, "w")
 
                 for key, dbfield in subattribs: