diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-21 19:45:39 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-21 19:45:39 +0100 |
| commit | 301765d757df2c0cac9e3cea61ccc842f92fb660 (patch) | |
| tree | 5041715d1a26fcb713bd4d5e36929a33c1a184e7 /DistUpgrade | |
| parent | 619c7f8d10780f5c088eddd3f9bc5cd7b6ec5d84 (diff) | |
| download | python-apt-301765d757df2c0cac9e3cea61ccc842f92fb660.tar.gz | |
* write the log to /var/log/dist-upgrade*
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 2 | ||||
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 2 | ||||
| -rwxr-xr-x | DistUpgrade/dist-upgrade.py | 2 |
3 files changed, 3 insertions, 3 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) diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 9bd55d24..3697a49e 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -235,7 +235,7 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp): self._term.set_font_from_string("monospace 10") self._term.connect("contents-changed", self._term_content_changed) self._terminal_lines = [] - self._terminal_log = open(os.path.expanduser("~/dist-upgrade-term.log"),"w") + self._terminal_log = open("/var/log/dist-upgrade-term.log","w") return self._term def _term_content_changed(self, term): " called when the *visible* part of the terminal changes " diff --git a/DistUpgrade/dist-upgrade.py b/DistUpgrade/dist-upgrade.py index 437be42d..632de54d 100755 --- a/DistUpgrade/dist-upgrade.py +++ b/DistUpgrade/dist-upgrade.py @@ -9,7 +9,7 @@ import sys if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG, - filename=os.path.expanduser("~/dist-upgrade.log"), + filename="/var/log/dist-upgrade.log", format='%(asctime)s %(levelname)s %(message)s', filemode='w') |
