]> git.saurik.com Git - apt.git/commitdiff
remove "," in components again
authorMichael Vogt <mvo@debian.org>
Thu, 16 Jan 2014 07:03:24 +0000 (08:03 +0100)
committerMichael Vogt <mvo@debian.org>
Thu, 16 Jan 2014 07:03:24 +0000 (08:03 +0100)
apt-pkg/sourcelist.cc
test/integration/test-apt-sources-deb822

index 5e4a58e95ab8f71b9d1941c3190c03a50760ef68..42ada7e18ed0f94a5ef499caf866a7bde2d5273a 100644 (file)
@@ -363,11 +363,7 @@ int pkgSourceList::ParseFileDeb822(string File)
 
       // now create one item per section
       string const Section = Tags.FindS("Section");
-      std::vector<std::string> list;
-      if (Section.find(","))
-         list = StringSplit(Section, ",");
-      else
-         list = StringSplit(Section, " ");
+      std::vector<std::string> list = StringSplit(Section, " ");
       for (std::vector<std::string>::const_iterator I = list.begin();
            I != list.end(); I++)
          Parse->CreateItem(SrcList, URI, Dist, (*I), Options);
index bacad1ed479c155d05545d4a5221e0d9082f439d..b110c14622ee6e24f4219fbd6c5d31df6e07baa8 100755 (executable)
@@ -33,17 +33,6 @@ testequalwithmsg "Simple deb822 sources.list works" "'http://ftp.debian.org/debi
 'http://ftp.debian.org/debian/dists/stable/main/i18n/Translation-en.bz2' ftp.debian.org_debian_dists_stable_main_i18n_Translation-en 0 :
 'http://ftp.debian.org/debian/dists/stable/InRelease' ftp.debian.org_debian_dists_stable_InRelease 0 "  aptget update --print-uris 
 
-
-# two sections (we support both "," and " " as seperator)
-echo "$BASE" | sed s/main/"main,contrib"/ > $SOURCES
-
-testequalwithmsg "Two sections deb822 sources.list work" "'http://ftp.debian.org/debian/dists/stable/main/binary-i386/Packages.bz2' ftp.debian.org_debian_dists_stable_main_binary-i386_Packages 0 :
-'http://ftp.debian.org/debian/dists/stable/contrib/binary-i386/Packages.bz2' ftp.debian.org_debian_dists_stable_contrib_binary-i386_Packages 0 :
-'http://ftp.debian.org/debian/dists/stable/contrib/i18n/Translation-en.bz2' ftp.debian.org_debian_dists_stable_contrib_i18n_Translation-en 0 :
-'http://ftp.debian.org/debian/dists/stable/main/i18n/Translation-en.bz2' ftp.debian.org_debian_dists_stable_main_i18n_Translation-en 0 :
-'http://ftp.debian.org/debian/dists/stable/InRelease' ftp.debian.org_debian_dists_stable_InRelease 0 "  aptget update --print-uris 
-
-
 # Two entries
 echo "$BASE" > $SOURCES
 echo "" >> $SOURCES