Fabian Vogt
fc92697c3b
osclib/memoize: Fix memoize without session=True
...
shelf only supports str as key, so convert bytes to str.
2024-10-30 11:04:12 +01:00
Dirk Müller
730630f06f
Use f-strings where possible
2024-05-07 21:52:32 +02:00
Stephan Kulow
529d1dafae
Target E302 - add two comment lines before class
2022-02-18 17:15:48 +01:00
Stephan Kulow
1152d4c419
Remove bare excepts - https://www.flake8rules.com/rules/E722.html
...
The bare except in osc-credentials lead me to remove it and the scripts
using it
2022-02-18 12:03:56 +01:00
32ad0adc2d
Fix all E22x errors
...
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
Jimmy Berry
c47bb4c902
Utilize CacheManager for all existing caches.
2018-09-04 15:19:02 -05:00
Jimmy Berry
6069245350
Remove SUSE copyright, warranty, and license headers.
...
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.
Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
f51dc98850
osclib/memoize: provide memoize_session_reset().
...
Allows all session caches to be reset.
2018-04-27 15:35:48 -05:00
Jimmy Berry
e39a51821e
osclib/memoize: include first argument, sometimes instance, in cache key.
...
Otherwise, multiple StagingAPI instances which are unique per project
will share caches for short-hand projects. For example:
StagingAPI.project_status('adi:1') called on two different instances will
share a cache.
2017-10-25 17:43:17 -05:00
Alberto Planas
f5e1d88dcf
Use better parameter name.
2015-08-28 10:46:04 +02:00
Alberto Planas
66b0d346a3
Add external invalidation mechanism to memoize.
2015-08-03 13:21:44 +02:00
Ludwig Nussel
ce2ffdcaf2
add fallback for missing save_cache_path
...
python-xdg on sle11 lacks save_cache_path so add fallback. Needed for
changelog-checker which runs on sle11 atm.
2015-06-09 11:32:55 +02:00
fd6ed0d813
Memoize can now store the cache in memory
2014-09-18 16:05:50 +02:00
Ludwig Nussel
a8d7bdddae
use XDG_CACHE_HOME for cache dir
2014-09-03 16:00:48 +02:00
e96f85dc38
More refactoring:
...
- Extract all the graph and cycle logic.
- Extract memoize.
- Start with CheckRepo.
2014-06-04 11:04:37 +02:00