summaryrefslogtreecommitdiff
path: root/apt-pkg/aptconfiguration.cc
Commit message (Collapse)AuthorAgeFilesLines
* fix lzma-support detection via xz binaryDavid Kalnischkies2013-10-031-1/+1
| | | | | | Clear() only clears a config option, not removing it and an empty setting still exists. Hence we set the option instead to the xz path so that the later existance check can find a binary for the test
* do chdir("/") after chroot()Michael Vogt2013-08-221-1/+1
|
* fix some coverity chroot() releated warningsMichael Vogt2013-07-261-2/+2
|
* various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-1/+1
|
* * apt-pkg/cdrom.cc:David Kalnischkies2012-09-031-0/+11
| | | | | | | - copy only configured translation files from a CD-ROM and not all available translation files preventing new installs with d-i from being initialized with all translations (Closes: #678227) - handle Components in the reduction for the source.list as multi-arch CDs otherwise create duplicated source entries (e.g. "wheezy main main")
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-06-101-11/+15
| | | | - if APT::Languages=none save "none" in allCodes so that the detected configuration is cached as intended (Closes: #674690, LP: #1004947)
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-05-201-1/+1
| | | | - longcode Translation files are saved with encoded underscore, so make sure to pick these files up as well for Acquire::Languages
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-05-091-3/+3
| | | - use NULL instead of "" for no (un)compress parameters
* fix a bug uncovered by the previous commit which checks if a CompressorDavid Kalnischkies2012-04-201-2/+4
| | | | | preference given by the Order setting is really available before adding it as possible CompressionType.
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-04-201-12/+13
| | | | - if the compressor is not installed, but we link against it's library accept it as a CompressionType (Closes: #669328)
* use xz-utils in the testcases instead of lzma and ensure that we reallyDavid Kalnischkies2012-04-111-1/+1
| | | | ignore the presents (or absence) of lzma if we decided to use xz
* - add libbz2-dev as new build-dependencyDavid Kalnischkies2012-04-051-1/+5
| | | | | | | | - remove the libz-dev alternative from zlib1g-dev build-dependency - do the same for bz2 builtin if available * apt-pkg/contrib/fileutl.cc: - use libz2 library for (de)compression instead of the bzip2 binary as the first is a dependency of dpkg and the later just priority:optional so we gain 'easier' access to bz2-compressed Translation files this way
* if we have zlib builtin insert add a dummy gzip compressor for FileFDDavid Kalnischkies2012-04-051-0/+4
|
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-04-051-6/+27
| | | - if present, prefer xz binary over lzma
* ensure that architectures are not added multiple timesDavid Kalnischkies2012-02-101-1/+3
|
* call dpkg --assert-multi-arch with execvp instead of execvDavid Kalnischkies2012-02-091-1/+1
|
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-01-301-8/+57
| | | - chroot if needed before calling dpkg --print-foreign-architectures
* * apt-pkg/aptconfiguration.cc:Michael Vogt2012-01-181-1/+1
|\ | | | | | | | | | | | | | | - 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-1/+1
| | | | | | | | - parse dpkg --print-foreign-architectures correctly in case archs are separated by newline instead of space, too.
| * cherrypick from my apt/experimental branchDavid Kalnischkies2011-10-051-2/+4
| | | | | | | | | | | | * 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/deb/debmetaindex.cc:David Kalnischkies2011-10-051-2/+4
| | | | | | | | | | - 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)
* | do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-5/+5
| |
* | merge with debian/experimentalDavid Kalnischkies2011-09-131-3/+3
|\|
| * cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-2/+2
| | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| * * 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
* | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-0/+2
|/
* use the correct option name in comment for Acquire::LanguagesJörg Sommer2011-05-281-1/+1
|
* * apt-pkg/aptconfiguration.cc:Michael Vogt2011-04-051-1/+1
| | | - fix comparing for a empty string
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2011-03-261-1/+32
| | | | - use dpkg --print-foreign-architectures to get multiarch configuration if non is specified with APT::Architectures (Closes: #612958)
* support every compression we have a compressor configuredDavid Kalnischkies2011-02-271-0/+13
|
* - load the supported compressors from configurationDavid Kalnischkies2011-02-271-4/+70
| | | - support adding new compressors by configuration
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2011-02-221-0/+2
| | | - support download of xz-compressed indexes files
* - download and use i18n/Index to choose which Translations to downloadDavid Kalnischkies2011-01-281-39/+12
| | | | * apt-pkg/aptconfiguration.cc: - remove the inbuilt Translation files whitelist
* - change the internal handling of Extensions in pkgAcqIndexDavid Kalnischkies2011-01-261-0/+8
| | | | | - add a special uncompressed compression type to prefer those files * methods/{gzip,bzip}.cc: - print a good error message if FileSize() is zero
* evaluate Acquire::Languages= before LANG= (Closes: #602573)David Kalnischkies2010-11-091-40/+42
|
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2010-11-061-1/+2
| | | - respect the none-force even in LANG=C (Closes: #602573)
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2010-06-261-0/+4
| | | - show a deprecation notice for APT::Acquire::Translation
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2010-05-281-1/+14
| | | - remove duplicate architectures in getArchitectures()
* rename ExplodeString to VectorizeStringDavid Kalnischkies2010-03-301-1/+1
|
* merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),David Kalnischkies2010-03-181-0/+24
|\ | | | | | | | | but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029)
| * * aptconfiguration.cc:David Kalnischkies2010-02-151-6/+72
| | | | | | | | | | | | | | | | | | | | - include all existing Translation files in the Cache (Closes: 564137) Previously if APT was executed with a different LC_* all these invocations needed to rebuild the Cache as too many files were included or missing: Now the lists-directory is checked for Translation-files and all these included in getLanguages() regardless of the environment setting (after a "none" so APT will not use them for displaying information).
| * Add support for the LANGUAGE environment variableDavid Kalnischkies2010-02-141-32/+59
| |
| * [BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies2010-02-131-0/+25
| |\ | | | | | | | | | | | | | | | | | | | | | | | | but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029) MultiArch isn't ready for Primetime usage for now, but the branch has managed to be a NOP if used in SingleArch-mode so we can start to promote the use of the new MultiArchable API-extensions.
| | * merge Goswin Brederlow "support download of index files for different archs"David Kalnischkies2009-12-231-0/+25
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | patch which includes the following big changes: - Declare the unused [vendor] field in sources.list as option field, e.g. deb [arch=amd64,i386 lang=en_GB have=fun] http://example.org - When fetching index files download them for all APT::Architectures (overrideable with the options field above) - Allow all architectures of APT::Architectures to be in the Cache - Add the architecture to status and progress informations - Add b= (Binary architecture) to policy This commit doesn't incude the "pin-hack" as the Group structure will take care of this (and does it already to some extend).
* | fix memory leak in getLanguages() by closing the directory after checkingDavid Kalnischkies2010-03-031-0/+1
| |
* | fix crash when LANGUAGE is not setMichael Vogt2010-02-181-1/+2
| |
* | * aptconfiguration.cc:David Kalnischkies2010-02-181-6/+72
| | | | | | | | | | | | | | | | | | | | - include all existing Translation files in the Cache (Closes: 564137) Previously if APT was executed with a different LC_* all these invocations needed to rebuild the Cache as too many files were included or missing: Now the lists-directory is checked for Translation-files and all these will be included in getLanguages() regardless of the environment setting (after a "none" so APT will not use them for displaying information).
* | dd support for the LANGUAGE environment variableDavid Kalnischkies2010-02-181-32/+60
|/
* [BREAK] add possibility to download and use multiplyDavid Kalnischkies2009-11-261-0/+136
| | | | | | | Translation files, configurable with Acquire::Languages accessable with APT::Configuration::getLanguages() and as always with documentation in apt.conf. The commit also includes a very very simple testapp.
* Rework the CompressionTypes system by adding an Order subgroup toDavid Kalnischkies2009-09-081-22/+34
| | | | | simplify customisation of the order and improve the documentation about this setting group.