From 086f8de34d35ffec964d1d4dcc3d150c0dc6a7e9 Mon Sep 17 00:00:00 2001 From: Renan Rodrigo Date: Tue, 16 Jan 2024 16:23:05 -0300 Subject: [PATCH] chore: remove newline in deb822 template newlines indicate new stanzas, there is no need to confuse python3-apt Signed-off-by: Renan Rodrigo --- uaclient/apt.py | 1 - uaclient/tests/test_apt.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/uaclient/apt.py b/uaclient/apt.py index ee8c3912ab..231d80bbe0 100644 --- a/uaclient/apt.py +++ b/uaclient/apt.py @@ -55,7 +55,6 @@ DEB822_REPO_FILE_CONTENT = """\ # Written by ubuntu-advantage-tools - Types: deb{deb_src} URIs: {url} Suites: {suites} diff --git a/uaclient/tests/test_apt.py b/uaclient/tests/test_apt.py index 879a317eb6..d611db9752 100644 --- a/uaclient/tests/test_apt.py +++ b/uaclient/tests/test_apt.py @@ -391,7 +391,6 @@ def test_add_auth_apt_repo_writes_sources_file( else: expected_content = ( "# Written by ubuntu-advantage-tools\n" - "\n" "Types: deb\n" "URIs: http://fakerepo\n" "Suites: {series}\n" @@ -461,7 +460,6 @@ def test_add_auth_apt_repo_ignores_suites_not_matching_series( expected_content = dedent( """\ # Written by ubuntu-advantage-tools - Types: deb URIs: http://fakerepo Suites: {series}-one {series}-updates @@ -524,7 +522,6 @@ def test_add_auth_apt_repo_comments_updates_suites_on_non_update_machine( expected_content = dedent( """\ # Written by ubuntu-advantage-tools - Types: deb URIs: http://fakerepo Suites: {series}-one