-
Notifications
You must be signed in to change notification settings - Fork 300
Add unregister #2563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unregister #2563
Conversation
docs/pkg-unregister.8
Outdated
| .Os | ||
| .Sh NAME | ||
| .Nm "pkg unregister" | ||
| .Nd deletes packages from the database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"deletes package records from the database" maybe to make it very clear it's not touching the content
docs/pkg-unregister.8
Outdated
| with unfulfilled dependencies, | ||
| .Nm | ||
| will add the packages with unfulfilled dependencies to the list of | ||
| packages to be deleted, unless forced to proceed without deleting any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we delete those or unregister them?
|
CC @ifreund |
libpkg/private/pkg.h
Outdated
| #define PKG_DELETE_UPGRADE (1 << 1) /* delete as a split upgrade */ | ||
| #define PKG_DELETE_NOSCRIPT (1 << 2) /* don't run delete scripts */ | ||
| #define PKG_DELETE_NOEXEC (1 << 3) /* don't run delete scripts which execute things*/ | ||
| #define PKG_DELETE_NOFILES (1 << 4) /* don't delete files */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PKG_DELETE_KEEPFILES ?
libpkg/pkg.h.in
Outdated
| PKG_FLAG_UPGRADE_VULNERABLE = (1U << 13), | ||
| PKG_FLAG_NOEXEC = (1U << 14) | ||
| PKG_FLAG_NOEXEC = (1U << 14), | ||
| PKG_FLAG_NODELETEFILES = (1U << 15) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PKG_FLAG_KEEPFILES?
src/main.c
Outdated
| { "stats", "Displays package database statistics", exec_stats, usage_stats}, | ||
| { "triggers", "Execute deferred triggers", exec_triggers, usage_triggers}, | ||
| { "unlock", "Unlocks a package, allowing modification or deletion", exec_unlock, usage_lock}, | ||
| { "unregister", "Deletes packages from the database", exec_unregister, usage_unregister}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deletes packages entry from the database leaving the files on the filesystem ?
|
in general this looks good to me, mostly cosmetic and wording issues |
The goal of unregister is to remove the record from the database that a package is install but to no touch the files (or even run the scripts as we want to keep the generated data for example). This will allow people to migrate from a pkgbase to a non-pkgbase install. Sponsored by: Beckhoff Automation GmbH & Co. KG
It should be better now |
The goal of unregister is to remove the record from the database that a package is install but to no touch the files (or even run the scripts as we want to keep the generated data for example). This will allow people to migrate from a pkgbase to a non-pkgbase install.
Sponsored by: Beckhoff Automation GmbH & Co. KG