X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b2e465d6d32d2dc884f58b94acb7e35f671a87fe..afffee98ed0a3e04cebe1470fc592748467bad63:/apt-inst/deb/debfile.cc diff --git a/apt-inst/deb/debfile.cc b/apt-inst/deb/debfile.cc index c93ba88a8..d3a39911d 100644 --- a/apt-inst/deb/debfile.cc +++ b/apt-inst/deb/debfile.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debfile.cc,v 1.2 2001/02/20 07:03:17 jgg Exp $ +// $Id: debfile.cc,v 1.4 2004/01/07 20:39:37 mdz Exp $ /* ###################################################################### Debian Archive File (.deb) @@ -27,6 +27,7 @@ #include #include +#include /*}}}*/ // DebFile::debDebFile - Constructor /*{{{*/ @@ -51,7 +52,7 @@ debDebFile::debDebFile(FileFd &File) : File(File), AR(File) bool debDebFile::CheckMember(const char *Name) { if (AR.FindMember(Name) == 0) - return _error->Error("This is not a valid DEB archive, missing '%s' member",Name); + return _error->Error(_("This is not a valid DEB archive, missing '%s' member"),Name); return true; } /*}}}*/ @@ -68,7 +69,7 @@ const ARArchive::Member *debDebFile::GotoMember(const char *Name) const ARArchive::Member *Member = AR.FindMember(Name); if (Member == 0) { - _error->Error("Internal Error, could not locate member %s",Name); + _error->Error(_("Internal Error, could not locate member %s"),Name); return 0; } if (File.Seek(Member->Start) == false) @@ -100,7 +101,7 @@ bool debDebFile::ExtractControl(pkgDataBase &DB) if (DB.GetMetaTmp(Tmp) == false) return false; if (chdir(Tmp.c_str()) != 0) - return _error->Errno("chdir","Couldn't change to %s",Tmp.c_str()); + return _error->Errno("chdir",_("Couldn't change to %s"),Tmp.c_str()); // Do extraction if (Tar.Go(Extract) == false) @@ -121,7 +122,7 @@ bool debDebFile::ExtractArchive(pkgDirStream &Stream) // Get the archive member and positition the file const ARArchive::Member *Member = AR.FindMember("data.tar.gz"); if (Member == 0) - return _error->Error("Internal Error, could not locate member"); + return _error->Error(_("Internal Error, could not locate member")); if (File.Seek(Member->Start) == false) return false; @@ -154,7 +155,7 @@ pkgCache::VerIterator debDebFile::MergeControl(pkgDataBase &DB) return pkgCache::VerIterator(DB.GetCache()); if (Ver.end() == true) - _error->Error("Failed to locate a valid control file"); + _error->Error(_("Failed to locate a valid control file")); return Ver; } /*}}}*/ @@ -239,7 +240,7 @@ bool debDebFile::MemControlExtract::Read(debDebFile &Deb) Control[Length] = '\n'; Control[Length+1] = '\n'; if (Section.Scan(Control,Length+2) == false) - return _error->Error("Unparsible control file"); + return _error->Error(_("Unparsible control file")); return true; } /*}}}*/