]> git.saurik.com Git - apt.git/blame - test/conf_clear.cc
Brazilian translation update
[apt.git] / test / conf_clear.cc
CommitLineData
75ef8f14
MV
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}