From: David Kalnischkies Date: Wed, 12 Jan 2011 22:31:37 +0000 (+0100) Subject: remove the unused Die boolean - error reporting is done by ExecWait X-Git-Tag: 0.8.11~5^2^2^2~35 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/ed0fe654305469c1f9869f308e2f595ac8bc4c13?hp=-c remove the unused Die boolean - error reporting is done by ExecWait --- ed0fe654305469c1f9869f308e2f595ac8bc4c13 diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 9f0da3be6..95a3f173b 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -322,7 +322,6 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf) return _error->Errno("fdopen","Faild to open new FD"); // Feed it the filenames. - bool Die = false; if (Version <= 1) { for (vector::iterator I = List.begin(); I != List.end(); I++) @@ -339,14 +338,11 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf) into the pipe. */ fprintf(F,"%s\n",I->File.c_str()); if (ferror(F) != 0) - { - Die = true; break; - } } } else - Die = !SendV2Pkgs(F); + SendV2Pkgs(F); fclose(F);