summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | add a simple container for HashStringsDavid Kalnischkies2014-05-092-16/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | APT supports more than just one HashString and even allows to enforce the usage of a specific hash. This class is intended to help with storage and passing around of the HashStrings. Git-Dch: Ignore
| * | | mark as Automatic/Downloadable pure as gcc suggestsDavid Kalnischkies2014-05-081-2/+2
| | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore Reported-By: gcc
* | | | Add new pkgAcqBaseIndex as base class for ↵Michael Vogt2014-05-142-60/+27
| | | | | | | | | | | | | | | | pkgAcq{DiffIndex,IndexMerge,pkgAcqBaseIndex, pkgAcqIndex}
* | | | Pass struct IndexTarget/indexRecords to pkgAcqIndex{,Merge}DiffsMichael Vogt2014-05-142-36/+75
|/ / / | | | | | | | | | | | | | | | If one of the pkgAcqIndex{,Merge}Diffs fails, they will run pkgAcqIndex() which needs the IndexTarget/indexRecords data. So we pass it along.
* | | apt-pkg/deb/debindexfile.cc: do not hardcode dpkgMichael Vogt2014-05-081-1/+2
| | |
* | | Merge remote-tracking branch 'mvo/feature/build-dep-dsc2' into ↵Michael Vogt2014-05-0810-6/+135
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debian/experimental Conflicts: apt-pkg/deb/debindexfile.cc apt-pkg/deb/debindexfile.h apt-pkg/deb/debsrcrecords.cc
| * | | add support for apt-get build-dep unpacked-source-dirMichael Vogt2014-04-252-0/+19
| | | |
| * | | create debIFTypeDscFile typeMichael Vogt2014-04-247-6/+79
| | | |
| * | | add support for apt-get build-dep foo.dscMichael Vogt2014-04-224-0/+39
| | | |
* | | | Merge remote-tracking branch 'mvo/bugfix/update-progress-reporting' into ↵Michael Vogt2014-05-084-5/+14
|\ \ \ \ | | | | | | | | | | | | | | | debian/experimental
| * | | | check for UnfetchedReleaseFiles when calculating the update percent valueMichael Vogt2014-05-081-4/+9
| | | | |
| * | | | Merge remote-tracking branch 'upstream/debian/sid' into ↵Michael Vogt2014-05-083-1/+5
| |\ \ \ \ | | | |/ / | | |/| | | | | | | bugfix/update-progress-reporting
| | * | | Merge remote-tracking branch 'mvo/feature/apt-ftparchive-srccache2' into ↵Michael Vogt2014-05-072-1/+3
| | |\ \ \ | | | | | | | | | | | | | | | | | | debian/sid
| | | * | | Implement CacheDB for source packages in apt-ftparchiveMichael Vogt2014-04-042-1/+3
| | | | | |
| | * | | | Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2014-05-071-0/+2
| | |\ \ \ \ | | | |_|_|/ | | |/| | |
| | | * | | initialize Verify in second pkgAcqIndex constructorDavid Kalnischkies2014-04-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc reports in testcase ./test-bug-596498-trusted-unsigned-repo: apt-pkg/acquire-item.cc:1059:7: runtime error: load of value 234, which is not a valid value for type 'bool' This happens as the bool Verify is initialized only in one of the two constructors of the pkgAcqIndex class. It isn't a problem through as the verification controlled by this flag is optional and used to fail early on garbage files (like network portal pages) instead of later on in the hashsum verification or while parsing (the then untrusted) file. Reported-By: gcc-4.9 -fsanitize=undefined
* | | | | | fix some compile errors in the now enabled #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2014-05-075-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | APT_PKG_MINOR < 13)
* | | | | | apt-pkg/contrib/macros.h: bump library version to 4.13Michael Vogt2014-05-071-1/+1
| | | | | |
* | | | | | Merge remote-tracking branch 'mvo/bugfix/update-progress-reporting' into ↵Michael Vogt2014-05-076-31/+126
|\| | | | | | | | | | | | | | | | | | | | | | | debian/experimental
| * | | | | Merge branch 'debian/sid' into bugfix/update-progress-reportingMichael Vogt2014-05-0712-128/+126
| |\| | | |
| * | | | | pass Target/MetaIndexParser around into pkgAcqDiffIndex so that this can be ↵Michael Vogt2014-04-172-22/+35
| | | | | | | | | | | | | | | | | | | | | | | | used to create a proper pkgAcqIndex() with size information
| * | | | | calculate Percent as part of pkgAcquireStatus to provide a weighted percent ↵Michael Vogt2014-04-163-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | for both items and bytes
| * | | | | use correct compression extension when loading the size of the size into the ↵Michael Vogt2014-04-161-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | fetcher
| * | | | | add Debug::acquire::progress debug option and fixme for index file loading ↵Michael Vogt2014-04-162-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | with the correct extension
| * | | | | load the size from the metaindex into the fetcher to have even more accurate ↵Michael Vogt2014-04-165-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | progress information
| * | | | | make the TotalFiles more reliable in apt-get updateMichael Vogt2014-04-163-5/+46
| | |_|_|/ | |/| | |
* | | | | Merge remote-tracking branch 'mvo/feature/apt-install-deb' into ↵Michael Vogt2014-05-0711-11/+361
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | debian/experimental
| * | | | | move pkgSourceList::AddMetaIndex() into a private subclass until we decide ↵Michael Vogt2014-05-071-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | about a good API
| * | | | | rename pkgSourceList::Add() to pkgSourceList::AddMetaIndex()Michael Vogt2014-05-071-1/+1
| | | | | |
| * | | | | use flAbsPath()Michael Vogt2014-04-281-2/+1
| | | | | |
| * | | | | Merge branch 'feature/abspath' into feature/apt-install-debMichael Vogt2014-04-282-0/+20
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: test/libapt/fileutl_test.cc
| | * | | | | add flAbsPath() as a wrapper to realpath()Michael Vogt2014-04-282-0/+20
| | | | | | |
| * | | | | | use new Popen()Michael Vogt2014-04-281-10/+13
| | | | | | |
| * | | | | | Merge branch 'feature/popen' into feature/apt-install-debMichael Vogt2014-04-282-0/+67
| |\ \ \ \ \ \
| | * | | | | | Implement Popen() execv helper to avoid popen()Michael Vogt2014-04-282-0/+67
| | |/ / / / /
| * | | | | | avoid deb specific code in private-installMichael Vogt2014-04-281-0/+20
| | | | | | |
| * | | | | | WIP local deb installMichael Vogt2014-04-2811-10/+248
| |/ / / / /
* | | | | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-05-07122-1423/+2371
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/cachefilter.h apt-pkg/contrib/fileutl.cc apt-pkg/contrib/netrc.h apt-pkg/deb/debsrcrecords.cc apt-pkg/init.h apt-pkg/pkgcache.cc debian/apt.install.in debian/changelog
| * | | | | Only do openpty() if both stdin/stdout are terminalsMichael Vogt2014-04-301-5/+6
| | |_|/ / | |/| | | | | | | | | | | | | Closes: 746434
| * | | | fix FileFd::Size bitswap on big-endian architecturesAdam Conrad2014-04-261-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gzip only gives us 32bit of size, storing it in a 64bit container and doing a 32bit flip on it has therefore unintended results. So we just go with a exact size container and let the flipping be handled by eglibc provided le32toh removing our #ifdef machinery. Closes: 745866
| * | | | handle pkgnames shorter than modifiersDavid Kalnischkies2014-04-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bugreport highlights the problem with an empty package name. We fix this by 'ignoring' these so that it behaves just like "apt-get install". The deeper problem is that modifier strings can be longer than a package name in which case the comparison doesn't make sense, so don't compare then. Was not noticed so far as all modifiers are of length 1, so the only package name shorter than this is in fact the empty package name. Closes: 744940
| * | | | properly undo CD-ROM mount in all error casesJohn Ogness2014-04-262-25/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In bug #740673 various issues in the CD-ROM handling code were identified, while most the issues ended up being fixed in another way, the unmounting of the CD-ROM in error cases was not tackled so far. (The patch was modified by the commiter to apply)
| * | | | reduce delta from ubuntuMichael Vogt2014-04-252-1/+2
| |/ / /
| * | | clear HitEof flag in FileFd::SeekDavid Kalnischkies2014-04-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fseek and co do this to their eof-flags and it is more logic this way as we will usually seek away from the end (e.g. to re-read the file). The commit also improves the testcase further and adds a test for the binary compressor codepath (as gz, bzip2 and xz are handled by libraries) via the use of 'rev' as a 'compressor'.
| * | | force fancy progressbar redraw on window size changeDavid Kalnischkies2014-04-142-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We always reacted on the size change, but the bar is only redraw if the precentage changes, which can take quiet a while in big upgrades, so with a bit of refactoring we can now call for a redraw immediate to fix this. This refactor also helps in avoiding obscure pitfalls clangs static analyser was complaining about (namely failure of ioctl resulting in garbage values in the struct).
| * | | consider priorities only for downloadable pkgs in resolverDavid Kalnischkies2014-04-111-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A package which can't be downloaded anymore is very likely dropped from a release and can therefore no longer be 'standard' (or similar). We therefore do not grant points for them anymore and demote them to prio:extra instead which helps other packages breaking them away even if they have a lower priority. The testcase was initially created by Michael Vogt and just amended.
| * | | deal with umask only if we really need to for mkstempDavid Kalnischkies2014-04-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the comment actually says: open() does the umask dance by itself, so we don't need to do it for it. We have to do it after mkstemp in Atomic though, so move it into the if. Also removes the "micro-optimisation" "FilePermissions == 600" as it doesn't trigger at the moment anyway as 600 != 0600.
| * | | don't double-count seeks in FileFd::Skip for bzip/xzDavid Kalnischkies2014-04-111-1/+0
| | | | | | | | | | | | | | | | | | | | FileFd::Read already deals with the increase of the skipposition so that we as the caller in FileFd::Skip really shouldn't increase it, too.
| * | | do not create an (additional) empty compressorDavid Kalnischkies2014-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FileFd code knows how to deal with such a compressor, so it isn't a problem, but it is absolutely not needed as we already have an (matching) identity compressor with '.' earlier in the list. Git-Dch: Ignore
| * | | use wildcard to get files in our library makefilesDavid Kalnischkies2014-04-111-45/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The explicit listing is a pain every time you want to add a file to the list and serves no propose as we list all files there anyway, so this is not only easier but also documents this fact. Git-Dch: Ignore