From d9ca21d1d1a05a69d85d20b1e9262b3356de64e2 Mon Sep 17 00:00:00 2001
From: Sebastien Luttringer <sebastien.luttringer@smartjog.com>
Date: Thu, 17 Nov 2011 14:05:34 +0100
Subject: [PATCH] check command fail if cwd is not the repository path

compute of real path of images to check integrety was poorly coded. Fix it!
---
 installsystems/repository.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/installsystems/repository.py b/installsystems/repository.py
index fdda664..b939875 100644
--- a/installsystems/repository.py
+++ b/installsystems/repository.py
@@ -248,7 +248,7 @@ class Repository(object):
         # check corruption of local files
         arrow("Checking corrupted files")
         for f in local_files:
-            fo = PipeFile(f)
+            fo = PipeFile(os.path.join(self.config.path, f))
             fo.consume()
             fo.close()
             if fo.md5 != f:
-- 
GitLab