diff options
author | Daniel Hartwig <mandyke@gmail.com> | 2012-06-08 17:11:48 +0800 |
---|---|---|
committer | Daniel Hartwig <mandyke@gmail.com> | 2012-06-08 17:11:48 +0800 |
commit | 24e4c8dab029ac59437f9392a8d3732c6893a3e3 (patch) | |
tree | 65da6aa7aef3c16ac40b3c5a4536a025172d8272 /src/generic | |
parent | 85d6f30683f6ede36e7a6a0e78e6e7efa079e056 (diff) | |
download | aptitude-24e4c8dab029ac59437f9392a8d3732c6893a3e3.tar.gz |
Add pkgset helpers
Ported some code from apt cacheset.cc to populate a pkgset.
The function pkgset_from_string will fill a given pkgset with
either the exactly named package, or the packages matched by a
string predicated by is_pattern.
In the future, we should look to directly use the apt cacheset
infrastructure. This is currently blocked by our custom
implementation of pkgCacheFile (see aptcache.h).
Errors that occur in looking up the package (such as no package
with that name, or an invalid search pattern) are pushed to
the global error list with a customizable error_type (default:
ERROR).
Diffstat (limited to 'src/generic')
0 files changed, 0 insertions, 0 deletions