]>
git.saurik.com Git - apt.git/blob - test/conf_clear.cc
1 #include <apt-pkg/configuration.h>
2 #include <apt-pkg/error.h>
6 int main(int argc
,const char *argv
[])
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);
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);