]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
remove the unused Die boolean - error reporting is done by ExecWait
[apt.git] / apt-pkg / deb / dpkgpm.cc
index 9f0da3be61a3c695b0242244cfb65326a638981e..95a3f173b587e064f3055a22fdb5dd00b0f81349 100644 (file)
@@ -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<Item>::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);