@@ -5,8 +5,8 @@ use serde_json::Value;
5
5
use tracing:: { debug, info, warn} ;
6
6
7
7
use crate :: {
8
- HistoryEntryInner , HistoryError , HistoryResult , InstallHistoryEntry , RemoveHistoryEntry ,
9
- INSERT_INSTALL_TABLE , INSERT_NEW_MAIN_TABLE , INSERT_REMOVE_DETAIL_TABLE , INSERT_REMOVE_TABLE ,
8
+ HistoryEntryInner , HistoryError , HistoryResult , INSERT_INSTALL_TABLE , INSERT_NEW_MAIN_TABLE ,
9
+ INSERT_REMOVE_DETAIL_TABLE , INSERT_REMOVE_TABLE , InstallHistoryEntry , RemoveHistoryEntry ,
10
10
} ;
11
11
12
12
pub fn create_and_maybe_migration_from_oma_db_v2 ( conn : & Connection ) -> HistoryResult < ( ) > {
@@ -243,7 +243,9 @@ fn get_old_table(conn: &Connection) -> Result<Vec<OldTableEntry>, HistoryError>
243
243
) {
244
244
Ok ( i) => i,
245
245
Err ( e) => {
246
- warn ! ( "Unable to migrate a history database entry from unix timestamp {time}: {e}, skipping ..." , ) ;
246
+ warn ! (
247
+ "Unable to migrate a history database entry from unix timestamp {time}: {e}, skipping ..." ,
248
+ ) ;
247
249
debug ! ( "install packages: {}" , install_packages) ;
248
250
has_fail = true ;
249
251
continue ;
@@ -277,11 +279,15 @@ fn get_old_table(conn: &Connection) -> Result<Vec<OldTableEntry>, HistoryError>
277
279
if !res. is_empty ( ) {
278
280
res
279
281
} else if is_clean_configure {
280
- warn ! ( "`oma purge' entries from the old history database cannot be migrated from unix timestamp {time}, skipping ..." ) ;
282
+ warn ! (
283
+ "`oma purge' entries from the old history database cannot be migrated from unix timestamp {time}, skipping ..."
284
+ ) ;
281
285
debug ! ( "remove packages: {}" , & remove_packages) ;
282
286
continue ;
283
287
} else {
284
- warn ! ( "Unable to migrate a history database entry from unix timestamp {time}: {e}, skipping ..." ) ;
288
+ warn ! (
289
+ "Unable to migrate a history database entry from unix timestamp {time}: {e}, skipping ..."
290
+ ) ;
285
291
debug ! ( "remove packages: {}" , & remove_packages) ;
286
292
has_fail = true ;
287
293
continue ;
@@ -292,7 +298,9 @@ fn get_old_table(conn: &Connection) -> Result<Vec<OldTableEntry>, HistoryError>
292
298
let summary_type = match serde_json:: from_str :: < OldSummaryType > ( & summary_type) {
293
299
Ok ( s) => s,
294
300
Err ( e) => {
295
- warn ! ( "Unable to migrate a history database entry from unix timestamp {time}: {e}, skipping ..." , ) ;
301
+ warn ! (
302
+ "Unable to migrate a history database entry from unix timestamp {time}: {e}, skipping ..." ,
303
+ ) ;
296
304
debug ! ( "summary type: {}" , & summary_type) ;
297
305
has_fail = true ;
298
306
continue ;
0 commit comments