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:41 +02:00
parent 91f433a47b
commit d486db3dff
15 changed files with 29 additions and 29 deletions

View file

@ -2,5 +2,5 @@
This addon depends on:
- [auth_password_policy](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_password_policy)
- [portal](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-portal)
- [auth_password_policy](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_password_policy)
- [portal](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-portal)