sourcedr: Add installed filter and source filter
This commit adds --installed-filter and --source-filter so that users
can specify their path filters.
List the files from `device/google` and installed to `/system`:
list_installed_file_from_source.py \
sailfish.pickle \
--source-filter device/google \
--installed-filter system
List the files from `device/google` and installed into `/system/lib64` with:
list_installed_file_from_source.py \
sailfish.pickle \
--source-filter device/google \
--installed-filter system/lib64
List the files from `frameworks/base` or `frameworks/native` and installed
into `/system/lib` or `/system/lib64` with:
list_installed_file_from_source.py \
sailfish.pickle \
--source-filter frameworks/base:frameworks/native \
--installed-filter system/lib:system/lib64
Test: Run the commands above
Change-Id: Ib58fd4d1ac52a43fe4a08d0be4a10908217686ec
3 files changed