[entropy.server] do not upload signature.asc twice

This commit is contained in:
Fabio Erculiani
2009-12-31 11:42:08 +01:00
parent bf3d165d4f
commit 47b650bd5f

View File

@@ -1511,15 +1511,9 @@ class Server:
if gpg_item_id in upload_data:
raise KeyError("wtf!")
sign_path = repo_sec.sign_file(repo, item_path)
gpg_upload_data[gpg_item_id] = sign_path
gpg_upload_data[gpg_item_id] = sign_path
upload_data.update(gpg_upload_data)
# also add GPG key to upload_data
gpg_path = self.__write_gpg_pubkey(repo_sec, repo)
if 'gpg_signature' in upload_data:
raise KeyError("cannot add gpg_signature to upload_data")
upload_data['gpg_signature'] = gpg_path
def mirror_lock_check(self, uri, repo = None):
"""
Return whether mirror is locked.