782 |
print >>sys.stderr, "ERROR: Cannot determine source file (for hash check)!" |
print >>sys.stderr, "ERROR: Cannot determine source file (for hash check)!" |
783 |
sys.stderr(1) |
sys.stderr(1) |
784 |
|
|
785 |
|
# If there are multiple sources, try to see if there is a preferred name |
786 |
|
# --> needed for metacity hash check (multiple tarball sources) |
787 |
|
if len(sources) > 1: |
788 |
|
preferred_name = '%s-%s.tar.xz' % (package, options.version) |
789 |
|
if preferred_name in sources: |
790 |
|
sources = [preferred_name] |
791 |
|
|
792 |
for filename in sources: |
for filename in sources: |
793 |
path = os.path.join(cwd, "SOURCES", filename) |
path = os.path.join(cwd, "SOURCES", filename) |
794 |
if not is_valid_hash(path, options.algo, options.hexdigest): |
if not is_valid_hash(path, options.algo, options.hexdigest): |