mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-01 04:10:47 +00:00
Bug 20670 - abipkgdiff aborts if $XDG_CACHE_HOME does not exist
This patch creates $XDG_CACHE_HOME if it doesn't exist, rather than just aborting. * tools/abipkgdiff.cc (package::extracted_packages_parent_dir): Ensure that the cache directory is created, even when XDG_CACHE_HOME is set. Also, remove the now useless "using abigail::tools_utils::get_random_number_as_string" statement. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
72f50a16ce
commit
b859adc08f
@ -564,12 +564,11 @@ package::extracted_packages_parent_dir()
|
||||
if (p.empty())
|
||||
p = "~";
|
||||
p += "/.cache/libabigail";
|
||||
// Create directory $HOME/.cache/libabigail/ if it doesn't
|
||||
// exist
|
||||
bool cache_dir_is_created = ensure_dir_path_created(p);
|
||||
assert(cache_dir_is_created);
|
||||
}
|
||||
using abigail::tools_utils::get_random_number_as_string;
|
||||
|
||||
// Create the cache directory if it doesn't exist
|
||||
bool cache_dir_is_created = ensure_dir_path_created(p);
|
||||
assert(cache_dir_is_created);
|
||||
|
||||
string libabigail_tmp_dir_template = p;
|
||||
libabigail_tmp_dir_template += "/abipkgdiff-tmp-dir-XXXXXX";
|
||||
|
Loading…
Reference in New Issue
Block a user