From 2bbf3ec9bb4dcaacfc6694c86c0cc82e9ac8f05f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 10 Jun 2009 10:39:28 +0200 Subject: [PATCH] check if upload directory exists on calculate_local_upload_files --- libraries/entropy/server/interfaces/mirrors.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/entropy/server/interfaces/mirrors.py b/libraries/entropy/server/interfaces/mirrors.py index a619f9fc1..fa1d34af4 100644 --- a/libraries/entropy/server/interfaces/mirrors.py +++ b/libraries/entropy/server/interfaces/mirrors.py @@ -2014,6 +2014,10 @@ class Server: upload_dir = os.path.join(self.Entropy.get_local_upload_directory(repo), branch) + # check if it exists + if not os.path.isdir(upload_dir): + return upload_files, upload_packages + pkg_ext = etpConst['packagesext'] pkg_md5_ext = etpConst['packagesmd5fileext'] for package in os.listdir(upload_dir):