"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "apt-pkg/indexfile.cc" between
apt-2.2.3.tar.gz and apt-2.2.4.tar.gz

About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.

indexfile.cc  (apt-2.2.3):indexfile.cc  (apt-2.2.4)
skipping to change at line 12 skipping to change at line 12
// Description /*{{{*/ // Description /*{{{*/
/* ###################################################################### /* ######################################################################
Index File - Abstraction for an index of archive/source file. Index File - Abstraction for an index of archive/source file.
##################################################################### */ ##################################################################### */
/*}}}*/ /*}}}*/
// Include Files /*{{{*/ // Include Files /*{{{*/
#include <config.h> #include <config.h>
#include <apt-pkg/acquire.h>
#include <apt-pkg/aptconfiguration.h> #include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/configuration.h> #include <apt-pkg/configuration.h>
#include <apt-pkg/deblistparser.h> #include <apt-pkg/deblistparser.h>
#include <apt-pkg/error.h> #include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h> #include <apt-pkg/fileutl.h>
#include <apt-pkg/indexfile.h> #include <apt-pkg/indexfile.h>
#include <apt-pkg/macros.h> #include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h> #include <apt-pkg/pkgcache.h>
#include <apt-pkg/pkgcachegen.h> #include <apt-pkg/pkgcachegen.h>
#include <apt-pkg/progress.h> #include <apt-pkg/progress.h>
skipping to change at line 177 skipping to change at line 178
} }
/*}}}*/ /*}}}*/
pkgDebianIndexTargetFile::pkgDebianIndexTargetFile(IndexTarget const &Target, bo ol const Trusted) :/*{{{*/ pkgDebianIndexTargetFile::pkgDebianIndexTargetFile(IndexTarget const &Target, bo ol const Trusted) :/*{{{*/
pkgDebianIndexFile(Trusted), d(NULL), Target(Target) pkgDebianIndexFile(Trusted), d(NULL), Target(Target)
{ {
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexTargetFile::ArchiveURI(std::string const &File) const/ *{{{*/ std::string pkgDebianIndexTargetFile::ArchiveURI(std::string const &File) const/ *{{{*/
{ {
return Target.Option(IndexTarget::REPO_URI) + File; return Target.Option(IndexTarget::REPO_URI) + pkgAcquire::URIEncode(File);
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexTargetFile::Describe(bool const Short) const /*{{{*/ std::string pkgDebianIndexTargetFile::Describe(bool const Short) const /*{{{*/
{ {
if (Short) if (Short)
return Target.Description; return Target.Description;
return Target.Description + " (" + IndexFileName() + ")"; return Target.Description + " (" + IndexFileName() + ")";
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexTargetFile::IndexFileName() const / *{{{*/ std::string pkgDebianIndexTargetFile::IndexFileName() const / *{{{*/
skipping to change at line 284 skipping to change at line 285
return FileExists(File); return FileExists(File);
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexRealFile::Describe(bool const /*Short*/) const/*{{{*/ std::string pkgDebianIndexRealFile::Describe(bool const /*Short*/) const/*{{{*/
{ {
return File; return File;
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexRealFile::ArchiveURI(std::string const &/*File*/) cons t/*{{{*/ std::string pkgDebianIndexRealFile::ArchiveURI(std::string const &/*File*/) cons t/*{{{*/
{ {
return "file:" + File; return "file:" + pkgAcquire::URIEncode(File);
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexRealFile::IndexFileName() const / *{{{*/ std::string pkgDebianIndexRealFile::IndexFileName() const / *{{{*/
{ {
return File; return File;
} }
/*}}}*/ /*}}}*/
std::string pkgDebianIndexRealFile::GetProgressDescription() const std::string pkgDebianIndexRealFile::GetProgressDescription() const
{ {
return File; return File;
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)