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:39 +02:00
parent 5d9b47ce90
commit 180760d29e
66 changed files with 138 additions and 138 deletions

View file

@ -2,5 +2,5 @@
This addon depends on:
- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/ce2bf32eaa55516e65721b59ff06b13f701b1c57/odoo-bringout-oca-ocb-spreadsheet_dashboard)
- [sale](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sale)
- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/4e577cd23c66a8737b2d352e51d5971560b07cfd/odoo-bringout-oca-ocb-spreadsheet_dashboard)
- [sale](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sale)