commit 918daf7e7007633927783672d56742fdddc493af
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Apr 21 15:10:43 2015 +0200
Fix "Undefined variable 'directory'" error
Found with pylint. Changed variable directory to filepath, as it should be.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Common/Utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Common/Utils.py b/lnst/Common/Utils.py
index 210dbeb..38aa48b 100644
--- a/lnst/Common/Utils.py
+++ b/lnst/Common/Utils.py
@@ -139,7 +139,7 @@ def has_changed_since(filepath, threshold):
if os.path.isfile(filepath):
return _is_newer_than(filepath, threshold)
- for root, dirs, files in os.walk(directory):
+ for root, dirs, files in os.walk(filepath):
for f in files:
if _is_newer_than(f, threshold):
return False