commit 27e953afc31a3745e83c923fe2727b626ebe1792
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Tue Oct 2 16:56:44 2012 +0200
Fix wrong path resolution
In case when the recipe path was specified with prefix './' or none at
all, the root was incorrectly resolved to an empty string causing further
errors in path resolution.
To fix this the supplied recipe file path is converted to absolute path.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Common/RecipePath.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Common/RecipePath.py b/Common/RecipePath.py
index b5f650c..60d035d 100644
--- a/Common/RecipePath.py
+++ b/Common/RecipePath.py
@@ -20,7 +20,7 @@ def get_recipepath_class(root, path):
return HttpRecipePath(root, path)
else:
if os.access(path, os.R_OK):
- return FileRecipePath(root, path)
+ return FileRecipePath(None, os.path.realpath(path))
else:
raise Exception("Recipe path does not exist \"%s\"!"
% path)
Show replies by date