summaryrefslogtreecommitdiff
path: root/SoftwareProperties/aptsources.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-19 14:57:57 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-19 14:57:57 +0200
commit3cb73fd8b75b2ef4de7a9bd25fb5d41950078550 (patch)
treee2025b906fd88b9e1c5f284e82962f5258f61da1 /SoftwareProperties/aptsources.py
parent43b6ac8b952098943868404e8e28868bdf6265a5 (diff)
parentf8724e0b2329dbd497419123e38bb36d7bbeed71 (diff)
downloadpython-apt-3cb73fd8b75b2ef4de7a9bd25fb5d41950078550.tar.gz
* merged with sebastian (thanks!)
* updated the changelog * added dh_iconcache to debian/rules
Diffstat (limited to 'SoftwareProperties/aptsources.py')
-rw-r--r--SoftwareProperties/aptsources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/SoftwareProperties/aptsources.py b/SoftwareProperties/aptsources.py
index 417563d4..133e9b3d 100644
--- a/SoftwareProperties/aptsources.py
+++ b/SoftwareProperties/aptsources.py
@@ -155,6 +155,8 @@ class SourceEntry:
return
# URI
self.uri = string.strip(pieces[1])
+ if len(self.uri) < 1:
+ self.invalid = True
# distro and components (optional)
# Directory or distro
self.dist = string.strip(pieces[2])