X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=e31ebbf7af2ff301b1201ba278c2d584b37e2c4e;hb=94b3a1696099ae39eb19a176e5d2869d29365314;hp=86396832e741e864fb8355ce976d06927235efd6;hpb=55a4e729db84095b12a67974092216be09ea384c;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 86396832..e31ebbf7 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -71,9 +71,9 @@ 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): - umask = os.umask(00000) - os.makedirs(self.log_dir, 02775) + if not os.path.exists(self.log_dir) or not os.access(self.log_dir, 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 self.log_filename = "%s/.install-urgencies-%s.new" % (self.log_dir, self.timestamp) self.log_file = daklib.utils.open_file(self.log_filename, 'w')