-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dnf-automatic] Add in options for includepkgs and excludepkgs
This option adds in includepks and excludepkgs so we can specify a list we wanted updated or explicitly excluded from automatic updates
- Loading branch information
1 parent
1c43d09
commit 0d11d72
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,11 @@ def test_load(self): | |
self.assertEqual(conf.commands.random_sleep, 300) | ||
self.assertEqual(conf.email.email_from, '[email protected]') | ||
|
||
# test includepkg and excludepkgs | ||
conf = dnf.automatic.main.AutomaticConfig(FILE) | ||
self.assertEqual(list(conf.commands.includepkgs), ["dnf","dnf-automatic"]) | ||
self.assertEqual(list(conf.commands.excludepkgs), ["gtk3","gtk3-immodule-xim"]) | ||
|
||
# test overriding installupdates | ||
conf = dnf.automatic.main.AutomaticConfig(FILE, installupdates=False) | ||
# as per above, download is set false in config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
update_cmd = default | ||
download_updates = no | ||
apply_updates = yes | ||
includepkgs = dnf,dnf-automatic | ||
excludepkgs = gtk3,gtk3-immodule-xim | ||
|
||
[email] | ||
email_from = [email protected] |