]> git.donarmstrong.com Git - dak.git/commitdiff
Slightly more useful tempfile names
authorJoerg Jaspert <joerg@debian.org>
Mon, 12 Jul 2010 19:29:56 +0000 (21:29 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 12 Jul 2010 19:29:56 +0000 (21:29 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/generate_packages_sources.py

index 6e91aedae5470474a5130c3bfe59d002816d4682..7820974acab8fcd9d86a4e91d13e30a2119adadf 100755 (executable)
@@ -274,7 +274,7 @@ tree "dists/proposed-updates/main"
     cnf = Config()
     try:
         # Write apt.conf
-        (ac_fd, ac_name) = mkstemp(dir=tmppath)
+        (ac_fd, ac_name) = mkstemp(dir=tmppath, suffix=suite, prefix=arch)
         os.write(ac_fd, DAILY_APT_CONF)
         # here we want to generate the tree entries
         os.write(ac_fd, apt_trees[suite] % {'arch': arch})