summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* refactor the buildsystem to extract library versions from one file,David Kalnischkies2009-10-282-6/+10
| | | | | | so it is not needed to change x-files to just increase a version number (because this is far to easy to forget one of the files, which will not result in failures or is bad in general, but is inconsitent.)
* Bumped libapt version and excluded eglibc from SONAME. (Closes: #448249)David Kalnischkies2009-10-242-5/+4
| | | | | Backported from lp:~mvo/apt/debian-experimental Based on patch by Eugene V. Lyubimkin
* Avoid extra inner copy in APT_MKSTRCMP and APT_MKSTRCMP2David Kalnischkies2009-10-241-6/+6
| | | | | Backported from lp:~mvo/apt/debian-experimental Patch by Eugene V. Lyubimkin
* add more description to the manpage for the Immediate-Configuration andDavid Kalnischkies2009-10-191-5/+6
| | | | change another message to be also translatable.
* improve the documentation and errormessages regarding a failingDavid Kalnischkies2009-10-011-2/+4
| | | | | immediate configuration as the old message was quite a bit scare and uninformative.
* backout revno 1875 - as this aggressive immediate propergation is something ↵David Kalnischkies2009-10-011-4/+0
| | | | we want sometimes
* * apt-pkg/packagemanager.cc:Michael Vogt2009-09-292-4/+8
| | | | - fix overly aggressive immediate config propergation (thanks to David Kalnischkies)
* merged from davidMichael Vogt2009-09-241-2/+17
|\
| * Ignore TriggerPendings between multiple --configure callsDavid Kalnischkies2009-09-241-2/+17
| |
* | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2009-09-241-24/+27
|\ \ | |/ |/| | | | | | | - 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
| * * apt-pkg/deb/dpkgpm.cc:Michael Vogt2009-09-241-24/+27
| | | | | | | | - when tcgetattr() returns non-zero skip all pty magic (thanks to Simon Richter, closes: #509866)
* | cleanup commit for trigger processing:David Kalnischkies2009-09-182-13/+6
| | | | | | | | | | | | | | | | - 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.
* | Add even more config options and try to handle configuration problemsDavid Kalnischkies2009-09-154-44/+97
| | | | | | | | | | arising if we upgrade essential or predependencies which need to be configured before even unpacking packages depending on them.
* | add and document experimental options to make aggressiveDavid Kalnischkies2009-09-132-7/+34
| | | | | | | | | | | | | | | | | | | | | | 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.
* | apt-pkg/deb/dpkgpm.cc: make some variables constant and add foldmarkersDavid Kalnischkies2009-09-111-36/+38
| |
* | 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.
* | replace unknown multibytes with ? in UTF8ToCharset (Closes: #545208)David Kalnischkies2009-09-081-2/+13
| | | | | | | | instead of ignoring the returncode and truncating the string on error
* | reintroduce #clear and #include in the config files,David Kalnischkies2009-09-071-3/+5
| | | | | | | | they there broken since 0.7.21 with the introduction of #-comments
* | add a helper to easily get a vector of strings from the configurationDavid Kalnischkies2009-09-042-0/+22
| |
* | * apt-pkg/acquire-item.cc:Michael Vogt2009-08-281-13/+13
| | | | | | - do not segfault on invalid items (closes: #544080)
* | * apt-pkg/pkgcache.cc:Michael Vogt2009-08-281-6/+6
|\| | | | | | | | | | | - 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)
| * * apt-pkg/pkgcache.cc:Michael Vogt2009-08-241-6/+6
| | | | | | | | | | | | - 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)
* | releasing version 0.7.23Michael Vogt2009-08-272-2/+2
| |
* | "backport" the APT::Configuration class to apt-sidDavid Kalnischkies2009-08-255-62/+151
| | | | | | | | | | | | 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.
* | With the introduction of the Is{Delete,Install}Ok hooks the apt flagDavid Kalnischkies2009-08-121-2/+2
| | | | | | | | | | | | | | | | --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
* | Add a Acquire::CompressionTypes config variable from there theDavid Kalnischkies2009-08-123-38/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* | [apt-pkg/indexcopy.cc] fix a (hypothetical) memory leak then the ReleaseDavid Kalnischkies2009-08-081-0/+3
| | | | | | | | file not exists, patch from George Danchev, thanks! (Closes: #511556)
* | merge with apt-sidDavid Kalnischkies2009-08-082-12/+7
|\| | | | | | | * backout my fix for the sources.list issue, there is already one in
| * * 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/contrib/fileutl.cc] In function ExecWait(): fix compile warning:David Kalnischkies2009-08-031-0/+2
| | | | | | | | warning: suggest explicit braces to avoid ambiguous ‘else’
* | [apt-pkg/contrib/strutl.cc] enable thousand separator according toDavid Kalnischkies2009-07-311-2/+2
| | | | | | | | the current locale. Patch from Luca Bruno (Closes: #223712)
* | [apt-pkg/sourcelist.cc] only display the warning about missing sources.listDavid Kalnischkies2009-07-311-0/+8
|/ | | | | 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)
* 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...