summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeCache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-21 19:45:39 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-21 19:45:39 +0100
commit301765d757df2c0cac9e3cea61ccc842f92fb660 (patch)
tree5041715d1a26fcb713bd4d5e36929a33c1a184e7 /DistUpgrade/DistUpgradeCache.py
parent619c7f8d10780f5c088eddd3f9bc5cd7b6ec5d84 (diff)
downloadpython-apt-301765d757df2c0cac9e3cea61ccc842f92fb660.tar.gz
* write the log to /var/log/dist-upgrade*
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
-rw-r--r--DistUpgrade/DistUpgradeCache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index ab7e24a4..1711ef1b 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -19,7 +19,7 @@ class MyCache(apt.Cache):
# turn on debuging
apt_pkg.Config.Set("Debug::pkgProblemResolver","true")
- fd = os.open(os.path.expanduser("~/dist-upgrade-apt.log"), os.O_RDWR|os.O_CREAT|os.O_TRUNC)
+ fd = os.open("/var/log/dist-upgrade-apt.log", os.O_RDWR|os.O_CREAT|os.O_TRUNC)
os.dup2(fd,1)
os.dup2(fd,2)