Skip to content

Commit

Permalink
Adjust some documentation
Browse files Browse the repository at this point in the history
Make it more clear that --compatibility only changes the default, it
doesn't override other compression options
  • Loading branch information
dralley authored and kontura committed May 13, 2024
1 parent 78b0c3f commit 99eb8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/createrepo_c.8
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Keep all additional metadata (not primary, filelists and other xml or sqlite fil
Discard all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update.
.SS \-\-compatibility
.sp
Enforce maximal compatibility with classical createrepo (Changes \-\-retain\-old\-md behavior, uses Gzip for compression).
Enforce maximal compatibility with classical createrepo (Changes \-\-retain\-old\-md behavior, defaults to Gzip for compression).
.SS \-\-retain\-old\-md\-by\-age AGE
.sp
During \-\-update, remove all files in repodata/ which are older then the specified period of time. (e.g. \(aq2h\(aq, \(aq30d\(aq, ...). Available units (m \- minutes, h \- hours, d \- days)
Expand Down
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 and yum (Changes --retain-old-md behavior, uses Gzip for compression, produces sqlite metadata by default, leaves group metadata uncompressed).", NULL },
"Enforce maximal compatibility with classical createrepo and yum (Changes --retain-old-md behavior, defaults to Gzip for compression, produces sqlite metadata by default, leaves group metadata uncompressed).", 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

0 comments on commit 99eb8ab

Please sign in to comment.