Skip to content

apt_dpkg: simplify _fetch_contents_file#578

Merged
bdrung merged 1 commit intocanonical:mainfrom
bdrung:simplify_fetch_contents_file
Apr 24, 2026
Merged

apt_dpkg: simplify _fetch_contents_file#578
bdrung merged 1 commit intocanonical:mainfrom
bdrung:simplify_fetch_contents_file

Conversation

@bdrung
Copy link
Copy Markdown
Member

@bdrung bdrung commented Apr 20, 2026

Simplify _fetch_contents_file by removing the update variable and exit early in case there is no update needed.

@bdrung bdrung mentioned this pull request Apr 20, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.46%. Comparing base (0ca22df) to head (c1fba5d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
apport/packaging_impl/apt_dpkg.py 83.33% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #578   +/-   ##
=======================================
  Coverage   84.45%   84.46%           
=======================================
  Files         104      104           
  Lines       20939    20936    -3     
  Branches     3212     3212           
=======================================
- Hits        17685    17683    -2     
  Misses       2814     2814           
+ Partials      440      439    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@Hyask Hyask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unified diff is a bit confusing, but the split one made much more sense. Maybe it's just my brain being fried. Anyway, looks good, and welcome change, thanks!

@bdrung
Copy link
Copy Markdown
Member Author

bdrung commented Apr 24, 2026

The unified diff is harder to read because of the additional indentation change. So you are not alone.

Simplify `_fetch_contents_file` by removing the `update` variable and
exit early in case there is no update needed.
@bdrung bdrung force-pushed the simplify_fetch_contents_file branch from f76fcaf to c1fba5d Compare April 24, 2026 12:10
@bdrung
Copy link
Copy Markdown
Member Author

bdrung commented Apr 24, 2026

Just rebased.

@bdrung bdrung merged commit c1fba5d into canonical:main Apr 24, 2026
18 of 19 checks passed
@bdrung bdrung deleted the simplify_fetch_contents_file branch April 24, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants