Am Sonntag, den 07.01.2007, 11:39 +0100 schrieb Dennis Kaarsemaker:
> On za, 2007-01-06 at 17:30 -0800, Constantine Evans wrote:
> > 
> > Perhaps it would be better to allow repositories to add an extra file
> > that would contain a title and description, and then use that
> > information? Such a method would require that repositories do extra
> > work
> > to support it, but I expect that most safe repositories would do so.

It is currently broken in edgy, but software-properties can handle
sources.list files. So if a repository maintainer provides a
sources.list that contains his or her apt line and an additional
comment, the user could add the repository by double clicking on the
downloaded file or droping it on the third party repo list.

Until a fixed package appears you can find the patch attached to this
mail.

Cheers,

Sebastian
=== modified file 'SoftwareProperties/SoftwareProperties.py'
--- SoftwareProperties/SoftwareProperties.py	2006-10-04 12:05:41 +0000
+++ SoftwareProperties/SoftwareProperties.py	2006-11-23 17:02:35 +0000
@@ -317,8 +317,8 @@
                         self.distro.main_server])
     if self.distro.country != None:
         # TRANSLATORS: %s is a country
-        server_store.append([_("Server for %s") % gettext.dgettext("iso-3166",
-                             self.distro.country).rstrip(),
+        server_store.append([_("Server for %s") % gettext.dgettext("iso_3166",
+                             self.distro.country.rstrip()).rstrip(),
                              self.distro.nearest_server])
     else:
         server_store.append([_("Nearest server"),

=== modified file 'SoftwareProperties/dialog_add_sources_list.py'
--- SoftwareProperties/dialog_add_sources_list.py	2006-07-31 21:43:51 +0000
+++ SoftwareProperties/dialog_add_sources_list.py	2006-11-23 17:02:35 +0000
@@ -122,6 +122,6 @@
 
 class SingleSourcesList(SourcesList):
     def __init__(self, file):
-        self.matcher = SourceEntryMatcher()
+        self.matcher = SourceEntryMatcher("/usr/share/update-manager/channels/")
         self.list = []
         self.load(file)

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to