From 1dccec8316b11eaadc91b2c824d0d05973858c99 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 2 Jul 2019 16:02:25 +0100 Subject: [PATCH] build: Only log versions of packages that we didn't have to download Signed-off-by: Simon McVittie <smcv@collabora.com> --- build-relocatable-install.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-relocatable-install.py b/build-relocatable-install.py index d283a7dc2..f39b5dfd0 100755 --- a/build-relocatable-install.py +++ b/build-relocatable-install.py @@ -336,7 +336,7 @@ def main(): ) source_to_download = set() # type: typing.Set[str] - binaries = set() # type: typing.Set[str] + installed_binaries = set() # type: typing.Set[str] for package, source in ( list(DEPENDENCIES.items()) + list(PRIMARY_ARCH_DEPENDENCIES.items()) @@ -344,9 +344,9 @@ def main(): if not args.relocatabledir and source == 'libcapsule': continue - binaries.add(package) - if os.path.exists('/usr/share/doc/{}/copyright'.format(package)): + installed_binaries.add(package) + install( '/usr/share/doc/{}/copyright'.format(package), os.path.join( @@ -387,7 +387,7 @@ def main(): '-W', '-f', r'${binary:Package}\t${Version}\t${Source}\t${Installed-Size}\n', - ] + sorted(binaries), stdout=writer) + ] + sorted(installed_binaries), stdout=writer) with open( os.path.join(destdir_prefix, 'metadata', 'VERSION.txt'), -- GitLab