summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
AgeCommit message (Collapse)Author
2008-11-12merge from the mvo branchMichael Vogt
2008-11-12apt-pkg/deb/dpkgpm.cc: fix typo (thanks to jackyf)Michael Vogt
2008-11-12fix SIGHUP handling (closes: #463030)Michael Vogt
2008-10-28fix various -Wall warningsMichael Vogt
2008-10-01* apt-pkg/packagemanager.cc, apt-pkg/deb/dpkgpm.cc:Michael Vogt
- move the state file writting into the Go() implementation of dpkgpm (closes: #498799) * apt-pkg/algorithms.cc: - fix simulation performance drop (thanks to Ferenc Wagner for reporting the issue)
2008-09-25Restore the apt ABI.Daniel Burrows
The problem was that the size of pkgDpkgPM and its member offsets changed because a map giving the names of the trigger states was inserted into the middle of the structure. I fixed it by using a statically allocated array instead. This changes the procedure for looking up a string to a linear search, which should be fine (or even faster than before) since there are only 4 state strings. If it becomes a problem, sorting the array by key will allow us to use std::equal_range(), but I would advise against this unless it's really necessary, since sooner or later someone will forget to maintain the sort order.
2008-07-25* add DPkg::NoTriggers option so that applications that callMichael Vogt
apt/aptitude (like the installer) defer trigger processing (thanks to Joey Hess)
2008-07-25* improve apt progress reporting, display trigger actionsMichael Vogt
2008-01-31* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- merged patch from Kees Cook to fix anoying upper-case display on amd64 in sbuild
2008-01-04* merged the apt--DoListUpdate branch, this provides a common interfaceMichael Vogt
for apt-get update like operations for the frontends and also provides hooks to run stuff in APT::Update::{Pre,Post}-Invoke
2007-12-17apt-pkg/deb/dpkgpm.cc: fix typesMichael Vogt
2007-11-26* Applied patch from Aurelien Jarno <aurel32@debian.org> to avoid CPUOtavio Salvador
getting crazy when /dev/null is redirected to stdin (which breaks buildds), closes: #452858.
2007-10-31Minor fixes on racy_pselectOtavio Salvador
2007-10-29* Applied patch from Brian M. Carlson <sandals@crustytoothpaste.ath.cx>Otavio Salvador
to add backward support for arches that lacks pselect support, closes: #448406.
2007-10-20merged with apt--mvoMichael Vogt
2007-10-20apt-pkg/deb/dpkgpm.cc:Michael Vogt
- use pselect() instead of select() - on EIO error on pty master read, usleep(0.5s) to give up timeslice so that the child can properly exit
2007-10-15* merge from apt--mvo (fix resource leak, run apt.cron.daily only ifMichael Vogt
apt-get check is successfull)
2007-10-15apt-pkg/deb/dpkgpm.cc:Michael Vogt
- fix resource leak
2007-10-03merged from the dpkg-log branchMichael Vogt
2007-10-02 - apt-pkg/deb/dpkgpm.cc: initialization order and conversion fromOtavio Salvador
string constant to 'char*';
2007-09-18apt-pkg/deb/dpkgpm.cc:Michael Vogt
- make it compileable
2007-09-18 - fix parse error when dpkg sends unexpected dataMichael Vogt
2007-09-10apt-pkg/deb/dpkgpm.cc:Michael Vogt
- ignore EINTR on select()
2007-09-10apt-pkg/deb/dpkgpm.cc:Michael Vogt
- comment out dpkg trigger messages, those seem to be not generated by dpkg over the status fd
2007-09-06* dpkg-triggers: Deal properly with new package states.Michael Vogt
2007-09-05apt-pkg/deb/dpkgpm.cc:Michael Vogt
- remove leading "\n"
2007-09-05* write start/end log tagsMichael Vogt
2007-08-28* merged from dpkg-log branchMichael Vogt
2007-08-27* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- on error in select() continue
2007-08-06* apt-pkg/deb/dpkgpm.{cc,h}:Michael Vogt
move term_out into DPkgPM class
2007-08-06* merged with dpkg-log branchMichael Vogt
2007-08-06* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- do not fail if openpty() fails
2007-08-03* make apt -Wall cleanMichael Vogt
2007-08-03* apt-pkg/init.cc: Michael Vogt
- init Dir::Log::Terminal * apt-pkg/deb/dpkgpm.cc: - only work with term_out if it is not NULL
2007-08-03* doc/examples/configure-index:Michael Vogt
- updated Dir::Log::Terminal * apt-pkg/deb/dpkgpm.cc: - make the terminal log optional - rename Dir::Log::Name to Dir::Log::Terminal
2007-07-19apt-pkg/deb/dpkgpm.{cc,h}Michael Vogt
- a bit cleanup - move the log date to the right place - write log to dir::log::name apt-pkg/init.cc: - init dir::log::name "/var/log/apt/term.log" debian/apt.dirs: - create /var/log/apt/ doc/examples/configure-index: - add new dir::log::name to the index
2007-07-19apt-pkg/deb/dpkgpm.{cc,h}:Michael Vogt
- move output processing ProcessDpkgStatusLine() and out of the Go() method (yeah!) - things start to look more tidy now
2007-07-19apt-pkg/deb/dpkgpm.{cc,h}:Michael Vogt
- move make dpkgstatus processing into DoDpkgStatusFd() and ProcessDpkgStatusLine() [the later is a stub for now]
2007-07-16apt-pkg/deb/dpkgpm.{cc,h}:Michael Vogt
- merge select() based terminal log
2007-07-16apt-pkg/deb/dpkgpm.cc:Michael Vogt
- run DoStdin(), DoTerminalPty() calls only if their FD is in the returned set after select()
2007-07-15apt-pkg/deb/dpkgpm.cc:Michael Vogt
- write current time to log
2007-07-15apt-pkg/deb/dpkgpm.cc:Michael Vogt
- unbreak progress reporting, make code nicer
2007-07-15apt-pkg/deb/dpkgpm.{cc,h}:Michael Vogt
- move the terminal and stdin reading into its own functions
2007-07-15apt-pkg/deb/dpkgpm.cc:Michael Vogt
- use select() to check for new data
2007-07-03* first (raw and ineffient) implementationMichael Vogt
2007-06-09* merged the remaining bits from the apt--no-pragma branchMichael Vogt
2007-06-08* remove all the remaining #pragma implementationMichael Vogt
2006-12-14* merged with apt--mvoMichael Vogt
2006-11-27* apt-pkg/deb/dpkgpm.cc: Michael Vogt
- added "Dpkg::StopOnError" variable that controls if apt will abort on errors from dpkg
2006-10-31* apt-pkg/deb/dpkgpm.cc:Michael Vogt
- reset the line if a invalid line was read