]> git.saurik.com Git - apt.git/commitdiff
fix two typos in untranslated errors of libapt-pkg
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 24 May 2016 08:40:22 +0000 (10:40 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 24 May 2016 08:46:48 +0000 (10:46 +0200)
Reported-By: lintian: spelling-error-in-binary
Git-Dch: Ignore

apt-pkg/acquire-item.cc
apt-pkg/deb/dpkgpm.cc

index 8c45acdddb9c2117dc4461849c9124c4353ade7e..699c306035dc937af7ce04c3384c233569df3eba 100644 (file)
@@ -956,7 +956,7 @@ void pkgAcqMetaBase::AbortTransaction()
    {
       case TransactionStarted: break;
       case TransactionAbort: _error->Fatal("Transaction %s was already aborted and is aborted again", TransactionManager->Target.URI.c_str()); return;
-      case TransactionCommit: _error->Fatal("Transaction %s was already aborted and is now commited", TransactionManager->Target.URI.c_str()); return;
+      case TransactionCommit: _error->Fatal("Transaction %s was already aborted and is now committed", TransactionManager->Target.URI.c_str()); return;
    }
    TransactionManager->State = TransactionAbort;
 
@@ -998,8 +998,8 @@ void pkgAcqMetaBase::CommitTransaction()
    switch (TransactionManager->State)
    {
       case TransactionStarted: break;
-      case TransactionAbort: _error->Fatal("Transaction %s was already commited and is now aborted", TransactionManager->Target.URI.c_str()); return;
-      case TransactionCommit: _error->Fatal("Transaction %s was already commited and is again commited", TransactionManager->Target.URI.c_str()); return;
+      case TransactionAbort: _error->Fatal("Transaction %s was already committed and is now aborted", TransactionManager->Target.URI.c_str()); return;
+      case TransactionCommit: _error->Fatal("Transaction %s was already committed and is again committed", TransactionManager->Target.URI.c_str()); return;
    }
    TransactionManager->State = TransactionCommit;
 
index 76a81bb3314e895e82096f01a7f3a1886786fde2..4a77942f169c711040e50c1fbf59ec0bc894798b 100644 (file)
@@ -477,7 +477,7 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf)
       close(Pipes[0]);
       FILE *F = fdopen(Pipes[1],"w");
       if (F == 0) {
-         result = _error->Errno("fdopen","Faild to open new FD");
+         result = _error->Errno("fdopen","Failed to open new FD");
          break;
       }