Browse Source

* merged from main

Patches applied:

 * apt@packages.debian.org/apt--main--0--patch-100
   Use debian.org address in mainline

 * apt@packages.debian.org/apt--main--0--patch-101
   Update pot file

 * apt@packages.debian.org/apt--main--0--patch-102
   Open 0.6.40

 * apt@packages.debian.org/apt--main--0--patch-103
   Patch from Jordi Mallach to mark some additional strings for translation

 * apt@packages.debian.org/apt--main--0--patch-104
   Updated Catalan translation from Jordi Mallach

 * apt@packages.debian.org/apt--main--0--patch-105
   Merge from bubulle@debian.org--2005/apt--main--0

 * apt@packages.debian.org/apt--main--0--patch-106
   Restore lost changelog entries

 * apt@packages.debian.org/apt--main--0--patch-107
   Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0

 * apt@packages.debian.org/apt--main--0--patch-108
   Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0

 * apt@packages.debian.org/apt--main--0--patch-109
   Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0

 * apt@packages.debian.org/apt--main--0--patch-110
   Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0

 * bubulle@debian.org--2005/apt--main--0--patch-90
   Merge with Matt

 * bubulle@debian.org--2005/apt--main--0--patch-91
   Updated Slovak translation

 * bubulle@debian.org--2005/apt--main--0--patch-92
   Add apt-key French man page

 * bubulle@debian.org--2005/apt--main--0--patch-93
   Update Greek translations

 * bubulle@debian.org--2005/apt--main--0--patch-94
   Merge with Matt

 * bubulle@debian.org--2005/apt--main--0--patch-95
   Sync PO files with the POT file/French translation update

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--base-0
   tag of apt@packages.debian.org/apt--main--0--patch-85

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-1
   * inital proof of concept code, understands what dpkg tells it already

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-2
   * progress reporting works now

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-3
   * added "APT::Status-Fd" variable

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-4
   * do i18n now too

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-5
   * define N_(x) if it is not defined already

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-6
   * PackageManager::DoInstall(int status_fd) added (does not break the ABI)

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-7
   * merged with apt--fixes--0 to make it build again

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-8
   * added support for "error" and "conffile-prompt" messages from dpkg

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-9
   merge with main

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-10
   * use sizeof() for all snprintf() uses; fix a potential line break problem in the status reading code; changed the N_() to _() calls

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-11
   * added APT::KeepFDs configuration list for file descriptors that apt should leave open (needed for various frontends like debconf, synaptic)

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-12
   * fixed a API breakage

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-13
   * doc added, should be releasable now

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-14
   * merged with apt--main--0

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-15
   * more source comments, added Debug::DpkgPM debug code to inspect the dpkg<->apt communication, broke the abi (ok with matt)

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-16
   * the progress reporting has it's own "Debug::pkgDPkgProgressReporting" debug variable now

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-17
   * merged PackageOps and TranslatedPackageOps into a single Map with the new DpkgState struct

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-18
   * clear the APT::Keep-Fds configuration when it's no longer needed

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-19
   * rewrote the reading from dpkg so that it never blocks

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-20
   * merged the two status arrays into one

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-21
   * added support for download progress reporting too (for Kamion and base-config)

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-22
   * ABI break; added Configuration::Clear(string List, {int,string} value) added (to remove a single Value from a list); test/conf_clear.cc added

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-23
   * remvoed a debug string

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-24
   * soname changed, fixed a bug in the parsing code when dpkg send the same state more than once (at the end)

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-25
   * merged with apt@packages.debian.org/apt--main--0, added changelog entry for the 0.6.40.1 upload

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-26
   * fix a bug when out-of-order states are send from dpkg 

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-27
   * changelog update

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-28
   * a real changelog entry now

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-29
   * changelog finalized

 * michael.vogt@ubuntu.com--2005/apt--progress-reporting--0--patch-30
   * propper (and sane) support for pmerror and pmconffile added
tags/debian/0.7.21
Michael Vogt 16 years ago
parent
commit
2a7e07c757
54 changed files with 3548 additions and 2688 deletions
  1. +62
    -0
      README.progress-reporting
  2. +21
    -0
      apt-pkg/acquire.cc
  3. +43
    -2
      apt-pkg/contrib/configuration.cc
  4. +6
    -1
      apt-pkg/contrib/configuration.h
  5. +21
    -3
      apt-pkg/contrib/fileutl.cc
  6. +1
    -1
      apt-pkg/contrib/fileutl.h
  7. +216
    -26
      apt-pkg/deb/dpkgpm.cc
  8. +8
    -1
      apt-pkg/deb/dpkgpm.h
  9. +1
    -1
      apt-pkg/init.h
  10. +1
    -1
      apt-pkg/makefile
  11. +12
    -0
      apt-pkg/packagemanager.cc
  12. +1
    -6
      apt-pkg/packagemanager.h
  13. +12
    -10
      cmdline/apt-get.cc
  14. +1
    -1
      configure.in
  15. +1
    -0
      debian/apt-doc.docs
  16. +1
    -0
      debian/apt.manpages
  17. +261
    -19
      debian/changelog
  18. +8
    -0
      doc/examples/configure-index
  19. +17
    -13
      methods/gpgv.cc
  20. +1
    -1
      methods/makefile
  21. +137
    -160
      po/apt-all.pot
  22. +65
    -65
      po/bs.po
  23. +175
    -120
      po/ca.po
  24. +66
    -65
      po/cs.po
  25. +509
    -332
      po/cy.po
  26. +71
    -70
      po/da.po
  27. +80
    -72
      po/de.po
  28. +79
    -78
      po/el.po
  29. +66
    -66
      po/en_GB.po
  30. +66
    -65
      po/es.po
  31. +61
    -60
      po/eu.po
  32. +66
    -65
      po/fi.po
  33. +123
    -143
      po/fr.po
  34. +67
    -67
      po/he.po
  35. +66
    -65
      po/hu.po
  36. +66
    -65
      po/it.po
  37. +66
    -65
      po/ja.po
  38. +66
    -65
      po/ko.po
  39. +66
    -65
      po/nb.po
  40. +66
    -65
      po/nl.po
  41. +66
    -65
      po/nn.po
  42. +66
    -65
      po/pl.po
  43. +83
    -82
      po/pt.po
  44. +28
    -26
      po/pt_BR.po
  45. +66
    -65
      po/ro.po
  46. +66
    -65
      po/ru.po
  47. +92
    -91
      po/sk.po
  48. +66
    -65
      po/sl.po
  49. +66
    -65
      po/sv.po
  50. +66
    -65
      po/tl.po
  51. +66
    -65
      po/zh_CN.po
  52. +66
    -65
      po/zh_TW.po
  53. +23
    -0
      test/conf_clear.cc
  54. +6
    -0
      test/makefile

+ 62
- 0
README.progress-reporting View File

@@ -0,0 +1,62 @@
Install-progress reporting
--------------------------

If the apt options: "APT::Status-Fd" is set, apt will send status
reports to that fd. The status information is seperated with a ':',
there are the following status conditions:

status = {"pmstatus", "dlstatus", "conffile-prompt", "error" }

The reason for using a fd instead of a OpProgress class is that many
apt frontend fork a (vte) terminal for the actual installation.

The reason to do the mapping and l10n of the dpkg states to human
readable (and translatable) strings is that this way the translation
needs to be done only once for all frontends.


pmstatus
--------
Status of the package manager (dpkg). This is send when packages
are installed/removed.
pmstatus:pkgname:TotalPercentage:action-description

PkgName = the name of the package
TotalPercentage = the total progress between [0..100]
description = a i18ned human readable decription of the current action


Example:
# ./apt-get install -o APT::Status-Fd=2 3dchess >/dev/null
pmstatus:3dchess:20:Preparing 3dchess
pmstatus:3dchess:40:Unpacking 3dchess
pmstatus:3dchess:60:Preparing to configure 3dchess
pmstatus:3dchess:80:Configuring 3dchess
pmstatus:3dchess:100:Installed 3dchess

pmerror
-------
pmerror:deb:TotalPercentage:error string

