|
|
@@ -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);
|
|
|
|