summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index 46621869..38b27fba 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -31,17 +31,17 @@ tails_build_manifest_to_deb822() {
ALL_PKGS=$(python3 - "$tmpfile" <<EOF
import sys
import yaml
-with open(sys.argv[1]) as fd:
- manifest = yaml.load(fd)
- seen = set()
- try:
+try:
+ with open(sys.argv[1]) as fd:
+ manifest = yaml.load(fd)
+ seen = set()
for pkg in (manifest['packages']['binary'] + manifest['packages']['source']):
pkgname = pkg['package']
if pkgname not in seen:
print(pkgname, end='|')
seen.add(pkgname)
- except Exception as exc:
- print("Warning: something went wrong while parsing the build manifest as YAML file: {}".format(exc))
+except Exception as exc:
+ print("Warning: something went wrong while parsing the build manifest as YAML file: {}".format(exc))
EOF
)