From 5c972cbe3cd0b744a3f21e81368608b95f9fef1b Mon Sep 17 00:00:00 2001 From: core software devel Date: Sat, 10 Aug 2024 15:37:45 +0000 Subject: [PATCH 1/2] remove .hh from ignored extensions --- src/ignored_extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ignored_extensions.c b/src/ignored_extensions.c index 375a0eb..94edbf0 100644 --- a/src/ignored_extensions.c +++ b/src/ignored_extensions.c @@ -51,7 +51,7 @@ char *IGNORED_EXTENSIONS[] = { ".woff", ".xht", ".xhtml", ".xls", ".xml", ".xpm", ".xsd", ".xul", ".yaml", ".yml", ".LAS",".adk",".asc",".cif",".cli",".cosmo",".deploy",".pom", ".dfm",".dmm",".fa",".fasta",".fcb",".flm",".fna",".gbr",".gen",".gro", - ".hgtags",".hh",".ihex",".kp",".mpx",".pdb",".poly",".prn",".ps",".ref", + ".hgtags",".ihex",".kp",".mpx",".pdb",".poly",".prn",".ps",".ref", ".resx",".smp",".stg",".tfa",".tsv",".vcf",".vhd",".xy",".xyz", From 09fb1394775eb452562beb1d3edf275b288c9b79 Mon Sep 17 00:00:00 2001 From: core software devel Date: Sat, 10 Aug 2024 15:41:28 +0000 Subject: [PATCH 2/2] fix bug processing HPSM results --- inc/scanoss.h | 2 +- src/match.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/scanoss.h b/inc/scanoss.h index 77333a9..be7849c 100644 --- a/inc/scanoss.h +++ b/inc/scanoss.h @@ -40,7 +40,7 @@ #define WFP_REC_LN 18 /* Log files */ -#define SCANOSS_VERSION "5.4.7" +#define SCANOSS_VERSION "5.4.8" #define SCAN_LOG "/tmp/scanoss_scan.log" #define MAP_DUMP "/tmp/scanoss_map.dump" #define SLOW_QUERY_LOG "/tmp/scanoss_slow_query.log" diff --git a/src/match.c b/src/match.c index 7c7e5a2..e52d1ba 100644 --- a/src/match.c +++ b/src/match.c @@ -698,7 +698,7 @@ void match_select_best(scan_data_t *scan) static struct ranges r = {NULL, NULL, NULL}; r = hpsm_calc(scan->matches_list_array[i]->best_match->file_md5); scanlog("HPSM range: %s\n", r.local); - if (*r.local && !strstr(r.local,"-1")) //check if HPSM was able to run + if (*r.local && strcmp(r.local,"-1")) //check if HPSM was able to run { if (hpsm_enabled && r.matched && !memcmp(r.matched, "0%%", 2)) {