]>
git.saurik.com Git - apt.git/blob - test/scratch.cc
1 #include <apt-pkg/acquire-item.h>
2 #include <apt-pkg/init.h>
3 #include <apt-pkg/error.h>
7 int main(int argc
,char *argv
[])
9 signal(SIGPIPE
,SIG_IGN
);
12 cout
<< Foo
.Access
<< '\'' << endl
;
13 cout
<< Foo
.Host
<< '\'' << endl
;
14 cout
<< Foo
.Path
<< '\'' << endl
;
15 cout
<< Foo
.User
<< '\'' << endl
;
16 cout
<< Foo
.Password
<< '\'' << endl
;
17 cout
<< Foo
.Port
<< endl
;
21 pkgInitialize(*_config
);
27 pkgSourceList::const_iterator I
;
28 for (I
= List
.begin(); I
!= List
.end(); I
++)
30 new pkgAcqIndex(&Fetcher
,I
);
31 if (_error
->PendingError() == true)