diff options
author | Michael Vogt <mvo@debian.org> | 2013-10-14 08:42:48 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-10-14 08:42:48 +0200 |
commit | 5e9458e285af11c7fa4308add10d250e3546c8bf (patch) | |
tree | a3c62859aa031737cb8d7487ca8d742bcd2cba87 /apt-private/private-install.cc | |
parent | a22fdebf63a42026e4350ebd069512c797bc2a5b (diff) | |
download | apt-5e9458e285af11c7fa4308add10d250e3546c8bf.tar.gz |
re-add APT::Keep-Fds:: for the dpkg status-fd in dpkgpm.cc as we always need this
Diffstat (limited to 'apt-private/private-install.cc')
-rw-r--r-- | apt-private/private-install.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index d1066c86..8d72faec 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -104,12 +104,14 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety) if (_config->FindB("APT::Get::Simulate") == true) { pkgSimulate PM(Cache); + int status_fd = _config->FindI("APT::Status-Fd",-1); APT::Progress::PackageManager *progress = NULL; if (status_fd > 0) progress = new APT::Progress::PackageManagerProgressFd(status_fd); pkgPackageManager::OrderResult Res = PM.DoInstall(progress); delete progress; + if (Res == pkgPackageManager::Failed) return false; if (Res != pkgPackageManager::Completed) @@ -341,6 +343,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety) // FIXME: make this a factory // select the right progress int status_fd = _config->FindI("APT::Status-Fd",-1); + APT::Progress::PackageManager *progress = NULL; if (status_fd > 0) progress = new APT::Progress::PackageManagerProgressFd(status_fd); |