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