You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when something like contrib/foo gets removed, add a /usr/share/deleted-packages/foo in base-removed-packages that contains foo and every subpackage name (just in case)
the trigger runs at the end of an upgrade, and reads every line from the new triggered file (only the new removal), then matches them against /etc/apk/world
for anything found (non-substring, whole package name matches), just print a warning:
WARNING: package `foo` is in /etc/apk/world but was removed from the repositories (dead package)
WARNING: package `foo-devel`....
the caveat is that virtuals in world wouldn't be caught (though given how infrequently this runs one could also scan through installeddb for virtuals..)
the main reason for this is that currently, anything explicitly removed from the repos sticks around in a world forever, and there are no warnings or anything and eventually people wonder why something is broken when they're 999 held updates behind due to transitive deps. the other way to detect something like this is apk list -O, but there's no good way to automatically run that for someone
or maybe this whole idea should be some sort of apk feature where it does it for you, just writing down a random thought though
The text was updated successfully, but these errors were encountered:
perhaps something like
foo
and every subpackage name (just in case)/etc/apk/world
the caveat is that virtuals in world wouldn't be caught (though given how infrequently this runs one could also scan through installeddb for virtuals..)
the main reason for this is that currently, anything explicitly removed from the repos sticks around in a world forever, and there are no warnings or anything and eventually people wonder why something is broken when they're 999 held updates behind due to transitive deps. the other way to detect something like this is
apk list -O
, but there's no good way to automatically run that for someoneor maybe this whole idea should be some sort of apk feature where it does it for you, just writing down a random thought though
The text was updated successfully, but these errors were encountered: