[Python-apps-team] Bug#645231: trac: python upgrade leads to inaccessible jquery.js

Jakub Wilk jwilk at debian.org
Thu Oct 13 18:24:12 UTC 2011


fixed 645231 0.12.2-1
thanks

(It's the third time this bug is reported. I'm keeping it open, so that 
it won't be archived, just like the other two.)

* Daniel Kahn Gillmor <dkg at fifthhorseman.net>, 2011-10-13, 13:38:
>/var/lib/dpkg/info/trac.postinst contains this section for publishing
>jquery.js:
>
># create link(s), even if original file does not exist (yet)
>for d in /usr/share/pyshared/trac/htdocs/js \
>        /usr/lib/python*/*-packages/trac/htdocs/js; do
>    cd $d
>    ln -sf /usr/share/javascript/jquery/jquery.min.js jquery.js
>done

Wow. This is wrong on so many levels...

>I'm not sure what the right way to really fix the problem is, but i 
>thought this problem ought to be documented so that other people who 
>run into it can find the workarounds at least.

The correct fix is to do this at build time, and then let python-central 
do the right thing. Or, better, not keep JavaScript code in a directory 
meant for Python code.

>Thanks for packaging trac for debian, and for relying on the system 
>copy of jquery rather than on an embedded code copy.

Then you probably won't be happy to find out that the version in sid 
uses the embedded copy.

-- 
Jakub Wilk





More information about the Python-apps-team mailing list