summaryrefslogtreecommitdiff
path: root/cmdline/acqprogress.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:50 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:50 +0000
commit542ec555f1d484a299b56e35655756d78716f102 (patch)
treeaac5b14d4831b01214c19660c4130f0363dc3030 /cmdline/acqprogress.cc
parentf46e768107c0250eb0609a89a74b66ab3c9d8cec (diff)
downloadapt-542ec555f1d484a299b56e35655756d78716f102.tar.gz
CDROM support
Author: jgg Date: 1998-12-04 21:16:46 GMT CDROM support
Diffstat (limited to 'cmdline/acqprogress.cc')
-rw-r--r--cmdline/acqprogress.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/cmdline/acqprogress.cc b/cmdline/acqprogress.cc
index c80d4a670..01f6f7945 100644
--- a/cmdline/acqprogress.cc
+++ b/cmdline/acqprogress.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acqprogress.cc,v 1.4 1998/11/28 20:56:08 jgg Exp $
+// $Id: acqprogress.cc,v 1.5 1998/12/04 21:16:52 jgg Exp $
/* ######################################################################
Acquire Progress - Command line progress meter
@@ -228,3 +228,20 @@ void AcqTextStatus::Pulse(pkgAcquire *Owner)
Update = false;
}
/*}}}*/
+// AcqTextStatus::MediaChange - Media need to be swapped /*{{{*/
+// ---------------------------------------------------------------------
+/* Prompt for a media swap */
+bool AcqTextStatus::MediaChange(string Media,string Drive)
+{
+ if (Quiet <= 0)
+ cout << '\r' << BlankLine << '\r';
+ cout << "Media Change: Please insert the Disc labeled '" << Media << "' in "\
+ " the drive '" << Drive << "' and press a key" << endl;
+
+ char C;
+ read(STDIN_FILENO,&C,1);
+
+ Update = true;
+ return true;
+}
+ /*}}}*/