rpm-ostree/tests/check
rfairley a20d10e3d5 libpriv/util: Add date field in auto-versioning
This adds an optional date field to the prefix
passed by automatic_version_prefix. An example of specifying
the field is as follows:

10.<date:%Y>

And the fields progress like:

10.2018.0
10.2018.1
10.2018.2
10.2019.0

The date format creates a new "current date" string using
valid date directives passed into g_date_time_format().

If there is a problem reading the given date format,
an error is given and the next version is returned as NULL.

If no <date:...> tag is detected in the auto version prefix,
the same behavior as before (appending .1 and incrementing) occurs.

This may be helpful to avoid writing glue code to auto-update
the version if a date string in the commit version is desired.
Otherwise, --add-metadata-string=version= is an alternative for
complete customization.

Fixes: #1712

Closes: #1721
Approved by: jlebon
2019-01-14 18:49:41 +00:00
..
jsonutil.c libpriv/util: Add date field in auto-versioning 2019-01-14 18:49:41 +00:00
postprocess.c
test-kargs.c tests/check: Add unit tests for kargs options 2017-11-06 18:49:36 +00:00
test-lib-introspection.sh tests: Split unit test-basic.sh into introspection + upgrade-rebase 2018-04-17 13:08:24 +00:00
test-sysusers.c tests: add test for sorting + conversion of sysuser 2018-08-30 17:37:27 +00:00
test-ucontainer.sh
test-utils.c libpriv: Directly parse NEVRAs, don't use branches 2018-06-08 20:51:30 +00:00