summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * algorithms.cc:David Kalnischkies2011-10-171-2/+9
| | | - show a debug why a package was kept by ResolveByKeep()
* cherrypick from my apt/experimental branchDavid Kalnischkies2011-10-052-4/+10
| | | | | | * apt-pkg/deb/debmetaindex.cc: - none is a separator, not a language: no need for Index (Closes: #624218) * apt-pkg/aptconfiguration.cc: - do not builtin languages only if none is forced (Closes: #643787)
* * apt-pkg/policy.cc:David Kalnischkies2011-10-041-1/+2
| | | - accept generic release pin expressions again in -t (Closes: #644166)
* * apt-pkg/init.cc:David Kalnischkies2011-09-211-7/+6
| | | - silently ignore *.orig and *.save files by default
* convert a few for-loop char finds to proper strchr and memchrDavid Kalnischkies2011-09-216-59/+42
|
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-09-202-73/+79
| | | | | | | | | | | - use std::vector instead of fixed size arrays to store args and multiarch-packagename strings - load the dpkg base arguments only one time and reuse them later * cmdline/apt-get.cc: - follow Provides in the evaluation of saving candidates, too, for statisfying garbage package dependencies (Closes: #640590) * apt-pkg/algorithms.cc: - if a package is garbage, don't try to save it with FixByInstall
* * apt-pkg/contrib/configuration.cc:Michael Vogt2011-09-141-4/+5
| | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options
* M-A:same lockstep unpack should operate on installedDavid Kalnischkies2011-09-091-5/+26
| | | packages first (LP: #835625)
* - add an Acquire::Min-ValidTime option (Closes: #640122)David Kalnischkies2011-09-051-4/+15
| | | | | * doc/apt.conf.5.xml: - reword Acquire::Max-ValidTime documentation to make clear that it doesn't provide the new Min-ValidTime functionality
* * apt-pkg/indexrecords.cc:David Kalnischkies2011-09-051-2/+2
| | | | - fix Acquire::Max-ValidTime option by interpreting it really as seconds as specified in the manpage and not as days
* * apt-pkg/orderlist.cc:David Kalnischkies2011-08-241-7/+43
| | | | | - prefer visiting packages marked for deletion in VisitProvides if we are operating on a negative dependency so that we can deal early with the fallout of this remove
* print from their the visit came fromDavid Kalnischkies2011-08-232-12/+14
|
* remove the caches in 'apt-get update', too, as they will beDavid Kalnischkies2011-08-222-0/+15
| | | invalid in most cases anyway
* * apt-pkg/acquire.cc:David Kalnischkies2011-08-221-0/+4
| | | - non-existing directories are by definition clean
* * apt-pkg/acquire-item.cc:David Kalnischkies2011-08-221-25/+22
| | | | - if no Release.gpg file is found try to verify with hashes, but do not fail if a hash can't be found
* * apt-pkg/packagemanager.cc, apt-pkg/pkgcache.cc:David Kalnischkies2011-08-172-2/+3
| | | | | - ignore "self"-conflicts for all architectures of a package instead of just for the architecture of the package locked at in the ordering of installations too (Closes: #802901)
* merged fixes from lp:~mvo/apt/mvoMichael Vogt2011-08-152-1/+2
|\
| * fix crash when P.Arch() was used but the cache got remappedMichael Vogt2011-08-081-1/+1
| |\
| * | apt-pkg/acquire-item.cc: add more debug outputMichael Vogt2011-08-081-0/+1
| | |
| * | apt-pkg/pkgcachegen.cc: fix incorrect test for modification timeMichael Vogt2011-08-081-1/+1
| | |
* | | rename the parameter name of MarkDelete from Purge to MarkPurge toDavid Kalnischkies2011-08-111-2/+2
| | | | | | | | | | | | | | | | | | fix a cosmetic warning from cppcheck: [apt-pkg/depcache.h:462] -> [apt-pkg/depcache.h:122]: (style) Variable 'Purge' hides enumerator with same name
* | | fix a few more cppcheck performance and scope warningsDavid Kalnischkies2011-08-114-16/+16
| | |
* | | cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-1127-206/+206
| | | | | | | | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
* | | fix some cppcheck: (warning) Member variable is not initialized in the ↵David Kalnischkies2011-08-113-3/+5
| | | | | | | | | | | | constructor.
* | | cppcheck is right that the check for preventing null deference of QueryDavid Kalnischkies2011-08-111-6/+2
| |/ |/| | | | | | | | | | | is redundant in Redirect() as we can't reach the code with null anyway [apt-pkg/acquire-method.cc:433]: (error) Possible null pointer dereference: Queue - otherwise it is redundant to check if Queue is null at line 425
* | * test/integration/test-hashsum-verification:Michael Vogt2011-08-051-2/+3
|\| | | | | | | | | | | - add regression test for hashsum verification * apt-pkg/acquire-item.cc: - if no Release.gpg file is found, still load the hashes for verification (closes: #636314) and add test
| * * 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