summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:51 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:51 +0000
commit76d97c26ae8ca9d55c1e44a13eb0a013f0adc592 (patch)
tree41d3ed4a977e9126f6d7fd791729b85124fb9988 /apt-pkg/acquire-worker.cc
parent143e0a1f9a3f1be0ea59637492a0b2cf9d7fa4db (diff)
Fixed cdrom method problems
Author: jgg Date: 1998-12-05 01:45:19 GMT Fixed cdrom method problems
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r--apt-pkg/acquire-worker.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc
index 67bb61207..28f8408b6 100644
--- a/apt-pkg/acquire-worker.cc
+++ b/apt-pkg/acquire-worker.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-worker.cc,v 1.14 1998/12/04 21:16:47 jgg Exp $
+// $Id: acquire-worker.cc,v 1.15 1998/12/05 01:45:20 jgg Exp $
/* ######################################################################
Acquire Worker
@@ -460,7 +460,8 @@ bool pkgAcquire::Worker::InFdReady()
read returned -1. */
bool pkgAcquire::Worker::MethodFailure()
{
- cerr << "Method " << Access << " has died unexpectedly!" << endl;
+ _error->Error("Method %s has died unexpectedly!",Access.c_str());
+
if (waitpid(Process,0,0) != Process)
_error->Warning("I waited but nothing was there!");
Process = -1;