summaryrefslogtreecommitdiff
path: root/SoftwareProperties/aptsources.py
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-09 21:40:27 +0100
committerMichael Vogt <egon@top>2005-12-09 21:40:27 +0100
commita4f607dd561e3767597d4a6e51c14381343f9c81 (patch)
tree5673d53a3c7899d0f8a440208dcf979620e78845 /SoftwareProperties/aptsources.py
parent13e6224748902fe35c9f7a5030b80387a376fe45 (diff)
downloadpython-apt-a4f607dd561e3767597d4a6e51c14381343f9c81.tar.gz
* added intenal cdrom support
Diffstat (limited to 'SoftwareProperties/aptsources.py')
-rw-r--r--SoftwareProperties/aptsources.py4
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")