From 4af21fc144e3ba5df45a6812438ea66a1f96e1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Wed, 19 Jun 2013 19:56:00 +0200 Subject: [PATCH] Doesn't display UUID for repository v1 --- installsystems/repository.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/installsystems/repository.py b/installsystems/repository.py index e9b2da3..275693a 100644 --- a/installsystems/repository.py +++ b/installsystems/repository.py @@ -643,12 +643,9 @@ class Repository_v1(Repository): @property def uuid(self): ''' - Return repository UUID + Repository v1 doesn't support UUID ''' - # repository v1 don't have UUID, generate one with repository url - # encode in ascii for hash digest - return str(uuid.uuid5(uuid.NAMESPACE_URL, - self.config.path.encode('ascii'))) + return None def images(self): ''' @@ -1100,7 +1097,7 @@ class RepositoryManager(object): if not repo["offline"]: if o_version: ln += u" (#p#v%s#R#)" % repo["version"] - if o_uuid: + if o_uuid and repo["uuid"] is not None: ln += u" [%s]" % repo["uuid"] l.append(ln) s = os.linesep.join(l) -- GitLab