[diffoscope] 01/01: When looping over JQUERY_SYSTEM_LOCATIONS, actually use the variable we are looping with when performing the symlink(2) call.

Chris Lamb chris at chris-lamb.co.uk
Sun Aug 14 22:33:40 CEST 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit b67ff4156bf32e6478f45b1440e443647ec03038
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 14 21:32:20 2016 +0100

    When looping over JQUERY_SYSTEM_LOCATIONS, actually use the variable we are looping with when performing the symlink(2) call.
---
 diffoscope/presenters/html.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/presenters/html.py b/diffoscope/presenters/html.py
index a46dc6f..8ea26c9 100644
--- a/diffoscope/presenters/html.py
+++ b/diffoscope/presenters/html.py
@@ -599,7 +599,7 @@ def output_html_directory(directory, difference, css_url=None, jquery_url=None):
                 os.unlink(jquery_symlink)
             for path in JQUERY_SYSTEM_LOCATIONS:
                 if os.path.exists(path):
-                    os.symlink("/usr/share/javascript/jquery/jquery.js", jquery_symlink)
+                    os.symlink(path, jquery_symlink)
                     jquery_url = "./jquery.js"
                     break
             if not jquery_url:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list