Example:
pmerror: /var/cache/apt/archives/krecipes_0.8.1-0ubuntu1_i386.deb : 75% : trying to overwrite `/usr/share/doc/kde/HTML/en/krecipes/krectip.png', which is also in package krecipes-data


pmconffile
----------
pmconffile:conffile:percent:'current-conffile' 'new-conffile' useredited distedited



dlstatus
--------
dlstatus:AlreadDownloaded:TotalPercentage:action-description

AlreadyDownloaded = the number of already downloaded packages
TotalPercentage = the total progress between [0..100]
description = a i18ned human readable decription of the current action

Example:
dlstatus:1:9.05654:Downloading file 1 of 3 (4m40s remaining)
dlstatus:1:9.46357:Downloading file 1 of 3 (4m39s remaining)
dlstatus:1:9.61022:Downloading file 1 of 3 (4m38s remaining)

+ 21
- 0
apt-pkg/acquire.cc View File

@@ -26,6 +26,7 @@
#include <apti18n.h>

#include <iostream>
#include <sstream>
#include <dirent.h>
#include <sys/time.h>
@@ -803,6 +804,26 @@ bool pkgAcquireStatus::Pulse(pkgAcquire *Owner)
Time = NewTime;
}

int fd = _config->FindI("APT::Status-Fd",-1);
if(fd > 0)
{
ostringstream status;

char msg[200];
long i = CurrentItems < TotalItems ? CurrentItems + 1 : CurrentItems;
unsigned long ETA =
(unsigned long)((TotalBytes - CurrentBytes) / CurrentCPS);

snprintf(msg,sizeof(msg), _("Downloading file %li of %li (%s remaining)"), i, TotalItems, TimeToStr(ETA).c_str());

// build the status str
status << "dlstatus:" << i
<< ":" << (CurrentBytes/float(TotalBytes)*100.0)
<< ":" << msg
<< endl;
write(fd, status.str().c_str(), status.str().size());
}

return true;
}
/*}}}*/


+ 43
- 2
apt-pkg/contrib/configuration.cc View File

@@ -325,6 +325,47 @@ void Configuration::Set(const char *Name,int Value)
char S[300];
snprintf(S,sizeof(S),"%i",Value);
Itm->Value = S;
}
/*}}}*/
// Configuration::Clear - Clear an single value from a list /*{{{*/
// ---------------------------------------------------------------------
/* */
void Configuration::Clear(string Name, int Value)
{
char S[300];
snprintf(S,sizeof(S),"%i",Value);
Clear(Name, S);
}
/*}}}*/
// Configuration::Clear - Clear an single value from a list /*{{{*/
// ---------------------------------------------------------------------
/* */
void Configuration::Clear(string Name, string Value)
{
Item *Top = Lookup(Name.c_str(),false);
if (Top == 0 || Top->Child == 0)
return;

Item *Tmp, *Prev, *I;
Prev = I = Top->Child;

while(I != NULL)
{
if(I->Value == Value)
{
Tmp = I;
// was first element, point parent to new first element
if(Top->Child == Tmp)
Top->Child = I->Next;
I = I->Next;
Prev->Next = I;
delete Tmp;
} else {
Prev = I;
I = I->Next;
}
}
}
/*}}}*/
// Configuration::Clear - Clear an entire tree /*{{{*/
@@ -333,9 +374,9 @@ void Configuration::Set(const char *Name,int Value)
void Configuration::Clear(string Name)
{
Item *Top = Lookup(Name.c_str(),false);
if (Top == 0)
if (Top == 0)
return;
Top->Value = string();
Item *Stop = Top;
Top = Top->Child;


+ 6
- 1
apt-pkg/contrib/configuration.h View File

@@ -87,8 +87,13 @@ class Configuration
bool Exists(const char *Name) const;
bool ExistsAny(const char *Name) const;

// clear a whole tree
void Clear(string Name);

// remove a certain value from a list (e.g. the list of "APT::Keep-Fds")
void Clear(string List, string Value);
void Clear(string List, int Value);

inline const Item *Tree(const char *Name) const {return Lookup(Name);};

inline void Dump() { Dump(std::clog); };


+ 21
- 3
apt-pkg/contrib/fileutl.cc View File

@@ -20,6 +20,7 @@
#include <apt-pkg/fileutl.h>
#include <apt-pkg/error.h>
#include <apt-pkg/sptr.h>
#include <apt-pkg/configuration.h>

#include <apti18n.h>

@@ -32,6 +33,7 @@
#include <sys/wait.h>
#include <signal.h>
#include <errno.h>
#include <set>
/*}}}*/

using namespace std;
@@ -306,7 +308,7 @@ bool WaitFd(int Fd,bool write,unsigned long timeout)
/* This is used if you want to cleanse the environment for the forked
child, it fixes up the important signals and nukes all of the fds,
otherwise acts like normal fork. */
pid_t ExecFork(int dontCloseThisFd)
pid_t ExecFork()
{
// Fork off the process
pid_t Process = fork();
@@ -326,11 +328,27 @@ pid_t ExecFork(int dontCloseThisFd)
signal(SIGWINCH,SIG_DFL);
signal(SIGCONT,SIG_DFL);
signal(SIGTSTP,SIG_DFL);

set<int> KeepFDs;
Configuration::Item const *Opts = _config->Tree("APT::Keep-Fds");
if (Opts != 0 && Opts->Child != 0)
{
Opts = Opts->Child;
for (; Opts != 0; Opts = Opts->Next)
{
if (Opts->Value.empty() == true)
continue;
int fd = atoi(Opts->Value.c_str());
KeepFDs.insert(fd);
}
}

// Close all of our FDs - just in case
for (int K = 3; K != 40; K++)
if(K != dontCloseThisFd)
{
if(KeepFDs.find(K) == KeepFDs.end())
fcntl(K,F_SETFD,FD_CLOEXEC);
}
}
return Process;


+ 1
- 1
apt-pkg/contrib/fileutl.h View File

@@ -87,7 +87,7 @@ string SafeGetCWD();
void SetCloseExec(int Fd,bool Close);
void SetNonBlock(int Fd,bool Block);
bool WaitFd(int Fd,bool write = false,unsigned long timeout = 0);
pid_t ExecFork(int dontCloseThisFd=-1);
pid_t ExecFork();
bool ExecWait(pid_t Pid,const char *Name,bool Reap = false);

// File string manipulators


+ 216
- 26
apt-pkg/deb/dpkgpm.cc View File

@@ -25,7 +25,11 @@
#include <signal.h>
#include <errno.h>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <map>

#include <config.h>
#include <apti18n.h>
/*}}}*/

using namespace std;
@@ -325,8 +329,14 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf)
/*}}}*/
// DPkgPM::Go - Run the sequence /*{{{*/
// ---------------------------------------------------------------------
/* This globs the operations and calls dpkg */
bool pkgDPkgPM::Go(int status_fd)
/* This globs the operations and calls dpkg
*
* If it is called with "OutStatusFd" set to a valid file descriptor
* apt will report the install progress over this fd. It maps the
* dpkg states a package goes through to human readable (and i10n-able)
* names and calculates a percentage for each step.
*/
bool pkgDPkgPM::Go(int OutStatusFd)
{
unsigned int MaxArgs = _config->FindI("Dpkg::MaxArgs",8*1024);
unsigned int MaxArgBytes = _config->FindI("Dpkg::MaxArgBytes",32*1024);
@@ -336,7 +346,66 @@ bool pkgDPkgPM::Go(int status_fd)

if (RunScriptsWithPkgs("DPkg::Pre-Install-Pkgs") == false)
return false;
// prepare the progress reporting
int Done = 0;
int Total = 0;
// map the dpkg states to the operations that are performed
// (this is sorted in the same way as Item::Ops)
static const struct DpkgState DpkgStatesOpMap[][5] = {
// Install operation
{
{"half-installed", _("Preparing %s")},
{"unpacked", _("Unpacking %s") },
{NULL, NULL}
},
// Configure operation
{
{"unpacked",_("Preparing to configure %s") },
{"half-configured", _("Configuring %s") },
{ "installed", _("Installed %s")},
{NULL, NULL}
},
// Remove operation
{
{"half-configured", _("Preparing for removal of %s")},
{"half-installed", _("Removing %s")},
{"config-files", _("Removed %s")},
{NULL, NULL}
},
// Purge operation
{
{"config-files", _("Preparing for remove with config %s")},
{"not-installed", _("Removed with config %s")},
{NULL, NULL}
},
};

// the dpkg states that the pkg will run through, the string is
// the package, the vector contains the dpkg states that the package
// will go through
map<string,vector<struct DpkgState> > PackageOps;
// the dpkg states that are already done; the string is the package
// the int is the state that is already done (e.g. a package that is
// going to be install is already in state "half-installed")
map<string,int> PackageOpsDone;

// init the PackageOps map, go over the list of packages that
// that will be [installed|configured|removed|purged] and add
// them to the PackageOps map (the dpkg states it goes through)
// and the PackageOpsTranslations (human readable strings)
for (vector<Item>::iterator I = List.begin(); I != List.end();I++)
{
string name = (*I).Pkg.Name();
PackageOpsDone[name] = 0;
for(int i=0; (DpkgStatesOpMap[(*I).Op][i]).state != NULL; i++)
{
PackageOps[name].push_back(DpkgStatesOpMap[(*I).Op][i]);
Total++;
}
}

// this loop is runs once per operation
for (vector<Item>::iterator I = List.begin(); I != List.end();)
{
vector<Item>::iterator J = I;
@@ -367,16 +436,15 @@ bool pkgDPkgPM::Go(int status_fd)
}
}
// if we got a status_fd argument, we pass it to apt
char status_fd_buf[20];
if(status_fd > 0)
{
Args[n++] = "--status-fd";
Size += strlen(Args[n-1]);
snprintf(status_fd_buf,20,"%i",status_fd);
Args[n++] = status_fd_buf;
Size += strlen(Args[n-1]);
}
int fd[2];
pipe(fd);
Args[n++] = "--status-fd";
Size += strlen(Args[n-1]);
snprintf(status_fd_buf,sizeof(status_fd_buf),"%i", fd[1]);
Args[n++] = status_fd_buf;
Size += strlen(Args[n-1]);

switch (I->Op)
{
@@ -449,17 +517,17 @@ bool pkgDPkgPM::Go(int status_fd)
it doesn't die but we do! So we must also ignore it */
sighandler_t old_SIGQUIT = signal(SIGQUIT,SIG_IGN);
sighandler_t old_SIGINT = signal(SIGINT,SIG_IGN);
// Fork dpkg
// Fork dpkg
pid_t Child;
if(status_fd > 0)
Child = ExecFork(status_fd);
else
Child = ExecFork();
_config->Set("APT::Keep-Fds::",fd[1]);
Child = ExecFork();
// This is the child
if (Child == 0)
{
close(fd[0]); // close the read end of the pipe
if (chdir(_config->FindDir("DPkg::Run-Directory","/").c_str()) != 0)
_exit(100);
@@ -487,19 +555,141 @@ bool pkgDPkgPM::Go(int status_fd)
_exit(100);
}

// clear the Keep-Fd again
_config->Clear("APT::Keep-Fds",fd[1]);

// Wait for dpkg
int Status = 0;
while (waitpid(Child,&Status,0) != Child)
{
if (errno == EINTR)

// we read from dpkg here
int _dpkgin = fd[0];
fcntl(_dpkgin, F_SETFL, O_NONBLOCK);
close(fd[1]); // close the write end of the pipe

// the read buffers for the communication with dpkg
char line[1024] = {0,};
char buf[2] = {0,0};
// the result of the waitpid call
int res;

while ((res=waitpid(Child,&Status, WNOHANG)) != Child) {
if(res < 0) {
// FIXME: move this to a function or something, looks ugly here
// error handling, waitpid returned -1
if (errno == EINTR)
continue;
RunScripts("DPkg::Post-Invoke");

// Restore sig int/quit
signal(SIGQUIT,old_SIGQUIT);
signal(SIGINT,old_SIGINT);
return _error->Errno("waitpid","Couldn't wait for subprocess");
}
// read a single char, make sure that the read can't block
// (otherwise we may leave zombies)
int len = read(_dpkgin, buf, 1);

// nothing to read, wait a bit for more
if(len <= 0)
{
usleep(1000);
continue;
RunScripts("DPkg::Post-Invoke");
}
// sanity check (should never happen)
if(strlen(line) >= sizeof(line)-10)
{
_error->Error("got a overlong line from dpkg: '%s'",line);
line[0]=0;
}
// append to line, check if we got a complete line
strcat(line, buf);
if(buf[0] != '\n')
continue;

if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
std::clog << "got from dpkg '" << line << "'" << std::endl;

// the status we output
ostringstream status;

/* dpkg sends strings like this:
'status: <pkg>: <pkg qstate>'
errors look like this:
'status: /var/cache/apt/archives/krecipes_0.8.1-0ubuntu1_i386.deb : error : trying to overwrite `/usr/share/doc/kde/HTML/en/krecipes/krectip.png', which is also in package krecipes-data
and conffile-prompt like this
'status: conffile-prompt: conffile : 'current-conffile' 'new-conffile' useredited distedited
*/
char* list[4];
TokSplitString(':', line, list, 5);
char *pkg = list[1];
char *action = _strstrip(list[2]);

