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:07 +02:00
parent a5398adb3d
commit 6847cb2be7
24 changed files with 33 additions and 33 deletions

View file

@ -2,4 +2,4 @@
This addon depends on:
- [crm](https://github.com/bringout/oca-ocb-crm/tree/f57c024d38b5558f0e9ad32b1e05486b4c39cc36/odoo-bringout-oca-ocb-crm)
- [crm](https://github.com/bringout/oca-ocb-crm/tree/e1a65339b7c7a28040a72ff2de3a7891f54e21c9/odoo-bringout-oca-ocb-crm)