]> git.saurik.com Git - apt.git/blobdiff - test/scratch.cc
Sync
[apt.git] / test / scratch.cc
index 577ab5f9b3f446155b2a483fec6ab1f1f193bd6b..a8817bc4116ad55202bf1b234788569f9ef6cf67 100644 (file)
@@ -1,9 +1,12 @@
 #include <apt-pkg/acquire-item.h>
 #include <apt-pkg/init.h>
 #include <apt-pkg/error.h>
+#include <signal.h>
 
 int main()
 {
+   signal(SIGPIPE,SIG_IGN);
+   
    pkgInitialize(*_config);
    
    pkgSourceList List;
@@ -17,6 +20,8 @@ int main()
       if (_error->PendingError() == true)
         break;
    }
+
+   Fetcher.Run();
    
    _error->DumpErrors();
 }