]> git.saurik.com Git - apt.git/blob - test/conf_clear.cc
* merged from apt--mvo
[apt.git] / test / conf_clear.cc
1 #include <apt-pkg/configuration.h>
2 #include <apt-pkg/error.h>
3
4 using namespace std;
5
6 int main(int argc,const char *argv[])
7 {
8 Configuration Cnf;
9
10 cout << "adding elements" << endl;
11 Cnf.Set("APT::Keep-Fds::",28);
12 Cnf.Set("APT::Keep-Fds::",17);
13 Cnf.Set("APT::Keep-Fds::",47);
14 Cnf.Dump();
15
16 cout << "Removing elements" << endl;
17 Cnf.Clear("APT::Keep-Fds",17);
18 Cnf.Clear("APT::Keep-Fds",28);
19 Cnf.Clear("APT::Keep-Fds",47);
20 Cnf.Dump();
21
22 return 0;
23 }