doccaz / scc-tools

A set of simple tools to interact with SUSE Customer Center (SCC)
MIT License
12 stars 1 forks source link

Single search is not updating the package cache #35

Open doccaz opened 5 months ago

doccaz commented 5 months ago

I noticed that single package searches are not updating the local JSON package cache, so for example:

# vercheck.py -p 2468 -n kernel-default
loaded 6532 items from cache (/home/erico/.cache/scc-tools/scc_data.json)
searching for package "kernel-default" in product id "2468" (SUSE Linux Enterprise Desktop 15 SP5 x86_64)
cached data for kernel-default is too old ( -134 days), discarding cache entry
searching for kernel-default for product ID 2468 in SCC
latest version for kernel-default on product ID 2468(SUSE Linux Enterprise Desktop 15 SP5 x86_64) is 5.14.21-150500.55.52.1, found on Basesystem Module (sle-module-basesystem/15.5/x86_64)

will always complain about the old cached data. The full directory analysis seems to update the cache correctly.