|
@@ -17,9 +17,9 @@ testequalwithmsg "Old style sources.list works" "'http://ftp.debian.org/debian/d
|
|
|
|
|
|
|
|
BASE="# some comment
|
|
BASE="# some comment
|
|
|
# that contains a : as well
|
|
# that contains a : as well
|
|
|
-#Type: meep
|
|
|
|
|
|
|
+#Types: meep
|
|
|
|
|
|
|
|
-Type: deb
|
|
|
|
|
|
|
+Types: deb
|
|
|
URIs: http://ftp.debian.org/debian
|
|
URIs: http://ftp.debian.org/debian
|
|
|
Suites: stable
|
|
Suites: stable
|
|
|
Sections: main
|
|
Sections: main
|
|
@@ -68,7 +68,7 @@ echo "deb http://ftp.debian.org" > $SOURCES
|
|
|
testequalwithmsg "Invalid sources.list file gives proper error" "E: Malformed line 1 in source list $TMPWORKINGDIRECTORY/rootdir/etc/apt/sources.list (dist)
|
|
testequalwithmsg "Invalid sources.list file gives proper error" "E: Malformed line 1 in source list $TMPWORKINGDIRECTORY/rootdir/etc/apt/sources.list (dist)
|
|
|
E: The list of sources could not be read." aptget update --print-uris
|
|
E: The list of sources could not be read." aptget update --print-uris
|
|
|
|
|
|
|
|
-echo "Type: deb
|
|
|
|
|
|
|
+echo "Types: deb
|
|
|
Suites: stable
|
|
Suites: stable
|
|
|
" > $SOURCES
|
|
" > $SOURCES
|
|
|
|
|
|
|
@@ -88,3 +88,10 @@ testequalwithmsg "Multiple URIs work" "'http://ftp.de.debian.org/debian/dists/st
|
|
|
'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/main/binary-i386/Packages.bz2' ftp.debian.org_debian_dists_stable_main_binary-i386_Packages 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/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
|
|
'http://ftp.debian.org/debian/dists/stable/InRelease' ftp.debian.org_debian_dists_stable_InRelease 0 " aptget update --print-uris
|
|
|
|
|
+
|
|
|
|
|
+# multiple Type in one field
|
|
|
|
|
+echo "$BASE" | sed -e 's#Types: deb#Types: deb deb-src#' > $SOURCES
|
|
|
|
|
+testequalwithmsg "Multiple Types work" "'http://ftp.debian.org/debian/dists/stable/main/source/Sources.bz2' ftp.debian.org_debian_dists_stable_main_source_Sources 0 :
|
|
|
|
|
+'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/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
|