Slipped on the linter.

This commit is contained in:
Carlos Nihelton 2021-11-09 18:30:18 -03:00
parent 7eee081405
commit a1fd0615f8
1 changed files with 3 additions and 3 deletions

View File

@ -159,14 +159,14 @@ class ConfigureController(SubiquityController):
os.makedirs(packs_dir, exist_ok=True) os.makedirs(packs_dir, exist_ok=True)
try: try:
for package in packages: for package in packages:
# Just write the package uri to a file instead of installing. # Just write the package uri to a file.
archive = os.path.join(packs_dir, cache[package].fullname) archive = os.path.join(packs_dir, cache[package].fullname)
with open(archive, "wt") as f: with open(archive, "wt") as f:
f.write(cache[package].candidate.uri) f.write(cache[package].candidate.uri)
except IOError: except IOError:
log.error("Failed to write %s file.", archive) log.error("Failed to write %s file.", archive)
return False return False
return True return True
cache.update() cache.update()