]> err.no Git - dak/commitdiff
That much for trusting an example - which assumed stuff like "import * from os" or...
authorJoerg Jaspert <joerg@debian.org>
Sun, 27 Apr 2008 21:15:20 +0000 (23:15 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 27 Apr 2008 21:15:20 +0000 (23:15 +0200)
dak/process_accepted.py

index e31ebbf7af2ff301b1201ba278c2d584b37e2c4e..27fca96f1e242e57b731fff4f1eeb17435dd09c3 100755 (executable)
@@ -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