Dump data by running as __main__.
This commit is contained in:
parent
48273a8205
commit
5272e10208
@ -28,3 +28,10 @@ class Dnf(Backend):
|
|||||||
return update_count, notif_body
|
return update_count, notif_body
|
||||||
|
|
||||||
Backend = Dnf
|
Backend = Dnf
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
"""
|
||||||
|
Call this module directly; Print the update count and notification body.
|
||||||
|
"""
|
||||||
|
dnf = Dnf()
|
||||||
|
print("Updates: {}\n\n{}".format(*dnf.updates))
|
||||||
|
Loading…
Reference in New Issue
Block a user