summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * apt-pkg/sourcelist.cc:Julian Andres Klode2009-08-031-3/+6
| | | | - 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).
* * apt-pkg/contrib/mmap.cc:Julian Andres Klode2009-08-021-1/+1
| | | | - Fix FTBFS on GNU/kFreeBSD by disabling DynamicMMap::Grow() on non-Linux architectures (as it uses mremap).
* apt-pkg/depcache.cc:Michael Vogt2009-07-281-8/+2
| | | | | | | | - 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
* merged from donkultMichael Vogt2009-07-271-1/+1
|\
| * merge with lp:apt/debian-sidDavid Kalnischkies2009-07-261-1/+1
| | | | | | | | | | 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.
* | Apply patch from Sami Liedes <sliedes@cc.hut.fi> to avoid unecessaryOtavio Salvador2009-07-251-0/+1
| | | | | | temporary allocations.
* | Apply patch from Sami Liedes <sliedes@cc.hut.fi> to reduce theOtavio Salvador2009-07-251-13/+26
|/ | | | number of times we call progress bar updating and debugging configuration settings.
* merge from the donkult branchMichael Vogt2009-07-242-14/+21
|\
| * [apt-pkg] yet another bit of mmap and pkgcachegen housekeepingDavid Kalnischkies2009-07-232-16/+24
| | | | | | | | | | | | | | | | | | * 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)
* | [ABI] merged the libudev-dlopen branch, this allows to passMichael Vogt2009-07-235-6/+135
|\ \ | | | | | | | | | "apt-udev-auto" to Acquire::Cdrom::mount and the cdrom method will dynamically find/mount the cdrom device (if libhal is available)
| * | methods/cdrom.cc: add AutoDetectAndMount methodMichael Vogt2009-07-232-5/+2
| | |
| * | methods/cdrom.cc: move the scan into the loop that waits for a CDMichael Vogt2009-07-222-1/+8
| | |
| * | * methods/cdrom.cc:Michael Vogt2009-07-222-4/+12
| | | | | | | | | | | | | | | | | | | | | - 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()
| * | apt-pkg/cdrom.cc: make cdrom.Mounted property reliableMichael Vogt2009-07-221-1/+2
| | |
| * | move libudev based code into libapt cdrom.cc classMichael Vogt2009-07-093-2/+117
| | |
* | | merged from donkultMichael Vogt2009-07-211-7/+7
|\ \ \ | | |/ | |/|
| * | [apt-pkg/pkgcachegen.cc] remove the Ver == 0 and Desc == 0 from the lastDavid Kalnischkies2009-07-211-7/+7
| | | | | | | | | | | | | | | changeset as they are useless after the checks for LastVer & co work correctly.
* | | The 'not dead yet' releaseMichael Vogt2009-07-2133-419/+472
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
| * | eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.ccDavid Kalnischkies2009-07-212-65/+48
| | | | | | | | | | | | | | | | | | | | | 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...
| * | display warnings instead of errors if the parts dirs doesn't existDavid Kalnischkies2009-07-154-9/+31
| | | | | | | | | | | | | | | Parts dirs are /etc/apt/{sources.list,apt.conf,preferences}.d (in the default setup)
| * | [contrib/error.cc] place a colon between errno and error text in outputDavid Kalnischkies2009-07-151-6/+7
| | | | | | | | | | | | | | | of GlobalError::Errno and WarningE (as it described in the comments of these methods)
| * | merge with lp:~mvo/apt/debian-sidDavid Kalnischkies2009-07-154-2/+53
| |\ \
| * | | add a segfault handler to MMap to show the Cache-Limit message, whichDavid Kalnischkies2009-07-081-0/+24
| | | | | | | | | | | | | | | | can be deactivated with MMap::SegfaultHandler=false (Closes: 535218)
| * | | [contrib/mmap] implements a theoretical dynamic growing mmapDavid Kalnischkies2009-07-082-21/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | based on Michael Vogts patch in #195018 this commit implements the use of mmap (as preferred) instead of a static char array. In theory this made it possible to grow the mmap as needed, but as it is currently impossible to move the mmap around in the memory the grow is likely to fail but it improve the memory usage a bit, so it is not totally useless for now - and maybe we can adjust the pointers in the future...
| * | | * remove the MarkKeep calls if Is{Delete,Install}Ok false, becauseDavid Kalnischkies2009-07-072-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | they have no effect anyway (thanks Daniel Burrows for noticing) * improve documentation of the Is{Delete,Install}Ok methods a bit * add the FromUser boolean to the debug output of the markers
| * | | versions with a pin of -1 shouldn't be a candidate (Closes: #355237)David Kalnischkies2009-07-011-0/+8
| | | |
| * | | * add hook for MarkInstall and MarkDelete (closes: #470035)David Kalnischkies2009-06-303-54/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * honor the dpkg hold state in new Marker hooks (closes: #64141) Combine the proposed AutoInstOk and IsAutoInstallOk to more general hooks for MarkInstall (and another one for MarkDelete) with the same parameters as the call these hooks should check.
| * | | add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-3026-284/+219
| | | |
* | | | * apt-pkg/acquire.cc:Michael Vogt2009-07-2115-45/+147
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * | | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2009-07-211-0/+9
| | | | | | | | | | | | | | | - provide DPkg::Chroot-Directory config option (useful for testing)
| * | | | apt-pkg/deb/dpkgpm.cc: remove dead code, add comment on problematic argument ↵Michael Vogt2009-07-101-9/+10
| | |_|/ | |/| | | | | | | | | | list split
| * | | * apt-pkg/acquire-worker.cc:Michael Vogt2009-07-022-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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/algorithms.cc:Michael Vogt2009-06-231-2/+6
| | | | | | | | | | | | | | | | - consider recommends when making the scores for the problem resolver
| * | | send "dpkg-exec" message on the status fd when dpkg is runMichael Vogt2009-06-171-0/+9
| | | |
| * | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2009-06-171-1/+29
| | | | | | | | | | | | | | | | - add Dpkg::UseIoNice boolean option to run dpkg with ionice -c3 (off by default)
| * | | * apt-pkg/acquire.cc:Michael Vogt2009-06-091-1/+1
| | | | | | | | | | | | | | | | - make the max pipeline depth of the acquire queue configurable via Acquire::Max-Pipeline-Depth
| * | | build fixes for g++-4.4Michael Vogt2009-04-242-1/+3
| | | |
| * | | fix problematic use of tolower() when calculating the version Michael Vogt2009-04-234-3/+15
| | | | | | | | | | | | | | | | | | | | hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248)
| * | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2009-03-061-3/+1
| | | | | | | | | | | | | | | | - revert the change by Kees again for the amd64 ALL-CAPS problem
| * | | apt-pkg/pkgcache.cc: fix typoMichael Vogt2009-02-031-1/+1
| | | |
| * | | * apt-pkg/pkgcache.cc:Michael Vogt2009-02-031-3/+7
| | | | | | | | | | | | | | | | - do not run "dpkg --configure pkg" if pkg is in trigger-awaited state (LP: #322955)
| * | | [ABI break] use int for the package IDs (thanks to Steve Cotton)Michael Vogt2009-01-301-4/+4
| | | |
| * | | [ABI break] merge support for http redirects, thanks toMichael Vogt2009-01-304-1/+49
| | | | | | | | | | | | Jeff Licquia and Anthony Towns
| * | | apt-pkg/deb/debsystem.cc: add missing i18n stringMichael Vogt2009-01-281-1/+1
| | | |
| * | | apt-pkg/pkgcachegen.cc: when searching for duplicates in the description, ↵Michael Vogt2009-01-191-1/+1
| | | | | | | | | | | | | | | | avoid side effect
| * | | * apt-pkg/contrib/strutl.cc:Michael Vogt2009-01-081-5/+9
| | | | | | | | | | | | - fix TimeToStr i18n (LP: #289807)
| * | | merged from the debian-sid branchMichael Vogt2008-12-092-5/+12
| |\ \ \
| * | | | * methods/gpgv.cc:Michael Vogt2008-12-091-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix compiler warning * cmdline/apt-get.cc: - fix "apt-get source pkg=ver" if binary name != source name and show a message (LP: #202219) * apt-pkg/deb/debsystem.cc: - make strings i18n able
| * | | | apt-pkg/contrib/strutl.cc: increase the size limitMichael Vogt2008-12-091-2/+2
| | | | |
| * | | | * apt-pkg/indexrecords.cc:Michael Vogt2008-12-083-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | - fix some i18n issues * apt-pkg/contrib/strutl.h: - add new strprintf() function to make i18n strings easier