]> err.no Git - dak/commitdiff
Dir::TempPath is a better choice
authorLuca Falavigna <dktrkranz@debian.org>
Fri, 17 Sep 2010 23:13:00 +0000 (23:13 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Fri, 17 Sep 2010 23:13:00 +0000 (23:13 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/make_changelog.py

index 7f251175de2e178c93528c625f4e8cc6da95f322..2f85c89b6eefa309dfe088c0fa567fbef0655d99 100755 (executable)
@@ -182,7 +182,7 @@ def display_changes(uploads, index):
         print upload[index]
         prev_upload = upload[0]
 
-def export_files(session, pool, clpool):
+def export_files(session, pool, clpool, temppath):
     """
     Export interesting files from source packages.
     """
@@ -200,7 +200,7 @@ def export_files(session, pool, clpool):
             sources[p[0]] = {}
         sources[p[0]][p[1]] = (p[2], p[3])
 
-    tempdir = utils.temp_dirname(parent=clpool)
+    tempdir = utils.temp_dirname(parent=temppath)
     os.rmdir(tempdir)
 
     for p in sources.keys():
@@ -291,7 +291,7 @@ def main():
     if testing:
         display_changes(testing_summary(Cnf['Changelogs::Testing'], session), 1)
     elif export:
-        export_files(session, Cnf['Dir::Pool'], Cnf['Changelogs::Export'])
+        export_files(session, Cnf['Dir::Pool'], Cnf['Changelogs::Export'], Cnf['Dir::TempPath'])
     elif binnmu:
         display_changes(get_binary_uploads(suite, base_suite, session), 3)
     else: