]> git.saurik.com Git - apt.git/commitdiff
implement suggestion by donkult (thanks!)
authorMichael Vogt <mvo@debian.org>
Fri, 17 Jan 2014 19:41:55 +0000 (20:41 +0100)
committerMichael Vogt <mvo@debian.org>
Fri, 17 Jan 2014 19:41:55 +0000 (20:41 +0100)
apt-pkg/sourcelist.cc
doc/sources.list.5.xml
test/integration/test-apt-sources-deb822
test/libapt/sourcelist_test.cc

index 09d8287a0eb8e258b6767f30845187927ee65fa8..51b766095edee84fd307e232e8b0cf00df53da9b 100644 (file)
@@ -78,7 +78,7 @@ bool pkgSourceList::Type::ParseStanza(vector<metaIndex *> &List,
 {
    map<string, string> Options;
 
-   string URI = Tags.FindS("Uri");
+   string URI = Tags.FindS("URI");
    if (!FixupURI(URI))
    {
       _error->Error(_("Malformed stanza %u in source list %s (URI parse)"),i,Fd.Name().c_str());
@@ -87,7 +87,7 @@ bool pkgSourceList::Type::ParseStanza(vector<metaIndex *> &List,
    
    // Define external/internal options
    const char* option_deb822[] = { 
-      "Architectures", "Architectures-Add", "Architectures-Delete", "Trusted",
+      "Architectures", "Architectures-Add", "Architectures-Remove", "Trusted",
    };
    const char* option_internal[] = { 
       "arch", "arch+", "arch-", "trusted",
index e770023d59d32462773c7ab6e913006f727186f9..7a82bd4ce7840a8e38501ed8a80d94554983fd1e 100644 (file)
    <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]
index 67d1195658553480630699bee1a2332d424f0586..a055c8d5edca6be71d7ab79a93a89dc5dd14127c 100755 (executable)
@@ -20,7 +20,7 @@ BASE="# some comment
 #Type: meep
 
 Type: deb
-Uri: http://ftp.debian.org/debian
+URI: http://ftp.debian.org/debian
 Suite: stable
 Section: main
 Comment: Some random string
index 1d30bd85b0be52df57abf5bbb3db5837c5439cd6..6a625770fc7862751b1dfed1948039a3a65a9225 100644 (file)
@@ -23,14 +23,14 @@ int main(int argc, char *argv[])
 {
    const char contents[] = ""
       "Type: deb\n"
-      "Uri: http://ftp.debian.org/debian\n"
+      "URI: http://ftp.debian.org/debian\n"
       "Suite: stable\n"
       "Section: main\n"
       "Comment: Some random string\n"
       " that can be very long\n"
       "\n"
       "Type: deb\n"
-      "Uri: http://ftp.debian.org/debian\n"
+      "URI: http://ftp.debian.org/debian\n"
       "Suite: unstable\n"
       "Section: main non-free\n"
       ;