summaryrefslogtreecommitdiff
path: root/apt-pkg/packagemanager.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-14 15:28:14 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-14 15:28:14 +0200
commit1d6386f35066c1cc3c053f94fccf379d86075eac (patch)
tree5a19779608a9c90acca3b59a4b52f650ff779c96 /apt-pkg/packagemanager.h
parent9efa2e916d134e5960351cc3b67f4556ec4b2126 (diff)
downloadapt-1d6386f35066c1cc3c053f94fccf379d86075eac.tar.gz
* apt-pkg/packagemanager.{cc,h}:
- move DoInstallPostFork() out of the header into the .cc file
Diffstat (limited to 'apt-pkg/packagemanager.h')
-rw-r--r--apt-pkg/packagemanager.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h
index adcbec3d..53cd4c96 100644
--- a/apt-pkg/packagemanager.h
+++ b/apt-pkg/packagemanager.h
@@ -90,20 +90,7 @@ class pkgPackageManager : protected pkgCache::Namespace
};
// stuff that needs to be done after the fork
- OrderResult DoInstallPostFork(int statusFd=-1) {
- if(statusFd > 0)
- SetCloseExec(statusFd, true);
- bool goResult = Go(statusFd);
- if(goResult == false)
- return Failed;
-
- // if all was fine update the state file
- if(Res == Completed) {
- Cache.writeStateFile(NULL);
- }
- return Res;
- };
-
+ OrderResult DoInstallPostFork(int statusFd=-1);
bool FixMissing();
pkgPackageManager(pkgDepCache *Cache);