summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* fix the remaining lzma calls with xz --format=lzma in the testcasesDavid Kalnischkies2012-04-113-3/+3
|
* * cmdline/apt-get.cc:David Kalnischkies2012-04-111-1/+1
| | | - print list of autoremoves in alphabetical order (Closes: #639008)
* use xz-utils in the testcases instead of lzma and ensure that we reallyDavid Kalnischkies2012-04-112-5/+9
| | | | ignore the presents (or absence) of lzma if we decided to use xz
* * cmdline/apt-get.cc:Bogdan Purcareata2012-04-051-2/+2
| | | | | | - distinguish information about 'apt-get autoremove' based on the number of auto-removed packages both before and after the list of packages (Closes: #665833)
* use the variables as the rest of the tests to avoid escapes in the outputDavid Kalnischkies2012-03-221-2/+2
|
* * apt-inst/database.{cc,h}, apt-inst/deb/dpkgdb.{cc,h}:David Kalnischkies2012-03-222-112/+4
| | | | | | | - drop instead of fix as it is only needed if you want to reimplement dpkg and comes straight from the beginning of last decade (Closes: #663372) * apt-inst/deb/debfile.cc: - {Extract,Merge}Control() is another instance of "lets reimplement dpkg" so shot of this code before someone ends up using this…
* do not update po and pot files in the process of the build as thisDavid Kalnischkies2012-03-211-2/+2
| | | | | | | | | causes timestamp changes for the mo files which therefore can't be refcounted by dpkg for your M-A: same packages (Closes: #659333, LP: #924628) The commit also enables a top-level 'make update-po' and does all the needed changes to let this work now that update-po might be called in a freshly checkout tree
* for these helpers we don't need too much checks,David Kalnischkies2012-03-202-3/+3
| | | | but no warnings from gcc helps
* update the versionnumber of the faked dpkg in the testcases for multiarchDavid Kalnischkies2012-03-201-1/+3
| | | | and add a comment about the need of this number
* now that stdout/stdlog are used consistently, the message order changedDavid Kalnischkies2012-03-131-1/+1
|
* recheck dependencies in SmartUnpack after a change, tooDavid Kalnischkies2012-03-131-0/+1
|
* ensure that the fullname of a package is displayed in the debug outputDavid Kalnischkies2012-03-121-5/+5
|
* improve the testcode so that we do not depend on the order of unpackingDavid Kalnischkies2012-03-121-25/+17
| | | | of specific packages as long as the order is okay in general
* now that the package name 'apt' is a magic word enabling essential statusDavid Kalnischkies2012-03-121-10/+10
| | | | for said package i can't use it anymore in the testcase, so use another name
* testcase for CVE-2012-0214Simon Ruderich2012-03-031-0/+29
|
* * apt-pkg/packagemanager.cc:David Kalnischkies2012-03-031-0/+21
| | | | - do not try to a void a breaks if the broken package pre-depends on the breaker, but let dpkg auto-deconfigure it
* allow msgtest to be used with only one parameterDavid Kalnischkies2012-03-031-1/+2
|
* fix the string in the testcasesDavid Kalnischkies2012-02-271-3/+3
|
* improve 'error' message for packages which are only referencedDavid Kalnischkies2012-02-181-0/+14
| | | e.g. in a Depends line and are now requested for removal
* * cmdline/apt-get.cc:David Kalnischkies2012-02-181-0/+66
| | | | - if a package can't be removed as it is not installed, suggest to the user an (installed) multiarch silbing with 'Did you mean?'
* * apt-pkg/acquire-item.cc:David Kalnischkies2012-02-182-11/+1
| | | | | | | | | | | | | | | - drop support for i18n/Index file (introduced in 0.8.11) and use the Release file instead to get the Translations (Closes: #649314) * ftparchive/writer.cc: - add 'Translation-*' to the default patterns i18n/Index was never used outside debian - and even here it isn't used consistently as only 'main' has such a file. As the Release file now includes the Translation-* files we therefore drop support for i18n/Index. A version supporting it was never part of a debian release and still supporting it would mean that we get 99% of the time a 404 as response to the request anyway and confuse archive maintainers who want to provide all files APT tries to acquire.
* fix the hold-testcase as it has problems with 'foreign' operationsDavid Kalnischkies2012-02-114-81/+16
|
* Fix the testcases to work with and configure dpkg correctly in aDavid Kalnischkies2012-02-102-23/+64
| | | | | | | | | multi-arch environment It's not a complete and the "fixed" test is fixed more like a hack as we have communication problems with dpkg if dpkg and APT disagree on the interpretation of the native architecture, see also: http://lists.debian.org/debian-dpkg/2012/02/msg00051.html
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-01-301-0/+9
| | | | | - do not stop parent transversal in FindDir if the value is empty See http://lists.debian.org/deity/2012/01/msg00053.html , too.
* * apt-pkg/depcache.cc:David Kalnischkies2012-01-291-0/+28
| | | | - if a M-A:same package is marked for reinstall, mark all it's installed silbings for reinstallation as well (LP: #859188)
* add the testcase i wrote for revno 2209.1.2, to ensure that breaks onDavid Kalnischkies2012-01-291-0/+56
| | | | not-installed versions are ignored while searching for breakage loops
* add a very simple testcases for the previous commited fix forDavid Kalnischkies2012-01-291-0/+51
| | | | Breaks handling in algorithms.cc by Colin Watson
* * cmdline/apt-get.cc:Steve Langasek2012-01-291-24/+63
| | | | | - for cross-build-dependencies M-A: none should be DEB_HOST_ARCH, not DEB_BUILD_ARCH (Closes: #646288)
* * test/libapt/run-tests:David Kalnischkies2012-01-201-3/+1
| | | | - hurd doesn't have dmesg yet and we don't really need it either, so use with $0 a more stable data source for hashsumming
* * test/libapt/globalerror_test.cc:Pino Toscano2012-01-201-2/+5
| | | | | - errno 0 has a different strerror on hurd, so generate the expected message dynamically instead of hardcoding 'Success' (Closes: #656530)
* * apt-pkg/cacheiterators.h:David Kalnischkies2012-01-192-6/+25
| | | | | | | | | - return the correct version arch for all+foreign, too The flag is interpreted at a few other places in different styles so this commit ensures that the flag check is consistent everywhere (checking for Same in flag style is a bit too much as it isn't used in combination with others anyway, but who knows and just for consistency)
* if multi-arch is detected ensure that pkg:all is reported as pkg:allDavid Kalnischkies2012-01-191-0/+24
| | | | Versions with arch:all are added to the package with the native arch, so we can't rely on Pkg.Arch() for the architecture
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-191-2/+10
| | | - redirect out/input of dpkg --assert-multi-arch to /dev/null
* * apt-pkg/aptconfiguration.cc:Michael Vogt2012-01-181-0/+18
|\ | | | | | | | | | | | | | | - parse dpkg --print-foreign-architectures correctly in case archs are separated by newline instead of space, too. (Closes: #655590) * Slovak (Ivan Masar). Closes: #652985 * Russian (Yuri Kozlov). Closes: #654844 * Hungarian (Gabor Kelemen). Closes: #655238
| * * apt-pkg/aptconfiguration.cc:David Kalnischkies2011-12-141-0/+18
| | | | | | | | - parse dpkg --print-foreign-architectures correctly in case archs are separated by newline instead of space, too.
* | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-131-0/+53
| | | | | | | | - check if dpkg supports multiarch with --assert-multi-arch and if it does be always explicit about the architecture
* | * apt-pkg/pkgcache.cc:David Kalnischkies2012-01-131-3/+19
| | | | | | - ignore implicit conflicts on providers in AllTarget, too
* | * apt-pkg/depcache.cc:David Kalnischkies2012-01-111-0/+40
| | | | | | | | - implicit conflicts (for multiarch) are supposed to conflict only with real packages, not with virtual providers
* | use different compression types in the test now that we support themDavid Kalnischkies2011-12-111-6/+6
| |
* | add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies2011-12-113-0/+121
| | | | | | | | | | | | Unfortunately it's hard to do an automated integration test with cd, so we test this method in isolation which tries to find Indexes and dropping of duplications with DropRepeats()
* | ensure that we exit instead of proceed in execution after the trapDavid Kalnischkies2011-11-301-1/+1
| | | | | | | | (the execution leads to hard failures anyway)
* | * cmdline/apt-get.cc:David Kalnischkies2011-11-231-0/+22
| | | | | | | | - ignore foreign architectures if we check if a provides has only one resolver as it's basically the same for the user, so no need to choose
* | * apt-pkg/depcache.cc:David Kalnischkies2011-11-231-0/+128
| | | | | | | | | | | | | | | | - prefer native providers over foreigns even if the chain is foreign The code preferred real over virtual packages and based on priorities. This is changed in so far that a real package from any arch is preferred over any virtual provider and if priorities doesn't help in choosing the best provider we choose it based on architectures
* | - provide a {Package,Version}List similar to {Package,Version}SetDavid Kalnischkies2011-11-111-13/+13
| | | | | | | | | | * cmdline/apt-{get,cache,mark}.cc: - use Lists instead of Sets if input order should be preserved for commands accepting lists of packages, e.g. policy (Closes: #625960)
* | merge with my debian-sid branchDavid Kalnischkies2011-10-302-10/+71
|\|
| * cherrypick from my apt/experimental branchDavid Kalnischkies2011-10-054-4/+113
| | | | | | | | | | | | * 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-2/+21
| | | | | | - accept generic release pin expressions again in -t (Closes: #644166)
| * update the test to ensure that NotAutomatic and co is used alsoDavid Kalnischkies2011-09-151-8/+50
| | | | | | | | | | if the archive is signed, but the signature can't be checked as the key is missing (debbugs #597301 - fix in r2105)
* | create "real" testcases out of the tests for chrisDavid Kalnischkies2011-10-173-23/+26
| |
* | share description list between "same" versions (LP: #868977)David Kalnischkies2011-10-111-1/+33
| |