summaryrefslogtreecommitdiff
path: root/apt-private
Commit message (Collapse)AuthorAgeFilesLines
* adapt to the new CacheSetHelper APIDavid Kalnischkies2014-09-273-20/+17
| | | | Git-Dch: Ignore
* rework cachesets API to allow future extensionDavid Kalnischkies2014-09-271-4/+4
| | | | | | | | | | | | | | | The introduction of Fnmatch showed that each new selector would require multiple new virtual methods in the CacheSetHelper to work correctly, which isn't that great. We now flip to a single virtual method which handles all cases separated by an enum – as new enum values can be added without an ABI break. Great care was taken to make old code work with the new way of organisation, which means in return that you might be bombarded with deprecation warnings now if you don't adapt, but code should still compile and work as before as can be seen in apt itself with this commit. Git-Dch: Ignore
* mark pkg(All|Dist)Upgrade as deprecatedDavid Kalnischkies2014-09-272-9/+5
| | | | | | | | The comment above their definition marks them already as such, so this is only a formalisation of the deprecation and fixes the occurances we have in our own code together with removing a magic number. Git-Dch: Ignore
* fix progress output for (dist-)upgrade calculationDavid Kalnischkies2014-09-272-6/+7
| | | | | | | | | | | | | | | | | Previously, we had a start and a done of the calculation printed by higher-level code, but this got intermixed by progress reporting from an external solver or the output of autoremove code… The higherlevel code is now only responsible for instantiating a progress object of its choosing (if it wants progress after all) and the rest will be handled by the upgrade code. Either it is used to show the progress of the external solver or the internal solver will give some hints about its overall progress. The later isn't really a proper progress as it will jump forward after each substep, but that is at least a bit better than before without any progress indication. Fixes also the 'strange' non-display of this progress line in -q=1, while all others are shown, which is reflected by all testcase changes.
* deprecate Pkg->Name in favor of Grp->NameDavid Kalnischkies2014-09-271-1/+3
| | | | | | | They both store the same information, so this field just takes up space in the Package struct for no good reason. We mark it "just" as deprecated instead of instantly removing it though as it isn't misleading like Section was and is potentially used in the wild more often.
* Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-239-194/+275
|\ | | | | | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h apt-pkg/cachefilter.h configure.ac debian/changelog
| * don't call pager in non-terminals for changelogDavid Kalnischkies2014-09-092-19/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most pagers are nice and default to running non-interactively if they aren't connected to a terminal and we relied on that. On ci.debian.net the configured pager is printing a header out of nowhere though, so if we are printing to a non-terminal we call "cat" instead. In the rework we also "remove" the dependency on sensible-utils in sofar as we call some alternatives if calling the utils fail. This seems to be the last problem preventing a "PASS" status on ci.debian.net, so we close the associated bugreport. Closes: 755040
| * make GetLocalitySortedVersionSet more genericDavid Kalnischkies2014-09-074-57/+63
| | | | | | | | | | | | | | | | | | No reason in and of by itself at the moment, but prepares for the goal of having 'apt search' and 'apt-cache search' using the same code now that they at least support the same stuff. The 'apt' code is just a multitude slower at the moment… Git-Dch: Ignore
| * implement --full in apt searchDavid Kalnischkies2014-09-074-39/+58
| |
| * use a format string in ListSingleVersionDavid Kalnischkies2014-09-071-72/+75
| | | | | | | | | | | | | | | | The method already deals with a format string, but had an else path doing a hardcoded format as well. This is changed now to use the same code for both - the format in the second case is still fixed though. Git-Dch: Ignore
| * skip version if we already have this package as search-resultDavid Kalnischkies2014-09-071-5/+11
| | | | | | | | Git-Dch: Ignore
| * support regular expressions in 'apt search'David Kalnischkies2014-09-072-19/+42
| | | | | | | | | | 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-051-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Ensure we have a Policy in CacheFile.BuildDepCache()Michael Vogt2014-09-052-8/+2
| | | | | | | | | | | | This partly reverts d059cc2 and fixes bug #753297 in a more general way by ensuring that CacheFile.BuildDepCache() builds a pkgPolicy if there isn't one already.
| * Fix incorrect upgradable listing in "apt list" (thanks to Michael Musenbrock)Michael Vogt2014-09-052-2/+8
| | | | | | | | | | | | | | | | | | | | 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
| * Avoid yielding blank lines with APT::Cmd::use-format=trueAndreas Oberritter2014-09-022-2/+3
| |
| * The following command otherwise yields many blank lines:Andreas Oberritter2014-08-281-2/+1
| | | | | | | | | | | | | | | | apt list -o APT::Cmd::use-format=true -o APT::Cmd::format=\${Package} And even worse when adding "-o APT::Cmd::All-Versions=true". Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-07-102-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac debian/changelog doc/apt-verbatim.ent doc/po/apt-doc.pot doc/po/fr.po po/ar.po po/ast.po po/bg.po po/bs.po po/ca.po po/cs.po po/cy.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/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/zh_CN.po po/zh_TW.po
| * Only show packages as upgradable if the have a CandidateVer != 0Michael Vogt2014-07-082-3/+4
| | | | | | | | Closes: #753297
* | Merge remote-tracking branch 'donkult/debian/sid' into debian/experimentalMichael Vogt2014-06-186-118/+135
|\| | | | | | | | | Conflicts: apt-private/private-install.cc
| * do not call resolver twice on (dist-)upgradeDavid Kalnischkies2014-06-183-18/+20
| |
| * show our broken packages message in 'apt' solverDavid Kalnischkies2014-06-182-97/+110
| |
| * use P_ instead of ngettext to compiling with --disable-nlsFredrik Fornwall2014-06-181-1/+1
| | | | | | | | Closes: 751857
| * Tell the user if no updates are available after apt updateMichael Vogt2014-06-181-1/+4
| | | | | | | | | | | | Thanks to Jakub Wilk for the suggestion. Closes: #751388
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-186-151/+180
|\| | | | | | | | | Conflicts: debian/changelog
| * apt-private/private-output.cc: fix cppcheck outputMichael Vogt2014-06-101-1/+1
| |
| * Merge remote-tracking branch 'mvo/feature/apt-update-info' into debian/sidMichael Vogt2014-06-101-0/+18
| |\
| | * show upgradable packages after apt updateMichael Vogt2014-05-221-0/+18
| | | | | | | | | | | | Closes: 748389
| | * apt-private/acqprogress.cc: reset color in apt updateMichael Vogt2014-04-161-1/+1
| | |
| * | Merge remote-tracking branch ↵Michael Vogt2014-06-102-0/+11
| |\ \ | | | | | | | | | | | | 'mvo/bugfix/apt-get-source-unauthenticated-warning' into debian/sid
| | * | Show unauthenticated warning for source packages as wellMichael Vogt2014-06-022-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | separate implementation from declaration of TryTo{Install,Remove}David Kalnischkies2014-06-092-149/+148
| | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | if Resolver fails, do not continue even if not brokenDavid Kalnischkies2014-05-301-1/+2
| |/ / | | | | | | | | | | | | | | | | | | This can happen if the request is already a well-formed request all by itself (e.g. the package has no dependencies), but the resolver found a reason to not accept it as solution. Our edsp 'dump' solver e.g. shouldn't be able to trigger install, which it does otherwise.
* | | Merge remote-tracking branch 'upstream/debian/sid' into debian/experimentalMichael Vogt2014-05-291-0/+1
|\| | | | | | | | | | | | | | Conflicts: test/integration/test-bug-747261-arch-specific-conflicts
| * | fix screen width detection for apt/apt-get listsSebastian Schmidt2014-05-221-0/+1
| | | | | | | | | | | | | | | | | | | | | 3163087b moved SigWinch(int) from apt-get.cc to private-output.cc without moving #include <sys/ioctl.h>, making SigWinch a nop. Closes: 748430, 747942
* | | tests: be able to disable "Fetched …" statistics messageDavid Kalnischkies2014-05-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | The line contains everchanging execution statistics which is harmful for testcases as they need to filter out such lines, but this is hard so we can just add an option to disable them instead and be done. Git-Dch: Ignore
* | | apt-private/acqprogress.cc: do not show file size on IMSHit, it wasn't ↵Michael Vogt2014-05-081-2/+0
| | | | | | | | | | | | fetched, so why bother
* | | fix some compile errors in the now enabled #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2014-05-071-0/+1
| | | | | | | | | | | | APT_PKG_MINOR < 13)
* | | Merge remote-tracking branch 'mvo/bugfix/update-progress-reporting' into ↵Michael Vogt2014-05-071-1/+1
|\ \ \ | | | | | | | | | | | | debian/experimental
| * | | Merge branch 'debian/sid' into bugfix/update-progress-reportingMichael Vogt2014-05-078-15/+61
| |\| |
| * | | calculate Percent as part of pkgAcquireStatus to provide a weighted percent ↵Michael Vogt2014-04-161-1/+1
| | |/ | |/| | | | | | | for both items and bytes
* | | Merge remote-tracking branch 'mvo/feature/apt-install-deb' into ↵Michael Vogt2014-05-072-1/+50
|\ \ \ | | | | | | | | | | | | debian/experimental
| * | | move pkgSourceList::AddMetaIndex() into a private subclass until we decide ↵Michael Vogt2014-05-072-1/+26
| | | | | | | | | | | | | | | | about a good API
| * | | rename pkgSourceList::Add() to pkgSourceList::AddMetaIndex()Michael Vogt2014-05-071-1/+1
| | | |
| * | | avoid deb specific code in private-installMichael Vogt2014-04-281-7/+14
| | | |
| * | | WIP local deb installMichael Vogt2014-04-281-1/+18
| | | |
* | | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-05-0733-333/+442
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Fix missing ScreenWidth check in apt.ccMichael Vogt2014-04-283-0/+31
| |/ /
| * | Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2014-04-221-2/+2
| |\ \
| | * | support dist-upgrade options in full-upgradeDavid Kalnischkies2014-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | dist-upgrade is supposed to be an alias for full-upgrade in apt, but dist-upgrade was the only command recognized of the two in the option and flags recognition code.