From 8981f9be71ba00c2f00b911de63e2ad9e4e33d25 Mon Sep 17 00:00:00 2001 From: Meet Gandhi Date: Sat, 30 Nov 2024 09:55:31 +0530 Subject: [PATCH] Update Debian Compatibility Level This commit updates the Debian compatibility level to adhere to the recommendations outlined in the Debian documentation: https://www.debian.org/doc/manuals/maint-guide/dother.en.html#compat This change resolves the following warning generated by debhelper: ```text dh: warning: Compatibility levels before 10 are deprecated (level 9 in use) ``` Additionally, the conditional value for Ubuntu Oneiric has been removed, as the latest version no longer requires it. Signed-off-by: Meet Gandhi --- bloom/generators/debian/generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bloom/generators/debian/generator.py b/bloom/generators/debian/generator.py index e78c08b8..0f9611a1 100644 --- a/bloom/generators/debian/generator.py +++ b/bloom/generators/debian/generator.py @@ -462,8 +462,9 @@ def generate_substitutions_from_package( if not maybe_continue('n', 'Continue anyways'): sys.exit("User quit.") data['changelogs'] = changelogs - # Use debhelper version 7 for oneric, otherwise 9 - data['debhelper_version'] = 7 if os_version in ['oneiric'] else 9 + # Use compat version 10 as recommended by debian + # https://www.debian.org/doc/manuals/maint-guide/dother.en.html#compat + data['debhelper_version'] = 10 # Summarize dependencies summarize_dependency_mapping(data, depends, build_depends, resolved_deps) # Copyright