]> git.saurik.com Git - apt.git/commitdiff
Merge remote-tracking branch 'mvo/feature/source-deb822' into debian/experimental...
authorMichael Vogt <mvo@debian.org>
Sat, 18 Jan 2014 07:52:02 +0000 (08:52 +0100)
committerMichael Vogt <mvo@debian.org>
Sat, 18 Jan 2014 07:52:02 +0000 (08:52 +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 758ae5ae3b93eb3dc8aedffc025869dd1d1d20db..a3855496c5b1b30608ac75e354bdda6024b0a8b2 100755 (executable)
@@ -13,7 +13,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 bf61746c437a264376cc26b474df6372bc684c99..b8658ccf1b55aec321b465c0958e404944c3e467 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"
       ;