File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -385,13 +385,6 @@ int main_update()
385
385
printf ("Update was applied.\n" );
386
386
}
387
387
388
- if ((current_version < server_version ) && (ret == 0 )) {
389
- printf ("Update successful. System updated from version %d to version %d\n" ,
390
- current_version , server_version );
391
- } else if (ret == 0 ) {
392
- printf ("Update complete. System already up-to-date at version %d\n" , current_version );
393
- }
394
-
395
388
delete_motd ();
396
389
397
390
/* Run any scripts that are needed to complete update */
@@ -407,12 +400,15 @@ int main_update()
407
400
swupd_curl_cleanup ();
408
401
free_subscriptions ();
409
402
free_globals ();
410
-
411
- printf ("Update exiting.\n" );
412
-
413
403
v_lockfile (lock_fd );
414
-
415
404
dump_file_descriptor_leaks ();
416
405
406
+ if ((current_version < server_version ) && (ret == 0 )) {
407
+ printf ("Update successful. System updated from version %d to version %d\n" ,
408
+ current_version , server_version );
409
+ } else if (ret == 0 ) {
410
+ printf ("Update complete. System already up-to-date at version %d\n" , current_version );
411
+ }
412
+
417
413
return ret ;
418
414
}
Original file line number Diff line number Diff line change @@ -791,6 +791,13 @@ int verify_main(int argc, char **argv)
791
791
/* this concludes the critical section, after this point it's clean up time, the disk content is finished and final */
792
792
793
793
clean_and_exit :
794
+ swupd_curl_cleanup ();
795
+ free_subscriptions ();
796
+ free_manifest (official_manifest );
797
+ v_lockfile (lock_fd );
798
+ dump_file_descriptor_leaks ();
799
+ free_globals ();
800
+
794
801
if (ret == EXIT_SUCCESS ) {
795
802
if (cmdline_option_fix || cmdline_option_install ) {
796
803
printf ("Fix successful\n" );
@@ -806,12 +813,6 @@ int verify_main(int argc, char **argv)
806
813
printf ("Error: Verify did not fully succeed\n" );
807
814
}
808
815
}
809
- swupd_curl_cleanup ();
810
- free_subscriptions ();
811
- free_manifest (official_manifest );
812
816
813
- v_lockfile (lock_fd );
814
- dump_file_descriptor_leaks ();
815
- free_globals ();
816
817
return ret ;
817
818
}
You can’t perform that action at this time.
0 commit comments