fix. fix...
This commit is contained in:
+10
-11
@@ -53,24 +53,23 @@ def main():
|
|||||||
print "'%s' dizini yok. Paket build edilmemiş olabilir.." % (install_dir)
|
print "'%s' dizini yok. Paket build edilmemiş olabilir.." % (install_dir)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
unowned_files = []
|
||||||
all_paths_in_packages = []
|
all_paths_in_packages = []
|
||||||
all_files_under_install_dir = []
|
|
||||||
files_already_in_any_package = []
|
files_already_in_any_package = []
|
||||||
|
|
||||||
for package in spec.packages:
|
for package in spec.packages:
|
||||||
for path in package.files:
|
for path in package.files:
|
||||||
all_paths_in_packages.append(util.join_path(install_dir + path.path))
|
all_paths_in_packages.append(util.join_path(install_dir + path.path))
|
||||||
|
|
||||||
for r, d, f in os.walk(install_dir):
|
for root, dirs, files in os.walk(install_dir):
|
||||||
for fi in f:
|
for file_ in files:
|
||||||
all_files_under_install_dir.append(util.join_path(r, fi))
|
already_in_package = False
|
||||||
|
fpath = util.join_path(root, file_)
|
||||||
for file_ in all_files_under_install_dir:
|
for path in all_paths_in_packages:
|
||||||
for path_ in all_paths_in_packages:
|
if not fpath.find(path):
|
||||||
if not file_.find(path_):
|
already_in_package = True
|
||||||
files_already_in_any_package.append(file_)
|
if not already_in_package:
|
||||||
|
unowned_files.append(fpath)
|
||||||
unowned_files = set(all_files_under_install_dir) - set(files_already_in_any_package)
|
|
||||||
|
|
||||||
if unowned_files:
|
if unowned_files:
|
||||||
print
|
print
|
||||||
|
|||||||
Reference in New Issue
Block a user