From b1d0c40153d11346c3901d851c19c47b100d80b1 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 19 Nov 2013 16:55:19 +0100 Subject: [PATCH] [entropy.server.interfaces.db] do not pull packages.db.light.bz2 There is no need to download this particular file because it will be re-created from scratch by push. --- lib/entropy/server/interfaces/db.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lib/entropy/server/interfaces/db.py b/lib/entropy/server/interfaces/db.py index 1813a69c1..929e63927 100644 --- a/lib/entropy/server/interfaces/db.py +++ b/lib/entropy/server/interfaces/db.py @@ -637,11 +637,13 @@ class ServerPackagesRepositoryUpdater(object): critical.append(data['compressed_database_path']) gpg_signed_files.append(data['compressed_database_path']) - data['compressed_database_path_light'] = os.path.join( - self._entropy._get_local_repository_dir(self._repository_id), - etpConst[cmethod[7]]) - critical.append(data['compressed_database_path_light']) - gpg_signed_files.append(data['compressed_database_path_light']) + if not download: + data['compressed_database_path_light'] = os.path.join( + self._entropy._get_local_repository_dir( + self._repository_id), + etpConst[cmethod[7]]) + critical.append(data['compressed_database_path_light']) + gpg_signed_files.append(data['compressed_database_path_light']) data['database_path_digest'] = os.path.join( self._entropy._get_local_repository_dir(self._repository_id), @@ -657,13 +659,15 @@ class ServerPackagesRepositoryUpdater(object): critical.append(data['compressed_database_path_digest']) gpg_signed_files.append(data['compressed_database_path_digest']) - data['compressed_database_path_digest_light'] = os.path.join( - self._entropy._get_local_repository_dir(self._repository_id), - etpConst[cmethod[8]] - ) - critical.append(data['compressed_database_path_digest_light']) - gpg_signed_files.append( - data['compressed_database_path_digest_light']) + if not download: + data['compressed_database_path_digest_light'] = os.path.join( + self._entropy._get_local_repository_dir( + self._repository_id), + etpConst[cmethod[8]] + ) + critical.append(data['compressed_database_path_digest_light']) + gpg_signed_files.append( + data['compressed_database_path_digest_light']) # Some information regarding how packages are built spm_files_map = self._entropy.Spm_class().config_files_map()