summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheset.cc
Commit message (Collapse)AuthorAgeFilesLines
* rework cachesets API to allow future extensionDavid Kalnischkies2014-09-271-68/+196
| | | | | | | | | | | | | | | The introduction of Fnmatch showed that each new selector would require multiple new virtual methods in the CacheSetHelper to work correctly, which isn't that great. We now flip to a single virtual method which handles all cases separated by an enum – as new enum values can be added without an ABI break. Great care was taken to make old code work with the new way of organisation, which means in return that you might be bombarded with deprecation warnings now if you don't adapt, but code should still compile and work as before as can be seen in apt itself with this commit. Git-Dch: Ignore
* Do not crash for apt-get install /dev/nullMichael Vogt2014-07-161-0/+2
| | | | | | Thanks to Jakub Wilk for the bugreport. Closes: #754904
* Allow passing a full path to apt-get install /foo/bar.debMichael Vogt2014-07-101-1/+8
| | | | CLoses: #752327
* fix some compile errors in the now enabled #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2014-05-071-4/+5
| | | | APT_PKG_MINOR < 13)
* handle pkgnames shorter than modifiersDavid Kalnischkies2014-04-261-2/+4
| | | | | | | | | | | The bugreport highlights the problem with an empty package name. We fix this by 'ignoring' these so that it behaves just like "apt-get install". The deeper problem is that modifier strings can be longer than a package name in which case the comparison doesn't make sense, so don't compare then. Was not noticed so far as all modifiers are of length 1, so the only package name shorter than this is in fact the empty package name. Closes: 744940
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-5/+5
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-4/+12
| | | | | | | | 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)
* warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-131-14/+14
| | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
* prepare re-enable fnmatch() once we have proper reportingMichael Vogt2014-02-201-0/+3
|
* disable fnmatch()Michael Vogt2014-02-141-1/+0
| | | | | | | | | | | The current PackageContainerInterface::FromString() will do a FromFnmatch() first and then FromRegEx(). This commit reverts that change to restore the old behavior to only look for RegEx and not glob-style pattern. The rational is that: a) currently a fnmatch() is misleadingly reported as a regex match to the user (Bug#738880) b) a fnmatch may match something different than a a RegEx so the change broke a published interface
* add missing canNotFindFnmatch/showFnmatchSelection (for the next ABI break)Michael Vogt2014-02-141-2/+23
|
* rework some code to fix some scan-build warningsDavid Kalnischkies2014-01-161-0/+2
| | | | | | | | No visible functional changes, just code moved around and additional checks to eliminate impossible branches Reported-By: scan-build Git-Dch: Ignore
* squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-121-0/+64
| | | | experimental
* * apt-pkg/cacheset.cc:David Kalnischkies2012-07-181-0/+2
| | | | - handle :all and :native correctly as architectures again in the commandline parsing (regression in 0.9.7)
* * apt-pkg/cacheset.cc:David Kalnischkies2012-06-141-4/+50
| | | | - add PackageContainerInterface::FromGroup to support architecture specifications with wildcards on the commandline
* * apt-pkg/cacheset.cc:David Kalnischkies2012-04-201-2/+5
| | | | - actually return to the fallback modifier if we have detected we should for packagenames which look like modifiers (Closes: #669591)
* * apt-pkg/cacheset.cc:David Kalnischkies2011-11-091-178/+203
| | | | - make the cachesets real containers which can embedding any container to be able to use the same interface regardless of set or list usage
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-2/+5
|
* reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-2/+4
|
* * merged lp:~evfool/apt/fix641673Michael Vogt2011-02-101-1/+1
| | | | - String-fix in the source and the translations for the grammatical mistake reported in bug LP: #641673, thanks to Robert Roth
* - [ABI BREAK] add an ErrorType option to CacheSetHelperDavid Kalnischkies2010-07-301-9/+9
| | | | | * cmdline/apt-cache.cc: - use Notice instead of Error in the CacheSetHelper messages for compat reasons. Otherwise tools like sbuild blow up
* * apt-pkg/cacheset.cc:Michael Vogt2010-07-301-1/+1
| | | | | - make CacheSetHelper::canNotFindAllVer display a notice only (for compat reasons). Otherwise tools like sbuild blow up
* - add a 'newest' pseudo target release as in pkg/newestDavid Kalnischkies2010-07-261-1/+6
| | | *
* * apt-pkg/cacheset.cc:David Kalnischkies2010-07-171-0/+506
| | | - move them back to the library as they look stable now
* * cmdline/cacheset.cc:David Kalnischkies2010-06-151-330/+0
| | | - doesn't include it in the library for now as it is too volatile
* Add a GroupedFromCommandLine for the VersionSet similar to theDavid Kalnischkies2010-06-151-39/+84
| | | | | one for PackageSet and refactor the existing VersionSet methods to simplify that.
* * apt-pkg/cacheset.cc:David Kalnischkies2010-06-101-3/+8
| | | | - get the candidate either from an already built depcache or use the policy which is a bit faster than depcache generation
* add a GroupedFromCommandLine method to the PackageSet to split theDavid Kalnischkies2010-06-061-0/+33
| | | | packages on the commandline into groups based on modifiers
* support special release-modifier 'installed' and 'candidate'David Kalnischkies2010-06-051-49/+77
|
* handle :arch modifier in PackageSet::FromString correctlyDavid Kalnischkies2010-06-051-6/+20
|
* Don't increase the commandline parameter in the library but in theDavid Kalnischkies2010-06-051-2/+2
| | | | application to be really generic.
* Add a method to get a VersionSet from the Commandline and refactorDavid Kalnischkies2010-06-051-19/+121
| | | | the existing methods a bit to reuse them easier intern
* rename packageset into cacheset while it is not too lateDavid Kalnischkies2010-05-311-0/+103