[Pkg-mozext-maintainers] BoF or Sprint while DebCamp or DebConf?

Dmitry Smirnov onlyjob at debian.org
Wed Aug 1 03:19:50 BST 2018


On Wednesday, 1 August 2018 2:27:00 AM AEST Ximin Luo wrote:
> > I've updated dh_webext to touch manifest.json to the date of d/changelog,
> > this avoids postinst. [..]
> On second thoughts I am not sure if this helps. Dmitry do you know how
> firefox reads these timestamps?

I don't know...


> Does it only require the timestamp to be newer than the previous version?
> In this case my addition to dh_webext is enough.

I wouldn't count on that. Sometimes it may be necessary to downgrade the 
package...

Another scenario where it might not work is when broken package has been 
cached - in such case re-installing it will not fix the problem.
And it would hurt mainteiners the most: imagine you re-build the extension 
package without changing changelog and Firefox just doesn't pick up your 
changes - from my own experience I know how incredibly frustrating that might 
be...


> Or does it require the timestamp to be newer than the previous time it
> checked the directory?
> In which case my addition to dh_webext is not
> enough, and we will need a postinst.

I think that's the case and it would be the safest assumption.


> Is this behaviour documented anywhere by Mozilla?

Nothing I could find. However this behavior is apparent and reproducible if 
you upgrade/downgrade the extension package. By experimentation I've found 
that without touching manifest, Firefox does not reload updated addons (their 
version stays the same) and there is nothing user can do from Firefox to 
trigger refresh or drop extension caches.

-- 
Best wishes,
 Dmitry Smirnov.

---

Lying is, almost by definition, a refusal to cooperate with others. It
condenses a lack of trust and trustworthiness into a single act. It is both
a failure of understanding and an unwillingness to be understood. To lie is
to recoil from relationship.
        -- Sam Harris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-mozext-maintainers/attachments/20180801/613a9299/attachment.sig>


More information about the Pkg-mozext-maintainers mailing list