From 9e30b8a4c70b8978247f1dded66db8c43d86e22a Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Mon, 27 Jun 2011 12:43:38 +0200
Subject: [PATCH] Fix downloading of all payloads to compute md5 when it's not
 needed

---
 installsystems/image.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/installsystems/image.py b/installsystems/image.py
index 3f85703..3bf16ea 100644
--- a/installsystems/image.py
+++ b/installsystems/image.py
@@ -453,7 +453,8 @@ class Payload(object):
             setattr(self, attr, None)
         # set all named param
         for kwarg in kwargs:
-            if hasattr(self, kwarg):
+            # do not use hasattr which user getattr and so call md5 checksum...
+            if kwarg in self.legit_attr:
                 setattr(self, kwarg, kwargs[kwarg])
 
     def __getattr__(self, name):
-- 
GitLab