]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
handle a SIGINT in all modes as a break after the currently running
[apt.git] / apt-pkg / deb / dpkgpm.cc
index 499c3db8a5b0c2f35900f8e59cd5191d51838f7f..8aea2e1c8fd93717df3bfbd7bf43db717ac26616 100644 (file)
@@ -860,6 +860,8 @@ static int racy_pselect(int nfds, fd_set *readfds, fd_set *writefds,
 */
 bool pkgDPkgPM::Go(int OutStatusFd)
 {
+   pkgPackageManager::SigINTStop = false;
+
    // Generate the base argument list for dpkg
    std::vector<const char *> Args;
    unsigned long StartSize = 0;
@@ -1429,9 +1431,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
 }
 
 void SigINT(int sig) {
-   if (_config->FindB("APT::Immediate-Configure-All",false)) 
-      pkgPackageManager::SigINTStop = true;
-} 
+   pkgPackageManager::SigINTStop = true;
+}
                                                                        /*}}}*/
 // pkgDpkgPM::Reset - Dump the contents of the command list            /*{{{*/
 // ---------------------------------------------------------------------