summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* policy: Get rid of Pins arrayJulian Andres Klode2019-06-142-20/+13
| | | | Gbp-Dch: ignore
* policy: Remove GetMatch and GetPriority(pkgIterator)Julian Andres Klode2019-06-142-22/+1
| | | | | These functions do not produce any useful results anymore, so it's pointless to keep them around.
* Remove deprecated cacheset methodsJulian Andres Klode2019-06-142-34/+16
| | | | | This mostly turns them private and then overrides the public version with the switch, as recommended.
* Bump cache MajorVersion to 16Julian Andres Klode2019-06-121-1/+1
| | | | | 1.6 was 13, so 1.7 has 14 reserved, and 1.8 has 15 reserved, so let's use 16 for 1.9 for now.
* Adjust code for missing includes/using std::stringJulian Andres Klode2019-06-122-5/+7
|
* Run unifdef -DAPT_{8,9,10,15}_CLEANER_HEADERSJulian Andres Klode2019-06-1248-265/+0
|
* Do not include squashfs file systems in df output.Brian Murray2019-06-111-1/+1
| | | | | LP: #1756595 Fixes Debian/apt#94
* Update symbols and hide some pkgTagSection ABIJulian Andres Klode2019-06-111-2/+2
| | | | Gbp-Dch: ignore
* Merge the ParseDepends functionsJulian Andres Klode2019-06-112-64/+17
|
* Allow comparing string to StringViewJulian Andres Klode2019-06-111-0/+2
|
* Make APT::StringView publicJulian Andres Klode2019-06-1113-239/+31
|
* Merge tag '1.8.2'Julian Andres Klode2019-06-111-1/+1
|\ | | | | | | apt Debian release 1.8.2
| * Unlock dpkg locks in reverse locking orderJulian Andres Klode2019-05-211-1/+1
| | | | | | | | | | | | | | We need to unlock in the reverse order of locking in order to get useful behavior. LP: #1829860
| * Prevent shutdown while running dpkgJulian Andres Klode2019-05-034-0/+67
| | | | | | | | | | | | | | As long as we are running dpkg, keep an inhibitor that blocks us from shutting down. LP: #1820886
* | debmetaindex: Use isspace_ascii() variant to normalize Signed-ByJulian Andres Klode2019-05-071-1/+1
| | | | | | | | | | Using the locale-dependent isspace() function here opens us up to strange locale-dependent behavior.
* | CMake: Enforce "override" use on overriden methodsJulian Andres Klode2019-05-061-1/+1
| | | | | | | | | | This ensures that we do not accidentally stop overriding a method because it's signature changed in an API break.
* | Change soname to libapt-pkg.so.5.90Julian Andres Klode2019-05-061-2/+2
| | | | | | | | | | This is a bit experimental, and we'll go through a few stages before reaching libapt-pkg.so.6.0.
* | cacheset: Remove simple cases of deprecated codeJulian Andres Klode2019-05-062-181/+2
| | | | | | | | | | | | This is missing the ones that are still actively used in cacheset.cc, we need to clean those up too, but they are obviously more tricky.
* | Use debDebFile to get control file instead of dpkg-debJulian Andres Klode2019-05-061-27/+16
| |
* | Merge libapt-inst into libapt-pkgJulian Andres Klode2019-05-068-0/+1115
| |
* | Prevent shutdown while running dpkgJulian Andres Klode2019-05-034-0/+67
| | | | | | | | | | | | | | As long as we are running dpkg, keep an inhibitor that blocks us from shutting down. LP: #1820886
* | apt-pkg: URI: Add 'explicit' to single argument constructorJulian Andres Klode2019-04-303-4/+4
| | | | | | | | | | This needs a fair amount of changes elsewhere in the code, hence this is separate from the previous commits.
* | apt-pkg: hashes: Add 'explicit' to single argument constructorsJulian Andres Klode2019-04-301-5/+5
| | | | | | | | | | This avoids funny code where strings get implicitly converted to HashString or HashStringList.
* | Add 'explicit' to most single argument constructorsJulian Andres Klode2019-04-3012-24/+24
| | | | | | | | | | | | | | | | | | | | | | This prevents implicit conversions that we do not want, such as having a FileFd* being converted to a debListParser. Two cases are not yet handled because they require changes in code using them: 1. The classes in hashes.h 2. The URI class - this one is used quite a lot
* | acq: worker: Move CurrentSize, TotalSize, ResumePoint to CurrentItemJulian Andres Klode2019-04-304-27/+25
| | | | | | | | | | These status fields belong to the current item, move them there. This prepares us for eventually having multiple current items.
* | Don't limit cpu-limited queues to at most 10David Kalnischkies2019-04-161-5/+7
| | | | | | | | | | | | | | | | | | | | | | Queues for processes like rred are not created by hostname but we spawn at most CPU*2 queues to place items in. The problem is that we then proceeded to limit it to at most 10 queues (via QueueHost::Limit) again at the end of the method so that all items (after the first 10 queues are busy) are forcibly placed into a generic catch-all instance which is bad because we don't keep all CPUs we have available busy and worse we end up sheduling the most work to a single one while random distribution was intended.
* | Follow gcc-9 -Wnoexcept suggestion for FileChunk constructorDavid Kalnischkies2019-04-161-1/+1
| | | | | | | | | | | | | | | | warning: but ‘pkgTagFilePrivate::FileChunk::FileChunk(bool, size_t)’ does not throw; perhaps it should be declared ‘noexcept’ [-Wnoexcept] Reported-By: gcc-9 Gbp-Dch: Ignore
* | Merge branch 'pkgconfig' into 'master'Julian Andres Klode2019-04-042-0/+11
|\ \ | | | | | | | | | | | | Add PkgConfig on the apt-pkg and apt-inst libraries See merge request apt-team/apt!20
| * | Add pkg-config files for the apt-pkg and apt-inst librariesCorentin Noël2019-03-082-0/+11
| | | | | | | | | | | | Closes: #439121
* | | Use system-provided triehashJulian Andres Klode2019-03-111-1/+1
|/ /
* | Merge tag '1.8.0'Julian Andres Klode2019-03-081-2/+16
|\| | | | | | | apt Debian release 1.8.0
| * Add explicit message for unsupported binary signatureDavid Kalnischkies2019-03-031-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Verifying the content of Release.gpg made us fail on binary signatures which were never officially supported (apt-secure manpage only documents only the generation of ASCII armored), but silently accepted by gpgv as we passed it on unchecked before. The binary format is complex and is itself split into old and new formats so adding support for this would not only add lots of code but also a good opportunity for bugs and dubious benefit. Reporting this issue explicitly should help repository creators figure out the problem faster than the default NODATA message hinting at captive portals. Given that the binary format has no file magic or any other clear and simple indication that this is a detached signature we guess based on the first two bits only – and by that only supporting the "old" binary format which seems to be the only one generated by gnupg in this case. References: e2965b0b6bdd68ffcad0e06d11755412a7e16e50 Closes: #921685
* | fileutl: Merge Popen variantsJulian Andres Klode2019-02-262-13/+1
| |
* | acquire-item: Remove deprecated members and functionsJulian Andres Klode2019-02-262-50/+3
| |
* | orderlist: Remove deprecated VisitNode() variantJulian Andres Klode2019-02-261-1/+0
| |
* | dpkgpm: Remove deprecated pkgDPkgPM::SendV2Pkgs()Julian Andres Klode2019-02-262-5/+0
| |
* | fileutl: Remove deprecated functions such as gzFd()Julian Andres Klode2019-02-262-28/+0
| |
* | strutl: Remove deprecated functionsJulian Andres Klode2019-02-262-57/+0
| |
* | edsp: Remove deprecated functionsJulian Andres Klode2019-02-262-347/+2
| |
* | sptr: Remove deprecated smart pointer classesJulian Andres Klode2019-02-262-75/+0
| | | | | | | | Please use the standard C++ variants instead.
* | sourceslist: Remove deprecated AddVolatileFiles() variantJulian Andres Klode2019-02-262-18/+0
| |
* | netrc: Remove deprecated function maybe_add_auth()Julian Andres Klode2019-02-262-11/+0
| |
* | depcache: Remove deprecated functionsJulian Andres Klode2019-02-262-19/+0
| |
* | packagemanager: Remove deprecated functionsJulian Andres Klode2019-02-264-47/+0
| |
* | pkgcachegen: Remove deprecated functionsJulian Andres Klode2019-02-262-9/+0
| |
* | indexcopy: Remove deprecated SigVerify::RunGPGV()Julian Andres Klode2019-02-262-15/+0
| |
* | hashes: Remove deprecated functionsJulian Andres Klode2019-02-262-58/+6
| | | | | | | | | | | | This keeps the members in the class, but makes them private. We want to migrate to libgcrypt eventually, since we already use libgcrypt through gpgv anyway.
* | metaindex: Remove deprecated checkSum::Hash (replaced by Hashes)Julian Andres Klode2019-02-262-7/+0
| |
* | algorithms: Remove deprecated ProblemResolver::InstallProtect()Julian Andres Klode2019-02-262-28/+0
| |
* | acquire: Remove deprecated pkgAcquire::Setup() functionJulian Andres Klode2019-02-262-33/+0
| |