diff options
| author | Sebastian Heinlein <sebi@sebi-laptop> | 2006-12-27 01:01:32 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-laptop> | 2006-12-27 01:01:32 +0100 |
| commit | bfbaf01b3eb6c14491ca8113bdaef9ef337e462a (patch) | |
| tree | fcf99a1501be1fdfe566bbe0bd0c3b1128616b9d /AptSources/aptsources.py | |
| parent | f47021c1f5b1d5df5adb55aabcf785a68c1d439d (diff) | |
| download | python-apt-bfbaf01b3eb6c14491ca8113bdaef9ef337e462a.tar.gz | |
* remove Mirror class from aotsources. it is part of DistInfo now
Diffstat (limited to 'AptSources/aptsources.py')
| -rw-r--r-- | AptSources/aptsources.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/AptSources/aptsources.py b/AptSources/aptsources.py index f73ff782..748f6aaf 100644 --- a/AptSources/aptsources.py +++ b/AptSources/aptsources.py @@ -819,27 +819,6 @@ def get_distro(): else: return Distribution(id, codename, description, relase) -class Mirror: - ''' Used to store information about a mirror ''' - class Repository: - ''' A mirror can contain more than one repository and provide - access via different protocols. This information is stored - in this class ''' - def __init__(self, proto, dir) - ''' Initialize a new repository ''' - self.proto = proto - self.dir = dir - def __init__(self, hostname, repository=None) - ''' Initialize a new mirror ''' - self.hostname = hostname - proto, dir = repository - self.repositories = [] - self.add_repository(proto, dir) - def add_repository(self, proto, dir): - ''' Add a new repository to the mirror ''' - repo = Repository(proto, dir) - self.repositories.append(repo) - # some simple tests if __name__ == "__main__": apt_pkg.InitConfig() |
