Skip to content

Commit

Permalink
trivial: Make flake8 & pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Dec 22, 2023
1 parent 12ef7c9 commit 225d37e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions debspawn/dsrun
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ def prepare_package_build(arch_only=False, suite=None):
os.chdir(EXTRAPKG_DIR)
with open(packages_index_fname, 'wt') as f:
proc = subprocess.Popen(['apt-ftparchive',
'packages',
'.'],
'packages',
'.'],
cwd=EXTRAPKG_DIR,
stdout=f)
ret = proc.wait()
if ret != 0:
print('ERROR: Unable to generate temporary APT repository for injected packages.',
file=sys.stderr)
file=sys.stderr)
sys.exit(2)

with open(os.path.join(EXTRAPKG_DIR, 'Release'), 'wt') as f:
Expand Down
2 changes: 1 addition & 1 deletion debspawn/osbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def _setup_apt_repo_preferences(self, instance_dir, preferred_suites):
f.write(('Package: *\n' 'Pin: release a={}\n' 'Pin-Priority: {}\n').format(suite, priority))

# we *always* prefer locally injected packages above anything else
f.write(('\n' 'Package: *\n' 'Pin: release o=LocalPkg\n' 'Pin-Priority: 1000\n'))
f.write('\nPackage: *\nPin: release o=LocalPkg\nPin-Priority: 1000\n')

def _create_internal(
self,
Expand Down

0 comments on commit 225d37e

Please sign in to comment.