Commit 2ec7531e authored by Paweł Szostek's avatar Paweł Szostek

change visibility

parent ba6869dd
......@@ -24,7 +24,7 @@ import msg as p
class IDependable:
def __init__(self):
self.dep_index = 0;
self.__dep_fixed = False;
self._dep_fixed = False;
self.__dep_provides = [];
self.__dep_requires = [];
self.__dep_depends_on = [];
......@@ -32,18 +32,18 @@ class IDependable:
##
#use proxy template here
def get_dep_provides(self):
if self.__dep_fixed == False:
if self._dep_fixed == False:
self.__create_deps()
self.__dep_fixed = True
self._dep_fixed = True
return self.__dep_provides
def set_dep_provides(self, what):
self.__dep_provides = what
dep_provides = property(get_dep_provides, set_dep_provides)
##
def get_dep_requires(self):
if self.__dep_fixed == False:
if self._dep_fixed == False:
self.__create_deps()
self.__dep_fixed = True
self._dep_fixed = True
return self.__dep_provides
def set_dep_requires(self, what):
......@@ -137,7 +137,7 @@ class DependencySolver:
n_iter = n_iter+1
done = True
for f in fset:
if not f.__dep_fixed:
if not f._dep_fixed:
idx = fset.index(f)
k = self.__lookup_post_provider(files=fset, start_index=idx, file=f);
......@@ -152,7 +152,7 @@ class DependencySolver:
return None
for f in fset:
if f.__dep_fixed:
if f._dep_fixed:
f_nondep.append(copy.copy(f))
del f
......@@ -192,11 +192,11 @@ class DependencySolver:
newobj.add(f_nondep);
for f in fset:
try:
if not f.__dep_fixed:
if not f._dep_fixed:
newobj.add(f)
except:
newobj.add(f)
for k in newobj:
p.vprint(str(k.dep_index) + " " + k.path + str(k.__dep_fixed))
p.vprint(str(k.dep_index) + " " + k.path + str(k._dep_fixed))
return newobj
......@@ -114,7 +114,7 @@ class VHDLFile(SourceFile):
def __create_deps(self):
if self.__check_encryption():
self.dep_index = SourceFile.gen_index(self)
self.__dep_fixed = True
self._dep_fixed = True
else:
self.dep_requires = list(self.__search_use_clauses())
self.dep_provides = list(self.__search_packages())
......@@ -248,7 +248,7 @@ class CDCFile(File):
class NGCFile(SourceFile):
def __init__(self, path):
SourceFile.__init__(self, path);
self.__dep_fixed = True
self._dep_fixed = True
class WBGenFile(File):
def __init__(self, path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment