diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:49 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:49 +0000 |
commit | ab559b358d7c390ac63bfcf8d526ca44761aafc5 (patch) | |
tree | f3e5de5cc903ac81f2df7b8992be8e780b707440 /apt-pkg | |
parent | f436bdc5fdd0db812484774d701e7d98b1e76224 (diff) |
Added --no-download
Author: jgg
Date: 1999-05-24 03:39:36 GMT
Added --no-download
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire-item.cc | 13 | ||||
-rw-r--r-- | apt-pkg/acquire-item.h | 4 | ||||
-rw-r--r-- | apt-pkg/acquire.cc | 6 |
3 files changed, 20 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index f2fd0b8b8..1b683a373 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-item.cc,v 1.29 1999/04/28 22:48:44 jgg Exp $ +// $Id: acquire-item.cc,v 1.30 1999/05/24 03:39:36 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -541,6 +541,17 @@ void pkgAcqArchive::Failed(string Message,pkgAcquire::MethodConfig *Cnf) } } /*}}}*/ +// AcqArchive::Finished - Fetching has finished, tidy up /*{{{*/ +// --------------------------------------------------------------------- +/* */ +void pkgAcqArchive::Finished() +{ + if (Status == pkgAcquire::Item::StatDone && + Complete == true) + return; + StoreFilename = string(); +} + /*}}}*/ // AcqFile::pkgAcqFile - Constructor /*{{{*/ // --------------------------------------------------------------------- diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 3079c68ef..6c5ecde12 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-item.h,v 1.19 1999/04/11 21:23:09 jgg Exp $ +// $Id: acquire-item.h,v 1.20 1999/05/24 03:39:37 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -66,6 +66,7 @@ class pkgAcquire::Item virtual void Start(string Message,unsigned long Size); virtual string Custom600Headers() {return string();}; virtual string DescURI() = 0; + virtual void Finished() {}; // Inquire functions virtual string MD5Sum() {return string();}; @@ -138,6 +139,7 @@ class pkgAcqArchive : public pkgAcquire::Item virtual void Done(string Message,unsigned long Size,string Md5Hash); virtual string MD5Sum() {return MD5;}; virtual string DescURI() {return Desc.URI;}; + virtual void Finished(); pkgAcqArchive(pkgAcquire *Owner,pkgSourceList *Sources, pkgRecords *Recs,pkgCache::VerIterator const &Version, diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 724c3cf05..306512436 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire.cc,v 1.33 1999/05/23 06:47:43 jgg Exp $ +// $Id: acquire.cc,v 1.34 1999/05/24 03:39:37 jgg Exp $ /* ###################################################################### Acquire - File Acquiration @@ -334,6 +334,10 @@ bool pkgAcquire::Run() for (Queue *I = Queues; I != 0; I = I->Next) I->Shutdown(); + // Shut down the items + for (Item **I = Items.begin(); I != Items.end(); I++) + (*I)->Finished(); + return !_error->PendingError(); } /*}}}*/ |