summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | strip everything spacey in APT::String::StripDavid Kalnischkies2014-09-071-0/+15
| | | | | | | | | | | | | | | | Git-Dch: Ignore
| | * | detect terminal output with 'test -t' in testsDavid Kalnischkies2014-09-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of trying to inspect /proc and the fds inside we use "test -t 1" instead as this is available and working on kfreebsd as well – not that something breaks if we wouldn't, but we like color. Git-Dch: Ignore
| | * | do use an 'unknown' arch-specification in testDavid Kalnischkies2014-09-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using 'kfreebsd' here makes the test fail on a kfreebsd system (obviously), so we just use something totally madeup in the hope that this is less like to conflict in the future. Git-Dch: Ignore
| | * | implement --full in apt searchDavid Kalnischkies2014-09-071-1/+15
| | | |
| | * | support regular expressions in 'apt search'David Kalnischkies2014-09-072-1/+22
| | | | | | | | | | | | | | | | | | | | apt-cache search supported this since ever and in the code for apt was a fixme indicating this should be added here as well, so here we go.
| * | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-059-30/+2668
| |\| | | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc configure.ac debian/changelog doc/apt-verbatim.ent doc/po/apt-doc.pot doc/po/de.po doc/po/es.po doc/po/fr.po doc/po/it.po doc/po/ja.po doc/po/pt.po po/ar.po po/ast.po po/bg.po po/bs.po po/ca.po po/cs.po po/cy.po po/da.po po/de.po po/dz.po po/el.po po/es.po po/eu.po po/fi.po po/fr.po po/gl.po po/hu.po po/it.po po/ja.po po/km.po po/ko.po po/ku.po po/lt.po po/mr.po po/nb.po po/ne.po po/nl.po po/nn.po po/pl.po po/pt.po po/pt_BR.po po/ro.po po/ru.po po/sk.po po/sl.po po/sv.po po/th.po po/tl.po po/tr.po po/uk.po po/vi.po po/zh_CN.po po/zh_TW.po test/integration/test-ubuntu-bug-346386-apt-get-update-paywall
| | * Fix incorrect upgradable listing in "apt list" (thanks to Michael Musenbrock)Michael Vogt2014-09-051-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "apt list" command was using only the pkgDepCache but not the pkgPolicy to figure out if a package is upgradable. This lead to incorrect display of upgradable package when the user used the policy to pin-down packages. Thanks to Michael Musenbrock for the initial patch. Closes: #753297
| | * test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use ↵Michael Vogt2014-09-031-7/+5
| | | | | | | | | | | | downloadfile()
| | * Add testcase for apt list --all-versionsMichael Vogt2014-09-021-1/+3
| | | | | | | | | | | | Dch-Ignore: true
| | * Avoid yielding blank lines with APT::Cmd::use-format=trueAndreas Oberritter2014-09-021-1/+4
| | |
| | * Make Proxy-Auto-Detect check for each hostMichael Vogt2014-09-021-22/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | When doing Acquire::http{,s}::Proxy-Auto-Detect, run the auto-detect command for each host instead of only once. This should make using "proxy" from libproxy-tools feasible which can then be used for PAC style or other proxy configurations. Closes: #759264
| | * support versioned provides as implemented by dpkgDavid Kalnischkies2014-08-261-0/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | APT supported versioned provides for a long while in an attempt to get it working with rpm. While this support is old, we can be relatively sure that it works as versioned provides are used internally to make Multi-Arch:foreign work. Previous versions of apt will print a warning indicating that the versioned provides is ignored, so that something which "Provides: foo (= 2)" doesn't provide anything. Note that dpkg does allow only a equals-relation in the provides line as anything else is deemed too complex. apt doesn't support anything else either and such a support would require potentially big changes. Closes: 758153
| | * Fix SmartConfigure to ignore ordering of packages that are already validMichael Vogt2014-07-293-0/+2398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the change of SmartConfigure() in git commit 42d51f the ordering code was trying to re-order dependencies, even when at this point in time this was not needed. Now it will first check all targets of the given dependency and only if there is not a good one try to reorder and unpack/configure as needed. Closes: LP: #1347721
| | * StringToBool: only act if the entire string is consumed by strtol()Michael Vogt2014-07-161-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | StringToBool uses strtol() internally to check if the argument is a number. This function stops when it does not find any more numbers. So a string like "0ad" (which is a valid packagename) is interpreted as a "0". The code now checks that the entire string is consumed not just a part of it. Thanks to Johannes Schauer for raising this issue.
| * | Do not crash for apt-get install /dev/nullMichael Vogt2014-07-161-0/+30
| | | | | | | | | | | | | | | | | | Thanks to Jakub Wilk for the bugreport. Closes: #754904
| * | Only allow "apt-get build-dep path" when path starts with ./ or /Michael Vogt2014-07-082-0/+12
| | | | | | | | | | | | | | | | | | This avoid the subtle problem that someone might have a directory with the same package name as the build-depends he/she is trying to fetch. Also print a note that the specific file/dir is used.
| * | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-07-085-45/+49
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/deb/deblistparser.cc doc/po/apt-doc.pot doc/po/de.po doc/po/es.po doc/po/fr.po doc/po/it.po doc/po/ja.po doc/po/pl.po doc/po/pt.po doc/po/pt_BR.po po/da.po po/mr.po po/vi.po
| | * build: Convert from DebianDoc SGML to DocBook XMLGuillem Jover2014-07-082-3/+3
| | |
| | * use printf instead of echo in testing frameworkMichele Orrù2014-07-072-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | The behaviour of echo "\tA\t" differs between dash/zsh which interprets the \t as tab and bash which prints it literally. Similar things happen for other escape sequences – without the -e flag. Switching to printf makes this more painless^Wportable, so that the tests are also working correctly with bash as sh. (commit message by committer, patch otherwise unmodified)
| | * properly handle (currently unused) dpkg pass-throughDavid Kalnischkies2014-07-071-13/+16
| | | | | | | | | | | | Git-Dch: ignore
| | * use exit instead of incorrect return in test wrapperMichele Orrù2014-07-071-4/+5
| | | | | | | | | | | | | | | | | | bash as sh doesn't like it, too. Git-Dch: Ignore
| * | Merge remote-tracking branch 'donkult/debian/sid' into debian/experimentalMichael Vogt2014-06-182-0/+41
| |\| | | | | | | | | | | | | Conflicts: apt-private/private-install.cc
| | * do not call resolver twice on (dist-)upgradeDavid Kalnischkies2014-06-181-0/+6
| | |
| | * fix SubstVar to be usable as a replace_all methodDavid Kalnischkies2014-06-181-0/+35
| | | | | | | | | | | | | | | | | | | | | The name suggests that it is supposed to substitute a variable with a value, but we tend to use it in a more liberal replace_all() fashion, but this breaks if either of the parameters is empty or more importantly if two "variable" occurrences follow each other directly.
| * | Merge remote-tracking branch 'mvo/feature/update-by-hash' into ↵Michael Vogt2014-06-181-0/+49
| |\ \ | | | | | | | | | | | | debian/experimental
| | * | Add APT::Acquire::$(host)::By-Hash=1 knob, add Acquire-By-Hash to Release fileMichael Vogt2014-05-221-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The by-hash can be configured on a per-hostname basis and a Release file can indicate that it has by-hash support via a new flag. The location of the hash now matches the AptByHash spec
| | * | Implement simple by-hash for apt updateMichael Vogt2014-05-221-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a apt update schema that get the indexfiles by the hash instead of the name. The rational is that updates to the archive servers/mirrors are not atomic so the client may have the previous version of the Release file when the server updates to a new Release file and new Packages/Sources/Translations indexes. By keeping the files around by their hash we can still get the previous indexfile without a hashsum mismatch. Enable with APT::Acquire::By-Hash=1
| * | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-1812-11/+226
|/| | | | | |/ | |/| | | | | | | Conflicts: debian/changelog
| * | Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2014-06-181-1/+1
| |\ \
| | * | test/integration/test-essential-force-loopbreak: fix on non-amd64 systemsMichael Vogt2014-06-121-1/+1
| | | |
| * | | fix test-apt-ftparchive-cachedb-lp1274466 and apt-internal-solver testsMichael Vogt2014-06-112-2/+4
| | | |
| * | | fix autopkgtest testsMichael Vogt2014-06-112-1/+3
| |/ /
| * | fix test/integration/test-apt-ftparchive-cachedb-lp1274466 in travisMichael Vogt2014-06-101-4/+4
| | |
| * | Merge remote-tracking branch 'mvo/feature/apt-update-info' into debian/sidMichael Vogt2014-06-101-0/+17
| |\ \
| | * | show upgradable packages after apt updateMichael Vogt2014-05-221-0/+17
| | | | | | | | | | | | | | | | Closes: 748389
| * | | Merge remote-tracking branch ↵Michael Vogt2014-06-101-0/+31
| |\ \ \ | | | | | | | | | | | | | | | 'mvo/bugfix/apt-get-source-unauthenticated-warning' into debian/sid
| | * | | Show unauthenticated warning for source packages as wellMichael Vogt2014-06-021-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will show the same unauthenticated warning for source packages as for binary packages and will not download a source package if it is unauthenticated. This can be overridden with --allow-unauthenticated Closes: #749795
| * | | | Merge remote-tracking branch 'mvo/bugfix/lp1274466-cache' into debian/sidMichael Vogt2014-06-103-0/+51
| |\ \ \ \
| | * | | | Add compat mode for old (32bit FileSize) CacheDB (LP: #1274466)Michael Vogt2014-06-043-0/+51
| | | | | |
| * | | | | support Acquire::GzipIndexes in dumpavailDavid Kalnischkies2014-06-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Closes: 742835
| * | | | | do not revert candidate for protected packagesDavid Kalnischkies2014-06-071-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 21b3eac8 I promoted the check for installable dependencies to a pre-install check, which also reverts to a known good candidate (the installed version) if it fails. This revert was done even for user requested candidate switches which disabled our Broken detection so that install requests which are impossible to satisfy do not fail anymore, but print an (incomplete) solution proposal and then exit successfully. Closes: 745046
| * | | | | use 'native' instead of 'amd64' as pkg archDavid Kalnischkies2014-05-301-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | | | show current/total testcase statistic also in concise modeDavid Kalnischkies2014-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | | | support parsing EDSP requests Architecture{,s} stanzaDavid Kalnischkies2014-05-302-0/+71
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Adds also a small testcase for EDSP Git-Dch: Ignore
| * | | | Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2014-05-291-1/+1
| |\| | |
| | * | | Fix uninitialized valueMichael Vogt2014-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | Reported-By: scan-build
| * | | | (try to) fix travis-ci build failuresDavid Kalnischkies2014-05-293-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dpkg on Ubuntu 12.04 does not seem to support parsing arch-specific dependencies, so we try to detect if we face such a dpkg in the test. In the other test the order depends on libdb, which changes per arch, so we just run it through our sorting binary and be happy (hopefully). Git-Dch: Ignore
* | | | | Merge remote-tracking branch 'upstream/debian/sid' into debian/experimentalMichael Vogt2014-05-295-18/+127
|\| | | | | |_|_|/ |/| | | | | | | | | | | Conflicts: test/integration/test-bug-747261-arch-specific-conflicts
| * | | fix tight loop detection and temporary removesDavid Kalnischkies2014-05-224-18/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As outlined in #748355 apt segfaulted if it encountered a loop between a package pre-depending on a package conflicting with the previous as it ended up in an endless loop trying to unpack 'the other package'. In this specific case as an essential package is involved a lot of force needs to be applied, but can also be caused by 'normal' tight loops and highlights a problem in how we handle breaks which we want to avoid. The fix comes in multiple entangled changes: 1. All Smart* calls are guarded with loop detection. Some already had it, some had parts of it, some did it incorrect, and some didn't even try. 2. temporary removes to avoid a loop (which is done if a loop is detected) prevent the unpack of this looping package (we tried to unpack it to avoid the conflict/breaks, but due to a loop we couldn't, so we remove/deconfigure it instead which means we can't unpack it now) 3. handle conflicts and breaks very similar instead of duplicating most of the code. The only remaining difference is, as it should: deconfigure is enough for breaks, for conflicts we need the big hammer
| * | | make test independent from the actual Install-SizeDavid Kalnischkies2014-05-221-2/+2
| | | | | | | | | | | | | | | | Git-Dch: Ignore