Skip to content

Commit 993810c

Browse files
Merge pull request #1045 from theymightbetim/fix-dnf
fix: dnf module doesn't work for latest version of fedora/dnf5
2 parents 950b31d + 4af8d2e commit 993810c

File tree

1 file changed

+2
-2
lines changed
  • bumblebee_status/modules/contrib

1 file changed

+2
-2
lines changed

bumblebee_status/modules/contrib/dnf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ def updates(self, widget):
3030

3131
def update(self):
3232
widget = self.widget()
33-
res = util.cli.execute("dnf updateinfo", ignore_errors=True)
33+
res = util.cli.execute("dnf updateinfo summary", ignore_errors=True)
3434

3535
security = 0
3636
bugfixes = 0
3737
enhancements = 0
3838
other = 0
3939
for line in res.split("\n"):
40-
if not line.startswith(" "):
40+
if line.startswith(" "):
4141
continue
4242
elif "ecurity" in line:
4343
for s in line.split():

0 commit comments

Comments
 (0)