From: biao716.wang Date: Fri, 9 Nov 2018 09:12:05 +0000 (+0800) Subject: remove filter function cr_is_primary to keep the same behavior as createrepo. X-Git-Tag: submit/devel/20190730.052527~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eeea5a77750e10cce94958fb88825890f914705;p=services%2Fcreaterepo_c.git remove filter function cr_is_primary to keep the same behavior as createrepo. Change-Id: Idecd3496c1d35d6d411ffd82acdd4649814dad13 --- diff --git a/src/parsehdr.c b/src/parsehdr.c index 704b955..4a8f0b8 100644 --- a/src/parsehdr.c +++ b/src/parsehdr.c @@ -392,9 +392,10 @@ cr_package_from_header(Header hdr, // Skip package primary files if (*filename == '/' && g_hash_table_lookup_extended(filenames_hashtable, filename, NULL, NULL)) { - if (cr_is_primary(filename)) { + //keep the same with createrepo behavior. + //if (cr_is_primary(filename)) { continue; - } + //} } // Skip files which are provided