]> git.saurik.com Git - apt.git/blobdiff - test/libapt/sourcelist_test.cc
Merge remote-tracking branch 'ajt/better-pdiffs-dk' into debian/sid
[apt.git] / test / libapt / sourcelist_test.cc
index 6e83d08e022f6fa2a719c25a9671be4684e99e29..701eeeaa791644d2c355bbd4bb926f25a480b6ef 100644 (file)
@@ -23,19 +23,20 @@ int main(int argc, char *argv[])
 {
    const char contents[] = ""
       "Type: deb\n"
-      "URL: http://ftp.debian.org/debian\n"
-      "Dist: stable\n"
-      "Section: main\n"
+      "URI: http://ftp.debian.org/debian\n"
+      "Suites: stable\n"
+      "Sections: main\n"
       "Comment: Some random string\n"
       " that can be very long\n"
       "\n"
       "Type: deb\n"
-      "URL: http://ftp.debian.org/debian\n"
-      "Dist: unstable\n"
+      "URI: http://ftp.debian.org/debian\n"
+      "Suite: unstable\n"
       "Section: main non-free\n"
       ;
 
    FileFd fd;
+   atexit(remove_tmpfile);
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile_fd = mkstemp(tempfile);