We don't need to access it from anywhere else, so it can be
a local variable instead of an object property.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
refresh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/refresh b/refresh
index 8f99042..89c2818 100755
--- a/refresh
+++ b/refresh
@@ -64,11 +64,12 @@ class Dockerfile:
stem = path.stem[len(Dockerfile.PREFIX):]
self.projects = []
+ project_name = None
for project in Dockerfile.PROJECTS:
if stem.rfind(project + "-") >= 0:
- self.project_name = project
- stem = stem[len(self.project_name) + 1:]
+ project_name = project
+ stem = stem[len(project_name) + 1:]
for subproject in Dockerfile.PROJECTS[project]:
self.projects += [subproject]
break
@@ -97,7 +98,7 @@ class Dockerfile:
if self.os == "fedora-rawhide":
mingw_projects = []
for subproject in self.projects:
- if Dockerfile.PROJECTS[self.project_name][subproject]:
+ if Dockerfile.PROJECTS[project_name][subproject]:
mingw_projects += [subproject + "+mingw*"]
self.projects += mingw_projects
--
2.21.0