~ubuntu-branches/ubuntu/wily/python-apt/wily

« back to all changes in this revision

Viewing changes to aptsources/sourceslist.py

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode
  • Date: 2015-06-13 00:41:30 UTC
  • mfrom: (2.3.52 sid)
  • Revision ID: package-import@ubuntu.com-20150613004130-zaw0aig9yd760wex
* debian/control: Build-Depend on apt (>= 1.0.9.4) for Files2()
* Handle the symlink to directory transition correctly (Closes: #788571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
 
46
46
def is_mirror(master_uri, compare_uri):
47
 
    """ check if the given add_url is idential or a mirror of orig_uri
48
 
        e.g. master_uri = archive.ubuntu.com
49
 
            compare_uri = de.archive.ubuntu.com
50
 
            -> True
 
47
    """ check if the given add_url is idential or a mirror of orig_uri e.g.:
 
48
        master_uri = archive.ubuntu.com
 
49
        compare_uri = de.archive.ubuntu.com
 
50
        -> True
51
51
    """
52
52
    # remove traling spaces and "/"
53
53
    compare_uri = compare_uri.rstrip("/ ")