Skip to content

Commit

Permalink
--compatibility produces sqlite metadata by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley committed Feb 6, 2024
1 parent f5b5cb3 commit 4d56631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static GOptionEntry cmd_entries[] =
"Discard all additional metadata (not primary, filelists and other xml or sqlite files, "
"nor their compressed variants) from source repository during update.", NULL },
{ "compatibility", 0, 0, G_OPTION_ARG_NONE, &(_cmd_options.compatibility),
"Enforce maximal compatibility with classical createrepo (Changes --retain-old-md behavior, uses Gzip for compression).", NULL },
"Enforce maximal compatibility with classical createrepo (Changes --retain-old-md behavior, uses Gzip for compression, produces sqlite metadata by default).", NULL },
{ "retain-old-md-by-age", 0, 0, G_OPTION_ARG_STRING, &(_cmd_options.retain_old_md_by_age),
"During --update, remove all files in repodata/ which are older "
"then the specified period of time. (e.g. '2h', '30d', ...). "
Expand Down
2 changes: 1 addition & 1 deletion src/createrepo_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ main(int argc, char **argv)
cr_repomdrecordfilltask_free(oth_fill_task, NULL);

// Sqlite db
if (cmd_options->database) {
if (cmd_options->database || (cmd_options->compatibility && !cmd_options->no_database)) {

gchar *pri_db_name = g_strconcat(tmp_out_repo, "/primary.sqlite",
sqlite_compression_suffix, NULL);
Expand Down

0 comments on commit 4d56631

Please sign in to comment.