summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * apt-pkg/acquire-item.cc:Michael Vogt2011-08-051-2/+3
| | | | - if no Release.gpg file is found, still load the hashes for verification (closes: #636314) and add test
* apt-pkg/pkgcachegen.cc: copy Arch to avoid segfault on cache remapMichael Vogt2011-08-011-1/+3
|
* merged from debian-sidMichael Vogt2011-07-2910-54/+120
|\
| * merged from lp:~donkult/apt/sidMichael Vogt2011-07-281-5/+19
| |\
| | * * apt-pkg/deb/deblistparser.cc:David Kalnischkies2011-07-271-1/+5
| |/ | | | | - do not assume that the last char on a line is a \n (Closes: #633350)
| * merged from lp:~mvo/apt/mvoMichael Vogt2011-07-263-1/+68
| |\
| * | * apt-pkg/contrib/sha1.cc:David Miller2011-07-261-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) The problem is how sha1.cc codes the SHA1 transform, it illegally casts the on-stack workspace buffer to a type requiring more alignment than 'workspace' is actually declared to have. This only shows up recently because gcc-4.6 now does a really aggressive optimization where it gets rid of the workspace buffer entirely and just accesses 'buffer' directly, and assumes it has the necessary alignment for 32-bit loads (which it doesn't).
| * | * apt-pkg/deb/deblistparser.cc:David Kalnischkies2011-07-251-3/+6
| | | | | | | | | | | | | | | - Strip only :any and :native if MultiArch should be stripped as it is save to ignore them in non-MultiArch contexts but if the dependency is a specific architecture (and not the native) do not strip
| * | * apt-pkg/aptconfiguration.cc:David Kalnischkies2011-07-251-1/+1
| | | | | | | | | | | | - ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector
| * | * apt-pkg/policy.cc:David Kalnischkies2011-07-161-2/+16
| | | | | | | | | - emit an error on unknown APT::Default-Release value (Closes: #407511)
| * | do not require unused partial dirs in 'source' (Closes: #633510)David Kalnischkies2011-07-161-0/+2
| | |
| * | apt-pkg/contrib/configuration.cc: revert Configuration::Set() ABI breakMichael Vogt2011-07-152-2/+2
| | |
| * | * apt-pkg/depcache.cc:David Kalnischkies2011-07-151-1/+1
| | | | | | | | | - change default of APT::AutoRemove::SuggestsImportant to true
| * | merge with debian-sid 0.8.15.2David Kalnischkies2011-07-144-9/+42
| |\ \
| * | | * apt-pkg/init.cc:David Kalnischkies2011-07-063-38/+56
| | | | | | | | | | | | - use CndSet in pkgInitConfig (Closes: #629617)
| * | | * apt-pkg/pkgcachegen.cc:David Kalnischkies2011-06-301-3/+19
| | | | | | | | | | | | | | | | - fallback to memory if file is not writeable even if access() told us the opposite before (e.g. in fakeroot 1.16) (Closes: #630591)
| * | | allow package:architecure in Package:David Kalnischkies2011-06-301-8/+32
| | | |
| * | | - ensure that only the first specific stanza for a package is usedDavid Kalnischkies2011-06-292-15/+13
| | | | | | | | | | | | - save all stanzas which had no effect in Unmatched
| * | | Defaults is a vector of Pin not of PkgPinDavid Kalnischkies2011-06-291-1/+1
| | | |
| * | | * apt-pkg/policy.cc:David Kalnischkies2011-06-291-0/+3
| | | | | | | | | | | | | | | | - do not segfault in pinning if a package with this name doesn't exist. Thanks to Ferdinand Thommes for the report!
| * | | merge with debian-sid release 0.8.15David Kalnischkies2011-06-295-12/+69
| |\ \ \
| * | | | * apt-pkg/indexcopy.cc:David Kalnischkies2011-06-061-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | - Verify that the first line of an InRelease file is a PGP header for a signed message. Otherwise a man-in-the-middle can prefix a valid InRelease file with his own data! (CVE-2011-1829)
* | | | | * apt-pkg/pkgcachegen.{cc,h}:Michael Vogt2011-07-292-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | - use ref-to-ptr semantic in NewDepends() to ensure that the libapt does not segfault if the cache is remapped in between (LP: #812862)
* | | | | * apt-pkg/contrib/fileutl.{cc,h}:Michael Vogt2011-07-285-4/+47
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | - add GetModificationTime() helper * apt-pkg/pkgcachegen.cc: - regenerate the cache if the sources.list changes to ensure that changes in the ordering there will be honored by apt * apt-pkg/sourcelist.{cc,h}: - add pkgSourceList::GetLastModifiedTime() helper
* | | | fix typos in changelog, make DeEscapeString const, improve descriptionMichael Vogt2011-07-262-4/+4
| | | |
* | | | add another escape test case, fixup octal one (its \0XX instead of \0XXX)Michael Vogt2011-07-262-6/+5
| | | |
* | | | apt-pkg/contrib/strutl.cc: kill unneeded debug outputMichael Vogt2011-07-261-1/+0
| | | |
* | | | * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt2011-07-263-6/+69
| | | | | | | | | | | | | | | | - add new DeEscapeString() similar to DeQuoteQuotedWord but unescape charackter escapes like \0XXX and \xXX (plus add test)
* | | | * apt-pkg/contrib/cdromutl.cc:Michael Vogt2011-07-251-1/+7
| |_|/ |/| | | | | - fix escape problem when looking for the mounted devices
* | | merged from debian-sidMichael Vogt2011-07-144-22/+66
|\ \ \
| * | | fix from David Kalnischkies for the InRelease gpg verification Michael Vogt2011-07-131-1/+20
| | | | | | | | | | | | code (LP: #784473)
| * | | apt-pkg/aptconfiguration.h: fix copy/paste error in getCompressionTypes() ↵Michael Vogt2011-07-131-1/+1
| | | | | | | | | | | | | | | | description
| * | | * doc/makefile:Michael Vogt2011-06-302-20/+45
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - create doxygen directory to avoid depending on magic (Closes: #628799) * cmdline/apt-key: - explicitly state that net-update is not supported if no url is set - require to be root for add, rm, update and net-update - clarify update vs. net-update in different distros (Closes: #632043) * debian/apt.symbols: - forgot 'mips' in the list for all architecture dependent symbols - comment out gcc-4.5 specific symbols as gcc-4.6 is now default - the symbol for PrintStatus() is architecture dependent * apt-pkg/policy.cc: - do not segfault in pinning if a package with this name doesn't exist. Thanks to Ferdinand Thommes for the report! - Defaults is a vector of Pin not of PkgPin - ensure that only the first specific stanza for a package is used - save all stanzas which had no effect in Unmatched - allow package:architecure in Package:
* | | make ResolveByKeep() more clever and hold back packages that would go into a ↵Michael Vogt2011-07-142-6/+37
| | | | | | | | | | | | broken policy state by the upgrade
* | | apt-pkg/acquire-item.cc: improve error message for valid-untilMichael Vogt2011-07-011-2/+4
|/ /
* | merged from lp:~mvo/apt/mvoMichael Vogt2011-06-283-12/+15
|\ \
| * | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2011-06-271-1/+9
| | | | | | | | | - set permissions of term.log to root.adm and 644 (LP: #404724)
| * | apt-pkg/deb/debindexfile.cc: kill off another TranslationsAvailable() usage ↵Michael Vogt2011-06-091-6/+4
| | | | | | | | | | | | that is not needed
| * | apt-pkg/deb/debindexfile.cc: remove tests for TranslationsAvailable() as ↵Michael Vogt2011-06-091-4/+1
| | | | | | | | | | | | this will break adding translations to the cache if the current environment does not include the language (e.g. LANG=C but german translations). testing for existance of the file is the better approach
| * | * apt-pkg/deb/deblistparser.cc:Michael Vogt2011-06-091-1/+1
| | | | | | | | | | | | - include all known languages when building the apt cache (LP: #794907)
* | | merged from donkultMichael Vogt2011-06-285-28/+55
|\ \ \ | | |/ | |/|
| * | * apt-pkg/init.cc:Jörg Sommer2011-05-281-3/+0
| | | | | | | | | | | | - don't set deprecated APT::Acquire::Translation, thanks Jörg Sommer!
| * | use the correct option name in comment for Acquire::LanguagesJörg Sommer2011-05-281-1/+1
| | |
| * | log reinstall commands in history.logDavid Kalnischkies2011-05-232-18/+31
| | |
| * | remove invalid pkgcache.bin and rebuild it if possibleDavid Kalnischkies2011-05-191-1/+18
| | | | | | | | | | | | | | | | | | | | | The next invocation of APT tried to load an outdated big (and possible io-cold) file just to end up rebuilding it (possibly only as non-root in memory again and again), so we remove it here and if we have a srcpkgcache we are going to rebuild, too.
| * | rename I to J to avoid redefining a variable (clang warning)David Kalnischkies2011-05-171-5/+5
| | |
* | | cherry pick from donkultMichael Vogt2011-06-281-0/+6
| |/ |/|
* | apt-pkg/acquire-item.cc: only test packages file for correctness if its not ↵Michael Vogt2011-05-311-11/+14
| | | | | | | | empty (its ok to have empty packages files)
* | Reject files known to be invalid (LP: #346386) (Closes: #627642)Julian Andres Klode2011-05-301-4/+4
| |
* | apt-pkg/acquire-item.cc: Reject files known to be invalid (LP: #346386) ↵Julian Andres Klode2011-05-301-0/+45
|/ | | | | | | | | | | | | | | | | (Closes: #195301) This commit deals with the following cases: - First section of index file (Packages,Sources,Translation) without Package field - Signed release files without GPG data (NODATA) - i18n/Index files without hash sums Handling unsigned Release files is more complicated, and the example code using indexRecords is disabled as it can reject correct Release files without hashes. How we can reliably check unsigned Release files is another question, and not urgent anyway, as it should have no dramatic effect (we could check that it is a valid RFC-822 section, but that's a bit too long to write)