diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-06 23:04:16 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-06 23:04:16 +0200 |
| commit | f086a0da7c5c77ae68797d3b4fbd543222976523 (patch) | |
| tree | 2e4a2e285630e93b6a2ab15b6e8fedafa2f22fbd /UpdateManager/Common | |
| parent | cab619af6ad5ce8f2ed9d599e54bfad8d57c3f60 (diff) | |
| download | python-apt-f086a0da7c5c77ae68797d3b4fbd543222976523.tar.gz | |
* UpdateManager/Common/aptsources.py:
- fix crash for corner case sources.list layout (lp #64159)
* UpdateManager/UpdateManager.py:
- get gconf proxy too
Diffstat (limited to 'UpdateManager/Common')
| -rw-r--r-- | UpdateManager/Common/aptsources.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/UpdateManager/Common/aptsources.py b/UpdateManager/Common/aptsources.py index 06d83e01..34b5b967 100644 --- a/UpdateManager/Common/aptsources.py +++ b/UpdateManager/Common/aptsources.py @@ -606,8 +606,15 @@ class Distribution: a repository could be splitted into different apt lines. If not add the component """ + # if we don't that distro, just reutnr (can happen for e.g. + # dapper-update only in deb-src + if not comps_per_dist.has_key(source.dist): + return + # if we have seen this component already for this distro, + # return (nothing to do if comp in comps_per_dist[source.dist]: return + # add it source.comps.append(comp) comps_per_dist[source.dist].add(comp) |
