|
|
@ -51,14 +51,14 @@ def validate_install(srcdir, installdir): |
|
|
|
if platform.system() == 'Windows': |
|
|
|
if platform.system() == 'Windows': |
|
|
|
# Don't really know how Windows installs should work |
|
|
|
# Don't really know how Windows installs should work |
|
|
|
# so skip. |
|
|
|
# so skip. |
|
|
|
return |
|
|
|
return '' |
|
|
|
info_file = os.path.join(srcdir, 'installed_files.txt') |
|
|
|
info_file = os.path.join(srcdir, 'installed_files.txt') |
|
|
|
expected = {} |
|
|
|
expected = {} |
|
|
|
found = {} |
|
|
|
found = {} |
|
|
|
if os.path.exists(info_file): |
|
|
|
if os.path.exists(info_file): |
|
|
|
for line in open(info_file): |
|
|
|
for line in open(info_file): |
|
|
|
expected[platform_fix_filename(line.strip())] = True |
|
|
|
expected[platform_fix_filename(line.strip())] = True |
|
|
|
for root, dirs, files in os.walk(installdir): |
|
|
|
for root, _, files in os.walk(installdir): |
|
|
|
for fname in files: |
|
|
|
for fname in files: |
|
|
|
found_name = os.path.join(root, fname)[len(installdir)+1:] |
|
|
|
found_name = os.path.join(root, fname)[len(installdir)+1:] |
|
|
|
found[found_name] = True |
|
|
|
found[found_name] = True |
|
|
|