Tatsh / livecheck

Tool to update ebuilds.
https://livecheck.readthedocs.io/en/latest/
MIT License
3 stars 2 forks source link

use "match-all" instead of "match-visible" #203

Closed inode64 closed 1 week ago

inode64 commented 2 weeks ago

When I was testing with different jetbrains ebuilds I realized that sometimes it selects in the search, as an example: python -m livecheck -W /usr/portage/dev-util/clion/ -d without the patch

2024-10-05 16:56:34.932 | DEBUG    | livecheck.main:get_props:126 - search_dir=/usr/portage/dev-util/clion repo_root=/usr/portage repo_name=portage
DEBUG:asyncio:Using selector: EpollSelector
2024-10-05 16:56:34.936 | DEBUG    | livecheck.main:get_props:141 - Found 0 ebuilds
2024-10-05 16:56:34.936 | ERROR    | livecheck.main:get_props:143 - No matches!
Aborted!

After this patch + patch #202

2024-10-05 16:59:15.419 | DEBUG    | livecheck.main:get_props:126 - search_dir=/usr/portage/dev-util/clion repo_root=/usr/portage repo_name=portage
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:livecheck.utils.portage:Found multiple ebuilds of dev-util/clion. Only the highest version ebuild will be considered.
DEBUG:livecheck.utils.portage:Found multiple ebuilds of dev-util/clion. Only the highest version ebuild will be considered.
DEBUG:livecheck.utils.portage:Found multiple ebuilds of dev-util/clion. Only the highest version ebuild will be considered.
DEBUG:livecheck.utils.portage:Found multiple ebuilds of dev-util/clion. Only the highest version ebuild will be considered.
DEBUG:livecheck.utils.portage:Found multiple ebuilds of dev-util/clion. Only the highest version ebuild will be considered.
2024-10-05 16:59:15.422 | DEBUG    | livecheck.main:get_props:141 - Found 1 ebuilds
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): data.services.jetbrains.com:443
DEBUG:urllib3.connectionpool:https://data.services.jetbrains.com:443 "GET /products HTTP/11" 200 None
2024-10-05 16:59:16.463 | DEBUG    | livecheck.main:main:482 - Fetching https://download.jetbrains.com/cpp/CLion-2024.2.2.tar.gz
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): download.jetbrains.com:443
DEBUG:urllib3.connectionpool:https://download.jetbrains.com:443 "GET /cpp/CLion-2024.2.2.tar.gz HTTP/11" 302 138
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): download-cdn.jetbrains.com:443
DEBUG:urllib3.connectionpool:https://download-cdn.jetbrains.com:443 "GET /cpp/CLion-2024.2.2.tar.gz HTTP/11" 200 1425685720
2024-10-05 16:59:29.586 | DEBUG    | livecheck.main:do_main:354 - Result count: 1
2024-10-05 16:59:29.586 | DEBUG    | livecheck.main:do_main:363 - re.findall() -> "2024.2.2"
2024-10-05 16:59:29.587 | DEBUG    | livecheck.main:do_main:380 - Attempted to fix top_hash date but it failed. Ignoring this error.
2024-10-05 16:59:29.587 | DEBUG    | livecheck.main:do_main:381 - top_hash = 2024.2.2
2024-10-05 16:59:29.587 | DEBUG    | livecheck.main:do_main:382 - Comparing current ebuild version 2024.1 with live version 2024.2.2
dev-util/clion: 2024.1 -> 2024.2.2