libabigail/bash-completion
Chenxiong Qi 33ee1f2a5d Bug 20087 - Clean cache before or after ABI comparison
Cache data, currently containing downloaded RPM packages from Koji, is
stored in XDG_CACHE_HOME. This patch allows user to delete cache before
or after the ABI comparison, or both.

	* configure.ac: Require shutil module.
	* doc/manuals/fedabipkgdiff.rst: Add document for new option
	clean-cache, clean-cache-before, and clean-cache-after.
	* tools/fedabipkgdiff (build_commandline_args_parser): Add new
	option --clean-cache, --clean-cache-before and
	--clean-cache-after.
	(diff_local_rpm_with_latest_rpm_from_koji): Delete download
	cache directory before or after downloading RPMs.
	(diff_latest_rpms_based_on_distros): Likewise.
	(diff_two_nvras_from_koji): Likewise.
	(diff_from_two_rpm_files): Likewise.
	* bash-completion/fedabipkgdiff: Add new options.
	* tests/mockfedabipkgdiff.in (get_download_dir): Rewrite to
	behave just like the original get_download_dir.
	(mock_get_download_dir): Removed.
	(DOWNLOAD_CACHE_DIR): New global variable pointing directory
	holding packages during tests.
	(run_fedabipkgdiff): Mock original get_download_dir with the
	rewrite get_download_dir.
	* tests/runtestfedabipkgdiff.py.in (run_fedabipkgdiff_tests):
	Add --clean-cache to run tests to ensure no regression.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2017-03-22 15:43:37 +01:00
..
abicompat Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
abidiff Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
abidw Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
abilint Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
abinilint Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
abipkgdiff Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
abisym Make bash completion files non-executable 2016-11-26 12:29:12 +01:00
fedabipkgdiff Bug 20087 - Clean cache before or after ABI comparison 2017-03-22 15:43:37 +01:00
Makefile.am Add fedabipkgdiff bash completion to dist 2016-06-30 09:38:13 +02:00