summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
AgeCommit message (Collapse)Author
2013-08-15merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade ↵Michael Vogt
is used with additional arguments (closes: #705510)
2013-08-01unset LANGUAGE for showing [Y/n] answer hintsDavid Kalnischkies
nl_langinfo is used to acquire the YESEXPR of the language used, but it will return the one from LC_MESSAGES, which might be different from the language chosen for display of the question (based on LANGUAGE) so this commit removes the [Y/n] help text from the questions itself and moves it to the prompt creation in which the usage of LC_MESSAGES is forced for it, so that the helptext shown actually represents the characters accepted as input for the question. There is still room for problems of course starting with an untranslated "[Y/n]" but a translated YESEXPR or the problem that the question is asked in a completely different language which might have a conflicting definition of [Y/n] input or the user simple ignores the helptext and assumes that an answer matching the question language is accepted, but the mayority of users will never have this problem to begin with, so we should be fine (or at least a bit finer than before). Closes nothing really, but should at least help a bit with bugs like deb:194614, deb:471102, lp:1205578, and countless others.
2013-07-25fix potential GetLock() fd leakMichael Vogt
2013-06-09deprecate InstallProtect as a cpu-eating no-opDavid Kalnischkies
In the past packages were flagged "Protected" so that install/ remove markings where issued before the ProblemResolver. Nowadays, the marking methods check if they are allowed to modify the marking of a package instead, so that markings set by FromUser calls are not overwritten anymore by automatic calls which elimates the need for InstallProtect which just eats CPU now. The method itself is left untouched for now in case frontend needs it still for some wierd usecase, but they should be eliminated.
2013-04-08merged bundle from davidMichael Vogt
2013-03-25merge patch from Daniel HartwigMichael Vogt
2013-03-10various simple changes to fix cppcheck warningsDavid Kalnischkies
2013-01-14ensure sha512 is really used when available (thanks to Tyler Hicks )Michael Vogt
2012-11-09* cmdline/apt-get.cc:David Kalnischkies
- do not call Mark{Install,Delete} from the autoremove code with the FromUser bit set to avoid modifying the auto-installed bit
2012-10-20adds a comment for Translators to the 'do as I say' prompt toDavid Kalnischkies
prevent problems like #691024 in new translations
2012-08-06disable the display of the error messages for DoInstall if DoBuildDepDavid Kalnischkies
is calling the helper (enabled by enforcing failure reporting)
2012-08-05ensure that the right architecture is used for cross-dependencies inDavid Kalnischkies
cases we have to choose a provider by defaulting on host-arch instead of build-arch
2012-08-04improve the check for purely virtuals as provided packages aren'tDavid Kalnischkies
purely virtual and shouldn't error out cause of that
2012-08-04* cmdline/apt-get.cc:David Kalnischkies
- error out on (unsatisfiable) build-deps on purly virtual packages instead of ignoring these dependencies; thanks to Johannes Schauer for the detailed report! (Closes: #683786)
2012-06-18* cmdline/apt-get.cc:David Kalnischkies
- print a friendly message in 'download' if a package can't be downloaded (Closes: #677887)
2012-06-11check build-dep candidate if install is forbiddenDavid Kalnischkies
2012-06-10* cmdline/apt-get.cc:Thibaut Girka
- complain correctly about :any build-dep on M-A:none packages
2012-06-10show 'bzr branch' as 'bzr get' is deprecated (LP: #1011032)David Kalnischkies
2012-06-10* cmdline/apt-get.cc:Daniel Hartwig
- print URIs for all changelogs in case of --print-uris, thanks to Daniel Hartwig for the patch! (Closes: #674897)
2012-05-24* cmdline/apt-get.cc:David Kalnischkies
- do not show 'list of broken packages' header if no package is broken as it happens e.g. for external resolver errors
2012-05-16* cmdline/apt-get.cc:David Kalnischkies
- use the host architecture, not the build architecture for matching of [architecture restrictions] in Build-Depends (Closes: #672927) *
2012-04-16* cmdline/apt-get.cc:David Kalnischkies
- if pkgCacheFile::Generate is disabled in 'update' don't remove the caches (and don't try to open them)
2012-04-12merged r1972 from lp:~paolorotolo/apt/fix-for-967393Michael Vogt
2012-04-12merged r1970 lp:~vorlon/apt/lp.968828Michael Vogt
2012-04-11* cmdline/apt-get.cc:David Kalnischkies
- print list of autoremoves in alphabetical order (Closes: #639008)
2012-04-05* cmdline/apt-get.cc:Bogdan Purcareata
- distinguish information about 'apt-get autoremove' based on the number of auto-removed packages both before and after the list of packages (Closes: #665833)
2012-03-22the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies
to the more standard PACKAGE_VERSION and make it work in every file
2012-02-18improve 'error' message for packages which are only referencedDavid Kalnischkies
e.g. in a Depends line and are now requested for removal
2012-02-18* cmdline/apt-get.cc:David Kalnischkies
- if a package can't be removed as it is not installed, suggest to the user an (installed) multiarch silbing with 'Did you mean?'
2012-01-29* cmdline/apt-get.cc:Steve Langasek
- for cross-build-dependencies M-A: none should be DEB_HOST_ARCH, not DEB_BUILD_ARCH (Closes: #646288)
2012-01-20fix a few esoteric cppcheck errors/warnings/infosDavid Kalnischkies
2012-01-19* apt-pkg/cacheiterators.h:David Kalnischkies
- 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)
2011-11-23* cmdline/apt-get.cc:David Kalnischkies
- 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
2011-11-11 - provide a {Package,Version}List similar to {Package,Version}SetDavid Kalnischkies
* 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)
2011-11-09* apt-pkg/cacheset.cc:David Kalnischkies
- make the cachesets real containers which can embedding any container to be able to use the same interface regardless of set or list usage
2011-10-30merge with my debian-sid branchDavid Kalnischkies
2011-09-20* apt-pkg/deb/dpkgpm.cc:David Kalnischkies
- 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
2011-09-20* cmdline/apt-get.cc:David Kalnischkies
- follow Provides in the evaluation of saving candidates, too, for statisfying garbage package dependencies (Closes: #640590)
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies
2011-09-13merge with debian/sidDavid Kalnischkies
2011-09-13merge with debian/experimentalDavid Kalnischkies
2011-09-13Support large files in the complete toolset. Indexes of thisDavid Kalnischkies
size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
2011-09-13* cmdline/apt-get.cc:David Kalnischkies
- output list of virtual package providers to c1out in -q=1 instead of /dev/null to unbreak sbuild (LP: #816155)
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2011-08-22remove the caches in 'apt-get update', too, as they will beDavid Kalnischkies
invalid in most cases anyway
2011-08-18* cmdline/apt-get.cc:David Kalnischkies
- remove the binary caches in 'apt-get clean' as it is the first thing recommend by many supporters in case of APT segfaults
2011-08-15merged from the debian-sid branchMichael Vogt
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies
done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
2011-08-11fix some cppcheck: (warning) Member variable is not initialized in the ↵David Kalnischkies
constructor.
2011-07-28* merged latest fixes from debian-sidMichael Vogt
* apt-pkg/contrib/sha1.cc: - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) * apt-pkg/contrib/cdromutl.cc: - fix escape problem when looking for the mounted devices * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc: - add new DeEscapeString() similar to DeQuoteString but unescape character escapes like \0XX and \xXX (plus added test) * refresh po/* * cmdline/apt-get.cc: - fix missing download progress in apt-get download - do not require unused partial dirs in 'source' (Closes: #633510) - buildconflicts effect all architectures - implement MultiarchCross for build-dep and source (Closes: #632221) * cmdline/apt-key: - use a tmpfile instead of /etc/apt/secring.gpg (Closes: #632596) * debian/apt.postinst: - remove /etc/apt/secring.gpg if it is an empty file * doc/apt-cache.8.xml: - apply madison typofix from John Feuerstein, thanks! (Closes: #633455) * apt-pkg/policy.cc: - emit an error on unknown APT::Default-Release value (Closes: #407511) * apt-pkg/aptconfiguration.cc: - ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector * apt-pkg/deb/deblistparser.cc: - 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