]> err.no Git - dak/commitdiff
Fix up output path for security
authorMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 18:54:12 +0000 (18:54 +0000)
committerMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 18:54:12 +0000 (18:54 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/generate_releases.py

index 17b68d3d1370ddaa1ccf6eee3ca1d35ed3fc54b6..34472425a2f30ca31272230e9e1d495c256eb45c 100755 (executable)
@@ -149,7 +149,9 @@ class ReleaseWriter(object):
 
         cnf = Config()
 
-        outfile = os.path.join(cnf["Dir::Root"], 'dists', suite.suite_name, "Release")
+        suite_suffix = "%s" % (cnf.Find("Dinstall::SuiteSuffix"))
+
+        outfile = os.path.join(cnf["Dir::Root"], 'dists', "%s%s" % (suite.suite_name, suite_suffix), "Release")
         out = open(outfile, "w")
 
         for key, dbfield in attribs:
@@ -168,8 +170,6 @@ class ReleaseWriter(object):
 
         out.write("Architectures: %s\n" % (" ".join([a.arch_string for a in architectures])))
 
-        suite_suffix = "%s" % (cnf.Find("Dinstall::SuiteSuffix"))
-
         ## FIXME: Components need to be adjusted to whatever will be in the db
         ## Needs putting in the DB
         components = ['main', 'contrib', 'non-free']