summaryrefslogtreecommitdiff
path: root/apt-pkg/versionmatch.h
Commit message (Collapse)AuthorAgeFilesLines
* versionmatch: Extract version match checking out of Find()Julian Andres Klode2015-08-101-0/+1
| | | | | Refactor version matching to allow us to check if a version matches a pin. This will aid the per-version pinning implementation.
* store Release files data in the CacheDavid Kalnischkies2015-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | We used to read the Release file for each Packages file and store the data in the PackageFile struct even through potentially many Packages (and Translation-*) files could use the same data. The point of the exercise isn't the duplicated data through. Having the Release files as first-class citizens in the Cache allows us to properly track their state as well as allows us to use the information also for files which aren't in the cache, but where we know to which Release file they belong (Sources are an example for this). This modifies the pkgCache structs, especially the PackagesFile struct which depending on how libapt users access the data in these structs can mean huge breakage or no visible change. As a single data point: aptitude seems to be fine with this. Even if there is breakage it is trivial to fix in a backportable way while avoiding breakage for everyone would be a huge pain for us. Note that not all PackageFile structs have a corresponding ReleaseFile. In particular the dpkg/status file as well as *.deb files have not. As these have only a Archive property need, the Component property takes over this duty and the ReleaseFile remains zero. This is also the reason why it isn't needed nor particularily recommended to change from PackagesFile to ReleaseFile blindly. Sticking with the earlier is usually the better option.
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-7/+7
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-1/+2
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies2011-12-131-0/+4
| | | | | The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-14/+12
|
* * apt-pkg/versionmatch.cc:Julian Andres Klode2010-06-281-0/+2
| | | | | - Support matching pins by regular expressions or glob() like patterns, regular expressions have to be put between to slashes; for example, /.*/.
* merge Goswin Brederlow "support download of index files for different archs"David Kalnischkies2009-12-231-0/+2
| | | | | | | | | | | | | | patch which includes the following big changes: - Declare the unused [vendor] field in sources.list as option field, e.g. deb [arch=amd64,i386 lang=en_GB have=fun] http://example.org - When fetching index files download them for all APT::Architectures (overrideable with the options field above) - Allow all architectures of APT::Architectures to be in the Cache - Add the architecture to status and progress informations - Add b= (Binary architecture) to policy This commit doesn't incude the "pin-hack" as the Group structure will take care of this (and does it already to some extend).
* [apt-pkg] allow also codenames for specifying a releaseDavid Kalnischkies2009-05-071-8/+13
| | | | | * MatchType::Release checks first for archive than for codename equality * new n= option in apt_preference to be able to pin based on a codeName
* * removed the pragma messMichael Vogt2006-10-021-3/+0
|
* Fixed matching all releasesArch Librarian2004-09-201-2/+3
| | | | | | Author: jgg Date: 2001-05-29 03:07:12 GMT Fixed matching all releases
* G++3 fixes from RandolphArch Librarian2004-09-201-2/+4
| | | | | | Author: jgg Date: 2001-05-07 04:24:08 GMT G++3 fixes from Randolph
* Join with aliencodeArch Librarian2004-09-201-0/+69
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode