diff options
| author | Michael Vogt <egon@top> | 2005-12-09 21:40:27 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-12-09 21:40:27 +0100 |
| commit | a4f607dd561e3767597d4a6e51c14381343f9c81 (patch) | |
| tree | 5673d53a3c7899d0f8a440208dcf979620e78845 /SoftwareProperties/aptsources.py | |
| parent | 13e6224748902fe35c9f7a5030b80387a376fe45 (diff) | |
| download | python-apt-a4f607dd561e3767597d4a6e51c14381343f9c81.tar.gz | |
* added intenal cdrom support
Diffstat (limited to 'SoftwareProperties/aptsources.py')
| -rw-r--r-- | SoftwareProperties/aptsources.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SoftwareProperties/aptsources.py b/SoftwareProperties/aptsources.py index 249c7cca..a18ab4f3 100644 --- a/SoftwareProperties/aptsources.py +++ b/SoftwareProperties/aptsources.py @@ -161,6 +161,10 @@ def uniq(s): class SourcesList: def __init__(self): self.list = [] # of Type SourceEntries + self.refresh() + + def refresh(self): + self.list = [] # read sources.list dir = apt_pkg.Config.FindDir("Dir::Etc") file = apt_pkg.Config.Find("Dir::Etc::sourcelist") |
