File: no-privacy-breach.patch

package info (click to toggle)
python-xstatic-jquery 1.7.2.0%2Bdfsg1-3~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 108 kB
  • sloc: python: 40; makefile: 25
file content (30 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Do not query 3rd party sites
 Original system from upstream allows the use of a 3rd party repository for the
 javascript library. This clearly goes against the spirit of Debian, and
 therefore, I'm cleaning the package from entries in the CDN dict.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2014-08-01

--- python-xstatic-jquery-1.7.2.0+dfsg1.orig/xstatic/pkg/jquery/__init__.py
+++ python-xstatic-jquery-1.7.2.0+dfsg1/xstatic/pkg/jquery/__init__.py
@@ -46,19 +46,5 @@ LOCATIONS = {
     # your relative path/filenames should usually be without version
     # information, because either the base dir/url is exactly for this
     # version or the mapping will care for accessing this version.
-    ('google', 'http'): 'http://ajax.googleapis.com/ajax/libs/jquery/%s' % VERSION,
-    ('google', 'https'): 'https://ajax.googleapis.com/ajax/libs/jquery/%s' % VERSION,
-    ('jquery', 'http'): {
-        'jquery.js': 'http://code.jquery.com/jquery-%s.js' % VERSION,
-        'jquery.min.js': 'http://code.jquery.com/jquery-%s.min.js' % VERSION,
-    },
-    ('microsoft', 'http'): {
-        'jquery.js': 'http://ajax.aspnetcdn.com/ajax/jquery/jquery-%s.js' % VERSION,
-        'jquery.min.js': 'http://ajax.aspnetcdn.com/ajax/jquery/jquery-%s.min.js' % VERSION,
-    },
-    ('microsoft', 'https'): {
-        'jquery.js': 'https://ajax.aspnetcdn.com/ajax/jquery/jquery-%s.js' % VERSION,
-        'jquery.min.js': 'https://ajax.aspnetcdn.com/ajax/jquery/jquery-%s.min.js' % VERSION,
-    },
 }