-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: dnf
module
#377
base: main
Are you sure you want to change the base?
feat: dnf
module
#377
Conversation
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
shellcheck
Did you forget to close this double quoted string? SC1078
Line 91 in cd91b05
CLASSIC_PKGS+=("${PKG}") |
📝 [shellcheck] reported by reviewdog 🐶
This is actually an end quote, but due to next char it looks suspect. SC1079
Line 98 in cd91b05
echo "Installing: ${CLASSIC_PKGS[*]}" |
🚫 [shellcheck] reported by reviewdog 🐶
'(' is invalid here. Did you forget to escape it? SC1036
Line 100 in cd91b05
echo "Installing package(s) directly from URL: ${HTTPS_PKGS[*]}" |
🚫 [shellcheck] reported by reviewdog 🐶
Expected 'fi' matching previously mentioned 'if'. SC1047
Line 100 in cd91b05
echo "Installing package(s) directly from URL: ${HTTPS_PKGS[*]}" |
🚫 [shellcheck] reported by reviewdog 🐶
Expected 'fi'. Fix any mentioned problems and try again. SC1072
Line 100 in cd91b05
echo "Installing package(s) directly from URL: ${HTTPS_PKGS[*]}" |
modules/rpm-ostree/rpm-ostree.sh
Outdated
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.
…d `--refresh` for install operation
c3f963f
to
64dcd8f
Compare
@xynydev how does the TSP look for the schema? That's what I'm gonna move towards. |
I'm not sure what your exact question is, but the process goes kind of like this
|
Changes
Recipe format
Existing features code changes
dnf -y config-manager addrepo --from-repofile=$repo
for repo URLs & repo files, while COPR repos are using nativednf -y copr enable user/project
.COPR repos are written in separate
copr:
array & in simpleruser/project
format in recipe, instead of long URL inrepos:
array.rpm-ostree override remove --install=$pkg
is replaced with 2 operations ofdnf
removal & then install.Single operation of removal + installation of
dnf
doesn't currently exist, but it's not a breaking behavior to not have it.rpm-ostree override replace
is replaced withdnf -y distro-sync --refresh --repo $repo $packages
, which is compatible with all repos.Adding the repository along with replacement is disabled, so it must be done before replacement in
repos:
array if repo doesn't exist.New features
dnf group
removal & installation. Those are declared asgroup-remove
&group-install
array in recipe.They run before the packages installation.
install-weak-dependencies:
option for declaring if weak dependencies (such as Recommended) should be installed.It modifies the install & replace commands itself using
--setopt=install_weak_deps=True/False
flag, it doesn't modify thednf
config file. It defaults totrue
(reflectingdnf
defaults).skip-unavailable-packages:
option for skipping unavailable packages when not available in repositories, or when not available on the system in case of replacing. Passes--skip-unavailable
flag. Defaults to false.skip-broken-packages:
option for skipping the installation/replacement of broken packages. Passes--skip-broken
flag. Defaults to false.allow-erasing-packages
: option for erasing/removing the problematic packages during dependency problems. Passes--allowerasing
flag. Defaults to false.remove-unused-dependencies
is true by default. If false is specified, it passes the--no-autoremove
flag, which won't remove any unused dependencies during removal operation.Issues to be closed
Fixes: #361
Fixes: #370
Fixes: #325
Fixes: #282