From 27d3313807296c3943a96ceef8c2b7279cb56962 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 19:39:59 +0200 Subject: Adding debian version 6.7.7-1. Signed-off-by: Daniel Baumann --- debian/bin/getconfig.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 debian/bin/getconfig.py (limited to 'debian/bin/getconfig.py') diff --git a/debian/bin/getconfig.py b/debian/bin/getconfig.py deleted file mode 100755 index b719a17a12..0000000000 --- a/debian/bin/getconfig.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python3 - -import sys - -from debian_linux.config import ConfigCoreDump - -section = tuple(s or None for s in sys.argv[1:-1]) -key = sys.argv[-1] -config = ConfigCoreDump(fp=open("debian/config.defines.dump", "rb")) -try: - value = config[section][key] -except KeyError: - sys.exit(1) - -if isinstance(value, str): - # Don't iterate over it - print(value) -else: - # In case it's a sequence, try printing each item - try: - for item in value: - print(item) - except TypeError: - # Otherwise use the default format - print(value) -- cgit v1.2.3