X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fgenerate_releases.py;h=a57c5fc22143047628dd87dd1c1d440064899c6e;hb=aa4f71d8e30c23e458a8148be258c89bffbd405f;hp=3801132db5b72298c32f2a6fdfbc51916002183b;hpb=9427ebbb129f023f065c1ad34290ce74f9f8b83b;p=dak.git diff --git a/dak/generate_releases.py b/dak/generate_releases.py index 3801132d..a57c5fc2 100755 --- a/dak/generate_releases.py +++ b/dak/generate_releases.py @@ -145,9 +145,9 @@ class ReleaseWriter(object): cnf = Config() - suite_suffix = "%s" % (cnf.find("Dinstall::SuiteSuffix")) + suite_suffix = cnf.find("Dinstall::SuiteSuffix", "") - outfile = os.path.join(cnf["Dir::Root"], 'dists', "%s/%s" % (suite.suite_name, suite_suffix), "Release") + outfile = os.path.join(suite.archive.path, 'dists', suite.suite_name, suite_suffix, "Release") out = open(outfile + ".new", "w") for key, dbfield in attribs: @@ -182,7 +182,7 @@ class ReleaseWriter(object): out.write("Description: %s\n" % suite.description) for comp in components: - for dirpath, dirnames, filenames in os.walk("%sdists/%s/%s%s" % (cnf["Dir::Root"], suite.suite_name, suite_suffix, comp), topdown=True): + for dirpath, dirnames, filenames in os.walk(os.path.join(suite.archive.path, "dists", suite.suite_name, suite_suffix, comp), topdown=True): if not re_gensubrelease.match(dirpath): continue @@ -214,7 +214,7 @@ class ReleaseWriter(object): # their checksums to the main Release file oldcwd = os.getcwd() - os.chdir("%sdists/%s/%s" % (cnf["Dir::Root"], suite.suite_name, suite_suffix)) + os.chdir(os.path.join(suite.archive.path, "dists", suite.suite_name, suite_suffix)) hashfuncs = { 'MD5Sum' : apt_pkg.md5sum, 'SHA1' : apt_pkg.sha1sum,