if(strncmp(action,"error",strlen("error")) == 0)
{
status << "pmerror:" << list[1]
<< ":" << (Done/float(Total)*100.0)
<< ":" << list[3]
<< endl;
if(OutStatusFd > 0)
write(OutStatusFd, status.str().c_str(), status.str().size());
line[0]=0;
if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
std::clog << "send: '" << status.str() << "'" << endl;
continue;
}
if(strncmp(action,"conffile",strlen("conffile")) == 0)
{
status << "pmconffile:" << list[1]
<< ":" << (Done/float(Total)*100.0)
<< ":" << list[3]
<< endl;
if(OutStatusFd > 0)
write(OutStatusFd, status.str().c_str(), status.str().size());
line[0]=0;
if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
std::clog << "send: '" << status.str() << "'" << endl;
continue;
}

vector<struct DpkgState> &states = PackageOps[pkg];
const char *next_action = NULL;
if(PackageOpsDone[pkg] < states.size())
next_action = states[PackageOpsDone[pkg]].state;
// check if the package moved to the next dpkg state
if(next_action && (strcmp(action, next_action) == 0))
{
// only read the translation if there is actually a next
// action
const char *translation = states[PackageOpsDone[pkg]].str;
char s[200];
snprintf(s, sizeof(s), translation, pkg);

// we moved from one dpkg state to a new one, report that
PackageOpsDone[pkg]++;
Done++;
// build the status str
status << "pmstatus:" << pkg
<< ":" << (Done/float(Total)*100.0)
<< ":" << s
<< endl;
if(OutStatusFd > 0)
write(OutStatusFd, status.str().c_str(), status.str().size());
if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
std::clog << "send: '" << status.str() << "'" << endl;

}
if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
std::clog << "(parsed from dpkg) pkg: " << pkg
<< " action: " << action << endl;

// Restore sig int/quit
signal(SIGQUIT,old_SIGQUIT);
signal(SIGINT,old_SIGINT);
return _error->Errno("waitpid","Couldn't wait for subprocess");
// reset the line buffer
line[0]=0;
}
close(_dpkgin);

// Restore sig int/quit
signal(SIGQUIT,old_SIGQUIT);


+ 8
- 1
apt-pkg/deb/dpkgpm.h View File

@@ -23,6 +23,13 @@ using std::vector;
class pkgDPkgPM : public pkgPackageManager
{
protected:

// used for progress reporting
struct DpkgState
{
const char *state; // the dpkg state (e.g. "unpack")
const char *str; // the human readable translation of the state
};
struct Item
{
@@ -45,7 +52,7 @@ class pkgDPkgPM : public pkgPackageManager
virtual bool Install(PkgIterator Pkg,string File);
virtual bool Configure(PkgIterator Pkg);
virtual bool Remove(PkgIterator Pkg,bool Purge = false);
virtual bool Go(int status_fd=-1);
virtual bool Go(int StatusFd=-1);
virtual void Reset();
public:


+ 1
- 1
apt-pkg/init.h View File

@@ -18,7 +18,7 @@

// See the makefile
#define APT_PKG_MAJOR 3
#define APT_PKG_MINOR 5
#define APT_PKG_MINOR 11
#define APT_PKG_RELEASE 0
extern const char *pkgVersion;


+ 1
- 1
apt-pkg/makefile View File

@@ -13,7 +13,7 @@ include ../buildlib/defaults.mak
# methods/makefile - FIXME
LIBRARY=apt-pkg
LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
MAJOR=3.10
MAJOR=3.11
MINOR=0
SLIBS=$(PTHREADLIB) $(INTLLIBS)
APT_DOMAIN:=libapt-pkg$(MAJOR)


+ 12
- 0
apt-pkg/packagemanager.cc View File

@@ -627,3 +627,15 @@ pkgPackageManager::OrderResult pkgPackageManager::OrderInstall()
return Completed;
}
/*}}}*/
// PM::DoInstall - Does the installation /*{{{*/
// ---------------------------------------------------------------------
/* This uses the filenames in FileNames and the information in the
DepCache to perform the installation of packages.*/
pkgPackageManager::OrderResult pkgPackageManager::DoInstall(int statusFd)
{
if(DoInstallPreFork() == Failed)
return Failed;
return DoInstallPostFork();
}
/*}}}*/

+ 1
- 6
apt-pkg/packagemanager.h View File

@@ -83,12 +83,7 @@ class pkgPackageManager : protected pkgCache::Namespace
pkgRecords *Recs);

// Do the installation
OrderResult DoInstall() {
if(DoInstallPreFork() == Failed)
return Failed;

return DoInstallPostFork();
}
OrderResult DoInstall(int statusFd=-1);

// stuff that needs to be done before the fork() of a library that
// uses apt


+ 12
- 10
cmdline/apt-get.cc View File

@@ -689,7 +689,7 @@ static bool CheckAuth(pkgAcquire& Fetcher)

if (_config->FindB("APT::Get::AllowUnauthenticated",false) == true)
{
c2out << "Authentication warning overridden.\n";
c2out << _("Authentication warning overridden.\n");
return true;
}

@@ -751,7 +751,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
if (Cache->BrokenCount() != 0)
{
ShowBroken(c1out,Cache,false);
return _error->Error("Internal error, InstallPackages was called with broken packages!");
return _error->Error(_("Internal error, InstallPackages was called with broken packages!"));
}

