summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* do not ignore ioctl(TIOCSCTTY) errorsMichael Vogt2014-01-181-9/+19
| | | | | Show a proper error message when a ioctl() in dpkgpm.cc fails. Also simply StartPtyMagic() a bit.
* Merge remote-tracking branch 'mvo/feature/source-deb822' into ↵Michael Vogt2014-01-181-2/+2
|\ | | | | | | debian/experimental-no-abi-break
| * rename "Suite/Section" to pluralMichael Vogt2014-01-181-2/+2
| |
* | Merge remote-tracking branch 'mvo/feature/source-deb822' into ↵Michael Vogt2014-01-181-2/+2
|\| | | | | | | debian/experimental-no-abi-break
| * implement suggestion by donkult (thanks!)Michael Vogt2014-01-171-2/+2
| |
* | merged mvo/feature/deb822Michael Vogt2014-01-162-30/+53
|\|
| * support multiple "Suite:" entriesMichael Vogt2014-01-161-9/+18
| |
| * rename URL to Uri in deb822-sourcesMichael Vogt2014-01-161-1/+1
| |
| * rename "distribution" in sources.list to "suite"Michael Vogt2014-01-161-1/+1
| |
| * * refactor to have a new virtual ParseStanzaMichael Vogt2014-01-162-26/+44
| | | | | | | | | | | | Have a similar ParseStanza() to the current ParseLine(). Rename the Architectures options in deb822 to make it more user friendly
| * remove "," in components againMichael Vogt2014-01-161-5/+1
| |
* | integrate Anthonys rred with POC for client-side mergeDavid Kalnischkies2014-01-151-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Providing the benefits of both without the downsides :) (ABI breaks or external dependencies) For this Anthonys rred is equipped with: - magic-filename-pickup of patches rather than explicit messages - use of FileFd instead of FILE* to get on-the-fly uncompress of the gzip compressed pdiff patches The acquire code in turn stops checking for apt-file's helper as our own rred is now clever enough for our needs.
* | reenable unlimited pdiff files downloadDavid Kalnischkies2014-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In 51fc6def77edfb1f429a48e5169519e9e05a759b we limited the amount of pdiff to be downloaded per index to 20. This was a compromise between not letting it go overboard (becoming even slower) and not using bandwidth needlessly. Now that with the POC the speed reason is gone it makes sense again to download as much files as we possible can via pdiff to save bandwidth (and possibly even time). It also avoids problems with the limit in cases we were we deal with a server merged archieve as this limit assumes a strict patch progression.
* | correct IndexDiff vs DiffIndex in Debug outputAnthony Towns2014-01-151-6/+6
| |
* | 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