summaryrefslogtreecommitdiff
path: root/apt-pkg
AgeCommit message (Collapse)Author
2009-12-02* apt-pkg/packagemanager.cc:Michael Vogt
- add output about pre-depends configuring when debug::pkgPackageManager is used * methods/https.cc: - fix incorrect use of CURLOPT_TIMEOUT, closes: #497983, LP: #354972 thanks to Brian Thomason for the patch * apt-pkg/depcache.cc, apt-pkg/indexcopy.cc: - typo fix (LP: #462328) * cmdline/apt-key: - Emit a warning if removed keys keyring is missing and skip associated checks (LP: #218971)
2009-10-29* apt-pkg/depcache.cc, apt-pkg/indexcopy.cc:Michael Vogt
- typo fix (LP: #462328)
2009-10-21more debug output in SmartConfigureMichael Vogt
2009-10-21* apt-pkg/packagemanager.cc:Michael Vogt
- add output about pre-depends configuring when debug::pkgPackageManager is used
2009-09-29* apt-pkg/packagemanager.cc:Michael Vogt
- fix overly aggressive immediate config propergation (thanks to David Kalnischkies)
2009-09-24merged from davidMichael Vogt
2009-09-24Ignore TriggerPendings between multiple --configure callsDavid Kalnischkies
2009-09-24* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- when tcgetattr() returns non-zero skip all pty magic (thanks to Simon Richter, closes: #509866) * apt-inst/contrib/arfile.cc: - show propper error message for Invalid archive members
2009-09-24* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- when tcgetattr() returns non-zero skip all pty magic (thanks to Simon Richter, closes: #509866)
2009-09-18cleanup commit for trigger processing:David Kalnischkies
- remove the DPkg::NoConfTriggers - absolutely useless as we need TriggersPending already so we can use --no-triggers. - remove the Immediate-option from the example, it doesn't help much. - UnpackCritical uses DepUnPackPre with a D (on simple letter...) - the "smart" optimisation to skip A was not so smart - revert.
2009-09-15Add even more config options and try to handle configuration problemsDavid Kalnischkies
arising if we upgrade essential or predependencies which need to be configured before even unpacking packages depending on them.
2009-09-13add and document experimental options to make aggressiveDavid Kalnischkies
use of dpkg's trigger and configuration handling (Closes: #473461) Add NoTriggers option to add --no-triggers to all dpkg calls, NoConfiguration to prevent apt from trying to configure packages - dpkg should handle this in the last ConfigurePending call. This options are for now deactivated as they require more testing in real world situations, but the plan is to enable them in the near future if anything works well.
2009-09-11apt-pkg/deb/dpkgpm.cc: make some variables constant and add foldmarkersDavid Kalnischkies
2009-09-08Rework the CompressionTypes system by adding an Order subgroup toDavid Kalnischkies
simplify customisation of the order and improve the documentation about this setting group.
2009-09-08replace unknown multibytes with ? in UTF8ToCharset (Closes: #545208)David Kalnischkies
instead of ignoring the returncode and truncating the string on error
2009-09-07reintroduce #clear and #include in the config files,David Kalnischkies
they there broken since 0.7.21 with the introduction of #-comments
2009-09-04add a helper to easily get a vector of strings from the configurationDavid Kalnischkies
2009-08-28* apt-pkg/acquire-item.cc:Michael Vogt
- do not segfault on invalid items (closes: #544080)
2009-08-28* apt-pkg/pkgcache.cc:Michael Vogt
- do not set internel "needs-configure" state for packages in triggers-pending state. dpkg will deal with the trigger and it if does it before we trigger it, dpkg will error out (LP: #414631)
2009-08-27releasing version 0.7.230.7.23Michael Vogt
2009-08-25"backport" the APT::Configuration class to apt-sidDavid Kalnischkies
We can use it to simplify the internal code to operate with Acquire::CompressionTypes group. This also made it possible to set this setting with the -o flag.
2009-08-24* apt-pkg/pkgcache.cc:Michael Vogt
- do not set internel "needs-configure" state for packages in triggers-pending state. dpkg will deal with the trigger and it if does it before we trigger it, dpkg will error out (LP: #414631)
2009-08-12With the introduction of the Is{Delete,Install}Ok hooks the apt flagDavid Kalnischkies
--ignore-hold only works partly: The holds are to strongly enforced in these hooks - this commit brings the old (and expected) behaviour back. [apt-pkg/depcache.cc] - restore the --ignore-hold effect in the Is{Delete,Install}Ok hooks
2009-08-12Add a Acquire::CompressionTypes config variable from there theDavid Kalnischkies
acquire-items choose which compression file they should (try first to) download to easily add new or change the order of the compression types. And because it is easy now we directly add builtin lzma support. The compression ratio is better than bzip2 but we prefer the later for now as no (official) mirror uses lzma, so this would only generate useless hits on the servers. Maybe sometime in the future lzma will be the default... [apt-pkg/acquire-item.cc] - use configsettings for dynamic compression type use and order. Based on a patch by Jyrki Muukkonen, thanks! (LP: #71746) [apt-pkg/init.cc] - add default configuration for compression types and add lzma support. Order is now bzip2, lzma, gzip, none (Closes: #510526) [ftparchive/writer.cc] - add lzma support also here, patch for this (and inspiration for the one above) by Robert Millan, thanks!
2009-08-08[apt-pkg/indexcopy.cc] fix a (hypothetical) memory leak then the ReleaseDavid Kalnischkies
file not exists, patch from George Danchev, thanks! (Closes: #511556)
2009-08-08merge with apt-sidDavid Kalnischkies
* backout my fix for the sources.list issue, there is already one in
2009-08-03[apt-pkg/contrib/fileutl.cc] In function ExecWait(): fix compile warning:David Kalnischkies
warning: suggest explicit braces to avoid ambiguous ‘else’
2009-08-03* apt-pkg/sourcelist.cc:Julian Andres Klode
- Only warn about missing sources.list if there is no sources.list.d and vice versa as only one of them is needed (Closes: #539731).
2009-08-02* apt-pkg/contrib/mmap.cc:Julian Andres Klode
- Fix FTBFS on GNU/kFreeBSD by disabling DynamicMMap::Grow() on non-Linux architectures (as it uses mremap).
2009-07-31[apt-pkg/contrib/strutl.cc] enable thousand separator according toDavid Kalnischkies
the current locale. Patch from Luca Bruno (Closes: #223712)
2009-07-31[apt-pkg/sourcelist.cc] only display the warning about missing sources.listDavid Kalnischkies
file, if no SourceListEntry exists (e.g. sources.list.d dir does not exists or it exists but does not include a .list-file with valid entries)
2009-07-28apt-pkg/depcache.cc:Michael Vogt
- Call opProgress->Update() less often too avoid spending too much time in it (it shows up relatively high in the callgrind logs). But do call it more often than just for each percent so that the UI frontends can use the OpProgress::Update() calling to do e.g. UI updates
2009-07-27merged from donkultMichael Vogt
2009-07-26merge with lp:apt/debian-sidDavid Kalnischkies
Remove a bug (= an evil amok running if) introduced by the merge in 1817 which cause a segfault in the destructor for the dynamic mmap.
2009-07-25Apply patch from Sami Liedes <sliedes@cc.hut.fi> to avoid unecessaryOtavio Salvador
temporary allocations.
2009-07-25Apply patch from Sami Liedes <sliedes@cc.hut.fi> to reduce theOtavio Salvador
number of times we call progress bar updating and debugging configuration settings.
2009-07-24merge from the donkult branchMichael Vogt
2009-07-23[apt-pkg] yet another bit of mmap and pkgcachegen housekeepingDavid Kalnischkies
* add mmap error message also to the dynamic mmap * remove some more {Ver,Desc} == 0 checks in for loops * try to respect the given flags to the dynamic mmap * open cached caches not as ReadOnly and not as Shared, so we always have a copy of the cache in the memory we can modify (e.g. set the hold state on-the-fly)
2009-07-23[ABI] merged the libudev-dlopen branch, this allows to passMichael Vogt
"apt-udev-auto" to Acquire::Cdrom::mount and the cdrom method will dynamically find/mount the cdrom device (if libhal is available)
2009-07-23methods/cdrom.cc: add AutoDetectAndMount methodMichael Vogt
2009-07-22methods/cdrom.cc: move the scan into the loop that waits for a CDMichael Vogt
2009-07-22* methods/cdrom.cc:Michael Vogt
- add Acquire::Cdrom::mount "apt-udev-auto" magic to allow dynamically finding the cdrom device * apt-pkg/contrib/cdromutl.{h,cc}: - support additional (optional) DeviceName parameter for MountCdrom()
2009-07-22apt-pkg/cdrom.cc: make cdrom.Mounted property reliableMichael Vogt
2009-07-21merged from donkultMichael Vogt
2009-07-21[apt-pkg/pkgcachegen.cc] remove the Ver == 0 and Desc == 0 from the lastDavid Kalnischkies
changeset as they are useless after the checks for LastVer & co work correctly.
2009-07-21The 'not dead yet' releaseMichael Vogt
* add hook for MarkInstall and MarkDelete (closes: #470035) * add the various foldmarkers in apt-pkg & cmdline (no code change) * versions with a pin of -1 shouldn't be a candidate (Closes: #355237) * prefer mmap as memory allocator in MMap instead of a static char array which can (at least in theory) grow dynamic * eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.cc which can arise if cache doesn't fit into the mmap (Closes: #535218) * display warnings instead of errors if the parts dirs doesn't exist * honor the dpkg hold state in new Marker hooks (closes: #64141)
2009-07-21eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.ccDavid Kalnischkies
which can arise if cache doesn't fit into the mmap (Closes: #535218) This removes also the previously introduced SegfaultSignalHandler: The handler works, but is ugly by design...
2009-07-21* apt-pkg/acquire.cc:Michael Vogt
- make the max pipeline depth of the acquire queue configurable via Acquire::Max-Pipeline-Depth * apt-pkg/deb/dpkgpm.cc: - add Dpkg::UseIoNice boolean option to run dpkg with ionice -c3 (off by default) - send "dpkg-exec" message on the status fd when dpkg is run - provide DPkg::Chroot-Directory config option (useful for testing) - fix potential hang when in a backgroud process group * apt-pkg/algorithms.cc: - consider recommends when making the scores for the problem resolver * apt-pkg/acquire-worker.cc: - show error details of failed methods * apt-pkg/contrib/fileutl.cc: - if a process aborts with signal, show signal number * methods/http.cc: - ignore SIGPIPE, we deal with EPIPE from write in HttpMethod::ServerDie() (LP: #385144) * apt-pkg/indexcopy.cc: - support having CDs with no Packages file (just a Packages.gz) by not forcing a verification on non-existing files (LP: #255545) - remove the gettext from a string that consists entirely of variables (LP: #56792) * apt-pkg/cacheiterators.h: - add missing checks for Owner == 0 in end() * apt-pkg/indexrecords.cc: - fix some i18n issues * apt-pkg/contrib/strutl.h: - add new strprintf() function to make i18n strings easier - fix compiler warning * apt-pkg/deb/debsystem.cc: - make strings i18n able * fix problematic use of tolower() when calculating the version hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248) * build fixes for g++-4.4 * cmdline/apt-mark: - add "showauto" option to show automatically installed packages * document --install-recommends and --no-install-recommends (thanks to Dereck Wonnacott, LP: #126180) * Updated cron script to support backups by hardlinks and verbose levels. All features turned off by default. * Added more error handlings. Closes: #438803, #462734, #454989, * Refactored condition structure to make download and upgrade performed if only previous steps succeeded. Closes: #341970 * Documented all cron script related configuration items in configure-index. * apt-ftparchive might write corrupt Release files (LP: #46439) * Apply --important option to apt-cache depends (LP: #16947)
2009-07-21* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- provide DPkg::Chroot-Directory config option (useful for testing)
2009-07-16* apt-pkg/contrib/hashes.cc, apt-pkg/contrib/md5.cc:Julian Andres Klode
- Support reading until EOF if Size=0 to match behaviour of SHA1Summation and SHA256Summation