diff options
author | Ishan Jayawardena <udeshike@gmail.com> | 2011-06-13 15:16:14 +0530 |
---|---|---|
committer | Ishan Jayawardena <udeshike@gmail.com> | 2011-06-13 15:16:14 +0530 |
commit | 9995c4a0bc2d8567ff9f11d338ad610754682372 (patch) | |
tree | 8c365793c339382270c998dcd8395dc3a4471943 /apt-pkg/sourcelist.cc | |
parent | b8b21ea0d77e70b08948a594c6741252a39a6ca2 (diff) |
added support for downloading debdelta files and queuing successfully downloaded debdeltas for processing with the debdelta apt method, in apt-pkg/acquire-item.{cc,h} in pkgAcqArchive class. Currently, no index for deltas are used. Proper progress reporting and methods to verify the debdeltas are yet to be added.
Diffstat (limited to 'apt-pkg/sourcelist.cc')
-rw-r--r-- | apt-pkg/sourcelist.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index 851eefdfe..3559c1160 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -183,10 +183,12 @@ pkgSourceList::~pkgSourceList() /* */ bool pkgSourceList::ReadMainList() { + //std::cerr << "ReadMainList(): Starting." << std::endl; // CNC:2003-03-03 - Multiple sources list support. bool Res = true; #if 0 Res = ReadVendors(); + std::cerr << " ReadVendors " << Res << std::endl; if (Res == false) return false; #endif @@ -196,7 +198,8 @@ bool pkgSourceList::ReadMainList() // entries in sources.list.d. string Main = _config->FindFile("Dir::Etc::sourcelist"); string Parts = _config->FindDir("Dir::Etc::sourceparts"); - + //std::cerr << " Main: " << Main << std::endl; + //std::cerr << " Parts: " << Parts << std::endl; if (RealFileExists(Main) == true) Res &= ReadAppend(Main); else if (DirectoryExists(Parts) == false) @@ -218,6 +221,7 @@ bool pkgSourceList::ReadMainList() /* */ void pkgSourceList::Reset() { + std::cerr << "Reset(): Clear the sourcelist contents." << std::endl; for (const_iterator I = SrcList.begin(); I != SrcList.end(); I++) delete *I; SrcList.erase(SrcList.begin(),SrcList.end()); @@ -238,6 +242,7 @@ bool pkgSourceList::Read(string File) /* */ bool pkgSourceList::ReadAppend(string File) { + std::cerr << "ReadAppend(): File " << File << std::endl; // Open the stream for reading ifstream F(File.c_str(),ios::in /*| ios::nocreate*/); if (!F != 0) @@ -255,6 +260,7 @@ bool pkgSourceList::ReadAppend(string File) while (F.eof() == false) { F.getline(Buffer,sizeof(Buffer)); + //std::cerr << " Buffer " << Buffer << std::endl; CurLine++; _strtabexpand(Buffer,sizeof(Buffer)); if (F.fail() && !F.eof()) @@ -318,6 +324,7 @@ bool pkgSourceList::FindIndex(pkgCache::PkgFileIterator File, /* */ bool pkgSourceList::GetIndexes(pkgAcquire *Owner, bool GetAll) const { + //std::cerr << "GetIndexes(): Loading the index files into the downloader." << std::endl; for (const_iterator I = SrcList.begin(); I != SrcList.end(); I++) if ((*I)->GetIndexes(Owner,GetAll) == false) return false; |