Skip to content

fix: few repo adjustments - #1868

Open
Tbaile wants to merge 4 commits into
mainfrom
repo-adjustments
Open

fix: few repo adjustments#1868
Tbaile wants to merge 4 commits into
mainfrom
repo-adjustments

Conversation

@Tbaile

@Tbaile Tbaile commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Tbaile added 3 commits August 6, 2026 09:55
During nightly updates or click on the UI if the custom feeds is in, APK
will use the repos and possible update by error packages from upstream.
This will remove the custom feeds during updates by machine but not
through the bare command `apk`.
@Tbaile
Tbaile requested a review from gsanchietti August 6, 2026 10:15
@gsanchietti
gsanchietti requested a review from m-dilorenzi August 6, 2026 10:18
Comment thread config/utils.conf Outdated
@@ -0,0 +1,2 @@
CONFIG_PACKAGE_nano-full=m

No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove i possible

DISABLED="${CUSTOMFEEDS}.disabled"

exec 9>"$LOCK"
flock 9

@gsanchietti gsanchietti Aug 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why flock is needed?
apk should already handle the lock

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Confirmed: apk handles the lock.
When another instance is running, this is the error that apk returns:

ERROR: Unable to lock database: Resource temporarily unavailable
ERROR: Failed to open apk database: Resource temporarily unavailable

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm not concerned about apk, more about the file move. We could lose the custom feeds if concurrent requests are being made, if it's acceptable, I'll remove it no problem

@gsanchietti gsanchietti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove the flock call

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.

Automatic package updates bypass custom feeds exclusion Installing upstream OpenWrt packages fails due to malformed version string

2 participants