implement BuildProfileSpec support as dpkg has in 1.17.2
[ntk/apt.git] / test / libapt / sourcelist_test.cc
index 6ab30ba..0300ce9 100644 (file)
@@ -21,6 +21,8 @@ void remove_tmpfile(void)
 
 int main(int argc, char *argv[])
 {
+  _config->Set("APT::Sources::Use-Deb822", true);
+
    const char contents[] = ""
       "Types: deb\n"
       "URIs: http://ftp.debian.org/debian\n"
@@ -36,6 +38,7 @@ int main(int argc, char *argv[])
       ;
 
    FileFd fd;
+   atexit(remove_tmpfile);
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile_fd = mkstemp(tempfile);