Browse Source

rename URL to Uri in deb822-sources

debian/1.8.y
Michael Vogt 9 years ago
parent
commit
a51fa92c52
  1. 2
      apt-pkg/sourcelist.cc
  2. 4
      doc/sources.list.5.xml
  3. 2
      test/integration/test-apt-sources-deb822

2
apt-pkg/sourcelist.cc

@ -78,7 +78,7 @@ bool pkgSourceList::Type::ParseStanza(vector<metaIndex *> &List,
{
map<string, string> Options;
string URI = Tags.FindS("URL");
string URI = Tags.FindS("Uri");
if (!FixupURI(URI))
{
_error->Error(_("Malformed stanza %u in source list %s (URI parse)"),i,Fd.Name().c_str());

4
doc/sources.list.5.xml

@ -84,13 +84,13 @@
<para>Alternatively a rfc822 style format is also supported:
<literallayout>
Type: deb
URI: http://example.com
Uri: http://example.com
Suite: stable
Section: component1 component2
[option1]: [option1-value]
Type: deb-src
URI: http://example.com
Uri: http://example.com
Suite: stable
Section: component1 component2
[option1]: [option1-value]

2
test/integration/test-apt-sources-deb822

@ -20,7 +20,7 @@ BASE="# some comment
#Type: meep
Type: deb
URL: http://ftp.debian.org/debian
Uri: http://ftp.debian.org/debian
Suite: stable
Section: main
Comment: Some random string

Loading…
Cancel
Save