Skip to content

Commit

Permalink
chore: remove newline in deb822 template
Browse files Browse the repository at this point in the history
newlines indicate new stanzas, there is no need to confuse python3-apt

Signed-off-by: Renan Rodrigo <[email protected]>
  • Loading branch information
renanrodrigo authored and orndorffgrant committed Jan 16, 2024
1 parent 02f9377 commit 086f8de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion uaclient/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

DEB822_REPO_FILE_CONTENT = """\
# Written by ubuntu-advantage-tools
Types: deb{deb_src}
URIs: {url}
Suites: {suites}
Expand Down
3 changes: 0 additions & 3 deletions uaclient/tests/test_apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 086f8de

Please sign in to comment.