summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
...
* | correct 'apt update' download summary lineDavid Kalnischkies2015-08-271-5/+6
| | | | | | | | | | | | | | | | Fetched() was reported for mostly nothing, while we should be calling it for files worked with from non-local sources (e.g. http, but not file or xz). Previously this was called from an acquire item, but got moved to the acquire worker instead to avoid having it (re)implemented in all items, but the checks were faulty.
* | just-in-time removal of broken essential packagesDavid Kalnischkies2015-08-272-3/+39
| | | | | | | | | | | | | | | | We deal with Conflicts in SmartUnpack in pretty much the same way, but Breaks weren't handled in SmartConfigure so that the remove was sheduled after the configuration of the package breaking the to-be-removed. Closes: 796070
* | Fix more instances of missing remapping handlingJulian Andres Klode2015-08-271-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | After fixing Bug#796999, we noticed that there were some more instances of iterators which had no associated Dynamic object, causing them to not be updated when the cache was remapped. This happened in two places: In NewPackage() and in NewProvidesAllArch(). Gbp-Dch: ignore
* | pkgcachegen: Account for remapping when parsing depends from NewPackageJulian Andres Klode2015-08-271-2/+6
|/ | | | | | | | | | | | | | | In both the Ver and Dep variables, we need to account for remapping, as otherwise we would still reference the old bug. Reproduction environment: * An i386 system with amd64 foreign architecture * A sources.list with deb http://snapshot.debian.org/archive/debian/20150826T102846Z/ unstable main deb http://snapshot.debian.org/archive/debian/20150826T102846Z/ experimental main Thanks: Jakub Wilk for the bug report and the backtraces Closes: #796999
* Re-indent GetCandidateVerNew() and make ConsiderFiles argument explicitJulian Andres Klode2015-08-201-7/+7
| | | | Gbp-Dch: ignore
* Merge remote-tracking branch 'mvo/feature/srv-records' into debian/experimentalMichael Vogt2015-08-203-1/+244
|\
| * Add basic (non weight adjusted) shuffling for SrvRecords selectionMichael Vogt2015-08-202-3/+61
| | | | | | | | | | Also add "Debug::Acquire::SrvRecs" debug option and the option "Acquire::EnableSrvRecods" to allow disabling this lookup.
| * apt-pkg/contrib/srvrec.cc: res_query() should not generate a _error->Warning()Michael Vogt2015-08-181-0/+2
| |
| * cleanupMichael Vogt2015-08-182-6/+6
| |
| * Merge remote-tracking branch 'upstream/debian/experimental' into ↵Michael Vogt2015-08-18109-6417/+7037
| |\ | | | | | | | | | feature/srv-records
| * \ Merge branch 'debian/experimental' into feature/srv-recordsMichael Vogt2015-08-1894-3957/+7519
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: cmdline/apt-helper.cc cmdline/makefile
| * | | WIP start randomizingMichael Vogt2014-05-232-2/+34
| | | |
| * | | when using srv records, use the next server if one fails to connectMichael Vogt2014-05-231-1/+1
| | | |
| * | | WIP make connect use GetSrvRecordsMichael Vogt2014-05-222-0/+20
| | | |
| * | | add sorting by priorityMichael Vogt2014-05-202-2/+10
| | | |
| * | | add GetSrvRecord helper to apt-pkg/contrib/srvrec.{cc,h}Michael Vogt2014-05-202-0/+123
| | | |
* | | | Support tabs in sources.list filesJulian Andres Klode2015-08-191-1/+1
| |_|/ |/| | | | | | | | | | | | | | Also support vertical tabs, as isspace() does the same. Closes: #796067
* | | Re-add support for G++ 4.8 and configure travis to use itJulian Andres Klode2015-08-171-2/+2
| | | | | | | | | | | | | | | | | | This makes tests work again! Gbp-Dch: ignore
* | | Really fix all iwyu issuesMichael Vogt2015-08-171-0/+1
| | | | | | | | | | | | Git-Dch: ignore
* | | Fix all the wrong removals of includes that iwyu got wrongMichael Vogt2015-08-1710-0/+16
| | | | | | | | | | | | Git-Dch: ignore
* | | Cleanup includes after running iwyuMichael Vogt2015-08-1728-70/+3
| | |
* | | Make pkgCache::Priority() static, it does not need the instanceJulian Andres Klode2015-08-161-1/+1
| | | | | | | | | | | | | | | | | | It still compiles after the change, so just merge it. Closes: #448627
* | | Use terminfo's typical save_cursor/restore_cursor sequencesJames McCoy2015-08-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Not all terminals understand DOS' escape sequences for save/restore cursor, so use the more typical sequences from terminfo. Closes: #772521 Signed-off-by: James McCoy <jamessan@debian.org>
* | | Add GetPriority(VerIterator) to pkgDepCache::PolicyJulian Andres Klode2015-08-154-3/+6
| | | | | | | | | | | | | | | | | | | | | Also unify the case of considerFiles and ConsiderFiles to be ConsiderFiles in all cases. Gbp-Dch: ignore
* | | cachefile.cc: Do not ignore return value of pkgDepCache::Init()Julian Andres Klode2015-08-151-2/+1
| | | | | | | | | | | | | | | | | | | | | Currently, this always returns true, but it might start returning false at some point in the future... Gbp-Dch: ignore
* | | Also add 'in combination with the other options.' to another errorJulian Andres Klode2015-08-141-1/+1
| | | | | | | | | | | | Gbp-Dch: ignore
* | | Set Acquire::Changelogs::URI::Origin::Tanglu for Tanglu changelogsJulian Andres Klode2015-08-141-0/+1
| | |
* | | Make apt compile with clang++ againMichael Vogt2015-08-142-2/+2
| | | | | | | | | | | | | | | This allows us to run the clang static analyzer and to run the testsuite with the clang MemorySanitizer.
* | | Say "in combination with the other options" if an option is not understoodJulian Andres Klode2015-08-141-3/+3
| | | | | | | | | | | | Closes: #762758
* | | Merge branch 'debian/experimental' of https://github.com/DonKult/apt into ↵Julian Andres Klode2015-08-142-4/+1
|\ \ \ | | | | | | | | | | | | debian/experimental
| * | | Do not set unhonored DPKG_NO_TSTP variable for dpkgGuillem Jover2015-08-121-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Support for that variable was removed in dpkg in 1.15.6, in commit 6f037003e8b96878b485efb7cbd1f846e3bf4e97. Closes: #765366
| * | | Replace all "press enter" occurrences with "press [Enter]"Luca Bruno2015-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | Thanks: Andre Felipe Machado for initial patch Closes: 414848
* | | | Use setresuid() and setresgid() where availableJulian Andres Klode2015-08-131-3/+13
| | | |
* | | | Deprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>Julian Andres Klode2015-08-138-47/+48
| | | | | | | | | | | | | | | | More standardization
* | | | Mark SPtr as deprecated, and convert users to std::unique_ptrJulian Andres Klode2015-08-132-15/+15
| | | | | | | | | | | | | | | | Switch to std::unique_ptr, as this is safer than SPtr.
* | | | C++11: Switch from auto_ptr to unique_ptrJulian Andres Klode2015-08-131-1/+1
| | | | | | | | | | | | | | | | This is nicer
* | | | Drop the Section field from pkgCache::Package againJulian Andres Klode2015-08-122-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | This somehow got back, we don't really know why. Emulate the Section() method in the PkgIterator by looking at the section of the head of the VersionList.
* | | | policy: Be more strict about parsing pin files, and document prio 0Julian Andres Klode2015-08-122-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | Treat invalid pin priorities and overflows as an error. Closes: #429912
* | | | Only make Upgradable() return true for packages with a candidateJulian Andres Klode2015-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is no candidate, the package should not be considered upgradeable. LP: #896689
* | | | Add a parameter ConsiderFiles to GetPriority(VerIterator)Julian Andres Klode2015-08-122-3/+4
|/ / / | | | | | | | | | | | | This allows us to exclude files from being considered for the priority, so it will return only specific-version matches.
* | | Annotate more methods with APT_OVERRIDEJulian Andres Klode2015-08-115-14/+14
| | | | | | | | | | | | | | | | | | Gbp-Dch: ignore Reported-By: g++ -Wsuggest-override Thanks: g++ -Wsuggest-override
* | | ExecFork: Use /proc/self/fd to determine which files to closeJulian Andres Klode2015-08-111-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This significantly reduces the number of files that have to be closed and seems to be faster, despite the additional reads. On systems where /proc/self/fd is not available, we fallback to the old code that closes all file descriptors >= 3. Closes: #764204
* | | Make QItem a subclass of DescItemJulian Andres Klode2015-08-111-9/+1
| | | | | | | | | | | | | | | CurrentItem previously was a DescItem, so let's make QItem a DescItem to not break things.
* | | Re-introduce None as a deprecated alias for NoJulian Andres Klode2015-08-111-0/+4
| | | | | | | | | | | | Gbp-Dch: ignore
* | | Drop C++11 elements from headersJulian Andres Klode2015-08-113-4/+4
| | |
* | | Fix an obscure warning from GCCJulian Andres Klode2015-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It complained about the previous code: apt-pkg/sourcelist.cc: In destructor ‘pkgSourceList::~pkgSourceList()’: apt-pkg/sourcelist.cc:278:4: warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations] for (pkgIndexFile * const File : VolatileFiles) ^ There really cannot be an overflow, though. Rewriting it like this seems to fix it.
* | | Simply ignore cruft in the status files, do not treat it as prio 0Julian Andres Klode2015-08-111-2/+1
| | | | | | | | | | | | This was broken in case all other sources were < 0.
* | | Replace INT_MIN with std::numeric_limits<int>::minJulian Andres Klode2015-08-111-2/+2
| | | | | | | | | | | | | | | | | | This should fix travis compilation errors. Gbp-Dch: ignore
* | | initialize PinVers to a nullptrDavid Kalnischkies2015-08-101-1/+2
| | | | | | | | | | | | | | | | | | This makes test-bug-254770-segfault-if-cache-not-buildable happy. Git-Dch: Ignore
* | | move manual-bit from 'oldlibs' pkg to its dependenciesDavid Kalnischkies2015-08-101-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | oldlibs used to be in APT::Never-MarkAuto-Sections so that old transition packages can be removed without causing the then (autoinstalled) renamed package to be autoremoved. It isn't ideal through as ideally you want the oldlibs package to be removed after nothing depends on it anymore regardless of if you have once installed it by hand or not – and if you had the package talking over (the dependencies) should carry the manual bit now as they are the real deal now. As an added bonus if the package has no dependencies because it is an oldlibs without a direct replacement you should move away from (like lib1 and lib2 are currently in the archive, but there will hopefully only be lib2 in the release) you get a lib1 marked as auto. If the user still needs the oldlibs package for some reason all he has to do is mark it as manual once as this move is only performed if a installed package changes its section from a not-Move-Autobit-Sections to a Move-Autobit-Sections.