From 7de170d4c4e553e59d15fa8444fa025df3bef2c6 Mon Sep 17 00:00:00 2001
From: Joerg Jaspert <joerg@debian.org>
Date: Sun, 27 Apr 2008 23:15:20 +0200
Subject: [PATCH] That much for trusting an example - which assumed stuff like
 "import * from os" or similar

---
 dak/process_accepted.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dak/process_accepted.py b/dak/process_accepted.py
index e31ebbf7..27fca96f 100755
--- a/dak/process_accepted.py
+++ b/dak/process_accepted.py
@@ -71,7 +71,7 @@ class Urgency_Log:
         self.timestamp = time.strftime("%Y%m%d%H%M%S")
         # Create the log directory if it doesn't exist
         self.log_dir = Cnf["Dir::UrgencyLog"]
-        if not os.path.exists(self.log_dir) or not os.access(self.log_dir, W_OK):
+        if not os.path.exists(self.log_dir) or not os.access(self.log_dir, os.W_OK):
             daklib.utils.warn("UrgencyLog directory %s does not exist or is not writeable, using /srv/ftp.debian.org/tmp/ instead" % (self.log_dir))
             self.log_dir = '/srv/ftp.debian.org/tmp/'
         # Open the logfile
-- 
2.39.5