From 542ec555f1d484a299b56e35655756d78716f102 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:50 +0000 Subject: CDROM support Author: jgg Date: 1998-12-04 21:16:46 GMT CDROM support --- cmdline/acqprogress.cc | 19 ++++++++++++++++++- cmdline/acqprogress.h | 3 ++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'cmdline') 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; +} + /*}}}*/ diff --git a/cmdline/acqprogress.h b/cmdline/acqprogress.h index 9dd5c60cf..8cee3cd29 100644 --- a/cmdline/acqprogress.h +++ b/cmdline/acqprogress.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acqprogress.h,v 1.2 1998/11/12 05:30:09 jgg Exp $ +// $Id: acqprogress.h,v 1.3 1998/12/04 21:16:53 jgg Exp $ /* ###################################################################### Acquire Progress - Command line progress meter @@ -21,6 +21,7 @@ class AcqTextStatus : public pkgAcquireStatus public: + virtual bool MediaChange(string Media,string Drive); virtual void IMSHit(pkgAcquire::ItemDesc &Itm); virtual void Fetch(pkgAcquire::ItemDesc &Itm); virtual void Done(pkgAcquire::ItemDesc &Itm); -- cgit v1.2.3-70-g09d2