mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-19 16:30:04 +00:00
b8ae34192f
This patch extracts all packages for a given run of abipkgdiff under the same temporary directory, cluttering /tmp less. To do this, the patch makes accesses of data members of the 'package' type go through accessor functions only. Then the accessor for the parent directory of all extracted package does the job of computing the path to that parent directory in a way that makes it unique, per thread. * tools/abipkgdiff.cc (package::{<all data members>}): Make the data members be private. Make their names end with an underscore. (package::extracted_package_parent_dir_path): Remove. (package::extracted_package_dir_path): Rename into package::extracted_dir_path_. (package::extracted_packages_parent_dir): New static member function, accessor. (package::package): Adjust to the new names of the data members. Call the new package::extracted_package_parent_dir() static member function to initial the package::extracted_dir_path_ data member. (package::{path, extracted_dir_path, type, is_debug, path_elf_file_sptr_map, debug_info_package}): New accessors for the data members. (package::{erase_extraction_directory, erase_extraction_directories}): Adjust. (erase_created_temporary_directories) (create_maps_of_package_content) (extract_package_and_map_its_content, prepare_packages, compare) (main): Adjust. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
abiar.cc | ||
abicompat.cc | ||
abidiff.cc | ||
abidw.cc | ||
abilint.cc | ||
abipkgdiff.cc | ||
abisym.cc | ||
binilint.cc | ||
Makefile.am |