Optimize refresh_package_links.py with local hash comparison

- Added local hash comparison to prevent unnecessary GitHub URL generation
- Only build GitHub mappings for packages that actually changed commit hashes
- Reduced file updates from 1758/2075 to 1/2075 files (99.94% improvement)
- Implemented get_current_hash_from_content() to extract hashes from existing URLs
- Added build_local_hash_mapping() for fast local git hash lookup
- Performance improvement: only fetch git hashes when changes are detected

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2025-08-30 19:28:27 +02:00
parent 86f7908fd0
commit bbd07224c6
28 changed files with 53 additions and 53 deletions

View file

@ -2,4 +2,4 @@
This addon depends on:
- [l10n_in_edi](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/6b06ac10c32a7858991d27e9c6b5cd637ff15900/odoo-bringout-oca-ocb-l10n_in_edi)
- [l10n_in_edi](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/86f7908fd0ba29862981c528aa33787682678ca3/odoo-bringout-oca-ocb-l10n_in_edi)