From 86132cec99139f9331752c27e342411aee50c611 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer <sebastien.luttringer@smartjog.com> Date: Thu, 15 Dec 2011 12:59:00 +0100 Subject: [PATCH] remove one check of image and payloads when adding to repo --- installsystems/repository.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/installsystems/repository.py b/installsystems/repository.py index 80fe9a5..dcd0035 100644 --- a/installsystems/repository.py +++ b/installsystems/repository.py @@ -161,8 +161,6 @@ class Repository(object): # cannot add already existant image if self.has(image.name, image.version): raise Exception("Image already in database, delete first!") - # checking data tarballs md5 before copy - image.check("Check image and payload before copy") # adding file to repository arrow("Copying images and payload") for obj in [ image ] + image.payload.values(): @@ -185,7 +183,7 @@ class Repository(object): # checking must be done with original md5 r_image.md5 = image.md5 # checking image and payload after copy - r_image.check("Check image and payload after copy") + r_image.check("Check image and payload") # add description to db arrow("Adding metadata") self.db.begin() -- GitLab