~ubuntu-branches/ubuntu/raring/duplicity/raring-updates

« back to all changes in this revision

Viewing changes to src/urlparse_2_5.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-04-03 20:40:34 UTC
  • mfrom: (1.9.1 upstream) (16.2.6 natty)
  • Revision ID: james.westby@ubuntu.com-20110403204034-5m1eri4z5qr0nyrr
Tags: 0.6.13-0ubuntu1
* Resync with Debian, no remaining changes
* New upstream release
  - silent data corruption with checkpoint/restore (LP: #613244)
  - Assertion error "time not moving forward at appropriate pace"
    (LP: #579958)
* debian/patches/04future.dpatch:
  - Dropped, applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
           "urlsplit", "urlunsplit"]
11
11
 
12
12
# A classification of schemes ('' means apply by default)
13
 
uses_relative = ['ftp', 'http', 'gopher', 'nntp',
 
13
uses_relative = ['ftp', 'ftps', 'http', 'gopher', 'nntp',
14
14
                 'wais', 'file', 'https', 'shttp', 'mms',
15
15
                 'prospero', 'rtsp', 'rtspu', '', 'sftp', 'imap', 'imaps']
16
 
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
 
16
uses_netloc = ['ftp', 'ftps', 'http', 'gopher', 'nntp', 'telnet',
17
17
               'wais', 'file', 'mms', 'https', 'shttp',
18
18
               'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
19
19
               'svn', 'svn+ssh', 'sftp', 'imap', 'imaps']
20
20
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
21
21
                    'telnet', 'wais', 'snews', 'sip', 'sips', 'imap', 'imaps']
22
 
uses_params = ['ftp', 'hdl', 'prospero', 'http', 
 
22
uses_params = ['ftp', 'ftps', 'hdl', 'prospero', 'http',
23
23
               'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
24
24
               'mms', '', 'sftp', 'imap', 'imaps']
25
25
uses_query = ['http', 'wais', 'https', 'shttp', 'mms',
26
26
              'gopher', 'rtsp', 'rtspu', 'sip', 'sips', 'imap', 'imaps', '']
27
 
uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
 
27
uses_fragment = ['ftp', 'ftps', 'hdl', 'http', 'gopher', 'news',
28
28
                 'nntp', 'wais', 'https', 'shttp', 'snews',
29
29
                 'file', 'prospero', '']
30
30
 
259
259
        return url
260
260
    if not url:
261
261
        return base
262
 
    bscheme, bnetloc, bpath, bparams, bquery, bfragment = \
263
 
            urlparse(base, '', allow_fragments)
264
 
    scheme, netloc, path, params, query, fragment = \
265
 
            urlparse(url, bscheme, allow_fragments)
 
262
    bscheme, bnetloc, bpath, bparams, bquery, bfragment = urlparse(base, '', allow_fragments) #@UnusedVariable
 
263
    scheme, netloc, path, params, query, fragment = urlparse(url, bscheme, allow_fragments)
266
264
    if scheme != bscheme or scheme not in uses_relative:
267
265
        return url
268
266
    if scheme in uses_netloc: