summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-08-03 14:56:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-08-03 14:56:41 +0200
commitb7f9f8fc3c7dc452e457bfd8ba51b198b6c29960 (patch)
treedf5a3a2c2398045898fccf45a56969eec0b8ca0d
parent4aaa50a3f7baace5119277674add9e28be32e6bd (diff)
parent608c766dc110493b952a615c3eb82c3cf3ed8b90 (diff)
* merged from dpkg-log branch
-rw-r--r--apt-pkg/deb/dpkgpm.cc6
-rw-r--r--apt-pkg/init.cc2
2 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index aa840f85e..94215197c 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -843,12 +843,14 @@ bool pkgDPkgPM::Go(int OutStatusFd)
if(stopOnError)
{
- fclose(term_out);
+ if(term_out)
+ fclose(term_out);
return false;
}
}
}
- fclose(term_out);
+ if(term_out)
+ fclose(term_out);
if (RunScripts("DPkg::Post-Invoke") == false)
return false;
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index 0aff882b6..676b66d38 100644
--- a/apt-pkg/init.cc
+++ b/apt-pkg/init.cc
@@ -71,7 +71,7 @@ bool pkgInitConfig(Configuration &Cnf)
// State
Cnf.Set("Dir::Log","var/log/apt");
- Cnf.Set("Dir::Log::Name","term.log");
+ Cnf.Set("Dir::Log::Terminal","term.log");
bool Res = true;