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:29:46 +02:00
parent 110cb2980f
commit 2a8609fdff
12 changed files with 21 additions and 21 deletions

View file

@ -2,7 +2,7 @@
This addon depends on:
- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-accounting_pdf_reports)
- [om_account_budget](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-om_account_budget)
- [om_recurring_payments](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-om_recurring_payments)
- [om_account_daily_reports](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-om_account_daily_reports)
- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-accounting_pdf_reports)
- [om_account_budget](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-om_account_budget)
- [om_recurring_payments](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-om_recurring_payments)
- [om_account_daily_reports](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-om_account_daily_reports)