if (Cache->DelCount() == 0 && Cache->InstCount() == 0 &&
@@ -766,11 +766,12 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
if (_config->FindB("APT::Get::Simulate") == true)
{
pkgSimulate PM(Cache);
pkgPackageManager::OrderResult Res = PM.DoInstall();
int status_fd = _config->FindI("APT::Status-Fd",-1);
pkgPackageManager::OrderResult Res = PM.DoInstall(status_fd);
if (Res == pkgPackageManager::Failed)
return false;
if (Res != pkgPackageManager::Completed)
return _error->Error("Internal error, Ordering didn't finish");
return _error->Error(_("Internal error, Ordering didn't finish"));
return true;
}
@@ -811,7 +812,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
if (DebBytes != Cache->DebSize())
{
c0out << DebBytes << ',' << Cache->DebSize() << endl;
c0out << "How odd.. The sizes didn't match, email apt@packages.debian.org" << endl;
c0out << _("How odd.. The sizes didn't match, email apt@packages.debian.org") << endl;
}
// Number of bytes
@@ -841,7 +842,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
struct statvfs Buf;
string OutputDir = _config->FindDir("Dir::Cache::Archives");
if (statvfs(OutputDir.c_str(),&Buf) != 0)
return _error->Errno("statvfs","Couldn't determine free space in %s",
return _error->Errno("statvfs",_("Couldn't determine free space in %s"),
OutputDir.c_str());
if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize)
return _error->Error(_("You don't have enough free space in %s."),
@@ -995,7 +996,8 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
}

_system->UnLock();
pkgPackageManager::OrderResult Res = PM->DoInstall();
int status_fd = _config->FindI("APT::Status-Fd",-1);
pkgPackageManager::OrderResult Res = PM->DoInstall(status_fd);
if (Res == pkgPackageManager::Failed || _error->PendingError() == true)
return false;
if (Res == pkgPackageManager::Completed)
@@ -1790,7 +1792,7 @@ bool DoDSelectUpgrade(CommandLine &CmdL)
if (Fix.Resolve() == false)
{
ShowBroken(c1out,Cache,false);
return _error->Error("Internal error, problem resolver broke stuff");
return _error->Error(_("Internal error, problem resolver broke stuff"));
}
}

@@ -1798,7 +1800,7 @@ bool DoDSelectUpgrade(CommandLine &CmdL)
if (pkgAllUpgrade(Cache) == false)
{
ShowBroken(c1out,Cache,false);
return _error->Error("Internal error, problem resolver broke stuff");
return _error->Error(_("Internal error, problem resolver broke stuff"));
}
return InstallPackages(Cache,false);
@@ -1969,7 +1971,7 @@ bool DoSource(CommandLine &CmdL)
struct statvfs Buf;
string OutputDir = ".";
if (statvfs(OutputDir.c_str(),&Buf) != 0)
return _error->Errno("statvfs","Couldn't determine free space in %s",
return _error->Errno("statvfs",_("Couldn't determine free space in %s"),
OutputDir.c_str());
if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize)
return _error->Error(_("You don't have enough free space in %s"),


+ 1
- 1
configure.in View File

@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)

dnl -- SET THIS TO THE RELEASE VERSION --
AC_DEFINE_UNQUOTED(VERSION,"0.6.39ubuntu4mvo1")
AC_DEFINE_UNQUOTED(VERSION,"0.6.40.2")
PACKAGE="apt"
AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
AC_SUBST(PACKAGE)


+ 1
- 0
debian/apt-doc.docs View File

@@ -0,0 +1 @@
README.progress-reporting

+ 1
- 0
debian/apt.manpages View File

@@ -10,6 +10,7 @@ doc/fr/apt-cache.fr.8
doc/fr/apt-cdrom.fr.8
doc/fr/apt-config.fr.8
doc/fr/apt-get.fr.8
doc/fr/apt-key.fr.8
doc/fr/apt.conf.fr.5
doc/fr/apt_preferences.fr.5
doc/fr/sources.list.fr.5


+ 261
- 19
debian/changelog View File

@@ -1,16 +1,35 @@
apt (0.6.39ubuntu4mvo1) unstable; urgency=low
apt (0.6.40.2) unstable; urgency=low

