X-Git-Url: https://git.hcoop.net/ntk/apt.git/blobdiff_plain/c93d14fc05b50a8ee8bb7804579c2912f34c676b..565ded7b65240b25ad8551789ac388c8ce72b1f4:/test/libapt/sourcelist_test.cc diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc index 6e83d08e..0300ce92 100644 --- a/test/libapt/sourcelist_test.cc +++ b/test/libapt/sourcelist_test.cc @@ -21,21 +21,24 @@ void remove_tmpfile(void) int main(int argc, char *argv[]) { + _config->Set("APT::Sources::Use-Deb822", true); + const char contents[] = "" - "Type: deb\n" - "URL: http://ftp.debian.org/debian\n" - "Dist: stable\n" - "Section: main\n" - "Comment: Some random string\n" - " that can be very long\n" + "Types: deb\n" + "URIs: http://ftp.debian.org/debian\n" + "Suites: stable\n" + "Sections: main\n" + "Description: short\n" + " long description that can be very long\n" "\n" - "Type: deb\n" - "URL: http://ftp.debian.org/debian\n" - "Dist: unstable\n" - "Section: main non-free\n" + "Types: deb\n" + "URIs: http://ftp.debian.org/debian\n" + "Suites: unstable\n" + "Sections: main non-free\n" ; FileFd fd; + atexit(remove_tmpfile); tempfile = strdup("apt-test.XXXXXXXX"); tempfile_fd = mkstemp(tempfile);