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 <dktrkranz@debian.org>
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)