瀏覽代碼

remove the unused Die boolean - error reporting is done by ExecWait

David Kalnischkies 15 年之前
父節點
當前提交
ed0fe65430
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      apt-pkg/deb/dpkgpm.cc

+ 1 - 5
apt-pkg/deb/dpkgpm.cc

@@ -322,7 +322,6 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf)
 	 return _error->Errno("fdopen","Faild to open new FD");
 	 return _error->Errno("fdopen","Faild to open new FD");
       
       
       // Feed it the filenames.
       // Feed it the filenames.
-      bool Die = false;
       if (Version <= 1)
       if (Version <= 1)
       {
       {
 	 for (vector<Item>::iterator I = List.begin(); I != List.end(); I++)
 	 for (vector<Item>::iterator I = List.begin(); I != List.end(); I++)
@@ -339,14 +338,11 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf)
 	       into the pipe. */
 	       into the pipe. */
 	    fprintf(F,"%s\n",I->File.c_str());
 	    fprintf(F,"%s\n",I->File.c_str());
 	    if (ferror(F) != 0)
 	    if (ferror(F) != 0)
-	    {
-	       Die = true;
 	       break;
 	       break;
-	    }
 	 }
 	 }
       }
       }
       else
       else
-	 Die = !SendV2Pkgs(F);
+	 SendV2Pkgs(F);
 
 
       fclose(F);
       fclose(F);