summaryrefslogtreecommitdiff
path: root/SoftwareProperties
diff options
context:
space:
mode:
Diffstat (limited to 'SoftwareProperties')
-rw-r--r--SoftwareProperties/dialog_add.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/SoftwareProperties/dialog_add.py b/SoftwareProperties/dialog_add.py
index 4ee17a87..9a074396 100644
--- a/SoftwareProperties/dialog_add.py
+++ b/SoftwareProperties/dialog_add.py
@@ -145,6 +145,9 @@ class dialog_add:
def _make_source_entry(self):
" helper for the 'edit' mode "
+ # we use "selected" for pretty much everything *but* we use
+ # self.source_entry.uri to make sure that the mirror information is
+ # preserved
line = "%s %s %s" % (self.selected.type, self.source_entry.uri, self.selected.dist)
if len(self.selected_comps) > 0:
line += " " + " ".join(self.selected_comps)