From: Luca Falavigna Date: Sat, 21 Nov 2009 10:23:20 +0000 (+0000) Subject: daklib/holding.py: X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4402aa753711aa4e9077486b60553f62220aa98d;p=dak.git daklib/holding.py: ftptrainees don't have write permissions to holding directory, so allow them to store packages to be reviewed into TempPath. Signed-off-by: Luca Falavigna --- diff --git a/daklib/holding.py b/daklib/holding.py index b637738a..79d5ef71 100644 --- a/daklib/holding.py +++ b/daklib/holding.py @@ -46,6 +46,9 @@ class Holding(object): self.in_holding = {} self.holding_dir = Config()["Dir::Queue::Holding"] + # ftptrainees haven't access to holding, use a temp directory instead + if not os.access(self.holding_dir, os.W_OK): + self.holding_dir = Config()["TempPath::TempPath"] def copy_to_holding(self, filename): base_filename = os.path.basename(filename)