Skip to content

Debian: apt update not working - #91

Merged
gvatsal60 merged 1 commit into
masterfrom
fic/update_not_working
Sep 19, 2025
Merged

gvatsal60 merged 1 commit into
masterfrom
fic/update_not_working

Conversation

@gvatsal60

Copy link
Copy Markdown
Owner

This pull request makes a minor fix to the logic that checks for the presence of apt package lists on Debian-based systems in the .update.sh script.

  • Corrected the find command in the update_os_pkg() function to use /var/lib/apt/lists/* instead of /var/lib/apt/lists/, ensuring it accurately counts files when checking if the apt package lists are present.

@gvatsal60
gvatsal60 requested a review from Copilot September 19, 2025 11:43
@gvatsal60 gvatsal60 self-assigned this Sep 19, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Fix logic in Debian apt lists presence check to ensure apt update runs when package lists are missing.

  • Switch currently changes find path from directory to a glob, which alters the search semantics.
  • Ensure the check accurately counts only top-level list files in /var/lib/apt/lists.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .update.sh
@gvatsal60
gvatsal60 merged commit 961534b into master Sep 19, 2025
8 checks passed
@gvatsal60
gvatsal60 deleted the fic/update_not_working branch September 19, 2025 11:45
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