]> git.saurik.com Git - apt-legacy.git/blame - test/conf_clear.cc
Apparently apt-ftparchive uses Berkeley DB.
[apt-legacy.git] / test / conf_clear.cc
CommitLineData
da6ee469
JF
1#include <apt-pkg/configuration.h>
2#include <apt-pkg/error.h>
3
4using namespace std;
5
6int 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}