summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Dutch program translation updateFrans Spiesschaert2018-06-021-31/+24
| | | | Closes: #900589
* Merge branch 'fix/usesteadyclockforprogress' into 'master'Julian Andres Klode2018-05-305-94/+96
|\ | | | | | | | | Fix/usesteadyclockforprogress See merge request apt-team/apt!19
| * Use steady clock source for bandwidth limitationDavid Kalnischkies2018-05-292-10/+11
| | | | | | | | | | Using the time of day for this is slightly wrong just like it is for progress, just less visible.
| * Remove unused time-tracking from http methodDavid Kalnischkies2018-05-282-20/+0
| | | | | | | | | | | | | | The Stats method isn't called anywhere, was partly commented out before, but we keep updating the time for it – lets avoid this pointless busywork. Gbp-Dch: Ignore
| * Use a steady clock source for progress reportingDavid Kalnischkies2018-05-283-64/+85
| | | | | | | | | | | | Clock changes while apt is running can result in strange reports confusing (and amusing) users. Sadly, to keep the ABI for now the code is a bit more ugly than it would need to be.
* | apt-key: Pass all instead of gpg-agent to gpgconf --killJulian Andres Klode2018-05-291-1/+1
|/ | | | | | We want to kill everything using our temporary directory. LP: #1773992
* Don't show acquire warning for "hidden" componentsDavid Kalnischkies2018-05-283-10/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit d7c92411dc1f4c6be098d1425f9c1c075e0c2154 introduced a warning for non-existent files from components not mentioned in Components to hint users at a mispelling or the disappearance of a component. The debian-installer subcomponent isn't actively advertised in the Release file through, so if apt ends up in acquiring a file which doesn't exist for this component (like Translation files) apt would produce a warning: W: Skipping acquire of configured file 'main/debian-installer/i18n/Translation-en' as repository 'http://deb.debian.org/debian buster InRelease' doesn't have the component 'main/debian-installer' (component misspelt in sources.list?) We prevent this in the future by checking if any file exists from this component which results in the warning to be produced still for the intended cases and silence it on the d-i case. This could potentially cause the warning not to be produced in cases it should be if some marginal file remains, but as this message is just a hint and the setup a bit pathological lets ignore it for now. There is also the possibility of having no file present as they would all be 0-length files and being a "hidden" component, but that would be easy to workaround from the repository side and isn't really actively used at the moment in the wild. Closes: #879591
* tests: Prevent stunnel4 from binding on IPv6David Kalnischkies2018-05-281-1/+1
| | | | | | | | Hardcoding the IPv4 address 127.0.0.1 stops stunnel4 from also binding on IPv6 as well which not only binds on another port but confuses our crude port extraction by splitting on ':' with ::1. Gbp-Dch: Ignore
* Merge branch 'pu/timeout-bad-addr-fixes' into 'master'Julian Andres Klode2018-05-246-8/+9
|\ | | | | | | | | Pu/timeout bad addr fixes See merge request apt-team/apt!18
| * Lower default timeout from 120s to 30sJulian Andres Klode2018-05-245-8/+8
| | | | | | | | | | 120s is an insanely high default time out, lower it to 30s to make things a bit nicer.
| * Handle a missed case of timed out ip addressesJulian Andres Klode2018-05-241-0/+1
| | | | | | | | | | | | | | Correctly register timed out IP addresses from a timed out select() call as a bad address so we do not try it again. LP: #1766542
* | Merge branch 'feature/morevolatilesupport' into 'master'Julian Andres Klode2018-05-2414-186/+557
|\ \ | | | | | | | | | | | | more volatile: build-dep foo.deb/release & show foo.deb See merge request apt-team/apt!14
| * | Support local files as arguments in show commandDavid Kalnischkies2018-05-114-32/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that --with-source is supported in show we can go a little further and add the "syntactic sugar" of supporting deb-files on the commandline directly to give users an alternative to remembering dpkg -I for deb files & as a bonus apt also works on changes files. Most of the code churn is actually to deal with cases probably not too common in reality like mixing packages and deb-files on the commandline and getting the right order for these multiple records. Closes: 883206
| * | Support --with-source in show & search commandsDavid Kalnischkies2018-05-115-104/+141
| | |
| * | Deprectate buggy/incorrect Rls/PkgFile::IsOk methodsDavid Kalnischkies2018-05-112-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | With the advent of compressed files and especially with in-memory post-processed files the simple assumptions made in IsOk are no longer true. Worse, they are at best duplicates of checks performed by the cache generation (and validation) earlier and isn't used in too many places. It is hence best to simply get right of these calls instead of trying to fix them.
| * | Start pkg records for deb files with dpkg outputDavid Kalnischkies2018-05-111-16/+10
| | | | | | | | | | | | | | | | | | | | | | | | It is easier to prepend our fields, but that results in confusion for things working on the so generated records as they don't start with the usual "Package" – that shouldn't be a problem in theory, but in practice e.g. "apt-cache show" shows these records directly to the user who will probably be more confused by it than tools.
| * | Support release selector for volatile files as wellDavid Kalnischkies2018-05-115-50/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The syntax is a bit awkward, but it is the same as for a package name and introducing another syntax wouldn't really help usability, so with apt install ./foo.deb/experimental you will get the dependencies of foo satisfied by your default release, but if this wouldn't satisfy the version requirements the candidate for this dependency is switched to the version from the experimental release. The same applies for apt build-dep ./foo.dsc/stable-backports which was the initial request.
| * | Extend apt build-dep pkg/release to switch dep as neededDavid Kalnischkies2018-05-113-8/+101
| | | | | | | | | | | | | | | | | | apt install pkg/release follows versioned dependencies in the candidate switching if the current candidate does not satisfy the dependency, so for uniformity the same should be supported in build-dep.
* | | Merge branch 'feature/byhashviaalturl' into 'master'Julian Andres Klode2018-05-245-199/+194
|\ \ \ | |_|/ |/| | | | | | | | Don't force the same mirror for by-hash URIs See merge request apt-team/apt!15
| * | Don't force the same mirror for by-hash URIsDavid Kalnischkies2018-05-111-19/+40
| | | | | | | | | | | | | | | | | | | | | | | | Downloading from the same mirror we got a Release file from makes sense for non-unique URIs as their content changes between mirror states, but if we ask for an index via by-hash we can be sure that we either get the file we wanted or a 404 for which we can perform a fallback for which allows us to pull indexes from different mirror in parallel.
| * | Handle by-hash URI construction more centrallyDavid Kalnischkies2018-05-113-115/+76
| | | | | | | | | | | | | | | | | | | | | Individual items shouldn't concern themselves with these alternative locations, we can deal with this more efficiently within the infrastructure created for other alternative URIs now avoiding the need to implement this in each item.
| * | Drop alternative URIs we got a hash-based fail fromDavid Kalnischkies2018-05-115-104/+117
| |/ | | | | | | | | | | | | | | | | | | | | If we got a file but it produced a hash error, mismatched size or similar we shouldn't fallback to alternative URIs as they likely result in the same error. If we can we should instead use another mirror. We used to be a lot stricter by stopping all trys for this file if we got a non-404 (or a hash-based) failure, but that is too hard as we really want to try other mirrors (if we have them) in the hope that they have the expected and correct files.
* | Merge branch 'debugautoremove' into 'master'David Kalnischkies2018-05-213-16/+48
|\ \ | | | | | | | | | | | | Increase debug verbosity in `apt-get autoremove` See merge request apt-team/apt!9
| * | Extend test-apt-get-autoremove to check debug outputFilipe Brandenburger2018-05-211-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Run `apt-get autoremove -o Debug::pkgAutoRemove=yes` and confirm the logged reason for packages to be kept is correct. Only check for specific debug lines containing 'MarkPackage:' in order to prevent new debug logging to break the test case.
| * | Increase debug verbosity in `apt-get autoremove`Filipe Brandenburger2018-05-212-16/+23
|/ / | | | | | | | | | | | | | | | | | | | | When running with Debug::pkgAutoRemove=yes, explain why certain packages are being marked, either because they're marked essential/important or because they match the blacklist from APT::NeverAutoRemove. This should help troubleshoot cases where autoremove is not proposing removal of packages expected to be up for removal. Tested manually with `apt-get autoremove -o Debug::pkgAutoRemove=yes`.
* | Fix hidden test failure if not called via sudoDavid Kalnischkies2018-05-192-2/+2
| | | | | | | | | | | | | | | | id: '': no such user ./test-bug-611729-mark-as-manual: 59: [: Illegal number: Regression-of: 68842e1741a5005b1e3f0a07deffd737c65e3294 Gbp-Dch: Ignore
* | Reword error for timed out read/write on SOCKS proxyDavid Kalnischkies2018-05-191-1/+6
| | | | | | | | Closes: #898886
* | Russian program translation updateАлексей Шилин2018-05-181-412/+424
| | | | | | | | Closes: 898797
* | Add verb 'be' to NEWS entry for 1.5~beta1annadane2018-05-181-1/+1
| | | | | | | | Closes: 892792
* | Merge branch 'gitignore' into 'master'Julian Andres Klode2018-05-161-0/+8
|\ \ | | | | | | | | | | | | Update .gitignore See merge request apt-team/apt!16
| * | Update .gitignoreFilipe Brandenburger2018-05-151-0/+8
| |/
* | Merge branch 'pu/gitlab-ci' into 'master'Julian Andres Klode2018-05-163-2/+35
|\ \ | |/ |/| | | | | Pu/gitlab ci See merge request apt-team/apt!17
| * Run tests on GitLab CIJulian Andres Klode2018-05-161-0/+33
| | | | | | | | | | | | | | | | | | Salsa has support for GitLab CI. This introduces a test setup for it, derived from the ones for shippable and travis. It is not optimal yet: The build is run in the test stage. Fixing this requires us to separate test from build dependencies, and storing build/ as an artifact of the build stage; since build and test stage run on different runners with fresh checkouts and images.
| * tests: Do not expect requested-by if sudo was invoked by rootJulian Andres Klode2018-05-162-2/+2
|/ | | | | If sudo was invoked by root, SUDO_UID will be 0, and apt will not print a Requested-By line.
* use 127.0.0.1 instead of localhost as default Tor proxyDavid Kalnischkies2018-05-1113-28/+28
| | | | | | This shouldn't make a practical difference for most people, but for edge cases it avoids DNS lookups and additionally prevents us from perfoming unneeded SRV requests, too.
* don't try SRV requests based on IP addressesDavid Kalnischkies2018-05-111-0/+10
| | | | | IP addresses are by definition not a domain so in the best case the requests will just fail; we can do better than that on our own.
* prepare-release: run i18nspector as "lint" if availableDavid Kalnischkies2018-05-101-78/+100
| | | | Gbp-Dch: Ignore
* po: Drop boilerplate in initial commentsDavid Kalnischkies2018-05-105-11/+8
| | | | | | | | The boilerplate stems from automatic processing of these files as most (with the exception of po/nl.po) are one-off (partial) translations from years past. Gbp-Dch: Ignore
* Add boilerplate plural form to po/apt-all.potDavid Kalnischkies2018-05-101-0/+1
| | | | | Warned-by: i18nspector Fixes: no-plural-forms-header-field
* Merge branch 'pu/cleanup' into 'master'Julian Andres Klode2018-05-09123-126/+32
|\ | | | | | | | | Repository cleanups See merge request apt-team/apt!12
| * po: Add missing Plural-Forms fieldsGuillem Jover2018-05-073-0/+4
| | | | | | | | | | Warned-by: i18nspector Fixes: no-plural-forms-header-field
| * po: Remove spurious text in Plural-Forms fieldGuillem Jover2018-05-071-1/+1
| | | | | | | | | | Warned-by: i18nspector Fixes: trailing-junk-in-plural-forms
| * po: Fix Language field to match actual localeGuillem Jover2018-05-071-1/+1
| | | | | | | | | | Warned-by: i18nspector Fixes: language-disparity
| * po: Fix translated string not matching format string argumentsGuillem Jover2018-05-072-4/+4
| | | | | | | | | | | | Warned-by: i18nspector Fixes: c-format-string-argument-type-mismatch Fixes: c-format-string-missing-arguments
| * po: Fill Project-Id-Version with correct project id and versionGuillem Jover2018-05-071-1/+1
| | | | | | | | | | Warned-by: i18nspector Fixes: no-version-in-project-id-version
| * Normalize authors through a mailmap fileGuillem Jover2018-05-071-0/+18
| | | | | | | | This is used from at least git shortlog.
| * Remove obsolete RCS keywordsGuillem Jover2018-05-07116-119/+3
|/ | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* move special READMEs into doc/ and format as mdDavid Kalnischkies2018-05-0510-174/+203
| | | | | | The formatting is very basic and more should probably be done, but we at least get the files out of the root directory which in case of the various READMEs was confusing salsa which one display as (central) README.
* Fix various typos reported by spellcheckersDavid Kalnischkies2018-05-0536-68/+88
| | | | | Reported-By: codespell & spellintian Gbp-Dch: Ignore
* Avoid implicitly promotion of float to doubleDavid Kalnischkies2018-05-053-2/+3
| | | | | Reported-By: gcc -Wdouble-promotion Gbp-Dch: Ignore