val = PARTITIONS["root"]
val = PARTITIONS["swap"]
val = PARTITIONS["vservers"]
- except KeyError, part:
+ except KeyError as part:
log.write("Missing partition in PARTITIONS: {}\n".format(part))
return 0
# Download SHA1 checksum file
log.write("downloading sha1sum for {}\n".format(source_file))
result = bs_request.DownloadFile(source_hash_file, None, None,
- 1, 1, dest_hash_file,
- 30, 14400)
+ 1, 1, dest_hash_file,
+ 30, 14400)
log.write("verifying sha1sum for {}\n".format(source_file))
if not utils.check_file_hash(dest_file, dest_hash_file):
raise BootManagerException(
"FATAL: Unable to download main tarball {} from server."\
.format(source_file))
- # for extensions, just print a warning
+ # for extensions, just issue a warning
else:
log.write("WARNING: tarball for extension {} not found\n".format(name))