]> git.saurik.com Git - apt.git/commitdiff
rename "Suite/Section" to plural
authorMichael Vogt <mvo@debian.org>
Sat, 18 Jan 2014 19:51:03 +0000 (20:51 +0100)
committerMichael Vogt <mvo@debian.org>
Sat, 18 Jan 2014 19:51:03 +0000 (20:51 +0100)
apt-pkg/sourcelist.cc
doc/sources.list.5.xml
test/integration/test-apt-sources-deb822
test/libapt/sourcelist_test.cc

index 51b766095edee84fd307e232e8b0cf00df53da9b..4e580ba04f97a515396d9581505fe14366ebf7d8 100644 (file)
@@ -97,9 +97,9 @@ bool pkgSourceList::Type::ParseStanza(vector<metaIndex *> &List,
          Options[option_internal[j]] = Tags.FindS(option_deb822[j]);
    
    // now create one item per suite/section
-   string Suite = Tags.FindS("Suite");
+   string Suite = Tags.FindS("Suites");
    Suite = SubstVar(Suite,"$(ARCH)",_config->Find("APT::Architecture"));
-   string const Section = Tags.FindS("Section");
+   string const Section = Tags.FindS("Sections");
 
    std::vector<std::string> list_dist = StringSplit(Suite, " ");
    std::vector<std::string> list_section = StringSplit(Section, " ");
index 7a82bd4ce7840a8e38501ed8a80d94554983fd1e..87f4d5fc5cfa18b85e9cedd181d04a0508a7de88 100644 (file)
@@ -20,7 +20,7 @@
    &apt-email;
    &apt-product;
    <!-- The last update date -->
-   <date>2012-06-09T00:00:00Z</date>
+   <date>2014-01-18T00:00:00Z</date>
  </refentryinfo>
  
  <refmeta>
    <literallayout>
      Type: deb
      URI: http://example.com
-     Suite: stable
-     Section: component1 component2
+     Suites: stable
+     Sections: component1 component2
      [option1]: [option1-value]
 
      Type: deb-src
      URI: http://example.com
-     Suite: stable
-     Section: component1 component2
+     Suites: stable
+     Sections: component1 component2
      [option1]: [option1-value]
    </literallayout>
    </para>
index a055c8d5edca6be71d7ab79a93a89dc5dd14127c..c73b942d433a781859c7e2d78776b56129b7ae3d 100755 (executable)
@@ -21,8 +21,8 @@ BASE="# some comment
 
 Type: deb
 URI: http://ftp.debian.org/debian
-Suite: stable
-Section: main
+Suites: stable
+Sections: main
 Comment: Some random string
  that can be very long"
 
@@ -70,7 +70,7 @@ testequalwithmsg "Invalid sources.list file gives proper error" "E: Malformed li
 E: The list of sources could not be read."  aptget update --print-uris
 
 echo "Type: deb
-Suite: stable
+Suites: stable
 " > $SOURCES
 
 testequalwithmsg "Invalid deb822 sources.list file gives proper error" "E: Malformed stanza 0 in source list $TMPWORKINGDIRECTORY/rootdir/etc/apt/sources.list (URI parse)
index 6a625770fc7862751b1dfed1948039a3a65a9225..ae5d11f6602c87039d4657e01eec088663693843 100644 (file)
@@ -24,8 +24,8 @@ int main(int argc, char *argv[])
    const char contents[] = ""
       "Type: deb\n"
       "URI: http://ftp.debian.org/debian\n"
-      "Suite: stable\n"
-      "Section: main\n"
+      "Suites: stable\n"
+      "Sections: main\n"
       "Comment: Some random string\n"
       " that can be very long\n"
       "\n"