xbps-checkvers: list installed subpackages

Subpackages without main package installed wasn't reported
at all. This can produce duplicates in output, but checkvers'
output isn't good to loop over without passing through
./xbps-src sort-dependencies anyway.

Closes: #404 [via git-merge-pr]
This commit is contained in:
Piotr Wójcik 2021-05-27 23:32:54 +02:00 committed by Duncan Overbruck
parent 9f5a029a3f
commit 18416e2de8
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -636,7 +636,7 @@ rcv_process_dir(rcv_t *rcv, rcv_proc_func process)
if (rcv->show_removed)
xbps_dictionary_set_bool(rcv->templates, result->d_name, true);
if (S_ISLNK(st.st_mode) != 0)
if (S_ISLNK(st.st_mode) != 0 && !rcv->installed)
continue;
snprintf(filename, sizeof(filename), "%s/template", result->d_name);