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:32 +02:00
parent dba59fd2db
commit d3df84d6ee
19 changed files with 56 additions and 56 deletions

View file

@ -2,7 +2,7 @@
This addon depends on:
- [mass_mailing](https://github.com/bringout/oca-ocb-mail/tree/cf28d72fa447cbe72e9004691397255796aaa651/odoo-bringout-oca-ocb-mass_mailing)
- [mass_mailing_sms](https://github.com/bringout/oca-ocb-mail/tree/cf28d72fa447cbe72e9004691397255796aaa651/odoo-bringout-oca-ocb-mass_mailing_sms)
- [test_mail](https://github.com/bringout/oca-ocb-test/tree/537c8629aef3b3a7c784c654002227c49156c47f/odoo-bringout-oca-ocb-test_mail)
- [test_mail_sms](https://github.com/bringout/oca-ocb-mail/tree/cf28d72fa447cbe72e9004691397255796aaa651/odoo-bringout-oca-ocb-test_mail_sms)
- [mass_mailing](https://github.com/bringout/oca-ocb-mail/tree/dba59fd2db10fc6a6fa1b0d807bf3edad793f7c3/odoo-bringout-oca-ocb-mass_mailing)
- [mass_mailing_sms](https://github.com/bringout/oca-ocb-mail/tree/dba59fd2db10fc6a6fa1b0d807bf3edad793f7c3/odoo-bringout-oca-ocb-mass_mailing_sms)
- [test_mail](https://github.com/bringout/oca-ocb-test/tree/1128ed5959311d2f7b5be4410f7fe67168a28eef/odoo-bringout-oca-ocb-test_mail)
- [test_mail_sms](https://github.com/bringout/oca-ocb-mail/tree/dba59fd2db10fc6a6fa1b0d807bf3edad793f7c3/odoo-bringout-oca-ocb-test_mail_sms)