summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'mvo/feature/source-deb822' into ↵Michael Vogt2014-01-052-11/+95
|\ | | | | | | debian/experimental-no-abi-break
| * improve error messageMichael Vogt2014-01-042-13/+23
| |
| * improve testsMichael Vogt2014-01-041-1/+2
| |
| * Merge branch 'debian/sid' into feature/source-deb822Michael Vogt2014-01-048-38/+98
| |\
| * \ Merge remote-tracking branch 'upstream/debian/sid' into feature/source-deb822Michael Vogt2013-12-103-11/+31
| |\ \
| * | | suppoer $(ARCH) in deb822 sources.list as wellMichael Vogt2013-12-091-2/+6
| | | |
| * | | add APT::Sources::Use-Deb822 to allow disabling the deb822 parserMichael Vogt2013-12-091-8/+13
| | | |
| * | | more refactorMichael Vogt2013-12-092-68/+69
| | | |
| * | | refactor deb822 reading into its own functionMichael Vogt2013-12-092-17/+37
| | | |
| * | | fix section addingMichael Vogt2013-12-051-1/+10
| | | |
| * | | first version with testMichael Vogt2013-12-051-6/+40
| | | |
* | | | Merge remote-tracking branch 'donkult/feature/clientmergepdiffs' into ↵Michael Vogt2014-01-053-12/+257
|\ \ \ \ | |_|_|/ |/| | | | | | | debian/experimental-no-abi-break
| * | | implement POC client-side merging of pdiffs via apt-fileDavid Kalnischkies2013-12-132-4/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of pdiffs is to avoid downloading the hole file by patching the existing index. This works very well, but becomes slow if a lot of patches needs to be applied to reconstruct an up-to-date index and in recent years more and more dinstall (or similar) runs are executed creating more and more pdiffs in the same amount of time, so pdiffs became less useful. The solution is simple: Reduce the amount of patches (which are very small) which need to be applied on top of the index we have available (which is usually pretty big). This can be done in two ways: Either merge the patches on the server-side so that the client has to download only one patch or the patches are all downloaded and merged on the client-side. The first needs a client who is doing one step at a time who can also skip patches if it needs (APT supports this for a long time now). The later is implemented by this commit, but depends on the server NOT merging the patches and the patches being in a strict order in which no patch is skipped. This is traditionally the case for dak, but other repository creators support merging – e.g. reprepro (which helpfully adds a flag indicating that the patches are merged). To support both or even mixes a client needs more information which isn't available for now. This POC uses the external diffindex-rred included in apt-file to do the heavy lifting of merging & applying all patches in one pass, hence to test this feature apt-file needs to be installed.
| * | | allow ':' in GetListOfFilesInDirDavid Kalnischkies2013-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | run-parts doesn't allow this char in valid filenames, but we tend to have files with this character in e.g. /var/lib/apt/lists/ Git-Dch: Ignore
| * | | query an empty pkgAcqIndexDiffs if index is up-to-dateDavid Kalnischkies2013-12-131-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code already did this, this is just being a hell of a lot more obvious, so that it isn't that easy to break in the future. Git-Dch: Ignore
* | | | add missing vector includeMichael Vogt2013-12-281-0/+1
| | | |
* | | | Merge branch 'debian/sid' into bugfix/bts731738-fancy-progessMichael Vogt2013-12-287-14/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/install-progress.cc
| * \ \ \ Merge branch 'feature/policy-parser-bts732746' into debian/sidMichael Vogt2013-12-272-2/+13
| |\ \ \ \
| | * | | | make /etc/apt/preferences parser deal with comment only sectionsMichael Vogt2013-12-212-2/+13
| | | |_|/ | | |/| |
| * | | | add basic tests for GetTempDir()Michael Vogt2013-12-231-1/+1
| | | | |
| * | | | factor GetTempDir outMichael Vogt2013-12-223-13/+21
| | | | |
| * | | | apt-pkg/contrib/gpgv.cc: use /tmp as fallback dirThomas Bechtold2013-12-221-1/+6
| | |/ / | |/| | | | | | | | | | if the directory given by $TMPDIR is not available, use /tmp as fallback.
| * | | Fix conffile prompt regression (LP: #1260297)Michael Vogt2013-12-122-4/+8
| |/ / | | | | | | | | | | | | This fixes a regression in the conffile prompt for the progress-fd and adds a testcase to ensure this does not regress again.
* | | Merge remote-tracking branch 'origin/bugfix/bts731738-fancy-progess' into ↵Michael Vogt2013-12-281-2/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bugfix/bts731738-fancy-progess Conflicts: apt-pkg/install-progress.cc
| * | | first proof-of-concept for a fix for #731738Michael Vogt2013-12-223-4/+11
| |/ /
* | | properly handle SIGWINCH in PackageManagerFancy againMichael Vogt2013-12-282-26/+51
| | |
* | | first proof-of-concept for a fix for #731738Michael Vogt2013-12-223-4/+11
|/ /
* / Handle SIGWINCH in APT::Progress-Fancy=1Michael Vogt2013-12-063-11/+31
|/
* * enable release based selection for deb-src (closes: 731102)Michael Vogt2013-12-056-10/+48
|
* drop old /var/state to /var/lib transition artefactsDavid Kalnischkies2013-12-011-9/+1
| | | | | | Regardless of when this transition was, it is so long ago that everyone who would still need this has a million other problems to deal with now so lets just drop this code.
* merge ubuntus apport reporting changes to reduce diffDavid Kalnischkies2013-11-301-5/+54
| | | | | apport reporting is still disabled by default, but it is available in Debian/experimental at the moment and a diff is not a good idea anyway.
* truncating /dev/null to zero is always successfulDavid Kalnischkies2013-11-301-0/+3
| | | | | | | | | | | Calling truncate on /dev/null can happen by the download methods if they are instructed to download a file to /dev/null (as testcases are only interested in the status code, but do not support HEAD requests yet) So just ignore truncate calls on the /dev/null file as it is always empty anyway, so truncating to zero isn't a problem. Git-Dch: Ignore
* fix apport report writing (LP: #1254499)Michael Vogt2013-11-291-1/+1
|
* reset terminal on error (closes: #730795)Michael Vogt2013-11-291-0/+1
|
* fix crash when SetCandidateRelease is usedMichael Vogt2013-11-291-1/+1
|
* Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2013-11-294-5/+38
|\ | | | | | | | | Conflicts: apt-private/private-cmndline.cc
| * add "APT::String::Endswith" and automatic adding of ".list" in apt edit-sourceMichael Vogt2013-11-292-0/+9
| |
| * add check when sources.list changedMichael Vogt2013-11-262-5/+29
| |
* | fix regression that APT::Keep-Fds is not honored (closes: #730490)Michael Vogt2013-11-283-8/+21
|/
* small documentation updatesMichael Vogt2013-11-013-2/+7
|
* setup LINES in apt-pkg/install-progress.ccMichael Vogt2013-10-311-0/+5
|
* use StartDpkg() in PackageManagerProgressDeb822Fd as wellMichael Vogt2013-10-312-2/+2
|
* add new pid_t ExecFork(std::set<int> KeepFDs) to get rid of the super ugly ↵Michael Vogt2013-10-315-32/+43
| | | | APT::Keep-Fds hack and also add a new PackageManagerProgressFd::StartDpkg() progress state
* move pty magic into its own functionsMichael Vogt2013-10-312-88/+97
|\
| * move pty stuff into its own functionMichael Vogt2013-10-312-79/+97
| |
* | fix some more ABI issues, abicheck is happy nowMichael Vogt2013-10-312-1/+10
| |
* | restore ABI and prepare next ABI via #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2013-10-316-7/+93
| | | | | | | | APT_PKG_MINOR >= 13)
* | extract getDpkgExecutable() and DPkgPM::BuildPackagesProgressMap() out of ↵Michael Vogt2013-10-252-62/+77
| | | | | | | | the monster long pkgDPkgPM::Go()
* | make the main loop a while() instead of a for() as I find this (much) easier ↵Michael Vogt2013-10-241-2/+3
| | | | | | | | to read this way)
* | Merge remote-tracking branch 'upstream/debian/sid' into ↵Michael Vogt2013-10-227-323/+450
|\ \ | | | | | | | | | | | | | | | | | | | | | feature/install-progress-refactor Conflicts: apt-pkg/deb/dpkgpm.cc apt-pkg/makefile