Package: aptitude / 0.8.11-7

fix-changelog-retrieval.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Fix changelog retrieval
Author: Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>
Forwarded: no

--- a/src/generic/util/util.cc
+++ b/src/generic/util/util.cc
@@ -526,6 +526,7 @@
 	if (!tmp_dir_ok)
 	  return {};
 
+	dest_dir = tmpdir;
 	fs::permissions(dest_dir,
 			fs::perms::owner_all);
 
--- a/src/generic/apt/download_queue.cc
+++ b/src/generic/apt/download_queue.cc
@@ -954,13 +954,7 @@
 	    }
 	}
 
-	std::string dest_dir = aptitude::util::create_temporary_changelog_dir();
-	if (dest_dir.empty())
-	  {
-	    _error->Error("Failed to create temporary directory for download");
-	    return rval;
-	  }
-	std::string dest_filename = temp::name(dest_dir).get_name();
+	std::string dest_filename = temp::name("aptitude-download-").get_name();
 
 	auto start = std::make_shared<start_request>(uri,
 						     short_description,