File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -150,20 +150,27 @@ def main():
150
150
parser = argparse .ArgumentParser ()
151
151
parser .add_argument ("-f" , "--force" , action = "store_true" ,
152
152
help = "force manual update, skipping update checks" )
153
+ parser .add_argument ("-c" , "--check" , action = "store_true" ,
154
+ help = "run update checks and exit" )
153
155
args = parser .parse_args ()
154
156
155
157
if dbus_notify :
156
158
notify2 .init ('ublue-update' )
157
159
158
160
if not args .force :
159
161
check_inhibitors ()
162
+
160
163
# system checks passed
161
164
if dbus_notify :
165
+ log .info ("System passed all update checks" )
162
166
notify2 .Notification (
163
167
"System Updater" ,
164
168
"System passed checks, updating ..." ,
165
169
"notification-message-im" ).show ()
166
170
171
+ if args .check :
172
+ exit (0 )
173
+
167
174
run_updates ()
168
175
if dbus_notify :
169
176
notify2 .Notification (
You can’t perform that action at this time.
0 commit comments