diff options
| author | glatzor@ubuntu.com <> | 2006-09-11 21:02:04 +0200 |
|---|---|---|
| committer | glatzor@ubuntu.com <> | 2006-09-11 21:02:04 +0200 |
| commit | 28e75a4ae07be10a060793d42f05b3132ba3ebbb (patch) | |
| tree | 11ed3354b6774a29bed8fbc4798af965c928d859 /UpdateManager/Common | |
| parent | cb5c5cca3e6d5b90018a2dc49b77d61dede3628c (diff) | |
| download | python-apt-28e75a4ae07be10a060793d42f05b3132ba3ebbb.tar.gz | |
* Reuse the base_uri, match_uri and valid_mirrors property of the parent
suite, if it was not declared explicitly for a child suite
* remove the obsolete enabled property from the channel templates
Diffstat (limited to 'UpdateManager/Common')
| -rw-r--r-- | UpdateManager/Common/DistInfo.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/UpdateManager/Common/DistInfo.py b/UpdateManager/Common/DistInfo.py index 81f08200..d509cd9e 100644 --- a/UpdateManager/Common/DistInfo.py +++ b/UpdateManager/Common/DistInfo.py @@ -100,6 +100,13 @@ class DistInfo: for nanny in self.suites: if nanny.name == value: nanny.children.append(suite) + # reuse some properties of the parent suite + if suite.match_uri == None: + suite.match_uri = nanny.match_uri + if suite.valid_mirrors == None: + suite.valid_mirrors = nanny.valid_mirrors + if suite.base_uri == None: + suite.base_uri = nanny.base_uri elif field == 'Available': suite.available = value elif field == 'RepositoryType': |
