summaryrefslogtreecommitdiff
path: root/cmdline/acqprogress.cc
diff options
context:
space:
mode:
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;
+}
+ /*}}}*/