* Michael Vogt
- Change debian/bugscript to use #!/bin/bash (Closes: #313402)
- Fix a incorrect example in the man-page (closes: #282918)
- Support architecture-specific extra overrides
(closes: #225947). Thanks to Anthony Towns for idea and
the patch, thanks to Colin Watson for testing it.
- better report network timeouts from the methods to the acuire code,
only timeout once per sources.list line
- support for automatic removal of unused dependencies added
* improved the support for "error" and "conffile" reporting from
dpkg, added the format to README.progress-reporting
* added README.progress-reporting to the apt-doc package
* automatic removal of unused dependencies
-- Michael Vogt <michael.vogt@ubuntu.com> Thu, 18 Aug 2005 11:09:25 +0200

apt (0.6.40.1) unstable; urgency=low

* bugfix in the parsing code for the apt<->dpkg communication. apt
crashed when dpkg sends the same state more than once under certain
conditions
* 0.6.40 breaks the ABI but I accidentally didn't change the soname :/

-- Michael Vogt <mvo@debian.org> Fri, 5 Aug 2005 13:24:58 +0200

apt (0.6.40) unstable; urgency=low

-- Michael Vogt <michael.vogt@ubuntu.com> Wed, 29 Jun 2005 13:01:36 +0200
* Patch from Jordi Mallach to mark some additional strings for translation
* Updated Catalan translation from Jordi Mallach
* Merge from bubulle@debian.org--2005/apt--main--0:
- Update pot and merge with *.po
- Updated French translation, including apt-key.fr.8
* Restore changelog entries from the 0.6.x series that went to Debian
experimental
* Merge michael.vogt@ubuntu.com--2005/apt--progress-reporting--0
- Provide an interface for progress reporting which can be used by
(e.g.) base-config

-- Matt Zimmerman <mdz@debian.org> Thu, 28 Jul 2005 11:57:32 -0700

apt (0.6.39) unstable; urgency=low

@@ -22,14 +41,7 @@ apt (0.6.39) unstable; urgency=low
* Update priority of apt-utils to important, to match the override file
* Install only one keyring on each branch (Closes: #316119)

-- Matt Zimmerman <mdz@ubuntu.com> Tue, 28 Jun 2005 11:35:21 -0700

apt (0.6.38ubuntu1) breezy; urgency=low

* First release from Ubuntu branch
* Merge with --main--0, switch back to Ubuntu keyring

-- Matt Zimmerman <mdz@ubuntu.com> Sat, 25 Jun 2005 16:52:41 -0700
-- Matt Zimmerman <mdz@debian.org> Tue, 28 Jun 2005 11:51:09 -0700

apt (0.6.38) unstable; urgency=low

@@ -225,6 +237,236 @@ apt (0.6.27) hoary; urgency=low

-- Matt Zimmerman <mdz@canonical.com> Mon, 13 Dec 2004 01:03:11 -0800

apt (0.6.25) experimental; urgency=low

* Fix handling of two-part sources for sources.list deb-src entries in
the same way that deb entries were fixed

-- Matt Zimmerman <mdz@debian.org> Wed, 9 Jun 2004 05:29:50 -0700

apt (0.6.24) experimental; urgency=low

* YnPrompt fixes were inadvertently left out, include them (Closes:
#249251)

-- Matt Zimmerman <mdz@debian.org> Sun, 16 May 2004 14:18:53 -0700

apt (0.6.23) experimental; urgency=low

* Remove obsolete pkgIterator::TargetVer() (Closes: #230159)
* Reverse test in CheckAuth to match new prompt (Closes: #248211)

-- Matt Zimmerman <mdz@debian.org> Sun, 9 May 2004 21:01:58 -0700

apt (0.6.22) experimental; urgency=low

* Merge 0.5.25
* Make the unauthenticated packages prompt more intuitive (yes to
continue, default no), but require --force-yes in addition to
--assume-yes in order to override

-- Matt Zimmerman <mdz@debian.org> Fri, 19 Mar 2004 13:55:35 -0800

apt (0.6.21) experimental; urgency=low

* Merge 0.5.24

-- Matt Zimmerman <mdz@debian.org> Tue, 16 Mar 2004 22:52:34 -0800

apt (0.6.20) experimental; urgency=low

* Merge 0.5.23

-- Matt Zimmerman <mdz@debian.org> Thu, 26 Feb 2004 17:17:02 -0800

apt (0.6.19) experimental; urgency=low

* Merge 0.5.22
* Convert apt-key(8) to docbook XML

-- Matt Zimmerman <mdz@debian.org> Mon, 9 Feb 2004 15:44:49 -0800

apt (0.6.18) experimental; urgency=low

* Add new Debian Archive Automatic Signing Key to the default keyring
(existing keyrings are not updated; do that yourself)

-- Matt Zimmerman <mdz@debian.org> Sat, 17 Jan 2004 17:04:30 -0800

apt (0.6.17) experimental; urgency=low

* Merge 0.5.21
* Handle more IMS stuff correctly

-- Matt Zimmerman <mdz@debian.org> Fri, 16 Jan 2004 10:54:25 -0800

apt (0.6.16) experimental; urgency=low

* Fix some cases where the .gpg file could be left in place when it is
invalid

-- Matt Zimmerman <mdz@debian.org> Fri, 9 Jan 2004 09:22:15 -0800

apt (0.6.15) experimental; urgency=low

* s/Debug::Acquire::gpg/&v/
* Honor the [vendor] syntax in sources.list again (though it is not
presently used for anything)
* Don't ship vendors.list(5) since it isn't used yet
* Revert change from 0.6.10; it was right in the first place and the
problem was apparently something else. Archive = Suite.

-- Matt Zimmerman <mdz@debian.org> Mon, 5 Jan 2004 17:43:01 -0800

apt (0.6.14) experimental; urgency=low

* Merge 0.5.20

-- Matt Zimmerman <mdz@debian.org> Sun, 4 Jan 2004 11:09:21 -0800

apt (0.6.13) experimental; urgency=low

* Merge 0.5.19

-- Matt Zimmerman <mdz@debian.org> Sat, 3 Jan 2004 16:22:31 -0800

apt (0.6.12) experimental; urgency=low

* Have pkgAcquireIndex calculate an MD5 sum if one is not provided by
the method (as with file: and copy:). Local repositories
* Fix warning about dist name mismatch to actually print what it was
expecting
* Don't expect any particular distribution name for two-part
sources.list entries
* Merge 0.5.18

-- Matt Zimmerman <mdz@debian.org> Fri, 2 Jan 2004 13:59:00 -0800

apt (0.6.11) experimental; urgency=low

* Support IMS requests of Release.gpg and Release
* This required API changes, bump the libapt-pkg version
* Copy local Release files into Dir::State::Lists
* Set IndexFile attribute when retrieving Release and Release.gpg so
that the appropriate Cache-Control headers are sent

-- Matt Zimmerman <mdz@debian.org> Fri, 2 Jan 2004 10:46:17 -0800

apt (0.6.10) experimental; urgency=low

* Use "Codename" (woody, sarge, etc.) to supply the value of the
"Archive" package file attribute, used to match "release a=" type
pins, rather than "Suite" (stable, testing, etc.)

-- Matt Zimmerman <mdz@debian.org> Thu, 1 Jan 2004 16:56:47 -0800

apt (0.6.9) experimental; urgency=low

* Another tagfile workaround

-- Matt Zimmerman <mdz@debian.org> Thu, 1 Jan 2004 13:56:08 -0800

apt (0.6.8) experimental; urgency=low

* Add a config option and corresponding command line option
(--allow-unauthenticated) to apt-get, to make buildd operators happy
(Closes: #225648)

-- Matt Zimmerman <mdz@debian.org> Wed, 31 Dec 2003 08:28:04 -0800

apt (0.6.7) experimental; urgency=low

* Forgot to revert part of the changes to tagfile in 0.6.4. Hopefully
will fix segfaults for some folks.

-- Matt Zimmerman <mdz@debian.org> Wed, 31 Dec 2003 08:01:28 -0800

apt (0.6.6) experimental; urgency=low

* Restore the ugly hack I removed from indexRecords::Load which set the
pkgTagFile buffer size to (file size)+256. This is concealing a bug,
but I can't fix it right now. This should fix the segfaults that
folks are seeing with 0.6.[45].

-- Matt Zimmerman <mdz@debian.org> Mon, 29 Dec 2003 18:11:13 -0800

apt (0.6.5) experimental; urgency=low

* Move the authentication check into a separate function in apt-get
* Fix display of unauthenticated packages when they are in the cache
(Closes: #225336)

-- Matt Zimmerman <mdz@debian.org> Sun, 28 Dec 2003 16:47:57 -0800

apt (0.6.4) experimental; urgency=low

* Use the top-level Release file in LoadReleaseInfo, rather than looking
for the per-section ones (which aren't downloaded anymore). This
unbreaks release pinning, including the NotAutomatic bit used by
project/experimental
* Use FileFd::Size() rather than a separate stat() call in
LoadReleaseInfo
* Fix pkgTagFile to leave a little extra room at the end of the buffer
to append the record separator if it isn't present
* Change LoadReleaseInfo to use "Suite" rather than "Archive", to match
the Debian archive's dist-level Release files

-- Matt Zimmerman <mdz@debian.org> Sun, 28 Dec 2003 15:55:55 -0800

apt (0.6.3) experimental; urgency=low

* Fix MetaIndexURI for flat ("foo/") sources

-- Matt Zimmerman <mdz@debian.org> Sun, 28 Dec 2003 12:11:56 -0800

apt (0.6.2) experimental; urgency=low

* Add space between package names when multiple unauthenticated packages
are being installed (Closes: #225212)
* Provide apt-key with a secret keyring and a trustdb, even though we
would never use them, because it blows up if it doesn't have them
* Fix typo in apt-key(8) (standard input is '-', not '/')

-- Matt Zimmerman <mdz@debian.org> Sat, 27 Dec 2003 13:01:40 -0800

apt (0.6.1) experimental; urgency=low

* Merge apt 0.5.17
* Rearrange Release file authentication code to be more clear
* If Release is present, but Release.gpg is not, don't forget to still
queue Packages files
* Convert distribution "../project/experimental" to "experimental" for
comparison purposes
* Make a number of Release file errors into warnings; for now, it is OK
not to have a codename, for example. We mostly care about checksums
for now

-- Matt Zimmerman <mdz@debian.org> Fri, 26 Dec 2003 15:12:47 -0800

apt (0.6.0) experimental; urgency=low

* Signature verification support patch ("apt-secure") from Colin Walters
<walters@debian.org> and Isaac Jones <ijones@syntaxpolice.org>. This
implements:
- Release signature verification (Release.gpg)
- Packages, Sources md5sum verification against Release
- Closes: #203741
* Make some modifications to signature verification support:
- Release.gpg is always retrieved and verified if present, rather than
requiring that sources be configured as secure
- Print a hint about installing gnupg if exec(gpgv) fails
- Remove obsolete pkgAcqIndexRel
- Move vendors.list stuff into a separate module (vendorlist.{h,cc})
- If any files about to be retrieved are not authenticated, issue a
warning to the user and require confirmation
- Fix a heap corruption bug in pkgSrcRecords::pkgSrcRecords()
* Suggests: gnupg
* Install a keyring in /usr/share/apt/debian-archive.gpg containing an
initial set of Debian archive signing keys to seed /etc/apt/trusted.gpg
* Add a new tool, apt-key(8) used to manage the keyring

-- Matt Zimmerman <mdz@debian.org> Fri, 26 Dec 2003 08:27:19 -0800

apt (0.5.32) hoary; urgency=low

* Call setlocale in the methods, so that the messages are properly


+ 8
- 0
doc/examples/configure-index View File

@@ -88,6 +88,13 @@ APT
Force-LoopBreak "false"; // DO NOT turn this on, see the man page
Cache-Limit "4194304";
Default-Release "";


// Write progress messages on this fd (for stuff like base-config)
Status-Fd "-1";
// Keep the list of FDs open (normally apt closes all fds when it
// does a ExecFork)
Keep-Fds {};
};

// Options for the downloading routines
@@ -238,6 +245,7 @@ Debug
pkgAcquire "false";
pkgAcquire::Worker "false";
pkgDPkgPM "false";
pkgDPkgProgressReporting "false";
pkgOrderList "false";
pkgAutoRemove "false"; // show information about automatic removes



+ 17
- 13
methods/gpgv.cc View File

@@ -1,6 +1,7 @@
#include <apt-pkg/error.h>
#include <apt-pkg/acquire-method.h>
#include <apt-pkg/strutl.h>
#include <apti18n.h>

#include <sys/stat.h>
#include <unistd.h>
@@ -88,7 +89,7 @@ const char *GPGVMethod::VerifyGetSigners(const char *file, const char *outfile,
continue;
Args[i++] = Opts->Value.c_str();
if(i >= 395) {
std::cerr << "E: Argument list from Acquire::gpgv::Options too long. Exiting." << std::endl;
std::cerr << _("E: Argument list from Acquire::gpgv::Options too long. Exiting.") << std::endl;
exit(111);
}
}
@@ -181,27 +182,28 @@ const char *GPGVMethod::VerifyGetSigners(const char *file, const char *outfile,
waitpid(pid, &status, 0);
if (_config->FindB("Debug::Acquire::gpgv", false))
{
std::cerr <<"gpgv exited\n";
std::cerr << "gpgv exited\n";
}
if (WEXITSTATUS(status) == 0)
{
if (GoodSigners.empty())
return "Internal error: Good signature, but could not determine key fingerprint?!";
return _("Internal error: Good signature, but could not determine key fingerprint?!");
return NULL;
}
else if (WEXITSTATUS(status) == 1)
{
return "At least one invalid signature was encountered.";
return _("At least one invalid signature was encountered.");
}
else if (WEXITSTATUS(status) == 111)
{
return (string("Could not execute ") + gpgvpath +
string(" to verify signature (is gnupg installed?)")).c_str();
// FIXME String concatenation considered harmful.
return (string(_("Could not execute ")) + gpgvpath +
string(_(" to verify signature (is gnupg installed?)"))).c_str();
}
else
{
return "Unknown error executing gpgv";
return _("Unknown error executing gpgv");
}
}

@@ -232,14 +234,14 @@ bool GPGVMethod::Fetch(FetchItem *Itm)
{
if (!BadSigners.empty())
{
errmsg += "The following signatures were invalid:\n";
errmsg += _("The following signatures were invalid:\n");
for (vector<string>::iterator I = BadSigners.begin();
I != BadSigners.end(); I++)
errmsg += (*I + "\n");
}
if (!NoPubKeySigners.empty())
{
errmsg += "The following signatures couldn't be verified because the public key is not available:\n";
errmsg += _("The following signatures couldn't be verified because the public key is not available:\n");
for (vector<string>::iterator I = NoPubKeySigners.begin();
I != NoPubKeySigners.end(); I++)
errmsg += (*I + "\n");
@@ -251,16 +253,16 @@ bool GPGVMethod::Fetch(FetchItem *Itm)
// Transfer the modification times
struct stat Buf;
if (stat(Path.c_str(),&Buf) != 0)
return _error->Errno("stat","Failed to stat %s", Path.c_str());
return _error->Errno("stat",_("Failed to stat %s"), Path.c_str());

struct utimbuf TimeBuf;
TimeBuf.actime = Buf.st_atime;
TimeBuf.modtime = Buf.st_mtime;
if (utime(Itm->DestFile.c_str(),&TimeBuf) != 0)
return _error->Errno("utime","Failed to set modification time");
return _error->Errno("utime",_("Failed to set modification time"));

if (stat(Itm->DestFile.c_str(),&Buf) != 0)
return _error->Errno("stat","Failed to stat");
return _error->Errno("stat",_("Failed to stat"));
// Return a Done response
Res.LastModified = Buf.st_mtime;
@@ -275,7 +277,7 @@ bool GPGVMethod::Fetch(FetchItem *Itm)

if (_config->FindB("Debug::Acquire::gpgv", false))
{
std::cerr <<"gpgv suceeded\n";
std::cerr << "gpgv succeeded\n";
}

return true;
@@ -284,6 +286,8 @@ bool GPGVMethod::Fetch(FetchItem *Itm)

int main()
{
setlocale(LC_ALL, "");
GPGVMethod Mth;

return Mth.Run();


+ 1
- 1
methods/makefile View File

@@ -7,7 +7,7 @@ include ../buildlib/defaults.mak
BIN := $(BIN)/methods

# FIXME..
LIB_APT_PKG_MAJOR = 3.10
LIB_APT_PKG_MAJOR = 3.11
APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)

# The file method


+ 137
- 160
po/apt-all.pot View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-06-24 21:41+0200\n"
"POT-Creation-Date: 2005-06-06 14:00+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -148,7 +148,7 @@ msgstr ""

#: cmdline/apt-cache.cc:1651 cmdline/apt-cdrom.cc:138 cmdline/apt-config.cc:70
#: cmdline/apt-extracttemplates.cc:225 ftparchive/apt-ftparchive.cc:545
#: cmdline/apt-get.cc:2369 cmdline/apt-sortpkgs.cc:144
#: cmdline/apt-get.cc:2322 cmdline/apt-sortpkgs.cc:144
#, c-format
msgid "%s %s for %s %s compiled on %s %s\n"
msgstr ""
@@ -231,7 +231,7 @@ msgid ""
" -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp\n"
msgstr ""

#: cmdline/apt-extracttemplates.cc:267 apt-pkg/pkgcachegen.cc:712
#: cmdline/apt-extracttemplates.cc:267 apt-pkg/pkgcachegen.cc:710
#, c-format
msgid "Unable to write to %s"
msgstr ""
@@ -519,200 +519,200 @@ msgstr ""
msgid "Failed to rename %s to %s"
msgstr ""

#: cmdline/apt-get.cc:119
#: cmdline/apt-get.cc:118
msgid "Y"
msgstr ""

#: cmdline/apt-get.cc:141 cmdline/apt-get.cc:1526
#: cmdline/apt-get.cc:140 cmdline/apt-get.cc:1484
#, c-format
msgid "Regex compilation error - %s"
msgstr ""

#: cmdline/apt-get.cc:236
#: cmdline/apt-get.cc:235
msgid "The following packages have unmet dependencies:"
msgstr ""

#: cmdline/apt-get.cc:326
#: cmdline/apt-get.cc:325
#, c-format
msgid "but %s is installed"
msgstr ""

#: cmdline/apt-get.cc:328
#: cmdline/apt-get.cc:327
#, c-format
msgid "but %s is to be installed"
msgstr ""

#: cmdline/apt-get.cc:335
#: cmdline/apt-get.cc:334
msgid "but it is not installable"
msgstr ""

#: cmdline/apt-get.cc:337
#: cmdline/apt-get.cc:336
msgid "but it is a virtual package"
msgstr ""

#: cmdline/apt-get.cc:340
#: cmdline/apt-get.cc:339
msgid "but it is not installed"
msgstr ""

#: cmdline/apt-get.cc:340
#: cmdline/apt-get.cc:339
msgid "but it is not going to be installed"
msgstr ""

#: cmdline/apt-get.cc:345
#: cmdline/apt-get.cc:344
msgid " or"
msgstr ""

#: cmdline/apt-get.cc:374
#: cmdline/apt-get.cc:373
msgid "The following NEW packages will be installed:"
msgstr ""

#: cmdline/apt-get.cc:400
#: cmdline/apt-get.cc:399
msgid "The following packages will be REMOVED:"
msgstr ""

#: cmdline/apt-get.cc:422
#: cmdline/apt-get.cc:421
msgid "The following packages have been kept back:"
msgstr ""

#: cmdline/apt-get.cc:443
#: cmdline/apt-get.cc:442
msgid "The following packages will be upgraded:"
msgstr ""

#: cmdline/apt-get.cc:464
#: cmdline/apt-get.cc:463
msgid "The following packages will be DOWNGRADED:"
msgstr ""

#: cmdline/apt-get.cc:484
#: cmdline/apt-get.cc:483
msgid "The following held packages will be changed:"
msgstr ""

#: cmdline/apt-get.cc:537
#: cmdline/apt-get.cc:536
#, c-format
msgid "%s (due to %s) "
msgstr ""

#: cmdline/apt-get.cc:545
#: cmdline/apt-get.cc:544
msgid ""
"WARNING: The following essential packages will be removed.\n"
"This should NOT be done unless you know exactly what you are doing!"
msgstr ""

#: cmdline/apt-get.cc:576
#: cmdline/apt-get.cc:575
#, c-format
msgid "%lu upgraded, %lu newly installed, "
msgstr ""

#: cmdline/apt-get.cc:580
#: cmdline/apt-get.cc:579
#, c-format
msgid "%lu reinstalled, "
msgstr ""

#: cmdline/apt-get.cc:582
#: cmdline/apt-get.cc:581
#, c-format
msgid "%lu downgraded, "
msgstr ""

#: cmdline/apt-get.cc:584
#: cmdline/apt-get.cc:583
#, c-format
msgid "%lu to remove and %lu not upgraded.\n"
msgstr ""

#: cmdline/apt-get.cc:588
#: cmdline/apt-get.cc:587
#, c-format
msgid "%lu not fully installed or removed.\n"
msgstr ""

#: cmdline/apt-get.cc:648
#: cmdline/apt-get.cc:647
msgid "Correcting dependencies..."
msgstr ""

#: cmdline/apt-get.cc:651
#: cmdline/apt-get.cc:650
msgid " failed."
msgstr ""

#: cmdline/apt-get.cc:654
#: cmdline/apt-get.cc:653
msgid "Unable to correct dependencies"
msgstr ""

#: cmdline/apt-get.cc:657
#: cmdline/apt-get.cc:656
msgid "Unable to minimize the upgrade set"
msgstr ""

#: cmdline/apt-get.cc:659
#: cmdline/apt-get.cc:658
msgid " Done"
msgstr ""

#: cmdline/apt-get.cc:663
#: cmdline/apt-get.cc:662
msgid "You might want to run `apt-get -f install' to correct these."
msgstr ""

#: cmdline/apt-get.cc:666
#: cmdline/apt-get.cc:665
msgid "Unmet dependencies. Try using -f."
msgstr ""

#: cmdline/apt-get.cc:688
#: cmdline/apt-get.cc:687
msgid "WARNING: The following packages cannot be authenticated!"
msgstr ""

#: cmdline/apt-get.cc:699
#: cmdline/apt-get.cc:698
msgid "Install these packages without verification [y/N]? "
msgstr ""

#: cmdline/apt-get.cc:701
#: cmdline/apt-get.cc:700
msgid "Some packages could not be authenticated"
msgstr ""

#: cmdline/apt-get.cc:710 cmdline/apt-get.cc:856
#: cmdline/apt-get.cc:709 cmdline/apt-get.cc:855
msgid "There are problems and -y was used without --force-yes"
msgstr ""

#: cmdline/apt-get.cc:763
#: cmdline/apt-get.cc:762
msgid "Packages need to be removed but remove is disabled."
msgstr ""

#: cmdline/apt-get.cc:789 cmdline/apt-get.cc:1825 cmdline/apt-get.cc:1858
#: cmdline/apt-get.cc:788 cmdline/apt-get.cc:1778 cmdline/apt-get.cc:1811
msgid "Unable to lock the download directory"
msgstr ""

#: cmdline/apt-get.cc:799 cmdline/apt-get.cc:1906 cmdline/apt-get.cc:2117
#: cmdline/apt-get.cc:798 cmdline/apt-get.cc:1859 cmdline/apt-get.cc:2070
#: apt-pkg/cachefile.cc:67
msgid "The list of sources could not be read."
msgstr ""

#: cmdline/apt-get.cc:819
#: cmdline/apt-get.cc:818
#, c-format
msgid "Need to get %sB/%sB of archives.\n"
msgstr ""

#: cmdline/apt-get.cc:822
#: cmdline/apt-get.cc:821
#, c-format
msgid "Need to get %sB of archives.\n"
msgstr ""

#: cmdline/apt-get.cc:827
#: cmdline/apt-get.cc:826
#, c-format
msgid "After unpacking %sB of additional disk space will be used.\n"
msgstr ""

#: cmdline/apt-get.cc:830
#: cmdline/apt-get.cc:829
#, c-format
msgid "After unpacking %sB disk space will be freed.\n"
msgstr ""

#: cmdline/apt-get.cc:847
#: cmdline/apt-get.cc:846
#, c-format
msgid "You don't have enough free space in %s."
msgstr ""

#: cmdline/apt-get.cc:862 cmdline/apt-get.cc:882
#: cmdline/apt-get.cc:861 cmdline/apt-get.cc:881
msgid "Trivial Only specified but this is not a trivial operation."
msgstr ""

#: cmdline/apt-get.cc:864
#: cmdline/apt-get.cc:863
msgid "Yes, do as I say!"
msgstr ""

#: cmdline/apt-get.cc:866
#: cmdline/apt-get.cc:865
#, c-format
msgid ""
"You are about to do something potentially harmful.\n"
@@ -720,74 +720,74 @@ msgid ""
" ?] "
msgstr ""

#: cmdline/apt-get.cc:872 cmdline/apt-get.cc:891
#: cmdline/apt-get.cc:871 cmdline/apt-get.cc:890
msgid "Abort."
msgstr ""

#: cmdline/apt-get.cc:887
#: cmdline/apt-get.cc:886
msgid "Do you want to continue [Y/n]? "
msgstr ""

#: cmdline/apt-get.cc:959 cmdline/apt-get.cc:1335 cmdline/apt-get.cc:2015
#: cmdline/apt-get.cc:958 cmdline/apt-get.cc:1334 cmdline/apt-get.cc:1968
#, c-format
msgid "Failed to fetch %s %s\n"
msgstr ""

#: cmdline/apt-get.cc:977
#: cmdline/apt-get.cc:976
msgid "Some files failed to download"
msgstr ""

#: cmdline/apt-get.cc:978 cmdline/apt-get.cc:2024
#: cmdline/apt-get.cc:977 cmdline/apt-get.cc:1977
msgid "Download complete and in download only mode"
msgstr ""

#: cmdline/apt-get.cc:984
#: cmdline/apt-get.cc:983
msgid ""
"Unable to fetch some archives, maybe run apt-get update or try with --fix-"
"missing?"
msgstr ""

#: cmdline/apt-get.cc:988
#: cmdline/apt-get.cc:987
msgid "--fix-missing and media swapping is not currently supported"
msgstr ""

#: cmdline/apt-get.cc:993
#: cmdline/apt-get.cc:992
msgid "Unable to correct missing packages."
msgstr ""

#: cmdline/apt-get.cc:994
#: cmdline/apt-get.cc:993
msgid "Aborting install."
msgstr ""

#: cmdline/apt-get.cc:1027
#: cmdline/apt-get.cc:1026
#, c-format
msgid "Note, selecting %s instead of %s\n"
msgstr ""

#: cmdline/apt-get.cc:1037
#: cmdline/apt-get.cc:1036
#, c-format
msgid "Skipping %s, it is already installed and upgrade is not set.\n"
msgstr ""

#: cmdline/apt-get.cc:1055
#: cmdline/apt-get.cc:1054
#, c-format
msgid "Package %s is not installed, so not removed\n"
msgstr ""

#: cmdline/apt-get.cc:1066
#: cmdline/apt-get.cc:1065
#, c-format
msgid "Package %s is a virtual package provided by:\n"
msgstr ""

#: cmdline/apt-get.cc:1078
#: cmdline/apt-get.cc:1077
msgid " [Installed]"
msgstr ""

#: cmdline/apt-get.cc:1083
#: cmdline/apt-get.cc:1082
msgid "You should explicitly select one to install."
msgstr ""

#: cmdline/apt-get.cc:1088
#: cmdline/apt-get.cc:1087
#, c-format
msgid ""
"Package %s is not available, but is referred to by another package.\n"
@@ -795,97 +795,79 @@ msgid ""
"is only available from another source\n"
msgstr ""

#: cmdline/apt-get.cc:1107
#: cmdline/apt-get.cc:1106
msgid "However the following packages replace it:"
msgstr ""

#: cmdline/apt-get.cc:1110
#: cmdline/apt-get.cc:1109
#, c-format
msgid "Package %s has no installation candidate"
msgstr ""

#: cmdline/apt-get.cc:1130
#: cmdline/apt-get.cc:1129
#, c-format
msgid "Reinstallation of %s is not possible, it cannot be downloaded.\n"
msgstr ""

#: cmdline/apt-get.cc:1138
#: cmdline/apt-get.cc:1137
#, c-format
msgid "%s is already the newest version.\n"
msgstr ""

#: cmdline/apt-get.cc:1165
#: cmdline/apt-get.cc:1164
#, c-format
msgid "Release '%s' for '%s' was not found"
msgstr ""

#: cmdline/apt-get.cc:1167
#: cmdline/apt-get.cc:1166
#, c-format
msgid "Version '%s' for '%s' was not found"
msgstr ""

#: cmdline/apt-get.cc:1173
#: cmdline/apt-get.cc:1172
#, c-format
msgid "Selected version %s (%s) for %s\n"
msgstr ""

#: cmdline/apt-get.cc:1283
#: cmdline/apt-get.cc:1282
msgid "The update command takes no arguments"
msgstr ""

#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1431
#: cmdline/apt-get.cc:1295 cmdline/apt-get.cc:1389
msgid "Unable to lock the list directory"
msgstr ""

#: cmdline/apt-get.cc:1354
#: cmdline/apt-get.cc:1353
msgid ""
"Some index files failed to download, they have been ignored, or old ones "
"used instead."
msgstr ""

#: cmdline/apt-get.cc:1367
msgid "We are not supposed to delete stuff, can't start AutoRemover"
msgstr ""

#: cmdline/apt-get.cc:1389
msgid ""
"Hmm, seems like the AutoRemover destroyed something which really\n"
"shouldn't happen. Please file a bug report against apt."
msgstr ""

#: cmdline/apt-get.cc:1392 cmdline/apt-get.cc:1594
msgid "The following information may help to resolve the situation:"
msgstr ""

#: cmdline/apt-get.cc:1396
msgid "Internal Error, AutoRemover broke stuff"
msgstr ""

#: cmdline/apt-get.cc:1414
#: cmdline/apt-get.cc:1372
msgid "Internal error, AllUpgrade broke stuff"
msgstr ""

#: cmdline/apt-get.cc:1513 cmdline/apt-get.cc:1549
#: cmdline/apt-get.cc:1471 cmdline/apt-get.cc:1507
#, c-format
msgid "Couldn't find package %s"
msgstr ""

#: cmdline/apt-get.cc:1536
#: cmdline/apt-get.cc:1494
#, c-format
msgid "Note, selecting %s for regex '%s'\n"
msgstr ""

#: cmdline/apt-get.cc:1566
#: cmdline/apt-get.cc:1524
msgid "You might want to run `apt-get -f install' to correct these:"
msgstr ""

#: cmdline/apt-get.cc:1569
#: cmdline/apt-get.cc:1527
msgid ""
"Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a "
"solution)."
msgstr ""

#: cmdline/apt-get.cc:1581
#: cmdline/apt-get.cc:1539
msgid ""
"Some packages could not be installed. This may mean that you have\n"
"requested an impossible situation or if you are using the unstable\n"
@@ -893,145 +875,149 @@ msgid ""
"or been moved out of Incoming."
msgstr ""

#: cmdline/apt-get.cc:1589
#: cmdline/apt-get.cc:1547
msgid ""
"Since you only requested a single operation it is extremely likely that\n"
"the package is simply not installable and a bug report against\n"
"that package should be filed."
msgstr ""

#: cmdline/apt-get.cc:1597
#: cmdline/apt-get.cc:1552
msgid "The following information may help to resolve the situation:"
msgstr ""

#: cmdline/apt-get.cc:1555
msgid "Broken packages"
msgstr ""

#: cmdline/apt-get.cc:1628
#: cmdline/apt-get.cc:1581
msgid "The following extra packages will be installed:"
msgstr ""

#: cmdline/apt-get.cc:1699
#: cmdline/apt-get.cc:1652
msgid "Suggested packages:"
msgstr ""

#: cmdline/apt-get.cc:1700
#: cmdline/apt-get.cc:1653
msgid "Recommended packages:"
msgstr ""

#: cmdline/apt-get.cc:1720
#: cmdline/apt-get.cc:1673
msgid "Calculating upgrade... "
msgstr ""

#: cmdline/apt-get.cc:1723 methods/ftp.cc:702 methods/connect.cc:99
#: cmdline/apt-get.cc:1676 methods/ftp.cc:702 methods/connect.cc:99
msgid "Failed"
msgstr ""

#: cmdline/apt-get.cc:1728
#: cmdline/apt-get.cc:1681
msgid "Done"
msgstr ""

#: cmdline/apt-get.cc:1901
#: cmdline/apt-get.cc:1854
msgid "Must specify at least one package to fetch source for"
msgstr ""

#: cmdline/apt-get.cc:1928 cmdline/apt-get.cc:2135
#: cmdline/apt-get.cc:1881 cmdline/apt-get.cc:2088
#, c-format
msgid "Unable to find a source package for %s"
msgstr ""

#: cmdline/apt-get.cc:1975
#: cmdline/apt-get.cc:1928
#, c-format
msgid "You don't have enough free space in %s"
msgstr ""

#: cmdline/apt-get.cc:1980
#: cmdline/apt-get.cc:1933
#, c-format
msgid "Need to get %sB/%sB of source archives.\n"
msgstr ""

#: cmdline/apt-get.cc:1983
#: cmdline/apt-get.cc:1936
#, c-format
msgid "Need to get %sB of source archives.\n"
msgstr ""

#: cmdline/apt-get.cc:1989
#: cmdline/apt-get.cc:1942
#, c-format
msgid "Fetch source %s\n"
msgstr ""

#: cmdline/apt-get.cc:2020
#: cmdline/apt-get.cc:1973
msgid "Failed to fetch some archives."
msgstr ""

#: cmdline/apt-get.cc:2048
#: cmdline/apt-get.cc:2001
#, c-format
msgid "Skipping unpack of already unpacked source in %s\n"
msgstr ""

#: cmdline/apt-get.cc:2060
#: cmdline/apt-get.cc:2013
#, c-format
msgid "Unpack command '%s' failed.\n"
msgstr ""

#: cmdline/apt-get.cc:2077
#: cmdline/apt-get.cc:2030
#, c-format
msgid "Build command '%s' failed.\n"
msgstr ""

#: cmdline/apt-get.cc:2096
#: cmdline/apt-get.cc:2049
msgid "Child process failed"
msgstr ""

#: cmdline/apt-get.cc:2112
#: cmdline/apt-get.cc:2065
msgid "Must specify at least one package to check builddeps for"
msgstr ""

#: cmdline/apt-get.cc:2140
#: cmdline/apt-get.cc:2093
#, c-format
msgid "Unable to get build-dependency information for %s"
msgstr ""

#: cmdline/apt-get.cc:2160
#: cmdline/apt-get.cc:2113
#, c-format
msgid "%s has no build depends.\n"
msgstr ""

#: cmdline/apt-get.cc:2212
#: cmdline/apt-get.cc:2165
#, c-format
msgid ""
"%s dependency for %s cannot be satisfied because the package %s cannot be "
"found"
msgstr ""

#: cmdline/apt-get.cc:2264
#: cmdline/apt-get.cc:2217
#, c-format
msgid ""
"%s dependency for %s cannot be satisfied because no available versions of "
"package %s can satisfy version requirements"
msgstr ""

#: cmdline/apt-get.cc:2299
#: cmdline/apt-get.cc:2252
#, c-format
msgid "Failed to satisfy %s dependency for %s: Installed package %s is too new"
msgstr ""

#: cmdline/apt-get.cc:2324
#: cmdline/apt-get.cc:2277
#, c-format
msgid "Failed to satisfy %s dependency for %s: %s"
msgstr ""

#: cmdline/apt-get.cc:2338
#: cmdline/apt-get.cc:2291
#, c-format
msgid "Build-dependencies for %s could not be satisfied."
msgstr ""

#: cmdline/apt-get.cc:2342
#: cmdline/apt-get.cc:2295
msgid "Failed to process build dependencies"
msgstr ""

#: cmdline/apt-get.cc:2374
#: cmdline/apt-get.cc:2327
msgid "Supported modules:"
msgstr ""

#: cmdline/apt-get.cc:2415
#: cmdline/apt-get.cc:2368
msgid ""
"Usage: apt-get [options] command\n"
" apt-get [options] install|remove pkg1 [pkg2 ...]\n"
@@ -1315,9 +1301,9 @@ msgid "The info and temp directories need to be on the same filesystem"
msgstr ""

#. Build the status cache
#: apt-inst/deb/dpkgdb.cc:139 apt-pkg/pkgcachegen.cc:645
#: apt-pkg/pkgcachegen.cc:714 apt-pkg/pkgcachegen.cc:719
#: apt-pkg/pkgcachegen.cc:842
#: apt-inst/deb/dpkgdb.cc:139 apt-pkg/pkgcachegen.cc:643
#: apt-pkg/pkgcachegen.cc:712 apt-pkg/pkgcachegen.cc:717
#: apt-pkg/pkgcachegen.cc:840
msgid "Reading package lists"
msgstr ""

@@ -2021,27 +2007,18 @@ msgstr ""
msgid "extra"
msgstr ""

#: apt-pkg/depcache.cc:64 apt-pkg/depcache.cc:96
#: apt-pkg/depcache.cc:60 apt-pkg/depcache.cc:89
msgid "Building dependency tree"
msgstr ""

#: apt-pkg/depcache.cc:65
#: apt-pkg/depcache.cc:61
msgid "Candidate versions"
msgstr ""

#: apt-pkg/depcache.cc:97
#: apt-pkg/depcache.cc:90
msgid "Dependency generation"
msgstr ""

#: apt-pkg/depcache.cc:114 apt-pkg/depcache.cc:131 apt-pkg/depcache.cc:134
msgid "Reading extended state information"
msgstr ""

#: apt-pkg/depcache.cc:150
#, c-format
msgid "Failed to write StateFile %s"
msgstr ""

#: apt-pkg/tagfile.cc:73
#, c-format
msgid "Unable to parse package file %s (1)"
@@ -2190,82 +2167,82 @@ msgstr ""
msgid "No priority (or zero) specified for pin"
msgstr ""

#: apt-pkg/pkgcachegen.cc:76
#: apt-pkg/pkgcachegen.cc:74
msgid "Cache has an incompatible versioning system"
msgstr ""

#: apt-pkg/pkgcachegen.cc:119
#: apt-pkg/pkgcachegen.cc:117
#, c-format
msgid "Error occurred while processing %s (NewPackage)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:131
#: apt-pkg/pkgcachegen.cc:129
#, c-format
msgid "Error occurred while processing %s (UsePackage1)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:152
#: apt-pkg/pkgcachegen.cc:150
#, c-format
msgid "Error occurred while processing %s (UsePackage2)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:156
#: apt-pkg/pkgcachegen.cc:154
#, c-format
msgid "Error occurred while processing %s (NewFileVer1)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:186
#: apt-pkg/pkgcachegen.cc:184
#, c-format
msgid "Error occurred while processing %s (NewVersion1)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:190
#: apt-pkg/pkgcachegen.cc:188
#, c-format
msgid "Error occurred while processing %s (UsePackage3)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:194
#: apt-pkg/pkgcachegen.cc:192
#, c-format
msgid "Error occurred while processing %s (NewVersion2)"
msgstr ""

#: apt-pkg/pkgcachegen.cc:209
#: apt-pkg/pkgcachegen.cc:207