summaryrefslogtreecommitdiff
path: root/SoftwareProperties/aptsources.py
diff options
context:
space:
mode:
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])